]>
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"
14 #pragma implementation "spinctlg.h"
17 #include "wx/spinbutt.h"
18 #include "wx/spinctrl.h"
20 // put wxSpinCtrl here too because it doesn't have a separate file for it in
22 IMPLEMENT_DYNAMIC_CLASS(wxSpinButton
, wxControl
)
23 IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent
, wxNotifyEvent
)
25 bool wxSpinButton::Create(wxWindow
*parent
, wxWindowID id
, const wxPoint
& WXUNUSED(pos
), const wxSize
& WXUNUSED(size
),
26 long style
, const wxString
& name
)
30 m_windowStyle
= style
;
32 if (parent
) parent
->AddChild(this);
36 m_windowId
= (id
== -1) ? NewControlId() : id
;
38 // TODO create spin button
42 wxSpinButton::~wxSpinButton()
47 ////////////////////////////////////////////////////////////////////////////
49 int wxSpinButton::GetValue() const
55 void wxSpinButton::SetValue(int WXUNUSED(val
))
60 void wxSpinButton::SetRange(int minVal
, int maxVal
)
63 wxSpinButtonBase::SetRange(minVal
, maxVal
);
66 void wxSpinButton::ChangeFont(bool WXUNUSED(keepOriginalSize
))
71 void wxSpinButton::ChangeBackgroundColour()
76 void wxSpinButton::ChangeForegroundColour()