]>
git.saurik.com Git - wxWidgets.git/blob - src/motif/spinbutt.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxSpinButton
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
13 #pragma implementation "spinbutt.h"
16 #include "wx/spinbutt.h"
17 #include "wx/spinctrl.h"
19 // put wxSpinCtrl here too because it doesn't have a separate file for it in
21 IMPLEMENT_DYNAMIC_CLASS(wxSpinButton
, wxControl
)
22 IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent
, wxNotifyEvent
)
24 bool wxSpinButton::Create(wxWindow
*parent
, wxWindowID id
, const wxPoint
& WXUNUSED(pos
), const wxSize
& WXUNUSED(size
),
25 long style
, const wxString
& name
)
29 m_windowStyle
= style
;
31 if (parent
) parent
->AddChild(this);
35 m_windowId
= (id
== -1) ? NewControlId() : id
;
37 // TODO create spin button
41 wxSpinButton::~wxSpinButton()
46 ////////////////////////////////////////////////////////////////////////////
48 int wxSpinButton::GetValue() const
54 void wxSpinButton::SetValue(int WXUNUSED(val
))
59 void wxSpinButton::SetRange(int minVal
, int maxVal
)
62 wxSpinButtonBase::SetRange(minVal
, maxVal
);
65 void wxSpinButton::ChangeFont(bool WXUNUSED(keepOriginalSize
))
70 void wxSpinButton::ChangeBackgroundColour()
75 void wxSpinButton::ChangeForegroundColour()