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