Addition of overrides in anybutton.h, collpaneg.h, notebook.h, spinctlg.h, srchctrl.h and radiobox.h
This commit is contained in:
@@ -53,16 +53,16 @@ public:
|
|||||||
const wxString& name = wxCollapsiblePaneNameStr);
|
const wxString& name = wxCollapsiblePaneNameStr);
|
||||||
|
|
||||||
// public wxCollapsiblePane API
|
// public wxCollapsiblePane API
|
||||||
virtual void Collapse(bool collapse = true);
|
virtual void Collapse(bool collapse = true) wxOVERRIDE;
|
||||||
virtual void SetLabel(const wxString &label);
|
virtual void SetLabel(const wxString &label) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool IsCollapsed() const
|
virtual bool IsCollapsed() const wxOVERRIDE
|
||||||
{ return m_pPane==NULL || !m_pPane->IsShown(); }
|
{ return m_pPane==NULL || !m_pPane->IsShown(); }
|
||||||
virtual wxWindow *GetPane() const
|
virtual wxWindow *GetPane() const wxOVERRIDE
|
||||||
{ return m_pPane; }
|
{ return m_pPane; }
|
||||||
virtual wxString GetLabel() const;
|
virtual wxString GetLabel() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool Layout();
|
virtual bool Layout() wxOVERRIDE;
|
||||||
|
|
||||||
|
|
||||||
// for the generic collapsible pane only:
|
// for the generic collapsible pane only:
|
||||||
@@ -74,7 +74,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
// overridden methods
|
// overridden methods
|
||||||
virtual wxSize DoGetBestSize() const;
|
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||||
|
|
||||||
int GetBorder() const;
|
int GetBorder() const;
|
||||||
|
|
||||||
|
@@ -64,27 +64,27 @@ public:
|
|||||||
// T GetMin() const
|
// T GetMin() const
|
||||||
// T GetMax() const
|
// T GetMax() const
|
||||||
// T GetIncrement() const
|
// T GetIncrement() const
|
||||||
virtual bool GetSnapToTicks() const { return m_snap_to_ticks; }
|
virtual bool GetSnapToTicks() const wxOVERRIDE { return m_snap_to_ticks; }
|
||||||
// unsigned GetDigits() const - wxSpinCtrlDouble only
|
// unsigned GetDigits() const - wxSpinCtrlDouble only
|
||||||
|
|
||||||
// operations
|
// operations
|
||||||
virtual void SetValue(const wxString& text);
|
virtual void SetValue(const wxString& text) wxOVERRIDE;
|
||||||
// void SetValue(T val)
|
// void SetValue(T val)
|
||||||
// void SetRange(T minVal, T maxVal)
|
// void SetRange(T minVal, T maxVal)
|
||||||
// void SetIncrement(T inc)
|
// void SetIncrement(T inc)
|
||||||
virtual void SetSnapToTicks(bool snap_to_ticks);
|
virtual void SetSnapToTicks(bool snap_to_ticks) wxOVERRIDE;
|
||||||
// void SetDigits(unsigned digits) - wxSpinCtrlDouble only
|
// void SetDigits(unsigned digits) - wxSpinCtrlDouble only
|
||||||
|
|
||||||
// Select text in the textctrl
|
// Select text in the textctrl
|
||||||
void SetSelection(long from, long to);
|
void SetSelection(long from, long to) wxOVERRIDE;
|
||||||
|
|
||||||
// implementation from now on
|
// implementation from now on
|
||||||
|
|
||||||
// forward these functions to all subcontrols
|
// forward these functions to all subcontrols
|
||||||
virtual bool Enable(bool enable = true);
|
virtual bool Enable(bool enable = true) wxOVERRIDE;
|
||||||
virtual bool Show(bool show = true);
|
virtual bool Show(bool show = true) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool SetBackgroundColour(const wxColour& colour);
|
virtual bool SetBackgroundColour(const wxColour& colour) wxOVERRIDE;
|
||||||
|
|
||||||
// get the subcontrols
|
// get the subcontrols
|
||||||
wxTextCtrl *GetText() const { return m_textCtrl; }
|
wxTextCtrl *GetText() const { return m_textCtrl; }
|
||||||
@@ -98,16 +98,16 @@ public:
|
|||||||
// this window itself is used only as a container for its sub windows so it
|
// this window itself is used only as a container for its sub windows so it
|
||||||
// shouldn't accept the focus at all and any attempts to explicitly set
|
// shouldn't accept the focus at all and any attempts to explicitly set
|
||||||
// focus to it should give focus to its text constol part
|
// focus to it should give focus to its text constol part
|
||||||
virtual bool AcceptsFocus() const { return false; }
|
virtual bool AcceptsFocus() const wxOVERRIDE { return false; }
|
||||||
virtual void SetFocus();
|
virtual void SetFocus() wxOVERRIDE;
|
||||||
|
|
||||||
friend class wxSpinCtrlTextGeneric;
|
friend class wxSpinCtrlTextGeneric;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// override the base class virtuals involved into geometry calculations
|
// override the base class virtuals involved into geometry calculations
|
||||||
virtual wxSize DoGetBestSize() const;
|
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||||
virtual wxSize DoGetSizeFromTextSize(int xlen, int ylen = -1) const;
|
virtual wxSize DoGetSizeFromTextSize(int xlen, int ylen = -1) const wxOVERRIDE;
|
||||||
virtual void DoMoveWindow(int x, int y, int width, int height);
|
virtual void DoMoveWindow(int x, int y, int width, int height) wxOVERRIDE;
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
// and, for MSW, enabling this window itself
|
// and, for MSW, enabling this window itself
|
||||||
@@ -165,7 +165,7 @@ private:
|
|||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
// Implement pure virtual function inherited from wxCompositeWindow.
|
// Implement pure virtual function inherited from wxCompositeWindow.
|
||||||
virtual wxWindowList GetCompositeWindowParts() const;
|
virtual wxWindowList GetCompositeWindowParts() const wxOVERRIDE;
|
||||||
|
|
||||||
wxDECLARE_EVENT_TABLE();
|
wxDECLARE_EVENT_TABLE();
|
||||||
};
|
};
|
||||||
|
@@ -18,19 +18,19 @@ public:
|
|||||||
|
|
||||||
static wxSize GetDefaultSize();
|
static wxSize GetDefaultSize();
|
||||||
|
|
||||||
virtual void SetLabel(const wxString& label);
|
virtual void SetLabel(const wxString& label) wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxSize DoGetBestSize() const ;
|
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||||
|
|
||||||
void OnEnterWindow( wxMouseEvent& event);
|
void OnEnterWindow( wxMouseEvent& event);
|
||||||
void OnLeaveWindow( wxMouseEvent& event);
|
void OnLeaveWindow( wxMouseEvent& event);
|
||||||
|
|
||||||
virtual wxBitmap DoGetBitmap(State which) const;
|
virtual wxBitmap DoGetBitmap(State which) const wxOVERRIDE;
|
||||||
virtual void DoSetBitmap(const wxBitmap& bitmap, State which);
|
virtual void DoSetBitmap(const wxBitmap& bitmap, State which) wxOVERRIDE;
|
||||||
virtual void DoSetBitmapPosition(wxDirection dir);
|
virtual void DoSetBitmapPosition(wxDirection dir) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoSetBitmapMargins(int x, int y)
|
virtual void DoSetBitmapMargins(int x, int y) wxOVERRIDE
|
||||||
{
|
{
|
||||||
m_marginX = x;
|
m_marginX = x;
|
||||||
m_marginY = y;
|
m_marginY = y;
|
||||||
@@ -38,7 +38,7 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if wxUSE_MARKUP && wxOSX_USE_COCOA
|
#if wxUSE_MARKUP && wxOSX_USE_COCOA
|
||||||
virtual bool DoSetLabelMarkup(const wxString& markup);
|
virtual bool DoSetLabelMarkup(const wxString& markup) wxOVERRIDE;
|
||||||
#endif // wxUSE_MARKUP && wxOSX_USE_COCOA
|
#endif // wxUSE_MARKUP && wxOSX_USE_COCOA
|
||||||
|
|
||||||
|
|
||||||
|
@@ -57,44 +57,44 @@ public:
|
|||||||
// set the currently selected page, return the index of the previously
|
// set the currently selected page, return the index of the previously
|
||||||
// selected one (or wxNOT_FOUND on error)
|
// selected one (or wxNOT_FOUND on error)
|
||||||
// NB: this function will _not_ generate wxEVT_NOTEBOOK_PAGE_xxx events
|
// NB: this function will _not_ generate wxEVT_NOTEBOOK_PAGE_xxx events
|
||||||
int SetSelection(size_t nPage) { return DoSetSelection(nPage, SetSelection_SendEvent); }
|
int SetSelection(size_t nPage) wxOVERRIDE { return DoSetSelection(nPage, SetSelection_SendEvent); }
|
||||||
|
|
||||||
// changes selected page without sending events
|
// changes selected page without sending events
|
||||||
int ChangeSelection(size_t nPage) { return DoSetSelection(nPage); }
|
int ChangeSelection(size_t nPage) wxOVERRIDE { return DoSetSelection(nPage); }
|
||||||
|
|
||||||
// set/get the title of a page
|
// set/get the title of a page
|
||||||
bool SetPageText(size_t nPage, const wxString& strText);
|
bool SetPageText(size_t nPage, const wxString& strText) wxOVERRIDE;
|
||||||
wxString GetPageText(size_t nPage) const;
|
wxString GetPageText(size_t nPage) const wxOVERRIDE;
|
||||||
|
|
||||||
// sets/returns item's image index in the current image list
|
// sets/returns item's image index in the current image list
|
||||||
int GetPageImage(size_t nPage) const;
|
int GetPageImage(size_t nPage) const wxOVERRIDE;
|
||||||
bool SetPageImage(size_t nPage, int nImage);
|
bool SetPageImage(size_t nPage, int nImage) wxOVERRIDE;
|
||||||
|
|
||||||
// control the appearance of the notebook pages
|
// control the appearance of the notebook pages
|
||||||
// set the size (the same for all pages)
|
// set the size (the same for all pages)
|
||||||
virtual void SetPageSize(const wxSize& size);
|
virtual void SetPageSize(const wxSize& size) wxOVERRIDE;
|
||||||
// set the padding between tabs (in pixels)
|
// set the padding between tabs (in pixels)
|
||||||
virtual void SetPadding(const wxSize& padding);
|
virtual void SetPadding(const wxSize& padding) wxOVERRIDE;
|
||||||
// sets the size of the tabs (assumes all tabs are the same size)
|
// sets the size of the tabs (assumes all tabs are the same size)
|
||||||
virtual void SetTabSize(const wxSize& sz);
|
virtual void SetTabSize(const wxSize& sz) wxOVERRIDE;
|
||||||
|
|
||||||
// hit test
|
// hit test
|
||||||
virtual int HitTest(const wxPoint& pt, long *flags = NULL) const;
|
virtual int HitTest(const wxPoint& pt, long *flags = NULL) const wxOVERRIDE;
|
||||||
|
|
||||||
// calculate size for wxNotebookSizer
|
// calculate size for wxNotebookSizer
|
||||||
wxSize CalcSizeFromPage(const wxSize& sizePage) const;
|
wxSize CalcSizeFromPage(const wxSize& sizePage) const wxOVERRIDE;
|
||||||
wxRect GetPageRect() const ;
|
wxRect GetPageRect() const wxOVERRIDE;
|
||||||
|
|
||||||
// operations
|
// operations
|
||||||
// ----------
|
// ----------
|
||||||
// remove all pages
|
// remove all pages
|
||||||
bool DeleteAllPages();
|
bool DeleteAllPages() wxOVERRIDE;
|
||||||
// the same as AddPage(), but adds it at the specified position
|
// the same as AddPage(), but adds it at the specified position
|
||||||
bool InsertPage(size_t nPage,
|
bool InsertPage(size_t nPage,
|
||||||
wxNotebookPage *pPage,
|
wxNotebookPage *pPage,
|
||||||
const wxString& strText,
|
const wxString& strText,
|
||||||
bool bSelect = false,
|
bool bSelect = false,
|
||||||
int imageId = NO_IMAGE);
|
int imageId = NO_IMAGE) wxOVERRIDE;
|
||||||
|
|
||||||
// callbacks
|
// callbacks
|
||||||
// ---------
|
// ---------
|
||||||
@@ -106,20 +106,20 @@ public:
|
|||||||
// --------------
|
// --------------
|
||||||
|
|
||||||
#if wxUSE_CONSTRAINTS
|
#if wxUSE_CONSTRAINTS
|
||||||
virtual void SetConstraintSizes(bool recurse = true);
|
virtual void SetConstraintSizes(bool recurse = true) wxOVERRIDE;
|
||||||
virtual bool DoPhase(int nPhase);
|
virtual bool DoPhase(int nPhase) wxOVERRIDE;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// base class virtuals
|
// base class virtuals
|
||||||
// -------------------
|
// -------------------
|
||||||
virtual void Command(wxCommandEvent& event);
|
virtual void Command(wxCommandEvent& event) wxOVERRIDE;
|
||||||
// osx specific event handling common for all osx-ports
|
// osx specific event handling common for all osx-ports
|
||||||
|
|
||||||
virtual bool OSXHandleClicked( double timestampsec );
|
virtual bool OSXHandleClicked( double timestampsec ) wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxNotebookPage *DoRemovePage(size_t page) ;
|
virtual wxNotebookPage *DoRemovePage(size_t page) wxOVERRIDE;
|
||||||
// common part of all ctors
|
// common part of all ctors
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
@@ -127,7 +127,7 @@ protected:
|
|||||||
void ChangePage(int nOldSel, int nSel); // change pages
|
void ChangePage(int nOldSel, int nSel); // change pages
|
||||||
void MacSetupTabs();
|
void MacSetupTabs();
|
||||||
|
|
||||||
int DoSetSelection(size_t nPage, int flags = 0);
|
int DoSetSelection(size_t nPage, int flags = 0) wxOVERRIDE;
|
||||||
|
|
||||||
// the icon indices
|
// the icon indices
|
||||||
wxArrayInt m_images;
|
wxArrayInt m_images;
|
||||||
|
@@ -54,32 +54,32 @@ public:
|
|||||||
const wxString& name = wxRadioBoxNameStr);
|
const wxString& name = wxRadioBoxNameStr);
|
||||||
|
|
||||||
// Enabling
|
// Enabling
|
||||||
virtual bool Enable(bool enable = true);
|
virtual bool Enable(bool enable = true) wxOVERRIDE;
|
||||||
virtual bool Enable(unsigned int item, bool enable = true);
|
virtual bool Enable(unsigned int item, bool enable = true) wxOVERRIDE;
|
||||||
virtual bool IsItemEnabled(unsigned int item) const;
|
virtual bool IsItemEnabled(unsigned int item) const wxOVERRIDE;
|
||||||
|
|
||||||
// Showing
|
// Showing
|
||||||
virtual bool Show(bool show = true);
|
virtual bool Show(bool show = true) wxOVERRIDE;
|
||||||
virtual bool Show(unsigned int item, bool show = true);
|
virtual bool Show(unsigned int item, bool show = true) wxOVERRIDE;
|
||||||
virtual bool IsItemShown(unsigned int item) const;
|
virtual bool IsItemShown(unsigned int item) const wxOVERRIDE;
|
||||||
|
|
||||||
// Specific functions (in wxWidgets2 reference)
|
// Specific functions (in wxWidgets2 reference)
|
||||||
virtual void SetSelection(int item);
|
virtual void SetSelection(int item) wxOVERRIDE;
|
||||||
virtual int GetSelection() const;
|
virtual int GetSelection() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual unsigned int GetCount() const { return m_noItems; }
|
virtual unsigned int GetCount() const wxOVERRIDE { return m_noItems; }
|
||||||
|
|
||||||
virtual wxString GetString(unsigned int item) const;
|
virtual wxString GetString(unsigned int item) const wxOVERRIDE;
|
||||||
virtual void SetString(unsigned int item, const wxString& label);
|
virtual void SetString(unsigned int item, const wxString& label) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetLabel() const;
|
virtual wxString GetLabel() const wxOVERRIDE;
|
||||||
virtual void SetLabel(const wxString& label) ;
|
virtual void SetLabel(const wxString& label) wxOVERRIDE;
|
||||||
|
|
||||||
// protect native font of box
|
// protect native font of box
|
||||||
virtual bool SetFont( const wxFont &font );
|
virtual bool SetFont( const wxFont &font ) wxOVERRIDE;
|
||||||
// Other external functions
|
// Other external functions
|
||||||
void Command(wxCommandEvent& event);
|
void Command(wxCommandEvent& event) wxOVERRIDE;
|
||||||
void SetFocus();
|
void SetFocus() wxOVERRIDE;
|
||||||
|
|
||||||
// Other variable access functions
|
// Other variable access functions
|
||||||
int GetNumberOfRowsOrCols() const { return m_noRowsOrCols; }
|
int GetNumberOfRowsOrCols() const { return m_noRowsOrCols; }
|
||||||
@@ -89,7 +89,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
// resolve ambiguity in base classes
|
// resolve ambiguity in base classes
|
||||||
virtual wxBorder GetDefaultBorder() const { return wxRadioBoxBase::GetDefaultBorder(); }
|
virtual wxBorder GetDefaultBorder() const wxOVERRIDE { return wxRadioBoxBase::GetDefaultBorder(); }
|
||||||
|
|
||||||
wxRadioButton *m_radioButtonCycle;
|
wxRadioButton *m_radioButtonCycle;
|
||||||
|
|
||||||
@@ -97,10 +97,10 @@ protected:
|
|||||||
int m_noRowsOrCols;
|
int m_noRowsOrCols;
|
||||||
|
|
||||||
// Internal functions
|
// Internal functions
|
||||||
virtual wxSize DoGetBestSize() const ;
|
virtual wxSize DoGetBestSize() 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;
|
||||||
|
|
||||||
wxDECLARE_EVENT_TABLE();
|
wxDECLARE_EVENT_TABLE();
|
||||||
};
|
};
|
||||||
|
@@ -42,17 +42,17 @@ public:
|
|||||||
#if wxUSE_MENUS
|
#if wxUSE_MENUS
|
||||||
// get/set search button menu
|
// get/set search button menu
|
||||||
// --------------------------
|
// --------------------------
|
||||||
virtual void SetMenu( wxMenu* menu );
|
virtual void SetMenu( wxMenu* menu ) wxOVERRIDE;
|
||||||
virtual wxMenu* GetMenu();
|
virtual wxMenu* GetMenu() wxOVERRIDE;
|
||||||
#endif // wxUSE_MENUS
|
#endif // wxUSE_MENUS
|
||||||
|
|
||||||
// get/set search options
|
// get/set search options
|
||||||
// ----------------------
|
// ----------------------
|
||||||
virtual void ShowSearchButton( bool show );
|
virtual void ShowSearchButton( bool show ) wxOVERRIDE;
|
||||||
virtual bool IsSearchButtonVisible() const;
|
virtual bool IsSearchButtonVisible() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual void ShowCancelButton( bool show );
|
virtual void ShowCancelButton( bool show ) wxOVERRIDE;
|
||||||
virtual bool IsCancelButtonVisible() const;
|
virtual bool IsCancelButtonVisible() const wxOVERRIDE;
|
||||||
|
|
||||||
// TODO: In 2.9 these should probably be virtual, and declared in the base class...
|
// TODO: In 2.9 these should probably be virtual, and declared in the base class...
|
||||||
void SetDescriptiveText(const wxString& text);
|
void SetDescriptiveText(const wxString& text);
|
||||||
@@ -65,7 +65,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
wxSize DoGetBestSize() const;
|
wxSize DoGetBestSize() const wxOVERRIDE;
|
||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user