X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/936f635341e9b92b37db93cc7781d564babbe25f..9869c26285dc51d13607cddaa04f65ce983653a5:/include/wx/msw/gauge.h?ds=sidebyside diff --git a/include/wx/msw/gauge.h b/include/wx/msw/gauge.h index b3c434ae6a..ac820e99b7 100644 --- a/include/wx/msw/gauge.h +++ b/include/wx/msw/gauge.h @@ -4,7 +4,6 @@ // Author: Julian Smart // Modified by: // Created: 01/02/97 -// RCS-ID: $Id$ // Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -14,10 +13,10 @@ #if wxUSE_GAUGE -extern WXDLLEXPORT_DATA(const char) wxGaugeNameStr[]; +extern WXDLLIMPEXP_DATA_CORE(const char) wxGaugeNameStr[]; // Group box -class WXDLLEXPORT wxGauge : public wxGaugeBase +class WXDLLIMPEXP_CORE wxGauge : public wxGaugeBase { public: wxGauge() { } @@ -47,14 +46,11 @@ public: virtual void SetRange(int range); virtual void SetValue(int pos); - // overriden base class virtuals + // overridden base class virtuals virtual bool SetForegroundColour(const wxColour& col); virtual bool SetBackgroundColour(const wxColour& col); - - void SetIndeterminateMode(); - void SetDeterminateMode(); - void Pulse(); + virtual void Pulse(); WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const; @@ -64,6 +60,15 @@ public: protected: virtual wxSize DoGetBestSize() const; +private: + // returns true if the control is currently in indeterminate (a.k.a. + // "marquee") mode + bool IsInIndeterminateMode() const; + + // switch to/from indeterminate mode + void SetIndeterminateMode(); + void SetDeterminateMode(); + DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge) };