]> git.saurik.com Git - wxWidgets.git/blob - src/motif/spinbutt.cpp
The Unicode handling fixes my app seemed to need.
[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 #endif
21
22 wxSpinButton::wxSpinButton()
23 {
24 m_min = 0;
25 m_max = 100;
26 }
27
28 bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
29 long style, const wxString& name)
30 {
31 SetName(name);
32
33 m_windowStyle = style;
34
35 if (parent) parent->AddChild(this);
36
37 m_min = 0;
38 m_max = 100;
39
40 m_windowId = (id == -1) ? NewControlId() : id;
41
42 // TODO create spin button
43 return FALSE;
44 }
45
46 wxSpinButton::~wxSpinButton()
47 {
48 }
49
50 // Attributes
51 ////////////////////////////////////////////////////////////////////////////
52
53 int wxSpinButton::GetValue() const
54 {
55 // TODO
56 return 0;
57 }
58
59 void wxSpinButton::SetValue(int val)
60 {
61 // TODO
62 }
63
64 void wxSpinButton::SetRange(int minVal, int maxVal)
65 {
66 m_min = minVal;
67 m_max = maxVal;
68 // TODO
69 }
70
71 void wxSpinButton::ChangeFont(bool keepOriginalSize)
72 {
73 // TODO
74 }
75
76 void wxSpinButton::ChangeBackgroundColour()
77 {
78 // TODO
79 }
80
81 void wxSpinButton::ChangeForegroundColour()
82 {
83 // TODO
84 }
85
86 // Spin event
87 IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent)
88
89 wxSpinEvent::wxSpinEvent(wxEventType commandType, int id):
90 wxScrollEvent(commandType, id)
91 {
92 }
93