1. more wxMotif fixes
[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
18 #if !USE_SHARED_LIBRARY
19 IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl)
20 IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent);
21 #endif
22
23 bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
24 long style, const wxString& name)
25 {
26 SetName(name);
27
28 m_windowStyle = style;
29
30 if (parent) parent->AddChild(this);
31
32 InitBase();
33
34 m_windowId = (id == -1) ? NewControlId() : id;
35
36 // TODO create spin button
37 return FALSE;
38 }
39
40 wxSpinButton::~wxSpinButton()
41 {
42 }
43
44 // Attributes
45 ////////////////////////////////////////////////////////////////////////////
46
47 int wxSpinButton::GetValue() const
48 {
49 // TODO
50 return 0;
51 }
52
53 void wxSpinButton::SetValue(int val)
54 {
55 // TODO
56 }
57
58 void wxSpinButton::SetRange(int minVal, int maxVal)
59 {
60 // TODO
61 wxSpinButtonBase::SetRange(minVal, maxVal);
62 }
63
64 void wxSpinButton::ChangeFont(bool keepOriginalSize)
65 {
66 // TODO
67 }
68
69 void wxSpinButton::ChangeBackgroundColour()
70 {
71 // TODO
72 }
73
74 void wxSpinButton::ChangeForegroundColour()
75 {
76 // TODO
77 }