]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/motif/spinbutt.cpp
yet another file I added on the wxUniv branch and forgot to merge
[wxWidgets.git] / src / motif / spinbutt.cpp
... / ...
CommitLineData
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#pragma implementation "spinctlg.h"
15#endif
16
17#include "wx/spinbutt.h"
18#include "wx/spinctrl.h"
19
20// put wxSpinCtrl here too because it doesn't have a separate file for it in
21// wxMotif (yet)
22IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl)
23IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrl, wxControl)
24IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxNotifyEvent)
25
26bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& WXUNUSED(pos), const wxSize& WXUNUSED(size),
27 long style, const wxString& name)
28{
29 SetName(name);
30
31 m_windowStyle = style;
32
33 if (parent) parent->AddChild(this);
34
35 InitBase();
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{
52 // TODO
53 return 0;
54}
55
56void wxSpinButton::SetValue(int WXUNUSED(val))
57{
58 // TODO
59}
60
61void wxSpinButton::SetRange(int minVal, int maxVal)
62{
63 // TODO
64 wxSpinButtonBase::SetRange(minVal, maxVal);
65}
66
67void wxSpinButton::ChangeFont(bool WXUNUSED(keepOriginalSize))
68{
69 // TODO
70}
71
72void wxSpinButton::ChangeBackgroundColour()
73{
74 // TODO
75}
76
77void wxSpinButton::ChangeForegroundColour()
78{
79 // TODO
80}