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