X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..81853b98619293be66074d74d2557973c0f3ab21:/include/wx/mac/carbon/gauge.h?ds=sidebyside diff --git a/include/wx/mac/carbon/gauge.h b/include/wx/mac/carbon/gauge.h index e509afadf8..97109b1459 100644 --- a/include/wx/mac/carbon/gauge.h +++ b/include/wx/mac/carbon/gauge.h @@ -6,26 +6,21 @@ // Created: 1998-01-01 // RCS-ID: $Id$ // Copyright: (c) Stefan Csomor -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_GAUGE_H_ #define _WX_GAUGE_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "gauge.h" -#endif - #include "wx/control.h" -WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr; +WXDLLEXPORT_DATA(extern const wxChar) wxGaugeNameStr[]; // Group box class WXDLLEXPORT wxGauge: public wxGaugeBase { - DECLARE_DYNAMIC_CLASS(wxGauge) public: - inline wxGauge() { m_rangeMax = 0; m_gaugePos = 0; } + inline wxGauge() { } inline wxGauge(wxWindow *parent, wxWindowID id, int range, @@ -46,21 +41,12 @@ class WXDLLEXPORT wxGauge: public wxGaugeBase const wxValidator& validator = wxDefaultValidator, const wxString& name = wxGaugeNameStr); - void SetShadowWidth(int w); - void SetBezelFace(int w); - void SetRange(int r); - void SetValue(int pos); - - int GetShadowWidth() const ; - int GetBezelFace() const ; - int GetRange() const ; - int GetValue() const ; - - virtual void Command(wxCommandEvent& WXUNUSED(event)) {} ; - + // set gauge range/value + virtual void SetRange(int range); + virtual void SetValue(int pos); + virtual int GetValue() const ; protected: - int m_rangeMax; - int m_gaugePos; + DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge) }; #endif