use more wxOVERRIDE (#329)
This commit is contained in:
@@ -26,18 +26,18 @@ public:
|
||||
wxAnimation(const wxString &name, wxAnimationType type = wxANIMATION_TYPE_ANY)
|
||||
{ LoadFile(name, type); }
|
||||
|
||||
virtual bool IsOk() const
|
||||
virtual bool IsOk() const wxOVERRIDE
|
||||
{ return m_refData != NULL; }
|
||||
|
||||
virtual unsigned int GetFrameCount() const;
|
||||
virtual int GetDelay(unsigned int i) const;
|
||||
virtual wxImage GetFrame(unsigned int i) const;
|
||||
virtual wxSize GetSize() const;
|
||||
virtual unsigned int GetFrameCount() const wxOVERRIDE;
|
||||
virtual int GetDelay(unsigned int i) const wxOVERRIDE;
|
||||
virtual wxImage GetFrame(unsigned int i) const wxOVERRIDE;
|
||||
virtual wxSize GetSize() const wxOVERRIDE;
|
||||
|
||||
virtual bool LoadFile(const wxString& filename,
|
||||
wxAnimationType type = wxANIMATION_TYPE_ANY);
|
||||
wxAnimationType type = wxANIMATION_TYPE_ANY) wxOVERRIDE;
|
||||
virtual bool Load(wxInputStream& stream,
|
||||
wxAnimationType type = wxANIMATION_TYPE_ANY);
|
||||
wxAnimationType type = wxANIMATION_TYPE_ANY) wxOVERRIDE;
|
||||
|
||||
// extended interface used by the generic implementation of wxAnimationCtrl
|
||||
wxPoint GetFramePosition(unsigned int frame) const;
|
||||
|
@@ -65,9 +65,9 @@ public:
|
||||
protected:
|
||||
wxBitmap m_bitmap;
|
||||
|
||||
wxSize DoGetBestSize() const;
|
||||
wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
void UpdateColour();
|
||||
void UpdateColour() wxOVERRIDE;
|
||||
|
||||
// the colour data shown in wxColourPickerCtrlGeneric
|
||||
// controls. This member is static so that all colour pickers
|
||||
|
@@ -23,19 +23,19 @@ public:
|
||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||
virtual ~wxDataViewRenderer();
|
||||
|
||||
virtual wxDC *GetDC();
|
||||
virtual wxDC *GetDC() wxOVERRIDE;
|
||||
|
||||
virtual void SetAlignment( int align );
|
||||
virtual int GetAlignment() const;
|
||||
virtual void SetAlignment( int align ) wxOVERRIDE;
|
||||
virtual int GetAlignment() const wxOVERRIDE;
|
||||
|
||||
virtual void EnableEllipsize(wxEllipsizeMode mode = wxELLIPSIZE_MIDDLE)
|
||||
virtual void EnableEllipsize(wxEllipsizeMode mode = wxELLIPSIZE_MIDDLE) wxOVERRIDE
|
||||
{ m_ellipsizeMode = mode; }
|
||||
virtual wxEllipsizeMode GetEllipsizeMode() const
|
||||
virtual wxEllipsizeMode GetEllipsizeMode() const wxOVERRIDE
|
||||
{ return m_ellipsizeMode; }
|
||||
|
||||
virtual void SetMode( wxDataViewCellMode mode )
|
||||
virtual void SetMode( wxDataViewCellMode mode ) wxOVERRIDE
|
||||
{ m_mode = mode; }
|
||||
virtual wxDataViewCellMode GetMode() const
|
||||
virtual wxDataViewCellMode GetMode() const wxOVERRIDE
|
||||
{ return m_mode; }
|
||||
|
||||
// implementation
|
||||
|
@@ -31,7 +31,7 @@ public:
|
||||
wxDataViewModel *model,
|
||||
const wxDataViewItem& item,
|
||||
unsigned int col,
|
||||
const wxMouseEvent *mouseEvent)
|
||||
const wxMouseEvent *mouseEvent) wxOVERRIDE
|
||||
{
|
||||
return ActivateCell(cell, model, item, col, mouseEvent);
|
||||
}
|
||||
@@ -59,17 +59,17 @@ public:
|
||||
void EnableMarkup(bool enable = true);
|
||||
#endif // wxUSE_MARKUP
|
||||
|
||||
virtual bool SetValue( const wxVariant &value );
|
||||
virtual bool GetValue( wxVariant &value ) const;
|
||||
virtual bool SetValue( const wxVariant &value ) wxOVERRIDE;
|
||||
virtual bool GetValue( wxVariant &value ) const wxOVERRIDE;
|
||||
|
||||
virtual bool Render(wxRect cell, wxDC *dc, int state);
|
||||
virtual wxSize GetSize() const;
|
||||
virtual bool Render(wxRect cell, wxDC *dc, int state) wxOVERRIDE;
|
||||
virtual wxSize GetSize() const wxOVERRIDE;
|
||||
|
||||
// in-place editing
|
||||
virtual bool HasEditorCtrl() const;
|
||||
virtual bool HasEditorCtrl() const wxOVERRIDE;
|
||||
virtual wxWindow* CreateEditorCtrl( wxWindow *parent, wxRect labelRect,
|
||||
const wxVariant &value );
|
||||
virtual bool GetValueFromEditorCtrl( wxWindow* editor, wxVariant &value );
|
||||
const wxVariant &value ) wxOVERRIDE;
|
||||
virtual bool GetValueFromEditorCtrl( wxWindow* editor, wxVariant &value ) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
wxString m_text;
|
||||
@@ -95,11 +95,11 @@ public:
|
||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||
|
||||
virtual bool SetValue( const wxVariant &value );
|
||||
virtual bool GetValue( wxVariant &value ) const;
|
||||
virtual bool SetValue( const wxVariant &value ) wxOVERRIDE;
|
||||
virtual bool GetValue( wxVariant &value ) const wxOVERRIDE;
|
||||
|
||||
virtual bool Render( wxRect cell, wxDC *dc, int state );
|
||||
virtual wxSize GetSize() const;
|
||||
virtual bool Render( wxRect cell, wxDC *dc, int state ) wxOVERRIDE;
|
||||
virtual wxSize GetSize() const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxIcon m_icon;
|
||||
@@ -122,18 +122,18 @@ public:
|
||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||
|
||||
virtual bool SetValue( const wxVariant &value );
|
||||
virtual bool GetValue( wxVariant &value ) const;
|
||||
virtual bool SetValue( const wxVariant &value ) wxOVERRIDE;
|
||||
virtual bool GetValue( wxVariant &value ) const wxOVERRIDE;
|
||||
|
||||
virtual bool Render( wxRect cell, wxDC *dc, int state );
|
||||
virtual wxSize GetSize() const;
|
||||
virtual bool Render( wxRect cell, wxDC *dc, int state ) wxOVERRIDE;
|
||||
virtual wxSize GetSize() const wxOVERRIDE;
|
||||
|
||||
// Implementation only, don't use nor override
|
||||
virtual bool WXActivateCell(const wxRect& cell,
|
||||
wxDataViewModel *model,
|
||||
const wxDataViewItem& item,
|
||||
unsigned int col,
|
||||
const wxMouseEvent *mouseEvent);
|
||||
const wxMouseEvent *mouseEvent) wxOVERRIDE;
|
||||
private:
|
||||
bool m_toggle;
|
||||
|
||||
@@ -155,11 +155,11 @@ public:
|
||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||
|
||||
virtual bool SetValue( const wxVariant &value );
|
||||
virtual bool GetValue( wxVariant& value ) const;
|
||||
virtual bool SetValue( const wxVariant &value ) wxOVERRIDE;
|
||||
virtual bool GetValue( wxVariant& value ) const wxOVERRIDE;
|
||||
|
||||
virtual bool Render(wxRect cell, wxDC *dc, int state);
|
||||
virtual wxSize GetSize() const;
|
||||
virtual bool Render(wxRect cell, wxDC *dc, int state) wxOVERRIDE;
|
||||
virtual wxSize GetSize() const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxString m_label;
|
||||
@@ -182,16 +182,16 @@ public:
|
||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||
|
||||
virtual bool SetValue( const wxVariant &value );
|
||||
virtual bool GetValue( wxVariant &value ) const;
|
||||
virtual bool SetValue( const wxVariant &value ) wxOVERRIDE;
|
||||
virtual bool GetValue( wxVariant &value ) const wxOVERRIDE;
|
||||
|
||||
virtual bool Render(wxRect cell, wxDC *dc, int state);
|
||||
virtual wxSize GetSize() const;
|
||||
virtual bool Render(wxRect cell, wxDC *dc, int state) wxOVERRIDE;
|
||||
virtual wxSize GetSize() const wxOVERRIDE;
|
||||
|
||||
virtual bool HasEditorCtrl() const { return true; }
|
||||
virtual bool HasEditorCtrl() const wxOVERRIDE { return true; }
|
||||
virtual wxWindow* CreateEditorCtrl( wxWindow *parent, wxRect labelRect,
|
||||
const wxVariant &value );
|
||||
virtual bool GetValueFromEditorCtrl( wxWindow* editor, wxVariant &value );
|
||||
const wxVariant &value ) wxOVERRIDE;
|
||||
virtual bool GetValueFromEditorCtrl( wxWindow* editor, wxVariant &value ) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxDataViewIconText m_value;
|
||||
|
@@ -35,10 +35,10 @@ public:
|
||||
Create(parent, id, initial, pos, size, style, validator, name);
|
||||
}
|
||||
|
||||
virtual wxColour GetSelectedColour() const
|
||||
virtual wxColour GetSelectedColour() const wxOVERRIDE
|
||||
{ return m_data.GetColour(); }
|
||||
|
||||
virtual void SetSelectedColour(const wxColour &colour)
|
||||
virtual void SetSelectedColour(const wxColour &colour) wxOVERRIDE
|
||||
{ m_data.SetColour(colour); UpdateFont(); }
|
||||
|
||||
virtual ~wxGenericFontButton() {}
|
||||
@@ -69,7 +69,7 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
void UpdateFont();
|
||||
void UpdateFont() wxOVERRIDE;
|
||||
|
||||
wxFontData m_data;
|
||||
|
||||
|
@@ -45,20 +45,20 @@ public:
|
||||
|
||||
|
||||
// get/set
|
||||
wxColour GetHoverColour() const { return m_hoverColour; }
|
||||
void SetHoverColour(const wxColour &colour) { m_hoverColour = colour; }
|
||||
wxColour GetHoverColour() const wxOVERRIDE { return m_hoverColour; }
|
||||
void SetHoverColour(const wxColour &colour) wxOVERRIDE { m_hoverColour = colour; }
|
||||
|
||||
wxColour GetNormalColour() const { return m_normalColour; }
|
||||
void SetNormalColour(const wxColour &colour);
|
||||
wxColour GetNormalColour() const wxOVERRIDE { return m_normalColour; }
|
||||
void SetNormalColour(const wxColour &colour) wxOVERRIDE;
|
||||
|
||||
wxColour GetVisitedColour() const { return m_visitedColour; }
|
||||
void SetVisitedColour(const wxColour &colour);
|
||||
wxColour GetVisitedColour() const wxOVERRIDE { return m_visitedColour; }
|
||||
void SetVisitedColour(const wxColour &colour) wxOVERRIDE;
|
||||
|
||||
wxString GetURL() const { return m_url; }
|
||||
void SetURL (const wxString &url) { m_url=url; }
|
||||
wxString GetURL() const wxOVERRIDE { return m_url; }
|
||||
void SetURL (const wxString &url) wxOVERRIDE { m_url=url; }
|
||||
|
||||
void SetVisited(bool visited = true) { m_visited=visited; }
|
||||
bool GetVisited() const { return m_visited; }
|
||||
void SetVisited(bool visited = true) wxOVERRIDE { m_visited=visited; }
|
||||
bool GetVisited() const wxOVERRIDE { return m_visited; }
|
||||
|
||||
// NOTE: also wxWindow::Set/GetLabel, wxWindow::Set/GetBackgroundColour,
|
||||
// wxWindow::Get/SetFont, wxWindow::Get/SetCursor are important !
|
||||
@@ -110,7 +110,7 @@ protected:
|
||||
|
||||
// Returns the best size for the window, which is the size needed
|
||||
// to display the text label.
|
||||
virtual wxSize DoGetBestClientSize() const;
|
||||
virtual wxSize DoGetBestClientSize() const wxOVERRIDE;
|
||||
|
||||
// creates a context menu with "Copy URL" menuitem
|
||||
virtual void DoContextMenu(const wxPoint &);
|
||||
|
@@ -33,15 +33,15 @@ public:
|
||||
}
|
||||
|
||||
virtual void SetBackgroundColour(const wxColour& col,
|
||||
const wxColour& colEnd);
|
||||
virtual void SetCustomIcon(const wxIcon& icon);
|
||||
virtual void SetStandardIcon(int icon);
|
||||
const wxColour& colEnd) wxOVERRIDE;
|
||||
virtual void SetCustomIcon(const wxIcon& icon) wxOVERRIDE;
|
||||
virtual void SetStandardIcon(int icon) wxOVERRIDE;
|
||||
virtual void SetTimeout(unsigned milliseconds,
|
||||
unsigned millisecondsDelay = 0);
|
||||
virtual void SetTipKind(wxTipKind tipKind);
|
||||
virtual void SetTitleFont(const wxFont& font);
|
||||
unsigned millisecondsDelay = 0) wxOVERRIDE;
|
||||
virtual void SetTipKind(wxTipKind tipKind) wxOVERRIDE;
|
||||
virtual void SetTitleFont(const wxFont& font) wxOVERRIDE;
|
||||
|
||||
virtual void ShowFor(wxWindow* win, const wxRect* rect = NULL);
|
||||
virtual void ShowFor(wxWindow* win, const wxRect* rect = NULL) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
wxString m_title,
|
||||
|
@@ -22,13 +22,13 @@ public:
|
||||
wxScrollHelper(wxWindow *winToScroll);
|
||||
|
||||
// implement base class pure virtuals
|
||||
virtual void AdjustScrollbars();
|
||||
virtual bool IsScrollbarShown(int orient) const;
|
||||
virtual void AdjustScrollbars() wxOVERRIDE;
|
||||
virtual bool IsScrollbarShown(int orient) const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
virtual void DoScroll(int x, int y);
|
||||
virtual void DoScroll(int x, int y) wxOVERRIDE;
|
||||
virtual void DoShowScrollbars(wxScrollbarVisibility horz,
|
||||
wxScrollbarVisibility vert);
|
||||
wxScrollbarVisibility vert) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
// helper of AdjustScrollbars(): does the work for the single scrollbar
|
||||
|
@@ -111,7 +111,7 @@ protected:
|
||||
|
||||
#ifdef __WXMSW__
|
||||
// and, for MSW, enabling this window itself
|
||||
virtual void DoEnable(bool enable);
|
||||
virtual void DoEnable(bool enable) wxOVERRIDE;
|
||||
#endif // __WXMSW__
|
||||
|
||||
enum SendEvent
|
||||
@@ -393,7 +393,7 @@ public:
|
||||
unsigned GetDigits() const { return m_digits; }
|
||||
|
||||
// operations
|
||||
void SetValue(const wxString& value)
|
||||
void SetValue(const wxString& value) wxOVERRIDE
|
||||
{ wxSpinCtrlGenericBase::SetValue(value); }
|
||||
void SetValue(double value) { DoSetValue(value, SendEvent_None); }
|
||||
void SetRange(double minVal, double maxVal) { DoSetRange(minVal, maxVal); }
|
||||
@@ -402,14 +402,14 @@ public:
|
||||
|
||||
// We don't implement bases support for floating point numbers, this is not
|
||||
// very useful in practice.
|
||||
virtual int GetBase() const { return 10; }
|
||||
virtual bool SetBase(int WXUNUSED(base)) { return 0; }
|
||||
virtual int GetBase() const wxOVERRIDE { return 10; }
|
||||
virtual bool SetBase(int WXUNUSED(base)) wxOVERRIDE { return 0; }
|
||||
|
||||
protected:
|
||||
virtual void DoSendEvent();
|
||||
virtual void DoSendEvent() wxOVERRIDE;
|
||||
|
||||
virtual bool DoTextToValue(const wxString& text, double *val);
|
||||
virtual wxString DoValueToText(double val);
|
||||
virtual bool DoTextToValue(const wxString& text, double *val) wxOVERRIDE;
|
||||
virtual wxString DoValueToText(double val) wxOVERRIDE;
|
||||
|
||||
unsigned m_digits;
|
||||
|
||||
|
Reference in New Issue
Block a user