]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/gauge.h
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
45 inline wxGauge() { m_rangeMax
= 0; m_gaugePos
= 0; m_useProgressBar
= TRUE
; }
47 inline wxGauge( wxWindow
*parent
, wxWindowID id
, int range
,
48 const wxPoint
& pos
= wxDefaultPosition
,
49 const wxSize
& size
= wxDefaultSize
,
50 long style
= wxGA_HORIZONTAL
,
51 const wxValidator
& validator
= wxDefaultValidator
,
52 const wxString
& name
= wxGaugeNameStr
)
54 Create(parent
, id
, range
, pos
, size
, style
, validator
, name
);
56 bool Create( wxWindow
*parent
, wxWindowID id
, int range
,
57 const wxPoint
& pos
= wxDefaultPosition
,
58 const wxSize
& size
= wxDefaultSize
,
59 long style
= wxGA_HORIZONTAL
,
60 const wxValidator
& validator
= wxDefaultValidator
,
61 const wxString
& name
= wxGaugeNameStr
);
62 void SetShadowWidth( int WXUNUSED(w
) ) {};
63 void SetBezelFace( int WXUNUSED(w
) ) {};
64 void SetRange( int r
);
65 void SetValue( int pos
);
66 int GetShadowWidth() const { return 0; };
67 int GetBezelFace() const { return 0; };
71 // Are we a Win95/GTK progress bar, or a normal gauge?
72 inline bool GetProgressBar() const { return m_useProgressBar
; }
77 void ApplyWidgetStyle();
80 bool m_useProgressBar
;
83 DECLARE_DYNAMIC_CLASS(wxGauge
)
88 #endif // __GTKGAUGEH__