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