projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Notebook page bitmaps now supported.
[wxWidgets.git]
/
src
/
motif
/
spinbutt.cpp
diff --git
a/src/motif/spinbutt.cpp
b/src/motif/spinbutt.cpp
index ec039edb0cd291be945ed6108429a20138551bee..cdded68c3a756d9b9ec3b91006e44628dd0a0b16 100644
(file)
--- a/
src/motif/spinbutt.cpp
+++ b/
src/motif/spinbutt.cpp
@@
-13,6
+13,13
@@
#pragma implementation "spinbutt.h"
#endif
#pragma implementation "spinbutt.h"
#endif
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
+#include "wx/defs.h"
+
+#if wxUSE_SPINBTN
+
#include "wx/spinbutt.h"
#include "wx/spinctrl.h"
#include "wx/timer.h"
#include "wx/spinbutt.h"
#include "wx/spinctrl.h"
#include "wx/timer.h"
@@
-74,7
+81,7
@@
class wxArrowButton : public wxControl
{
friend class wxArrowButtonTimer;
public:
{
friend class wxArrowButtonTimer;
public:
- wxArrowButton( int increment )
+ wxArrowButton( int increment )
: m_increment( increment ),
m_timer( 0 ) {}
: m_increment( increment ),
m_timer( 0 ) {}
@@
-227,7
+234,7
@@
bool wxArrowButton::Create( wxSpinButton* parent, wxWindowID id,
SetForegroundColour( parent->GetBackgroundColour() );
SetForegroundColour( parent->GetBackgroundColour() );
- return
TRUE
;
+ return
true
;
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
@@
-269,14
+276,12
@@
bool wxSpinButton::Create( wxWindow *parent, wxWindowID id,
if( !wxControl::Create( parent, id, pos, newSize, style ) )
{
if( !wxControl::Create( parent, id, pos, newSize, style ) )
{
- return
FALSE
;
+ return
false
;
}
SetName(name);
}
SetName(name);
- InitBase();
-
- m_windowId = ( id == -1 ) ? NewControlId() : id;
+ m_windowId = ( id == wxID_ANY ) ? NewControlId() : id;
bool isVert = IsVertical();
wxPoint pt1, pt2;
bool isVert = IsVertical();
wxPoint pt1, pt2;
@@
-288,7
+293,7
@@
bool wxSpinButton::Create( wxWindow *parent, wxWindowID id,
isVert ? wxARROW_DOWN : wxARROW_LEFT,
pt2, sz2, -1 );
isVert ? wxARROW_DOWN : wxARROW_LEFT,
pt2, sz2, -1 );
- return
TRUE
;
+ return
true
;
}
wxSpinButton::~wxSpinButton()
}
wxSpinButton::~wxSpinButton()
@@
-402,3
+407,5
@@
void wxSpinButton::ChangeForegroundColour()
{
// TODO
}
{
// TODO
}
+
+#endif // wxUSE_SPINBTN