]>
Commit | Line | Data |
---|---|---|
780d37ac JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: gauge95.h | |
3 | // Purpose: wxGauge95 class | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
7 | // RCS-ID: $Id$ | |
bbcdf8bc | 8 | // Copyright: (c) Julian Smart |
1e6feb95 | 9 | // Licence: wxWindows licence |
780d37ac JS |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _GAUGE95_H_ | |
13 | #define _GAUGE95_H_ | |
14 | ||
15 | #ifdef __GNUG__ | |
16 | #pragma interface "gauge95.h" | |
17 | #endif | |
18 | ||
1e6feb95 VZ |
19 | #if wxUSE_SLIDER |
20 | ||
780d37ac JS |
21 | #include "wx/control.h" |
22 | ||
32c1cda2 | 23 | WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr; |
780d37ac JS |
24 | |
25 | // Group box | |
bfc6fde4 | 26 | class WXDLLEXPORT wxGauge95 : public wxControl |
780d37ac | 27 | { |
bfc6fde4 VZ |
28 | public: |
29 | wxGauge95(void) { m_rangeMax = 0; m_gaugePos = 0; } | |
30 | ||
31 | wxGauge95(wxWindow *parent, wxWindowID id, | |
32 | int range, | |
33 | const wxPoint& pos = wxDefaultPosition, | |
34 | const wxSize& size = wxDefaultSize, | |
35 | long style = wxGA_HORIZONTAL, | |
36 | const wxValidator& validator = wxDefaultValidator, | |
37 | const wxString& name = wxGaugeNameStr) | |
38 | { | |
39 | Create(parent, id, range, pos, size, style, validator, name); | |
40 | } | |
41 | ||
42 | bool Create(wxWindow *parent, wxWindowID id, | |
43 | int range, | |
44 | const wxPoint& pos = wxDefaultPosition, | |
45 | const wxSize& size = wxDefaultSize, | |
46 | long style = wxGA_HORIZONTAL, | |
47 | const wxValidator& validator = wxDefaultValidator, | |
48 | const wxString& name = wxGaugeNameStr); | |
49 | ||
50 | void SetShadowWidth(int w); | |
51 | void SetBezelFace(int w); | |
52 | void SetRange(int r); | |
53 | void SetValue(int pos); | |
54 | ||
55 | int GetShadowWidth(void) const ; | |
56 | int GetBezelFace(void) const ; | |
57 | int GetRange(void) const ; | |
58 | int GetValue(void) const ; | |
59 | ||
cc2b7472 VZ |
60 | bool SetForegroundColour(const wxColour& col); |
61 | bool SetBackgroundColour(const wxColour& col); | |
bfc6fde4 | 62 | |
d9317fd4 VZ |
63 | // overriden base class virtuals |
64 | virtual bool AcceptsFocus() const { return FALSE; } | |
65 | ||
bfc6fde4 | 66 | // Backward compatibility |
780d37ac | 67 | #if WXWIN_COMPATIBILITY |
bfc6fde4 | 68 | void SetButtonColour(const wxColour& col) { SetForegroundColour(col); } |
780d37ac JS |
69 | #endif |
70 | ||
bfc6fde4 | 71 | virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ; |
780d37ac | 72 | |
bfc6fde4 VZ |
73 | protected: |
74 | int m_rangeMax; | |
75 | int m_gaugePos; | |
fc7a2a60 VZ |
76 | |
77 | ||
78 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge95) | |
780d37ac JS |
79 | }; |
80 | ||
1e6feb95 VZ |
81 | #endif // wxUSE_GAUGE |
82 | ||
780d37ac JS |
83 | #endif |
84 | // _GAUGEMSW_H_ |