]> git.saurik.com Git - wxWidgets.git/blame - src/motif/spinbutt.cpp
added new project file having the new files
[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)
2fa7c206 23IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxNotifyEvent)
4bb6408c 24
af111fc3 25bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& WXUNUSED(pos), const wxSize& WXUNUSED(size),
4bb6408c
JS
26 long style, const wxString& name)
27{
28 SetName(name);
29
30 m_windowStyle = style;
31
9838df2c 32 if (parent) parent->AddChild(this);
31528cd3
VZ
33
34 InitBase();
4bb6408c
JS
35
36 m_windowId = (id == -1) ? NewControlId() : id;
37
38 // TODO create spin button
39 return FALSE;
40}
41
42wxSpinButton::~wxSpinButton()
43{
44}
45
46// Attributes
47////////////////////////////////////////////////////////////////////////////
48
49int wxSpinButton::GetValue() const
50{
31528cd3 51 // TODO
4bb6408c
JS
52 return 0;
53}
54
af111fc3 55void wxSpinButton::SetValue(int WXUNUSED(val))
4bb6408c 56{
31528cd3 57 // TODO
4bb6408c
JS
58}
59
60void wxSpinButton::SetRange(int minVal, int maxVal)
61{
31528cd3
VZ
62 // TODO
63 wxSpinButtonBase::SetRange(minVal, maxVal);
4bb6408c
JS
64}
65
af111fc3 66void wxSpinButton::ChangeFont(bool WXUNUSED(keepOriginalSize))
0d57be45
JS
67{
68 // TODO
69}
70
71void wxSpinButton::ChangeBackgroundColour()
72{
73 // TODO
74}
75
76void wxSpinButton::ChangeForegroundColour()
77{
78 // TODO
79}