]> git.saurik.com Git - wxWidgets.git/blob - src/motif/spinbutt.cpp
wxDC::SetFont can now handle invalid font and doesn't assert anymore (other ports...
[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(wxSpinEvent, wxNotifyEvent)
23
24 bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& WXUNUSED(pos), const wxSize& WXUNUSED(size),
25 long style, const wxString& name)
26 {
27 SetName(name);
28
29 m_windowStyle = style;
30
31 if (parent) parent->AddChild(this);
32
33 InitBase();
34
35 m_windowId = (id == -1) ? NewControlId() : id;
36
37 // TODO create spin button
38 return FALSE;
39 }
40
41 wxSpinButton::~wxSpinButton()
42 {
43 }
44
45 // Attributes
46 ////////////////////////////////////////////////////////////////////////////
47
48 int wxSpinButton::GetValue() const
49 {
50 // TODO
51 return 0;
52 }
53
54 void wxSpinButton::SetValue(int WXUNUSED(val))
55 {
56 // TODO
57 }
58
59 void wxSpinButton::SetRange(int minVal, int maxVal)
60 {
61 // TODO
62 wxSpinButtonBase::SetRange(minVal, maxVal);
63 }
64
65 void wxSpinButton::ChangeFont(bool WXUNUSED(keepOriginalSize))
66 {
67 // TODO
68 }
69
70 void wxSpinButton::ChangeBackgroundColour()
71 {
72 // TODO
73 }
74
75 void wxSpinButton::ChangeForegroundColour()
76 {
77 // TODO
78 }