X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f02a879ed7efc5fcf6328ff47a1352ec82812b7..432efcb004c8a7f4997acab1aa044c78226c36bb:/include/wx/gtk/gauge.h diff --git a/include/wx/gtk/gauge.h b/include/wx/gtk/gauge.h index e5150fb70a..5a53a9aadf 100644 --- a/include/wx/gtk/gauge.h +++ b/include/wx/gtk/gauge.h @@ -7,31 +7,11 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifndef __GTKGAUGEH__ -#define __GTKGAUGEH__ - -#include "wx/defs.h" - -#if wxUSE_GAUGE - -#include "wx/object.h" -#include "wx/list.h" -#include "wx/control.h" - -//----------------------------------------------------------------------------- -// classes -//----------------------------------------------------------------------------- - -class WXDLLIMPEXP_CORE wxGauge; +#ifndef _WX_GTK_GAUGE_H_ +#define _WX_GTK_GAUGE_H_ //----------------------------------------------------------------------------- -// global data -//----------------------------------------------------------------------------- - -extern WXDLLIMPEXP_CORE const wxChar wxGaugeNameStr[]; - -//----------------------------------------------------------------------------- -// wxGaugeBox +// wxGauge //----------------------------------------------------------------------------- class WXDLLIMPEXP_CORE wxGauge: public wxControl @@ -63,13 +43,19 @@ public: void SetShadowWidth( int WXUNUSED(w) ) { } void SetBezelFace( int WXUNUSED(w) ) { } - void SetRange( int r ); - void SetValue( int pos ); int GetShadowWidth() const { return 0; }; int GetBezelFace() const { return 0; }; + + // determinate mode API + void SetRange( int r ); + void SetValue( int pos ); + int GetRange() const; int GetValue() const; + // indeterminate mode API + virtual void Pulse(); + bool IsVertical() const { return HasFlag(wxGA_VERTICAL); } static wxVisualAttributes @@ -97,6 +83,4 @@ private: DECLARE_DYNAMIC_CLASS(wxGauge) }; -#endif - -#endif // __GTKGAUGEH__ +#endif // _WX_GTK_GAUGE_H_