]> git.saurik.com Git - wxWidgets.git/blame - src/motif/spinbutt.cpp
wxWindow::Fit() infinite loop bug fixed
[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
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "spinbutt.h"
14#endif
15
16#include "wx/spinbutt.h"
17
18#if !USE_SHARED_LIBRARY
19IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl)
20#endif
21
22wxSpinButton::wxSpinButton()
23{
24 m_min = 0;
25 m_max = 100;
26}
27
28bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
29 long style, const wxString& name)
30{
31 SetName(name);
32
33 m_windowStyle = style;
34
9838df2c
JS
35 if (parent) parent->AddChild(this);
36
4bb6408c
JS
37 m_min = 0;
38 m_max = 100;
39
40 m_windowId = (id == -1) ? NewControlId() : id;
41
42 // TODO create spin button
43 return FALSE;
44}
45
46wxSpinButton::~wxSpinButton()
47{
48}
49
50// Attributes
51////////////////////////////////////////////////////////////////////////////
52
53int wxSpinButton::GetValue() const
54{
55 // TODO
56 return 0;
57}
58
59void wxSpinButton::SetValue(int val)
60{
61 // TODO
62}
63
64void wxSpinButton::SetRange(int minVal, int maxVal)
65{
66 m_min = minVal;
67 m_max = maxVal;
68 // TODO
69}
70
4b5f3fe6 71void wxSpinButton::ChangeFont(bool keepOriginalSize)
0d57be45
JS
72{
73 // TODO
74}
75
76void wxSpinButton::ChangeBackgroundColour()
77{
78 // TODO
79}
80
81void wxSpinButton::ChangeForegroundColour()
82{
83 // TODO
84}
85
4bb6408c
JS
86// Spin event
87IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent)
88
89wxSpinEvent::wxSpinEvent(wxEventType commandType, int id):
90 wxScrollEvent(commandType, id)
91{
92}
93