]>
Commit | Line | Data |
---|---|---|
8cf73271 SC |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: gauge.h | |
3 | // Purpose: wxGauge class | |
4 | // Author: Stefan Csomor | |
5 | // Modified by: | |
6 | // Created: 1998-01-01 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Stefan Csomor | |
65571936 | 9 | // Licence: wxWindows licence |
8cf73271 SC |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_GAUGE_H_ | |
13 | #define _WX_GAUGE_H_ | |
14 | ||
8cf73271 SC |
15 | #include "wx/control.h" |
16 | ||
53a2db12 | 17 | WXDLLIMPEXP_DATA_CORE(extern const char) wxGaugeNameStr[]; |
8cf73271 SC |
18 | |
19 | // Group box | |
53a2db12 | 20 | class WXDLLIMPEXP_CORE wxGauge: public wxGaugeBase |
8cf73271 | 21 | { |
8cf73271 | 22 | public: |
6d4c54a7 | 23 | inline wxGauge() { } |
8cf73271 SC |
24 | |
25 | inline wxGauge(wxWindow *parent, wxWindowID id, | |
26 | int range, | |
27 | const wxPoint& pos = wxDefaultPosition, | |
28 | const wxSize& size = wxDefaultSize, | |
29 | long style = wxGA_HORIZONTAL, | |
30 | const wxValidator& validator = wxDefaultValidator, | |
31 | const wxString& name = wxGaugeNameStr) | |
32 | { | |
33 | Create(parent, id, range, pos, size, style, validator, name); | |
34 | } | |
35 | ||
36 | bool Create(wxWindow *parent, wxWindowID id, | |
37 | int range, | |
38 | const wxPoint& pos = wxDefaultPosition, | |
39 | const wxSize& size = wxDefaultSize, | |
40 | long style = wxGA_HORIZONTAL, | |
41 | const wxValidator& validator = wxDefaultValidator, | |
42 | const wxString& name = wxGaugeNameStr); | |
43 | ||
6d4c54a7 SC |
44 | // set gauge range/value |
45 | virtual void SetRange(int range); | |
46 | virtual void SetValue(int pos); | |
47 | virtual int GetValue() const ; | |
fe8635a7 RR |
48 | |
49 | void Pulse(); | |
50 | ||
8cf73271 | 51 | protected: |
6d4c54a7 | 52 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge) |
8cf73271 SC |
53 | }; |
54 | ||
55 | #endif | |
56 | // _WX_GAUGE_H_ |