use wxOVERRIDE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -123,7 +123,7 @@ public:
|
||||
|
||||
protected:
|
||||
// Override to pass menu/toolbar events to the active child first.
|
||||
virtual bool TryBefore(wxEvent& event);
|
||||
virtual bool TryBefore(wxEvent& event) wxOVERRIDE;
|
||||
|
||||
|
||||
// This is wxMDIClientWindow for all the native implementations but not for
|
||||
@@ -177,17 +177,17 @@ public:
|
||||
// in most ports MDI children frames are not really top-level, the only
|
||||
// exception are the Mac ports in which MDI children are just normal top
|
||||
// level windows too
|
||||
virtual bool IsTopLevel() const { return false; }
|
||||
virtual bool IsTopLevel() const wxOVERRIDE { return false; }
|
||||
|
||||
// In all ports keyboard navigation must stop at MDI child frame level and
|
||||
// can't cross its boundary. Indicate this by overriding this function to
|
||||
// return true.
|
||||
virtual bool IsTopNavigationDomain() const { return true; }
|
||||
virtual bool IsTopNavigationDomain() const wxOVERRIDE { return true; }
|
||||
|
||||
// Raising any frame is supposed to show it but wxFrame Raise()
|
||||
// implementation doesn't work for MDI child frames in most forms so
|
||||
// forward this to Activate() which serves the same purpose by default.
|
||||
virtual void Raise() { Activate(); }
|
||||
virtual void Raise() wxOVERRIDE { Activate(); }
|
||||
|
||||
protected:
|
||||
wxMDIParentFrame *m_mdiParent;
|
||||
@@ -210,16 +210,16 @@ public:
|
||||
long WXUNUSED(style) = 1,
|
||||
wxWindowID WXUNUSED(id) = 1,
|
||||
const wxString& WXUNUSED(name)
|
||||
= wxEmptyString)
|
||||
= wxEmptyString) wxOVERRIDE
|
||||
{ return NULL; }
|
||||
|
||||
virtual wxStatusBar *GetStatusBar() const
|
||||
virtual wxStatusBar *GetStatusBar() const wxOVERRIDE
|
||||
{ return NULL; }
|
||||
virtual void SetStatusText(const wxString &WXUNUSED(text),
|
||||
int WXUNUSED(number)=0)
|
||||
int WXUNUSED(number)=0) wxOVERRIDE
|
||||
{ }
|
||||
virtual void SetStatusWidths(int WXUNUSED(n),
|
||||
const int WXUNUSED(widths)[])
|
||||
const int WXUNUSED(widths)[]) wxOVERRIDE
|
||||
{ }
|
||||
#endif // wxUSE_STATUSBAR
|
||||
|
||||
@@ -229,29 +229,29 @@ public:
|
||||
// TODO: again, it should be possible to have tool bars
|
||||
virtual wxToolBar *CreateToolBar(long WXUNUSED(style),
|
||||
wxWindowID WXUNUSED(id),
|
||||
const wxString& WXUNUSED(name))
|
||||
const wxString& WXUNUSED(name)) wxOVERRIDE
|
||||
{ return NULL; }
|
||||
virtual wxToolBar *GetToolBar() const { return NULL; }
|
||||
virtual wxToolBar *GetToolBar() const wxOVERRIDE { return NULL; }
|
||||
#endif // wxUSE_TOOLBAR
|
||||
|
||||
// no icon
|
||||
virtual void SetIcons(const wxIconBundle& WXUNUSED(icons)) { }
|
||||
virtual void SetIcons(const wxIconBundle& WXUNUSED(icons)) wxOVERRIDE { }
|
||||
|
||||
// title is used as the tab label
|
||||
virtual wxString GetTitle() const { return m_title; }
|
||||
virtual wxString GetTitle() const wxOVERRIDE { return m_title; }
|
||||
virtual void SetTitle(const wxString& title) = 0;
|
||||
|
||||
// no maximize etc
|
||||
virtual void Maximize(bool WXUNUSED(maximize) = true) { }
|
||||
virtual bool IsMaximized() const { return true; }
|
||||
virtual bool IsAlwaysMaximized() const { return true; }
|
||||
virtual void Iconize(bool WXUNUSED(iconize) = true) { }
|
||||
virtual bool IsIconized() const { return false; }
|
||||
virtual void Restore() { }
|
||||
virtual void Maximize(bool WXUNUSED(maximize) = true) wxOVERRIDE { }
|
||||
virtual bool IsMaximized() const wxOVERRIDE { return true; }
|
||||
virtual bool IsAlwaysMaximized() const wxOVERRIDE { return true; }
|
||||
virtual void Iconize(bool WXUNUSED(iconize) = true) wxOVERRIDE { }
|
||||
virtual bool IsIconized() const wxOVERRIDE { return false; }
|
||||
virtual void Restore() wxOVERRIDE { }
|
||||
|
||||
virtual bool ShowFullScreen(bool WXUNUSED(show),
|
||||
long WXUNUSED(style)) { return false; }
|
||||
virtual bool IsFullScreen() const { return false; }
|
||||
long WXUNUSED(style)) wxOVERRIDE { return false; }
|
||||
virtual bool IsFullScreen() const wxOVERRIDE { return false; }
|
||||
|
||||
|
||||
// we need to override these functions to ensure that a child window is
|
||||
@@ -259,9 +259,9 @@ public:
|
||||
// behave as just a wxWindow by short-circuiting wxTLW changes to the base
|
||||
// class behaviour
|
||||
|
||||
virtual void AddChild(wxWindowBase *child) { wxWindow::AddChild(child); }
|
||||
virtual void AddChild(wxWindowBase *child) wxOVERRIDE { wxWindow::AddChild(child); }
|
||||
|
||||
virtual bool Destroy() { return wxWindow::Destroy(); }
|
||||
virtual bool Destroy() wxOVERRIDE { return wxWindow::Destroy(); }
|
||||
|
||||
// extra platform-specific hacks
|
||||
#ifdef __WXMSW__
|
||||
@@ -282,27 +282,27 @@ public:
|
||||
#endif // __WXMSW__
|
||||
|
||||
protected:
|
||||
virtual void DoGetSize(int *width, int *height) const
|
||||
virtual void DoGetSize(int *width, int *height) const wxOVERRIDE
|
||||
{
|
||||
wxWindow::DoGetSize(width, height);
|
||||
}
|
||||
|
||||
virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags)
|
||||
virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags) wxOVERRIDE
|
||||
{
|
||||
wxWindow::DoSetSize(x, y, width, height, sizeFlags);
|
||||
}
|
||||
|
||||
virtual void DoGetClientSize(int *width, int *height) const
|
||||
virtual void DoGetClientSize(int *width, int *height) const wxOVERRIDE
|
||||
{
|
||||
wxWindow::DoGetClientSize(width, height);
|
||||
}
|
||||
|
||||
virtual void DoSetClientSize(int width, int height)
|
||||
virtual void DoSetClientSize(int width, int height) wxOVERRIDE
|
||||
{
|
||||
wxWindow::DoSetClientSize(width, height);
|
||||
}
|
||||
|
||||
virtual void DoMoveWindow(int x, int y, int width, int height)
|
||||
virtual void DoMoveWindow(int x, int y, int width, int height) wxOVERRIDE
|
||||
{
|
||||
wxWindow::DoMoveWindow(x, y, width, height);
|
||||
}
|
||||
@@ -310,7 +310,7 @@ protected:
|
||||
// no size hints
|
||||
virtual void DoSetSizeHints(int WXUNUSED(minW), int WXUNUSED(minH),
|
||||
int WXUNUSED(maxW), int WXUNUSED(maxH),
|
||||
int WXUNUSED(incW), int WXUNUSED(incH)) { }
|
||||
int WXUNUSED(incW), int WXUNUSED(incH)) wxOVERRIDE { }
|
||||
|
||||
wxString m_title;
|
||||
};
|
||||
|
Reference in New Issue
Block a user