]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/motif/spinbutt.cpp
merged MapBitmap() from 2.2 branch
[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(wxSpinEvent, wxNotifyEvent)
24
25bool wxSpinButton::Create(wxWindow *parent, wxWindowID id, const wxPoint& WXUNUSED(pos), const wxSize& WXUNUSED(size),
26 long style, const wxString& name)
27{
28 SetName(name);
29
30 m_windowStyle = style;
31
32 if (parent) parent->AddChild(this);
33
34 InitBase();
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{
51 // TODO
52 return 0;
53}
54
55void wxSpinButton::SetValue(int WXUNUSED(val))
56{
57 // TODO
58}
59
60void wxSpinButton::SetRange(int minVal, int maxVal)
61{
62 // TODO
63 wxSpinButtonBase::SetRange(minVal, maxVal);
64}
65
66void wxSpinButton::ChangeFont(bool WXUNUSED(keepOriginalSize))
67{
68 // TODO
69}
70
71void wxSpinButton::ChangeBackgroundColour()
72{
73 // TODO
74}
75
76void wxSpinButton::ChangeForegroundColour()
77{
78 // TODO
79}