Make other wxGenericProgressDialog methods virtual too
Solve the same problem as was recently with hiding, instead of overriding, Resume() in the native MSW wxProgressDialog class for all the other methods which were also affected by it.
This commit is contained in:
@@ -46,16 +46,16 @@ public:
|
|||||||
|
|
||||||
virtual void Resume();
|
virtual void Resume();
|
||||||
|
|
||||||
int GetValue() const;
|
virtual int GetValue() const;
|
||||||
int GetRange() const;
|
virtual int GetRange() const;
|
||||||
wxString GetMessage() const;
|
virtual wxString GetMessage() const;
|
||||||
|
|
||||||
void SetRange(int maximum);
|
virtual void SetRange(int maximum);
|
||||||
|
|
||||||
// Return whether "Cancel" or "Skip" button was pressed, always return
|
// Return whether "Cancel" or "Skip" button was pressed, always return
|
||||||
// false if the corresponding button is not shown.
|
// false if the corresponding button is not shown.
|
||||||
bool WasCancelled() const;
|
virtual bool WasCancelled() const;
|
||||||
bool WasSkipped() const;
|
virtual bool WasSkipped() const;
|
||||||
|
|
||||||
// Must provide overload to avoid hiding it (and warnings about it)
|
// Must provide overload to avoid hiding it (and warnings about it)
|
||||||
virtual void Update() wxOVERRIDE { wxDialog::Update(); }
|
virtual void Update() wxOVERRIDE { wxDialog::Update(); }
|
||||||
|
@@ -28,15 +28,15 @@ public:
|
|||||||
|
|
||||||
virtual void Resume() wxOVERRIDE;
|
virtual void Resume() wxOVERRIDE;
|
||||||
|
|
||||||
int GetValue() const;
|
virtual int GetValue() const wxOVERRIDE;
|
||||||
wxString GetMessage() const;
|
virtual wxString GetMessage() const wxOVERRIDE;
|
||||||
|
|
||||||
void SetRange(int maximum);
|
virtual void SetRange(int maximum) wxOVERRIDE;
|
||||||
|
|
||||||
// Return whether "Cancel" or "Skip" button was pressed, always return
|
// Return whether "Cancel" or "Skip" button was pressed, always return
|
||||||
// false if the corresponding button is not shown.
|
// false if the corresponding button is not shown.
|
||||||
bool WasSkipped() const;
|
virtual bool WasSkipped() const wxOVERRIDE;
|
||||||
bool WasCancelled() const;
|
virtual bool WasCancelled() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual void SetTitle(const wxString& title) wxOVERRIDE;
|
virtual void SetTitle(const wxString& title) wxOVERRIDE;
|
||||||
virtual wxString GetTitle() const wxOVERRIDE;
|
virtual wxString GetTitle() const wxOVERRIDE;
|
||||||
|
Reference in New Issue
Block a user