]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/stubs/spinbutt.cpp
Some minor clean-ups to the wxScrolledWindow code.
[wxWidgets.git] / src / stubs / spinbutt.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: spinbutt.cpp
3// Purpose: wxSpinButton
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifdef __GNUG__
13#pragma implementation "spinbutt.h"
14#endif
15
16#include "wx/spinbutt.h"
17
18IMPLEMENT_DYNAMIC_CLASS(wxSpinButton, wxControl)
19
20wxSpinButton::wxSpinButton()
21{
22 m_min = 0;
23 m_max = 100;
24}
25
26bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size,
27 long style, const wxString& name)
28{
29 SetName(name);
30
31 m_windowStyle = style;
32
33 SetParent(parent);
34
35 m_min = 0;
36 m_max = 100;
37
38 m_windowId = (id == -1) ? NewControlId() : id;
39
40 // TODO create spin button
41 return FALSE;
42}
43
44wxSpinButton::~wxSpinButton()
45{
46}
47
48// Attributes
49////////////////////////////////////////////////////////////////////////////
50
51int wxSpinButton::GetValue() const
52{
53 // TODO
54 return 0;
55}
56
57void wxSpinButton::SetValue(int val)
58{
59 // TODO
60}
61
62void wxSpinButton::SetRange(int minVal, int maxVal)
63{
64 m_min = minVal;
65 m_max = maxVal;
66 // TODO
67}
68
69// Spin event
70IMPLEMENT_DYNAMIC_CLASS(wxSpinEvent, wxScrollEvent)
71
72wxSpinEvent::wxSpinEvent(wxEventType commandType, int id):
73 wxScrollEvent(commandType, id)
74{
75}
76