Inherit wxGauge from wxGaugeBase in wxGTK
Ensure the proper class hierarchy in wxGTK, this notably allows to override SetValue() in classes derived from wxGauge, which didn't work in wxGTK (but did in wxMSW and wxOSX) before. Also remove the now unnecessary IsVertical().
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
// wxGauge
|
// wxGauge
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
class WXDLLIMPEXP_CORE wxGauge: public wxControl
|
class WXDLLIMPEXP_CORE wxGauge: public wxGaugeBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxGauge() { Init(); }
|
wxGauge() { Init(); }
|
||||||
@@ -40,17 +40,14 @@ public:
|
|||||||
const wxValidator& validator = wxDefaultValidator,
|
const wxValidator& validator = wxDefaultValidator,
|
||||||
const wxString& name = wxGaugeNameStr );
|
const wxString& name = wxGaugeNameStr );
|
||||||
|
|
||||||
// determinate mode API
|
// implement base class virtual methods
|
||||||
void SetRange( int r );
|
void SetRange(int range) wxOVERRIDE;
|
||||||
void SetValue( int pos );
|
int GetRange() const wxOVERRIDE;
|
||||||
|
|
||||||
int GetRange() const;
|
void SetValue(int pos) wxOVERRIDE;
|
||||||
int GetValue() const;
|
int GetValue() const wxOVERRIDE;
|
||||||
|
|
||||||
// indeterminate mode API
|
virtual void Pulse() wxOVERRIDE;
|
||||||
virtual void Pulse();
|
|
||||||
|
|
||||||
bool IsVertical() const { return HasFlag(wxGA_VERTICAL); }
|
|
||||||
|
|
||||||
static wxVisualAttributes
|
static wxVisualAttributes
|
||||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||||
|
Reference in New Issue
Block a user