]>
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 |
65571936 | 9 | // Licence: wxWindows licence |
780d37ac JS |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _GAUGE95_H_ | |
13 | #define _GAUGE95_H_ | |
14 | ||
f4998a1c | 15 | #if wxUSE_GAUGE |
780d37ac | 16 | |
63ec432b | 17 | extern WXDLLEXPORT_DATA(const wxChar) wxGaugeNameStr[]; |
780d37ac JS |
18 | |
19 | // Group box | |
da0f19f8 | 20 | class WXDLLEXPORT wxGauge95 : public wxGaugeBase |
780d37ac | 21 | { |
bfc6fde4 | 22 | public: |
da0f19f8 VZ |
23 | wxGauge95() { } |
24 | ||
25 | wxGauge95(wxWindow *parent, | |
26 | wxWindowID id, | |
27 | int range, | |
28 | const wxPoint& pos = wxDefaultPosition, | |
29 | const wxSize& size = wxDefaultSize, | |
30 | long style = wxGA_HORIZONTAL, | |
31 | const wxValidator& validator = wxDefaultValidator, | |
32 | const wxString& name = wxGaugeNameStr) | |
bfc6fde4 | 33 | { |
da0f19f8 | 34 | (void)Create(parent, id, range, pos, size, style, validator, name); |
bfc6fde4 VZ |
35 | } |
36 | ||
da0f19f8 VZ |
37 | bool Create(wxWindow *parent, |
38 | wxWindowID id, | |
39 | int range, | |
40 | const wxPoint& pos = wxDefaultPosition, | |
41 | const wxSize& size = wxDefaultSize, | |
42 | long style = wxGA_HORIZONTAL, | |
43 | const wxValidator& validator = wxDefaultValidator, | |
44 | const wxString& name = wxGaugeNameStr); | |
bfc6fde4 | 45 | |
da0f19f8 VZ |
46 | // set gauge range/value |
47 | virtual void SetRange(int range); | |
48 | virtual void SetValue(int pos); | |
bfc6fde4 | 49 | |
d9317fd4 | 50 | // overriden base class virtuals |
da0f19f8 VZ |
51 | virtual bool SetForegroundColour(const wxColour& col); |
52 | virtual bool SetBackgroundColour(const wxColour& col); | |
780d37ac | 53 | |
ee4c1365 RR |
54 | |
55 | void SetIndeterminateMode(); | |
56 | void SetDeterminateMode(); | |
57 | void Pulse(); | |
6f02a879 VZ |
58 | |
59 | protected: | |
da0f19f8 | 60 | virtual wxSize DoGetBestSize() const; |
fc7a2a60 | 61 | |
ee4c1365 | 62 | WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const; |
fc7a2a60 VZ |
63 | |
64 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge95) | |
780d37ac JS |
65 | }; |
66 | ||
1e6feb95 VZ |
67 | #endif // wxUSE_GAUGE |
68 | ||
780d37ac JS |
69 | #endif |
70 | // _GAUGEMSW_H_ |