linking fix for wxMotif
[wxWidgets.git] / src / motif / spinbutt.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: spinbutt.cpp
3 // Purpose: wxSpinButton
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 17/09/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "spinbutt.h"
14 #endif
15
16 #include "wx/spinbutt.h"
17 #include "wx/spinctrl.h"
18
19 // put wxSpinCtrl here too because it doesn't have a separate file for it in
20 // wxMotif (yet)
21 IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl)
22 IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrl, wxControl)
23 IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxNotifyEvent)
24
25 bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& WXUNUSED(pos), const wxSize& WXUNUSED(size),
26 long style, const wxString& name)
27 {
28 SetName(name);
29
30 m_windowStyle = style;
31
32 if (parent) parent->AddChild(this);
33
34 InitBase();
35
36 m_windowId = (id == -1) ? NewControlId() : id;
37
38 // TODO create spin button
39 return FALSE;
40 }
41
42 wxSpinButton::~wxSpinButton()
43 {
44 }
45
46 // Attributes
47 ////////////////////////////////////////////////////////////////////////////
48
49 int wxSpinButton::GetValue() const
50 {
51 // TODO
52 return 0;
53 }
54
55 void wxSpinButton::SetValue(int WXUNUSED(val))
56 {
57 // TODO
58 }
59
60 void wxSpinButton::SetRange(int minVal, int maxVal)
61 {
62 // TODO
63 wxSpinButtonBase::SetRange(minVal, maxVal);
64 }
65
66 void wxSpinButton::ChangeFont(bool WXUNUSED(keepOriginalSize))
67 {
68 // TODO
69 }
70
71 void wxSpinButton::ChangeBackgroundColour()
72 {
73 // TODO
74 }
75
76 void wxSpinButton::ChangeForegroundColour()
77 {
78 // TODO
79 }