X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f9eee2db810695ae4417e9935475f268bb68bbac..66c2bf7b1d9326fb650acfaae22ec50528cfbf7c:/include/wx/os2/gauge.h diff --git a/include/wx/os2/gauge.h b/include/wx/os2/gauge.h index 1b308d2c43..faac3db4b8 100644 --- a/include/wx/os2/gauge.h +++ b/include/wx/os2/gauge.h @@ -1,10 +1,9 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: gauge.h +// Name: wx/os2/gauge.h // Purpose: wxGauge class // Author: David Webster // Modified by: // Created: 10/06/99 -// RCS-ID: $Id$ // Copyright: (c) David Webster // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -12,9 +11,7 @@ #ifndef _WX_GAUGE_H_ #define _WX_GAUGE_H_ -#include "wx/control.h" - -class WXDLLEXPORT wxGauge: public wxControl +class WXDLLIMPEXP_CORE wxGauge: public wxGaugeBase { public: inline wxGauge() { m_nRangeMax = 0; m_nGaugePos = 0; } @@ -63,15 +60,18 @@ public: void SetValue(int nPos); inline virtual bool AcceptsFocus(void) const { return FALSE; } - inline virtual void Command(wxCommandEvent& WXUNUSED(rEvent)) {}; + inline virtual void Command(wxCommandEvent& WXUNUSED(rEvent)) {} protected: int m_nRangeMax; int m_nGaugePos; + int m_nWidth; + int m_nHeight; + + wxSize DoGetBestSize(void) const; private: DECLARE_DYNAMIC_CLASS(wxGauge) }; // end of CLASS wxGauge #endif // _WX_GAUGE_H_ -