]> git.saurik.com Git - wxWidgets.git/blame - src/stubs/gauge.cpp
correction to maintain data array in synch with string array
[wxWidgets.git] / src / stubs / gauge.cpp
CommitLineData
93cf77c0
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: gauge.cpp
3// Purpose: wxGauge class
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 "gauge.h"
14#endif
15
16#include "wx/gauge.h"
17
93cf77c0 18IMPLEMENT_DYNAMIC_CLASS(wxGauge, wxControl)
93cf77c0
JS
19
20bool wxGauge::Create(wxWindow *parent, wxWindowID id,
21 int range,
22 const wxPoint& pos,
23 const wxSize& size,
24 long style,
25 const wxValidator& validator,
26 const wxString& name)
27{
28 SetName(name);
29 SetValidator(validator);
30 m_rangeMax = range;
31 m_windowStyle = style;
32
33 if (parent) parent->AddChild(this);
34
35 if ( id == -1 )
36 m_windowId = (int)NewControlId();
37 else
38 m_windowId = id;
39
40
41 // TODO
42 return FALSE;
43}
44
45void wxGauge::SetSize(int x, int y, int width, int height, int sizeFlags)
46{
47 // TODO
48}
49
50void wxGauge::SetShadowWidth(int w)
51{
52 // TODO optional
53}
54
55void wxGauge::SetBezelFace(int w)
56{
57 // TODO optional
58}
59
60void wxGauge::SetRange(int r)
61{
62 m_rangeMax = r;
63 // TODO
64}
65
66void wxGauge::SetValue(int pos)
67{
68 m_gaugePos = pos;
69 // TODO
70}
71
72int wxGauge::GetShadowWidth() const
73{
74 // TODO optional
75 return 0;
76}
77
78int wxGauge::GetBezelFace() const
79{
80 // TODO optional
81 return 0;
82}
83
84int wxGauge::GetRange() const
85{
86 return m_rangeMax;
87}
88
89int wxGauge::GetValue() const
90{
91 return m_gaugePos;
92}
93