]>
Commit | Line | Data |
---|---|---|
4bb6408c JS |
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 | |
31528cd3 | 9 | // Licence: wxWindows licence |
4bb6408c JS |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifdef __GNUG__ | |
13 | #pragma implementation "spinbutt.h" | |
14 | #endif | |
15 | ||
16 | #include "wx/spinbutt.h" | |
17 | ||
4bb6408c | 18 | IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl) |
31528cd3 | 19 | IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent); |
4bb6408c | 20 | |
af111fc3 | 21 | bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& WXUNUSED(pos), const wxSize& WXUNUSED(size), |
4bb6408c JS |
22 | long style, const wxString& name) |
23 | { | |
24 | SetName(name); | |
25 | ||
26 | m_windowStyle = style; | |
27 | ||
9838df2c | 28 | if (parent) parent->AddChild(this); |
31528cd3 VZ |
29 | |
30 | InitBase(); | |
4bb6408c JS |
31 | |
32 | m_windowId = (id == -1) ? NewControlId() : id; | |
33 | ||
34 | // TODO create spin button | |
35 | return FALSE; | |
36 | } | |
37 | ||
38 | wxSpinButton::~wxSpinButton() | |
39 | { | |
40 | } | |
41 | ||
42 | // Attributes | |
43 | //////////////////////////////////////////////////////////////////////////// | |
44 | ||
45 | int wxSpinButton::GetValue() const | |
46 | { | |
31528cd3 | 47 | // TODO |
4bb6408c JS |
48 | return 0; |
49 | } | |
50 | ||
af111fc3 | 51 | void wxSpinButton::SetValue(int WXUNUSED(val)) |
4bb6408c | 52 | { |
31528cd3 | 53 | // TODO |
4bb6408c JS |
54 | } |
55 | ||
56 | void wxSpinButton::SetRange(int minVal, int maxVal) | |
57 | { | |
31528cd3 VZ |
58 | // TODO |
59 | wxSpinButtonBase::SetRange(minVal, maxVal); | |
4bb6408c JS |
60 | } |
61 | ||
af111fc3 | 62 | void wxSpinButton::ChangeFont(bool WXUNUSED(keepOriginalSize)) |
0d57be45 JS |
63 | { |
64 | // TODO | |
65 | } | |
66 | ||
67 | void wxSpinButton::ChangeBackgroundColour() | |
68 | { | |
69 | // TODO | |
70 | } | |
71 | ||
72 | void wxSpinButton::ChangeForegroundColour() | |
73 | { | |
74 | // TODO | |
75 | } |