X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/36b3b54ad8431bca0fa53fa8acae5ba6d4c3e9c7..217099990c2665d18d352c60058106da9a014ab8:/include/wx/gtk/gauge.h diff --git a/include/wx/gtk/gauge.h b/include/wx/gtk/gauge.h index e75a0c41b5..ee018c01a1 100644 --- a/include/wx/gtk/gauge.h +++ b/include/wx/gtk/gauge.h @@ -16,6 +16,9 @@ #endif #include "wx/defs.h" + +#if wxUSE_GAUGE + #include "wx/object.h" #include "wx/list.h" #include "wx/control.h" @@ -38,9 +41,7 @@ extern const char* wxGaugeNameStr; class wxGauge: public wxControl { - DECLARE_DYNAMIC_CLASS(wxGauge) - - public: +public: inline wxGauge() { m_rangeMax = 0; m_gaugePos = 0; m_useProgressBar = TRUE; } inline wxGauge( wxWindow *parent, wxWindowID id, int range, @@ -70,13 +71,18 @@ class wxGauge: public wxControl // Are we a Win95/GTK progress bar, or a normal gauge? inline bool GetProgressBar() const { return m_useProgressBar; } - // implementation + // implementation + // ------------- void ApplyWidgetStyle(); - - int m_rangeMax; - int m_gaugePos; - bool m_useProgressBar; + int m_rangeMax; + int m_gaugePos; + bool m_useProgressBar; + +private: + DECLARE_DYNAMIC_CLASS(wxGauge) }; +#endif + #endif // __GTKGAUGEH__