X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/511ac294daea69d4bae9644db2fb272c712e059c..5c7b506103cfc078a821860766e31c47d595e07f:/include/wx/os2/gauge.h?ds=sidebyside diff --git a/include/wx/os2/gauge.h b/include/wx/os2/gauge.h index d7dd800512..5df97b19ae 100644 --- a/include/wx/os2/gauge.h +++ b/include/wx/os2/gauge.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: gauge.h +// Name: wx/os2/gauge.h // Purpose: wxGauge class // Author: David Webster // Modified by: @@ -12,9 +12,7 @@ #ifndef _WX_GAUGE_H_ #define _WX_GAUGE_H_ -#include "wx/control.h" - -class WXDLLEXPORT wxGauge: public wxControl +class WXDLLEXPORT wxGauge: public wxGaugeBase { public: inline wxGauge() { m_nRangeMax = 0; m_nGaugePos = 0; } @@ -25,9 +23,7 @@ public: ,const wxPoint& rPos = wxDefaultPosition ,const wxSize& rSize = wxDefaultSize ,long lStyle = wxGA_HORIZONTAL -#if wxUSE_VALIDATORS ,const wxValidator& rValidator = wxDefaultValidator -#endif ,const wxString& rsName = wxGaugeNameStr ) { @@ -37,9 +33,7 @@ public: ,rPos ,rSize ,lStyle -#if wxUSE_VALIDATORS ,rValidator -#endif ,rsName ); } @@ -50,9 +44,7 @@ public: ,const wxPoint& rPos = wxDefaultPosition ,const wxSize& rSize = wxDefaultSize ,long lStyle = wxGA_HORIZONTAL -#if wxUSE_VALIDATORS ,const wxValidator& rValidator = wxDefaultValidator -#endif ,const wxString& rsName = wxGaugeNameStr ); @@ -74,10 +66,13 @@ public: protected: int m_nRangeMax; int m_nGaugePos; + int m_nWidth; + int m_nHeight; + + wxSize wxGauge::DoGetBestSize(void) const; private: DECLARE_DYNAMIC_CLASS(wxGauge) }; // end of CLASS wxGauge #endif // _WX_GAUGE_H_ -