]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/gauge.h
479d1d510de7a136d8f09a4cf9a5d0636c4c0021
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
22 #include "wx/object.h"
24 #include "wx/control.h"
26 //-----------------------------------------------------------------------------
28 //-----------------------------------------------------------------------------
32 //-----------------------------------------------------------------------------
34 //-----------------------------------------------------------------------------
36 extern const char* wxGaugeNameStr
;
38 //-----------------------------------------------------------------------------
40 //-----------------------------------------------------------------------------
42 class wxGauge
: public wxControl
44 DECLARE_DYNAMIC_CLASS(wxGauge
)
47 inline wxGauge() { m_rangeMax
= 0; m_gaugePos
= 0; m_useProgressBar
= TRUE
; }
49 inline wxGauge( wxWindow
*parent
, wxWindowID id
, int range
,
50 const wxPoint
& pos
= wxDefaultPosition
,
51 const wxSize
& size
= wxDefaultSize
,
52 long style
= wxGA_HORIZONTAL
,
53 const wxValidator
& validator
= wxDefaultValidator
,
54 const wxString
& name
= wxGaugeNameStr
)
56 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
58 bool Create( wxWindow
*parent
, wxWindowID id
, int range
,
59 const wxPoint
& pos
= wxDefaultPosition
,
60 const wxSize
& size
= wxDefaultSize
,
61 long style
= wxGA_HORIZONTAL
,
62 const wxValidator
& validator
= wxDefaultValidator
,
63 const wxString
& name
= wxGaugeNameStr
);
64 void SetShadowWidth( int WXUNUSED(w
) ) {};
65 void SetBezelFace( int WXUNUSED(w
) ) {};
66 void SetRange( int r
);
67 void SetValue( int pos
);
68 int GetShadowWidth() const { return 0; };
69 int GetBezelFace() const { return 0; };
73 // Are we a Win95/GTK progress bar, or a normal gauge?
74 inline bool GetProgressBar() const { return m_useProgressBar
; }
78 void ApplyWidgetStyle();
82 bool m_useProgressBar
;
87 #endif // __GTKGAUGEH__