use wxOVERRIDE in wxMSW sources
This commit is contained in:
@@ -54,21 +54,21 @@ public:
|
||||
|
||||
// we don't store the active child in m_currentChild so override this
|
||||
// function to find it dynamically
|
||||
virtual wxMDIChildFrame *GetActiveChild() const;
|
||||
virtual wxMDIChildFrame *GetActiveChild() const wxOVERRIDE;
|
||||
|
||||
virtual void Cascade();
|
||||
virtual void Tile(wxOrientation orient = wxHORIZONTAL);
|
||||
virtual void ArrangeIcons();
|
||||
virtual void ActivateNext();
|
||||
virtual void ActivatePrevious();
|
||||
virtual void Cascade() wxOVERRIDE;
|
||||
virtual void Tile(wxOrientation orient = wxHORIZONTAL) wxOVERRIDE;
|
||||
virtual void ArrangeIcons() wxOVERRIDE;
|
||||
virtual void ActivateNext() wxOVERRIDE;
|
||||
virtual void ActivatePrevious() wxOVERRIDE;
|
||||
|
||||
#if wxUSE_MENUS
|
||||
virtual void SetWindowMenu(wxMenu* menu);
|
||||
virtual void SetWindowMenu(wxMenu* menu) wxOVERRIDE;
|
||||
|
||||
virtual void DoMenuUpdates(wxMenu* menu = NULL);
|
||||
virtual void DoMenuUpdates(wxMenu* menu = NULL) wxOVERRIDE;
|
||||
|
||||
// return the active child menu, if any
|
||||
virtual WXHMENU MSWGetActiveMenu() const;
|
||||
virtual WXHMENU MSWGetActiveMenu() const wxOVERRIDE;
|
||||
#endif // wxUSE_MENUS
|
||||
|
||||
|
||||
@@ -98,24 +98,24 @@ public:
|
||||
bool HandleActivate(int state, bool minimized, WXHWND activate);
|
||||
|
||||
// override window proc for MDI-specific message processing
|
||||
virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
||||
virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam) wxOVERRIDE;
|
||||
|
||||
virtual WXLRESULT MSWDefWindowProc(WXUINT, WXWPARAM, WXLPARAM);
|
||||
virtual bool MSWTranslateMessage(WXMSG* msg);
|
||||
virtual WXLRESULT MSWDefWindowProc(WXUINT, WXWPARAM, WXLPARAM) wxOVERRIDE;
|
||||
virtual bool MSWTranslateMessage(WXMSG* msg) wxOVERRIDE;
|
||||
|
||||
#if wxUSE_MENUS
|
||||
// override the menu-relayed methods to also look in the active child menu
|
||||
// bar and the "Window" menu
|
||||
virtual wxMenuItem *FindItemInMenuBar(int menuId) const;
|
||||
virtual wxMenu* MSWFindMenuFromHMENU(WXHMENU hMenu);
|
||||
virtual wxMenuItem *FindItemInMenuBar(int menuId) const wxOVERRIDE;
|
||||
virtual wxMenu* MSWFindMenuFromHMENU(WXHMENU hMenu) wxOVERRIDE;
|
||||
#endif // wxUSE_MENUS
|
||||
|
||||
protected:
|
||||
#if wxUSE_MENUS_NATIVE
|
||||
virtual void InternalSetMenuBar();
|
||||
virtual void InternalSetMenuBar() wxOVERRIDE;
|
||||
#endif // wxUSE_MENUS_NATIVE
|
||||
|
||||
virtual WXHICON GetDefaultIcon() const;
|
||||
virtual WXHICON GetDefaultIcon() const wxOVERRIDE;
|
||||
|
||||
// set the size of the MDI client window to match the frame size
|
||||
void UpdateClientSize();
|
||||
@@ -190,13 +190,13 @@ public:
|
||||
virtual ~wxMDIChildFrame();
|
||||
|
||||
// implement MDI operations
|
||||
virtual void Activate();
|
||||
virtual void Activate() wxOVERRIDE;
|
||||
|
||||
// Override some frame operations too
|
||||
virtual void Maximize(bool maximize = true);
|
||||
virtual void Restore();
|
||||
virtual void Maximize(bool maximize = true) wxOVERRIDE;
|
||||
virtual void Restore() wxOVERRIDE;
|
||||
|
||||
virtual bool Show(bool show = true);
|
||||
virtual bool Show(bool show = true) wxOVERRIDE;
|
||||
|
||||
// Implementation only from now on
|
||||
// -------------------------------
|
||||
@@ -206,26 +206,26 @@ public:
|
||||
bool HandleWindowPosChanging(void *lpPos);
|
||||
bool HandleGetMinMaxInfo(void *mmInfo);
|
||||
|
||||
virtual WXLRESULT MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
||||
virtual WXLRESULT MSWDefWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
||||
virtual bool MSWTranslateMessage(WXMSG *msg);
|
||||
virtual WXLRESULT MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam) wxOVERRIDE;
|
||||
virtual WXLRESULT MSWDefWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam) wxOVERRIDE;
|
||||
virtual bool MSWTranslateMessage(WXMSG *msg) wxOVERRIDE;
|
||||
|
||||
virtual void MSWDestroyWindow();
|
||||
virtual void MSWDestroyWindow() wxOVERRIDE;
|
||||
|
||||
bool ResetWindowStyle(void *vrect);
|
||||
|
||||
void OnIdle(wxIdleEvent& event);
|
||||
|
||||
protected:
|
||||
virtual void DoGetScreenPosition(int *x, int *y) const;
|
||||
virtual void DoGetPosition(int *x, int *y) const;
|
||||
virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags);
|
||||
virtual void DoSetClientSize(int width, int height);
|
||||
virtual void InternalSetMenuBar();
|
||||
virtual bool IsMDIChild() const { return true; }
|
||||
virtual void DetachMenuBar();
|
||||
virtual void DoGetScreenPosition(int *x, int *y) const wxOVERRIDE;
|
||||
virtual void DoGetPosition(int *x, int *y) const wxOVERRIDE;
|
||||
virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags) wxOVERRIDE;
|
||||
virtual void DoSetClientSize(int width, int height) wxOVERRIDE;
|
||||
virtual void InternalSetMenuBar() wxOVERRIDE;
|
||||
virtual bool IsMDIChild() const wxOVERRIDE { return true; }
|
||||
virtual void DetachMenuBar() wxOVERRIDE;
|
||||
|
||||
virtual WXHICON GetDefaultIcon() const;
|
||||
virtual WXHICON GetDefaultIcon() const wxOVERRIDE;
|
||||
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
@@ -248,7 +248,7 @@ public:
|
||||
|
||||
// Note: this is virtual, to allow overridden behaviour.
|
||||
virtual bool CreateClient(wxMDIParentFrame *parent,
|
||||
long style = wxVSCROLL | wxHSCROLL);
|
||||
long style = wxVSCROLL | wxHSCROLL) wxOVERRIDE;
|
||||
|
||||
// Explicitly call default scroll behaviour
|
||||
void OnScroll(wxScrollEvent& event);
|
||||
@@ -256,7 +256,7 @@ public:
|
||||
protected:
|
||||
virtual void DoSetSize(int x, int y,
|
||||
int width, int height,
|
||||
int sizeFlags = wxSIZE_AUTO);
|
||||
int sizeFlags = wxSIZE_AUTO) wxOVERRIDE;
|
||||
|
||||
void Init() { m_scrollX = m_scrollY = 0; }
|
||||
|
||||
|
Reference in New Issue
Block a user