]>
Commit | Line | Data |
---|---|---|
7c78e7c7 RR |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: gauge.cpp | |
01b2eeec KB |
3 | // Purpose: wxGauge class |
4 | // Author: AUTHOR | |
5 | // Modified by: | |
6 | // Created: ??/??/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) AUTHOR | |
7c78e7c7 RR |
9 | // Licence: wxWindows licence |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifdef __GNUG__ | |
13 | #pragma implementation "gauge.h" | |
14 | #endif | |
15 | ||
16 | #include "wx/gauge.h" | |
17 | ||
01b2eeec | 18 | IMPLEMENT_DYNAMIC_CLASS(wxGauge, wxControl) |
01b2eeec KB |
19 | |
20 | bool 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 | ||
45 | void wxGauge::SetSize(int x, int y, int width, int height, int sizeFlags) | |
46 | { | |
47 | // TODO | |
48 | } | |
7c78e7c7 | 49 | |
01b2eeec KB |
50 | void wxGauge::SetShadowWidth(int w) |
51 | { | |
52 | // TODO optional | |
53 | } | |
54 | ||
55 | void wxGauge::SetBezelFace(int w) | |
56 | { | |
57 | // TODO optional | |
58 | } | |
59 | ||
60 | void wxGauge::SetRange(int r) | |
61 | { | |
62 | m_rangeMax = r; | |
63 | // TODO | |
64 | } | |
65 | ||
66 | void wxGauge::SetValue(int pos) | |
67 | { | |
68 | m_gaugePos = pos; | |
69 | // TODO | |
70 | } | |
71 | ||
72 | int wxGauge::GetShadowWidth() const | |
73 | { | |
74 | // TODO optional | |
75 | return 0; | |
76 | } | |
7c78e7c7 | 77 | |
01b2eeec | 78 | int wxGauge::GetBezelFace() const |
7c78e7c7 | 79 | { |
01b2eeec KB |
80 | // TODO optional |
81 | return 0; | |
82 | } | |
7c78e7c7 | 83 | |
01b2eeec | 84 | int wxGauge::GetRange() const |
7c78e7c7 | 85 | { |
01b2eeec KB |
86 | return m_rangeMax; |
87 | } | |
7c78e7c7 | 88 | |
01b2eeec | 89 | int wxGauge::GetValue() const |
7c78e7c7 | 90 | { |
01b2eeec KB |
91 | return m_gaugePos; |
92 | } | |
7c78e7c7 | 93 | |
01b2eeec | 94 | void wxGauge::SetForegroundColour(const wxColour& col) |
7c78e7c7 | 95 | { |
01b2eeec KB |
96 | m_foregroundColour = col ; |
97 | } | |
7c78e7c7 | 98 | |
01b2eeec | 99 | void wxGauge::SetBackgroundColour(const wxColour& col) |
7c78e7c7 | 100 | { |
01b2eeec KB |
101 | m_backgroundColour = col ; |
102 | } | |
7c78e7c7 | 103 |