Addition of missing overrides in window.h

This commit is contained in:
Hartwig
2015-11-22 09:34:47 +01:00
parent 74a1ec3ead
commit 1da514f1b9

View File

@@ -54,81 +54,81 @@ public:
long style = 0, long style = 0,
const wxString& name = wxPanelNameStr ); const wxString& name = wxPanelNameStr );
virtual void SendSizeEvent(int flags = 0); virtual void SendSizeEvent(int flags = 0) wxOVERRIDE;
// implement base class pure virtuals // implement base class pure virtuals
virtual void SetLabel( const wxString& label ); virtual void SetLabel( const wxString& label ) wxOVERRIDE;
virtual wxString GetLabel() const; virtual wxString GetLabel() const wxOVERRIDE;
virtual void Raise(); virtual void Raise() wxOVERRIDE;
virtual void Lower(); virtual void Lower() wxOVERRIDE;
virtual bool Show( bool show = true ); virtual bool Show( bool show = true ) wxOVERRIDE;
virtual bool ShowWithEffect(wxShowEffect effect, virtual bool ShowWithEffect(wxShowEffect effect,
unsigned timeout = 0) unsigned timeout = 0) wxOVERRIDE
{ {
return OSXShowWithEffect(true, effect, timeout); return OSXShowWithEffect(true, effect, timeout);
} }
virtual bool HideWithEffect(wxShowEffect effect, virtual bool HideWithEffect(wxShowEffect effect,
unsigned timeout = 0) unsigned timeout = 0) wxOVERRIDE
{ {
return OSXShowWithEffect(false, effect, timeout); return OSXShowWithEffect(false, effect, timeout);
} }
virtual bool IsShownOnScreen() const; virtual bool IsShownOnScreen() const wxOVERRIDE;
virtual void SetFocus(); virtual void SetFocus() wxOVERRIDE;
virtual void WarpPointer( int x, int y ); virtual void WarpPointer( int x, int y ) wxOVERRIDE;
virtual void Refresh( bool eraseBackground = true, virtual void Refresh( bool eraseBackground = true,
const wxRect *rect = NULL ); const wxRect *rect = NULL ) wxOVERRIDE;
virtual void Update() ; virtual void Update() wxOVERRIDE;
virtual void ClearBackground(); virtual void ClearBackground() wxOVERRIDE;
virtual bool SetCursor( const wxCursor &cursor ); virtual bool SetCursor( const wxCursor &cursor ) wxOVERRIDE;
virtual bool SetFont( const wxFont &font ); virtual bool SetFont( const wxFont &font ) wxOVERRIDE;
virtual bool SetBackgroundColour( const wxColour &colour ); virtual bool SetBackgroundColour( const wxColour &colour ) wxOVERRIDE;
virtual bool SetForegroundColour( const wxColour &colour ); virtual bool SetForegroundColour( const wxColour &colour ) wxOVERRIDE;
virtual bool SetBackgroundStyle(wxBackgroundStyle style); virtual bool SetBackgroundStyle(wxBackgroundStyle style) wxOVERRIDE;
virtual int GetCharHeight() const; virtual int GetCharHeight() const wxOVERRIDE;
virtual int GetCharWidth() const; virtual int GetCharWidth() const wxOVERRIDE;
public: public:
virtual void SetScrollbar( int orient, int pos, int thumbVisible, virtual void SetScrollbar( int orient, int pos, int thumbVisible,
int range, bool refresh = true ); int range, bool refresh = true ) wxOVERRIDE;
virtual void SetScrollPos( int orient, int pos, bool refresh = true ); virtual void SetScrollPos( int orient, int pos, bool refresh = true ) wxOVERRIDE;
virtual int GetScrollPos( int orient ) const; virtual int GetScrollPos( int orient ) const wxOVERRIDE;
virtual int GetScrollThumb( int orient ) const; virtual int GetScrollThumb( int orient ) const wxOVERRIDE;
virtual int GetScrollRange( int orient ) const; virtual int GetScrollRange( int orient ) const wxOVERRIDE;
virtual void ScrollWindow( int dx, int dy, virtual void ScrollWindow( int dx, int dy,
const wxRect* rect = NULL ); const wxRect* rect = NULL ) wxOVERRIDE;
virtual void AlwaysShowScrollbars(bool horz = true, bool vert = true); virtual void AlwaysShowScrollbars(bool horz = true, bool vert = true) wxOVERRIDE;
virtual bool IsScrollbarAlwaysShown(int orient) const virtual bool IsScrollbarAlwaysShown(int orient) const wxOVERRIDE
{ {
return orient == wxHORIZONTAL ? m_hScrollBarAlwaysShown return orient == wxHORIZONTAL ? m_hScrollBarAlwaysShown
: m_vScrollBarAlwaysShown; : m_vScrollBarAlwaysShown;
} }
virtual bool Reparent( wxWindowBase *newParent ); virtual bool Reparent( wxWindowBase *newParent ) wxOVERRIDE;
#if wxUSE_HOTKEY && wxOSX_USE_COCOA_OR_CARBON #if wxUSE_HOTKEY && wxOSX_USE_COCOA_OR_CARBON
// hot keys (system wide accelerators) // hot keys (system wide accelerators)
// ----------------------------------- // -----------------------------------
virtual bool RegisterHotKey(int hotkeyId, int modifiers, int keycode); virtual bool RegisterHotKey(int hotkeyId, int modifiers, int keycode) wxOVERRIDE;
virtual bool UnregisterHotKey(int hotkeyId); virtual bool UnregisterHotKey(int hotkeyId) wxOVERRIDE;
#endif // wxUSE_HOTKEY #endif // wxUSE_HOTKEY
#if wxUSE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
virtual void SetDropTarget( wxDropTarget *dropTarget ); virtual void SetDropTarget( wxDropTarget *dropTarget ) wxOVERRIDE;
#endif #endif
// Accept files for dragging // Accept files for dragging
virtual void DragAcceptFiles( bool accept ); virtual void DragAcceptFiles( bool accept ) wxOVERRIDE;
// implementation from now on // implementation from now on
// -------------------------- // --------------------------
@@ -144,11 +144,11 @@ public:
// simple accessors // simple accessors
// ---------------- // ----------------
virtual WXWidget GetHandle() const; virtual WXWidget GetHandle() const wxOVERRIDE;
virtual bool SetTransparent(wxByte alpha); virtual bool SetTransparent(wxByte alpha) wxOVERRIDE;
virtual bool CanSetTransparent(); virtual bool CanSetTransparent() wxOVERRIDE;
virtual wxByte GetTransparent() const ; virtual wxByte GetTransparent() const;
// event handlers // event handlers
// -------------- // --------------
@@ -157,17 +157,17 @@ public:
void MacOnScroll( wxScrollEvent&event ); void MacOnScroll( wxScrollEvent&event );
virtual bool AcceptsFocus() const; virtual bool AcceptsFocus() const wxOVERRIDE;
virtual bool IsDoubleBuffered() const { return true; } virtual bool IsDoubleBuffered() const wxOVERRIDE { return true; }
public: public:
static long MacRemoveBordersFromStyle( long style ) ; static long MacRemoveBordersFromStyle( long style );
public: public:
// For implementation purposes: // For implementation purposes:
// sometimes decorations make the client area smaller // sometimes decorations make the client area smaller
virtual wxPoint GetClientAreaOrigin() const; virtual wxPoint GetClientAreaOrigin() const wxOVERRIDE;
wxWindowMac *FindItem(long id) const; wxWindowMac *FindItem(long id) const;
wxWindowMac *FindItemByHWND(WXHWND hWnd, bool controlOnly = false) const; wxWindowMac *FindItemByHWND(WXHWND hWnd, bool controlOnly = false) const;
@@ -175,7 +175,7 @@ public:
virtual void TriggerScrollEvent( wxEventType scrollEvent ) ; virtual void TriggerScrollEvent( wxEventType scrollEvent ) ;
// this should not be overridden in classes above wxWindowMac // this should not be overridden in classes above wxWindowMac
// because it is called from its destructor via DeleteChildren // because it is called from its destructor via DeleteChildren
virtual void RemoveChild( wxWindowBase *child ); virtual void RemoveChild( wxWindowBase *child ) wxOVERRIDE;
virtual bool MacDoRedraw( long time ) ; virtual bool MacDoRedraw( long time ) ;
virtual void MacPaintChildrenBorders(); virtual void MacPaintChildrenBorders();
@@ -236,7 +236,7 @@ public:
virtual bool MacClipGrandChildren() const { return false ; } virtual bool MacClipGrandChildren() const { return false ; }
bool MacIsWindowScrollbar( const wxWindow* sb ) const bool MacIsWindowScrollbar( const wxWindow* sb ) const
{ return ((wxWindow*)m_hScrollBar == sb || (wxWindow*)m_vScrollBar == sb) ; } { return ((wxWindow*)m_hScrollBar == sb || (wxWindow*)m_vScrollBar == sb) ; }
virtual bool IsClientAreaChild(const wxWindow *child) const virtual bool IsClientAreaChild(const wxWindow *child) const wxOVERRIDE
{ {
return !MacIsWindowScrollbar(child) && !((wxWindow*)m_growBox==child) && return !MacIsWindowScrollbar(child) && !((wxWindow*)m_growBox==child) &&
wxWindowBase::IsClientAreaChild(child); wxWindowBase::IsClientAreaChild(child);
@@ -291,7 +291,7 @@ public:
bool IsNativeWindowWrapper() const { return m_isNativeWindowWrapper; } bool IsNativeWindowWrapper() const { return m_isNativeWindowWrapper; }
double GetContentScaleFactor() const ; double GetContentScaleFactor() const wxOVERRIDE;
// internal response to size events // internal response to size events
virtual void MacOnInternalSize() {} virtual void MacOnInternalSize() {}
@@ -346,40 +346,40 @@ protected:
int *x, int *y, int *x, int *y,
int *descent = NULL, int *descent = NULL,
int *externalLeading = NULL, int *externalLeading = NULL,
const wxFont *theFont = NULL ) const; const wxFont *theFont = NULL ) const wxOVERRIDE;
virtual void DoEnable( bool enable ); virtual void DoEnable( bool enable ) wxOVERRIDE;
#if wxUSE_MENUS #if wxUSE_MENUS
virtual bool DoPopupMenu( wxMenu *menu, int x, int y ); virtual bool DoPopupMenu( wxMenu *menu, int x, int y ) wxOVERRIDE;
#endif #endif
virtual void DoFreeze(); virtual void DoFreeze() wxOVERRIDE;
virtual void DoThaw(); virtual void DoThaw() wxOVERRIDE;
virtual wxSize DoGetBestSize() const; virtual wxSize DoGetBestSize() const wxOVERRIDE;
virtual wxSize DoGetSizeFromClientSize( const wxSize & size ) const; virtual wxSize DoGetSizeFromClientSize( const wxSize & size ) const;
virtual void DoClientToScreen( int *x, int *y ) const; virtual void DoClientToScreen( int *x, int *y ) const wxOVERRIDE;
virtual void DoScreenToClient( int *x, int *y ) const; virtual void DoScreenToClient( int *x, int *y ) const wxOVERRIDE;
virtual void DoGetPosition( int *x, int *y ) const; virtual void DoGetPosition( int *x, int *y ) const wxOVERRIDE;
virtual void DoGetSize( int *width, int *height ) const; virtual void DoGetSize( int *width, int *height ) const wxOVERRIDE;
virtual void DoGetClientSize( int *width, int *height ) const; virtual void DoGetClientSize( int *width, int *height ) const wxOVERRIDE;
virtual void DoSetSize(int x, int y, virtual void DoSetSize(int x, int y,
int width, int height, int width, int height,
int sizeFlags = wxSIZE_AUTO); int sizeFlags = wxSIZE_AUTO) wxOVERRIDE;
virtual void DoSetClientSize(int width, int height); virtual void DoSetClientSize(int width, int height) wxOVERRIDE;
virtual void DoCaptureMouse(); virtual void DoCaptureMouse() wxOVERRIDE;
virtual void DoReleaseMouse(); virtual void DoReleaseMouse() wxOVERRIDE;
// move the window to the specified location and resize it: this is called // move the window to the specified location and resize it: this is called
// from both DoSetSize() and DoSetClientSize() and would usually just call // from both DoSetSize() and DoSetClientSize() and would usually just call
// ::MoveWindow() except for composite controls which will want to arrange // ::MoveWindow() except for composite controls which will want to arrange
// themselves inside the given rectangle // themselves inside the given rectangle
virtual void DoMoveWindow( int x, int y, int width, int height ); virtual void DoMoveWindow( int x, int y, int width, int height ) wxOVERRIDE;
virtual void DoSetWindowVariant( wxWindowVariant variant ); virtual void DoSetWindowVariant( wxWindowVariant variant ) wxOVERRIDE;
#if wxUSE_TOOLTIPS #if wxUSE_TOOLTIPS
virtual void DoSetToolTip( wxToolTip *tip ); virtual void DoSetToolTip( wxToolTip *tip ) wxOVERRIDE;
#endif #endif
// common part of Show/HideWithEffect() // common part of Show/HideWithEffect()