]> git.saurik.com Git - wxWidgets.git/blob - src/motif/spinbutt.cpp
Unix compilation fixed
[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 #pragma implementation "spinctlg.h"
15 #endif
16
17 #include "wx/spinbutt.h"
18 #include "wx/spinctrl.h"
19
20 // put wxSpinCtrl here too because it doesn't have a separate file for it in
21 // wxMotif (yet)
22 IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl)
23 IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrl, wxControl)
24 IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxNotifyEvent)
25
26 bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& WXUNUSED(pos), const wxSize& WXUNUSED(size),
27 long style, const wxString& name)
28 {
29 SetName(name);
30
31 m_windowStyle = style;
32
33 if (parent) parent->AddChild(this);
34
35 InitBase();
36
37 m_windowId = (id == -1) ? NewControlId() : id;
38
39 // TODO create spin button
40 return FALSE;
41 }
42
43 wxSpinButton::~wxSpinButton()
44 {
45 }
46
47 // Attributes
48 ////////////////////////////////////////////////////////////////////////////
49
50 int wxSpinButton::GetValue() const
51 {
52 // TODO
53 return 0;
54 }
55
56 void wxSpinButton::SetValue(int WXUNUSED(val))
57 {
58 // TODO
59 }
60
61 void wxSpinButton::SetRange(int minVal, int maxVal)
62 {
63 // TODO
64 wxSpinButtonBase::SetRange(minVal, maxVal);
65 }
66
67 void wxSpinButton::ChangeFont(bool WXUNUSED(keepOriginalSize))
68 {
69 // TODO
70 }
71
72 void wxSpinButton::ChangeBackgroundColour()
73 {
74 // TODO
75 }
76
77 void wxSpinButton::ChangeForegroundColour()
78 {
79 // TODO
80 }