use wxOVERRIDE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -38,8 +38,8 @@ public:
|
||||
|
||||
protected:
|
||||
// ref counting code
|
||||
virtual wxObjectRefData *CreateRefData() const;
|
||||
virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const;
|
||||
virtual wxObjectRefData *CreateRefData() const wxOVERRIDE;
|
||||
virtual wxObjectRefData *CloneRefData(const wxObjectRefData *data) const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxAcceleratorTable)
|
||||
|
@@ -47,22 +47,22 @@ public:
|
||||
|
||||
virtual ~wxButtonToolBar();
|
||||
|
||||
virtual bool Realize();
|
||||
virtual bool Realize() wxOVERRIDE;
|
||||
|
||||
virtual void SetToolShortHelp(int id, const wxString& helpString);
|
||||
virtual wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y) const;
|
||||
virtual void SetToolShortHelp(int id, const wxString& helpString) wxOVERRIDE;
|
||||
virtual wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y) const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
||||
// implement base class pure virtuals
|
||||
virtual bool DoInsertTool(size_t pos, wxToolBarToolBase *tool);
|
||||
virtual bool DoDeleteTool(size_t pos, wxToolBarToolBase *tool);
|
||||
virtual bool DoInsertTool(size_t pos, wxToolBarToolBase *tool) wxOVERRIDE;
|
||||
virtual bool DoDeleteTool(size_t pos, wxToolBarToolBase *tool) wxOVERRIDE;
|
||||
|
||||
virtual void DoEnableTool(wxToolBarToolBase *tool, bool enable);
|
||||
virtual void DoToggleTool(wxToolBarToolBase *tool, bool toggle);
|
||||
virtual void DoSetToggle(wxToolBarToolBase *tool, bool toggle);
|
||||
virtual void DoEnableTool(wxToolBarToolBase *tool, bool enable) wxOVERRIDE;
|
||||
virtual void DoToggleTool(wxToolBarToolBase *tool, bool toggle) wxOVERRIDE;
|
||||
virtual void DoSetToggle(wxToolBarToolBase *tool, bool toggle) wxOVERRIDE;
|
||||
|
||||
virtual wxToolBarToolBase *CreateTool(int id,
|
||||
const wxString& label,
|
||||
@@ -71,11 +71,11 @@ protected:
|
||||
wxItemKind kind,
|
||||
wxObject *clientData,
|
||||
const wxString& shortHelp,
|
||||
const wxString& longHelp);
|
||||
const wxString& longHelp) wxOVERRIDE;
|
||||
virtual wxToolBarToolBase *CreateTool(wxControl *control,
|
||||
const wxString& label);
|
||||
const wxString& label) wxOVERRIDE;
|
||||
|
||||
virtual wxSize DoGetBestClientSize() const;
|
||||
virtual wxSize DoGetBestClientSize() const wxOVERRIDE;
|
||||
|
||||
// calculate layout
|
||||
void DoLayout();
|
||||
|
@@ -25,7 +25,7 @@ class WXDLLIMPEXP_CORE wxCaretTimer : public wxTimer
|
||||
{
|
||||
public:
|
||||
wxCaretTimer(wxCaret *caret);
|
||||
virtual void Notify();
|
||||
virtual void Notify() wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxCaret *m_caret;
|
||||
@@ -50,17 +50,17 @@ public:
|
||||
// --------------
|
||||
|
||||
// called by wxWindow (not using the event tables)
|
||||
virtual void OnSetFocus();
|
||||
virtual void OnKillFocus();
|
||||
virtual void OnSetFocus() wxOVERRIDE;
|
||||
virtual void OnKillFocus() wxOVERRIDE;
|
||||
|
||||
// called by wxCaretTimer
|
||||
void OnTimer();
|
||||
|
||||
protected:
|
||||
virtual void DoShow();
|
||||
virtual void DoHide();
|
||||
virtual void DoMove();
|
||||
virtual void DoSize();
|
||||
virtual void DoShow() wxOVERRIDE;
|
||||
virtual void DoHide() wxOVERRIDE;
|
||||
virtual void DoMove() wxOVERRIDE;
|
||||
virtual void DoSize() wxOVERRIDE;
|
||||
|
||||
// blink the caret once
|
||||
void Blink();
|
||||
|
@@ -51,91 +51,91 @@ public:
|
||||
virtual ~wxPostScriptDCImpl();
|
||||
|
||||
virtual bool Ok() const { return IsOk(); }
|
||||
virtual bool IsOk() const;
|
||||
virtual bool IsOk() const wxOVERRIDE;
|
||||
|
||||
bool CanDrawBitmap() const { return true; }
|
||||
bool CanDrawBitmap() const wxOVERRIDE { return true; }
|
||||
|
||||
void Clear();
|
||||
void SetFont( const wxFont& font );
|
||||
void SetPen( const wxPen& pen );
|
||||
void SetBrush( const wxBrush& brush );
|
||||
void SetLogicalFunction( wxRasterOperationMode function );
|
||||
void SetBackground( const wxBrush& brush );
|
||||
void Clear() wxOVERRIDE;
|
||||
void SetFont( const wxFont& font ) wxOVERRIDE;
|
||||
void SetPen( const wxPen& pen ) wxOVERRIDE;
|
||||
void SetBrush( const wxBrush& brush ) wxOVERRIDE;
|
||||
void SetLogicalFunction( wxRasterOperationMode function ) wxOVERRIDE;
|
||||
void SetBackground( const wxBrush& brush ) wxOVERRIDE;
|
||||
|
||||
void DestroyClippingRegion();
|
||||
void DestroyClippingRegion() wxOVERRIDE;
|
||||
|
||||
bool StartDoc(const wxString& message);
|
||||
void EndDoc();
|
||||
void StartPage();
|
||||
void EndPage();
|
||||
bool StartDoc(const wxString& message) wxOVERRIDE;
|
||||
void EndDoc() wxOVERRIDE;
|
||||
void StartPage() wxOVERRIDE;
|
||||
void EndPage() wxOVERRIDE;
|
||||
|
||||
wxCoord GetCharHeight() const;
|
||||
wxCoord GetCharWidth() const;
|
||||
bool CanGetTextExtent() const { return true; }
|
||||
wxCoord GetCharHeight() const wxOVERRIDE;
|
||||
wxCoord GetCharWidth() const wxOVERRIDE;
|
||||
bool CanGetTextExtent() const wxOVERRIDE { return true; }
|
||||
|
||||
// Resolution in pixels per logical inch
|
||||
wxSize GetPPI() const;
|
||||
wxSize GetPPI() const wxOVERRIDE;
|
||||
|
||||
virtual void ComputeScaleAndOrigin();
|
||||
virtual void ComputeScaleAndOrigin() wxOVERRIDE;
|
||||
|
||||
void SetBackgroundMode(int WXUNUSED(mode)) { }
|
||||
void SetPalette(const wxPalette& WXUNUSED(palette)) { }
|
||||
void SetBackgroundMode(int WXUNUSED(mode)) wxOVERRIDE { }
|
||||
void SetPalette(const wxPalette& WXUNUSED(palette)) wxOVERRIDE { }
|
||||
|
||||
void SetPrintData(const wxPrintData& data);
|
||||
wxPrintData& GetPrintData() { return m_printData; }
|
||||
|
||||
virtual int GetDepth() const { return 24; }
|
||||
virtual int GetDepth() const wxOVERRIDE { return 24; }
|
||||
|
||||
void PsPrint( const wxString& psdata );
|
||||
|
||||
// Overrridden for wxPrinterDC Impl
|
||||
|
||||
virtual int GetResolution() const;
|
||||
virtual wxRect GetPaperRect() const;
|
||||
virtual int GetResolution() const wxOVERRIDE;
|
||||
virtual wxRect GetPaperRect() const wxOVERRIDE;
|
||||
|
||||
virtual void* GetHandle() const { return NULL; }
|
||||
virtual void* GetHandle() const wxOVERRIDE { return NULL; }
|
||||
|
||||
protected:
|
||||
bool DoFloodFill(wxCoord x1, wxCoord y1, const wxColour &col,
|
||||
wxFloodFillStyle style = wxFLOOD_SURFACE);
|
||||
bool DoGetPixel(wxCoord x1, wxCoord y1, wxColour *col) const;
|
||||
void DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2);
|
||||
void DoCrossHair(wxCoord x, wxCoord y) ;
|
||||
void DoDrawArc(wxCoord x1,wxCoord y1,wxCoord x2,wxCoord y2,wxCoord xc,wxCoord yc);
|
||||
void DoDrawEllipticArc(wxCoord x,wxCoord y,wxCoord w,wxCoord h,double sa,double ea);
|
||||
void DoDrawPoint(wxCoord x, wxCoord y);
|
||||
void DoDrawLines(int n, const wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0);
|
||||
wxFloodFillStyle style = wxFLOOD_SURFACE) wxOVERRIDE;
|
||||
bool DoGetPixel(wxCoord x1, wxCoord y1, wxColour *col) const wxOVERRIDE;
|
||||
void DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2) wxOVERRIDE;
|
||||
void DoCrossHair(wxCoord x, wxCoord y) wxOVERRIDE ;
|
||||
void DoDrawArc(wxCoord x1,wxCoord y1,wxCoord x2,wxCoord y2,wxCoord xc,wxCoord yc) wxOVERRIDE;
|
||||
void DoDrawEllipticArc(wxCoord x,wxCoord y,wxCoord w,wxCoord h,double sa,double ea) wxOVERRIDE;
|
||||
void DoDrawPoint(wxCoord x, wxCoord y) wxOVERRIDE;
|
||||
void DoDrawLines(int n, const wxPoint points[], wxCoord xoffset = 0, wxCoord yoffset = 0) wxOVERRIDE;
|
||||
void DoDrawPolygon(int n, const wxPoint points[],
|
||||
wxCoord xoffset = 0, wxCoord yoffset = 0,
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE);
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE) wxOVERRIDE;
|
||||
void DoDrawPolyPolygon(int n, const int count[], const wxPoint points[],
|
||||
wxCoord xoffset = 0, wxCoord yoffset = 0,
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE);
|
||||
void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
||||
void DoDrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius = 20);
|
||||
void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE) wxOVERRIDE;
|
||||
void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE;
|
||||
void DoDrawRoundedRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height, double radius = 20) wxOVERRIDE;
|
||||
void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE;
|
||||
#if wxUSE_SPLINES
|
||||
void DoDrawSpline(const wxPointList *points);
|
||||
void DoDrawSpline(const wxPointList *points) wxOVERRIDE;
|
||||
#endif
|
||||
bool DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height,
|
||||
wxDC *source, wxCoord xsrc, wxCoord ysrc,
|
||||
wxRasterOperationMode rop = wxCOPY, bool useMask = false,
|
||||
wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord);
|
||||
void DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y);
|
||||
void DoDrawBitmap(const wxBitmap& bitmap, wxCoord x, wxCoord y, bool useMask = false);
|
||||
void DoDrawText(const wxString& text, wxCoord x, wxCoord y);
|
||||
void DoDrawRotatedText(const wxString& text, wxCoord x, wxCoord y, double angle);
|
||||
void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
||||
void DoSetDeviceClippingRegion( const wxRegion &WXUNUSED(clip))
|
||||
wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord) wxOVERRIDE;
|
||||
void DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y) wxOVERRIDE;
|
||||
void DoDrawBitmap(const wxBitmap& bitmap, wxCoord x, wxCoord y, bool useMask = false) wxOVERRIDE;
|
||||
void DoDrawText(const wxString& text, wxCoord x, wxCoord y) wxOVERRIDE;
|
||||
void DoDrawRotatedText(const wxString& text, wxCoord x, wxCoord y, double angle) wxOVERRIDE;
|
||||
void DoSetClippingRegion(wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE;
|
||||
void DoSetDeviceClippingRegion( const wxRegion &WXUNUSED(clip)) wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG( "not implemented" );
|
||||
}
|
||||
void DoGetTextExtent(const wxString& string, wxCoord *x, wxCoord *y,
|
||||
wxCoord *descent = NULL,
|
||||
wxCoord *externalLeading = NULL,
|
||||
const wxFont *theFont = NULL) const;
|
||||
void DoGetSize(int* width, int* height) const;
|
||||
void DoGetSizeMM(int *width, int *height) const;
|
||||
const wxFont *theFont = NULL) const wxOVERRIDE;
|
||||
void DoGetSize(int* width, int* height) const wxOVERRIDE;
|
||||
void DoGetSizeMM(int *width, int *height) const wxOVERRIDE;
|
||||
|
||||
FILE* m_pstream; // PostScript output stream
|
||||
unsigned char m_currentRed;
|
||||
|
@@ -355,7 +355,7 @@ class WXDLLIMPEXP_ADV wxGridRowHeaderRendererDefault
|
||||
public:
|
||||
virtual void DrawBorder(const wxGrid& grid,
|
||||
wxDC& dc,
|
||||
wxRect& rect) const;
|
||||
wxRect& rect) const wxOVERRIDE;
|
||||
};
|
||||
|
||||
// Column header cells renderers
|
||||
@@ -365,7 +365,7 @@ class WXDLLIMPEXP_ADV wxGridColumnHeaderRendererDefault
|
||||
public:
|
||||
virtual void DrawBorder(const wxGrid& grid,
|
||||
wxDC& dc,
|
||||
wxRect& rect) const;
|
||||
wxRect& rect) const wxOVERRIDE;
|
||||
};
|
||||
|
||||
// Header corner renderer
|
||||
@@ -375,7 +375,7 @@ class WXDLLIMPEXP_ADV wxGridCornerHeaderRendererDefault
|
||||
public:
|
||||
virtual void DrawBorder(const wxGrid& grid,
|
||||
wxDC& dc,
|
||||
wxRect& rect) const;
|
||||
wxRect& rect) const wxOVERRIDE;
|
||||
};
|
||||
|
||||
|
||||
@@ -826,25 +826,25 @@ public:
|
||||
|
||||
// these are pure virtual in wxGridTableBase
|
||||
//
|
||||
virtual int GetNumberRows() { return static_cast<int>(m_data.size()); }
|
||||
virtual int GetNumberCols() { return m_numCols; }
|
||||
virtual wxString GetValue( int row, int col );
|
||||
virtual void SetValue( int row, int col, const wxString& s );
|
||||
virtual int GetNumberRows() wxOVERRIDE { return static_cast<int>(m_data.size()); }
|
||||
virtual int GetNumberCols() wxOVERRIDE { return m_numCols; }
|
||||
virtual wxString GetValue( int row, int col ) wxOVERRIDE;
|
||||
virtual void SetValue( int row, int col, const wxString& s ) wxOVERRIDE;
|
||||
|
||||
// overridden functions from wxGridTableBase
|
||||
//
|
||||
void Clear();
|
||||
bool InsertRows( size_t pos = 0, size_t numRows = 1 );
|
||||
bool AppendRows( size_t numRows = 1 );
|
||||
bool DeleteRows( size_t pos = 0, size_t numRows = 1 );
|
||||
bool InsertCols( size_t pos = 0, size_t numCols = 1 );
|
||||
bool AppendCols( size_t numCols = 1 );
|
||||
bool DeleteCols( size_t pos = 0, size_t numCols = 1 );
|
||||
void Clear() wxOVERRIDE;
|
||||
bool InsertRows( size_t pos = 0, size_t numRows = 1 ) wxOVERRIDE;
|
||||
bool AppendRows( size_t numRows = 1 ) wxOVERRIDE;
|
||||
bool DeleteRows( size_t pos = 0, size_t numRows = 1 ) wxOVERRIDE;
|
||||
bool InsertCols( size_t pos = 0, size_t numCols = 1 ) wxOVERRIDE;
|
||||
bool AppendCols( size_t numCols = 1 ) wxOVERRIDE;
|
||||
bool DeleteCols( size_t pos = 0, size_t numCols = 1 ) wxOVERRIDE;
|
||||
|
||||
void SetRowLabelValue( int row, const wxString& );
|
||||
void SetColLabelValue( int col, const wxString& );
|
||||
wxString GetRowLabelValue( int row );
|
||||
wxString GetColLabelValue( int col );
|
||||
void SetRowLabelValue( int row, const wxString& ) wxOVERRIDE;
|
||||
void SetColLabelValue( int col, const wxString& ) wxOVERRIDE;
|
||||
wxString GetRowLabelValue( int row ) wxOVERRIDE;
|
||||
wxString GetColLabelValue( int col ) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxGridStringArray m_data;
|
||||
@@ -1083,7 +1083,7 @@ public:
|
||||
|
||||
int GetBatchCount() { return m_batchCount; }
|
||||
|
||||
virtual void Refresh(bool eraseb = true, const wxRect* rect = NULL);
|
||||
virtual void Refresh(bool eraseb = true, const wxRect* rect = NULL) wxOVERRIDE;
|
||||
|
||||
// Use this, rather than wxWindow::Refresh(), to force an
|
||||
// immediate repainting of the grid. Has no effect if you are
|
||||
@@ -1642,7 +1642,7 @@ public:
|
||||
|
||||
// ------- drag and drop
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
virtual void SetDropTarget(wxDropTarget *dropTarget);
|
||||
virtual void SetDropTarget(wxDropTarget *dropTarget) wxOVERRIDE;
|
||||
#endif // wxUSE_DRAG_AND_DROP
|
||||
|
||||
|
||||
@@ -1838,16 +1838,16 @@ public:
|
||||
|
||||
|
||||
// override some base class functions
|
||||
virtual bool Enable(bool enable = true);
|
||||
virtual wxWindow *GetMainWindowOfCompositeControl()
|
||||
virtual bool Enable(bool enable = true) wxOVERRIDE;
|
||||
virtual wxWindow *GetMainWindowOfCompositeControl() wxOVERRIDE
|
||||
{ return (wxWindow*)m_gridWin; }
|
||||
virtual void Fit();
|
||||
virtual void Fit() wxOVERRIDE;
|
||||
|
||||
// implementation only
|
||||
void CancelMouseCapture();
|
||||
|
||||
protected:
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
bool m_created;
|
||||
|
||||
@@ -2166,7 +2166,7 @@ protected:
|
||||
private:
|
||||
|
||||
// implement wxScrolledWindow method to return m_gridWin size
|
||||
virtual wxSize GetSizeAvailableForScrollTarget(const wxSize& size);
|
||||
virtual wxSize GetSizeAvailableForScrollTarget(const wxSize& size) wxOVERRIDE;
|
||||
|
||||
// redraw the grid lines, should be called after changing their attributes
|
||||
void RedrawGridLines();
|
||||
@@ -2420,7 +2420,7 @@ public:
|
||||
wxPoint GetPosition() { return wxPoint( m_x, m_y ); }
|
||||
bool Selecting() { return m_selecting; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxGridEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxGridEvent(*this); }
|
||||
|
||||
protected:
|
||||
int m_row;
|
||||
@@ -2480,7 +2480,7 @@ public:
|
||||
int GetRowOrCol() { return m_rowOrCol; }
|
||||
wxPoint GetPosition() { return wxPoint( m_x, m_y ); }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxGridSizeEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxGridSizeEvent(*this); }
|
||||
|
||||
protected:
|
||||
int m_rowOrCol;
|
||||
@@ -2544,7 +2544,7 @@ public:
|
||||
int GetRightCol() { return m_bottomRight.GetCol(); }
|
||||
bool Selecting() { return m_selecting; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxGridRangeSelectEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxGridRangeSelectEvent(*this); }
|
||||
|
||||
protected:
|
||||
void Init(const wxGridCellCoords& topLeft,
|
||||
@@ -2585,7 +2585,7 @@ public:
|
||||
void SetCol(int col) { m_col = col; }
|
||||
void SetControl(wxControl* ctrl) { m_ctrl = ctrl; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxGridEditorCreatedEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxGridEditorCreatedEvent(*this); }
|
||||
|
||||
private:
|
||||
int m_row;
|
||||
|
@@ -29,15 +29,15 @@ public:
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int row, int col,
|
||||
bool isSelected);
|
||||
bool isSelected) wxOVERRIDE;
|
||||
|
||||
// return the string extent
|
||||
virtual wxSize GetBestSize(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col);
|
||||
int row, int col) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellRenderer *Clone() const
|
||||
virtual wxGridCellRenderer *Clone() const wxOVERRIDE
|
||||
{ return new wxGridCellStringRenderer; }
|
||||
|
||||
protected:
|
||||
@@ -63,14 +63,14 @@ public:
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int row, int col,
|
||||
bool isSelected);
|
||||
bool isSelected) wxOVERRIDE;
|
||||
|
||||
virtual wxSize GetBestSize(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col);
|
||||
int row, int col) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellRenderer *Clone() const
|
||||
virtual wxGridCellRenderer *Clone() const wxOVERRIDE
|
||||
{ return new wxGridCellNumberRenderer; }
|
||||
|
||||
protected:
|
||||
@@ -98,18 +98,18 @@ public:
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int row, int col,
|
||||
bool isSelected);
|
||||
bool isSelected) wxOVERRIDE;
|
||||
|
||||
virtual wxSize GetBestSize(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col);
|
||||
int row, int col) wxOVERRIDE;
|
||||
|
||||
// parameters string format is "width[,precision[,format]]"
|
||||
// with format being one of f|e|g|E|F|G
|
||||
virtual void SetParameters(const wxString& params);
|
||||
virtual void SetParameters(const wxString& params) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellRenderer *Clone() const;
|
||||
virtual wxGridCellRenderer *Clone() const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
wxString GetString(const wxGrid& grid, int row, int col);
|
||||
@@ -133,15 +133,15 @@ public:
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int row, int col,
|
||||
bool isSelected);
|
||||
bool isSelected) wxOVERRIDE;
|
||||
|
||||
// return the checkmark size
|
||||
virtual wxSize GetBestSize(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col);
|
||||
int row, int col) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellRenderer *Clone() const
|
||||
virtual wxGridCellRenderer *Clone() const wxOVERRIDE
|
||||
{ return new wxGridCellBoolRenderer; }
|
||||
|
||||
private:
|
||||
@@ -166,17 +166,17 @@ public:
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int row, int col,
|
||||
bool isSelected);
|
||||
bool isSelected) wxOVERRIDE;
|
||||
|
||||
virtual wxSize GetBestSize(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col);
|
||||
int row, int col) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellRenderer *Clone() const;
|
||||
virtual wxGridCellRenderer *Clone() const wxOVERRIDE;
|
||||
|
||||
// output strptime()-like format string
|
||||
virtual void SetParameters(const wxString& params);
|
||||
virtual void SetParameters(const wxString& params) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
wxString GetString(const wxGrid& grid, int row, int col);
|
||||
@@ -201,18 +201,18 @@ public:
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int row, int col,
|
||||
bool isSelected);
|
||||
bool isSelected) wxOVERRIDE;
|
||||
|
||||
virtual wxSize GetBestSize(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col);
|
||||
int row, int col) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellRenderer *Clone() const;
|
||||
virtual wxGridCellRenderer *Clone() const wxOVERRIDE;
|
||||
|
||||
// parameters string format is "item1[,item2[...,itemN]]" where itemN will
|
||||
// be used if the cell value is N-1
|
||||
virtual void SetParameters(const wxString& params);
|
||||
virtual void SetParameters(const wxString& params) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
wxString GetString(const wxGrid& grid, int row, int col);
|
||||
@@ -231,14 +231,14 @@ public:
|
||||
wxDC& dc,
|
||||
const wxRect& rect,
|
||||
int row, int col,
|
||||
bool isSelected);
|
||||
bool isSelected) wxOVERRIDE;
|
||||
|
||||
virtual wxSize GetBestSize(wxGrid& grid,
|
||||
wxGridCellAttr& attr,
|
||||
wxDC& dc,
|
||||
int row, int col);
|
||||
int row, int col) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellRenderer *Clone() const
|
||||
virtual wxGridCellRenderer *Clone() const wxOVERRIDE
|
||||
{ return new wxGridCellAutoWrapStringRenderer; }
|
||||
|
||||
private:
|
||||
|
@@ -57,31 +57,31 @@ public:
|
||||
|
||||
virtual void Create(wxWindow* parent,
|
||||
wxWindowID id,
|
||||
wxEvtHandler* evtHandler);
|
||||
virtual void SetSize(const wxRect& rect);
|
||||
wxEvtHandler* evtHandler) wxOVERRIDE;
|
||||
virtual void SetSize(const wxRect& rect) wxOVERRIDE;
|
||||
|
||||
virtual void PaintBackground(wxDC& dc,
|
||||
const wxRect& rectCell,
|
||||
const wxGridCellAttr& attr);
|
||||
const wxGridCellAttr& attr) wxOVERRIDE;
|
||||
|
||||
virtual bool IsAcceptedKey(wxKeyEvent& event);
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid);
|
||||
virtual bool IsAcceptedKey(wxKeyEvent& event) wxOVERRIDE;
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
virtual bool EndEdit(int row, int col, const wxGrid* grid,
|
||||
const wxString& oldval, wxString *newval);
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid);
|
||||
const wxString& oldval, wxString *newval) wxOVERRIDE;
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
|
||||
virtual void Reset();
|
||||
virtual void StartingKey(wxKeyEvent& event);
|
||||
virtual void HandleReturn(wxKeyEvent& event);
|
||||
virtual void Reset() wxOVERRIDE;
|
||||
virtual void StartingKey(wxKeyEvent& event) wxOVERRIDE;
|
||||
virtual void HandleReturn(wxKeyEvent& event) wxOVERRIDE;
|
||||
|
||||
// parameters string format is "max_width"
|
||||
virtual void SetParameters(const wxString& params);
|
||||
virtual void SetParameters(const wxString& params) wxOVERRIDE;
|
||||
virtual void SetValidator(const wxValidator& validator);
|
||||
|
||||
virtual wxGridCellEditor *Clone() const;
|
||||
virtual wxGridCellEditor *Clone() const wxOVERRIDE;
|
||||
|
||||
// added GetValue so we can get the value which is in the control
|
||||
virtual wxString GetValue() const;
|
||||
virtual wxString GetValue() const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
wxTextCtrl *Text() const { return (wxTextCtrl *)m_control; }
|
||||
@@ -110,25 +110,25 @@ public:
|
||||
|
||||
virtual void Create(wxWindow* parent,
|
||||
wxWindowID id,
|
||||
wxEvtHandler* evtHandler);
|
||||
wxEvtHandler* evtHandler) wxOVERRIDE;
|
||||
|
||||
virtual bool IsAcceptedKey(wxKeyEvent& event);
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid);
|
||||
virtual bool IsAcceptedKey(wxKeyEvent& event) wxOVERRIDE;
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
virtual bool EndEdit(int row, int col, const wxGrid* grid,
|
||||
const wxString& oldval, wxString *newval);
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid);
|
||||
const wxString& oldval, wxString *newval) wxOVERRIDE;
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
|
||||
virtual void Reset();
|
||||
virtual void StartingKey(wxKeyEvent& event);
|
||||
virtual void Reset() wxOVERRIDE;
|
||||
virtual void StartingKey(wxKeyEvent& event) wxOVERRIDE;
|
||||
|
||||
// parameters string format is "min,max"
|
||||
virtual void SetParameters(const wxString& params);
|
||||
virtual void SetParameters(const wxString& params) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellEditor *Clone() const
|
||||
virtual wxGridCellEditor *Clone() const wxOVERRIDE
|
||||
{ return new wxGridCellNumberEditor(m_min, m_max); }
|
||||
|
||||
// added GetValue so we can get the value which is in the control
|
||||
virtual wxString GetValue() const;
|
||||
virtual wxString GetValue() const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
#if wxUSE_SPINCTRL
|
||||
@@ -193,23 +193,23 @@ public:
|
||||
|
||||
virtual void Create(wxWindow* parent,
|
||||
wxWindowID id,
|
||||
wxEvtHandler* evtHandler);
|
||||
wxEvtHandler* evtHandler) wxOVERRIDE;
|
||||
|
||||
virtual bool IsAcceptedKey(wxKeyEvent& event);
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid);
|
||||
virtual bool IsAcceptedKey(wxKeyEvent& event) wxOVERRIDE;
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
virtual bool EndEdit(int row, int col, const wxGrid* grid,
|
||||
const wxString& oldval, wxString *newval);
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid);
|
||||
const wxString& oldval, wxString *newval) wxOVERRIDE;
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
|
||||
virtual void Reset();
|
||||
virtual void StartingKey(wxKeyEvent& event);
|
||||
virtual void Reset() wxOVERRIDE;
|
||||
virtual void StartingKey(wxKeyEvent& event) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellEditor *Clone() const
|
||||
virtual wxGridCellEditor *Clone() const wxOVERRIDE
|
||||
{ return new wxGridCellFloatEditor(m_width, m_precision); }
|
||||
|
||||
// parameters string format is "width[,precision[,format]]"
|
||||
// format to choose beween f|e|g|E|G (f is used by default)
|
||||
virtual void SetParameters(const wxString& params);
|
||||
virtual void SetParameters(const wxString& params) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
// string representation of our value
|
||||
@@ -238,27 +238,27 @@ public:
|
||||
|
||||
virtual void Create(wxWindow* parent,
|
||||
wxWindowID id,
|
||||
wxEvtHandler* evtHandler);
|
||||
wxEvtHandler* evtHandler) wxOVERRIDE;
|
||||
|
||||
virtual void SetSize(const wxRect& rect);
|
||||
virtual void Show(bool show, wxGridCellAttr *attr = NULL);
|
||||
virtual void SetSize(const wxRect& rect) wxOVERRIDE;
|
||||
virtual void Show(bool show, wxGridCellAttr *attr = NULL) wxOVERRIDE;
|
||||
|
||||
virtual bool IsAcceptedKey(wxKeyEvent& event);
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid);
|
||||
virtual bool IsAcceptedKey(wxKeyEvent& event) wxOVERRIDE;
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
virtual bool EndEdit(int row, int col, const wxGrid* grid,
|
||||
const wxString& oldval, wxString *newval);
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid);
|
||||
const wxString& oldval, wxString *newval) wxOVERRIDE;
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
|
||||
virtual void Reset();
|
||||
virtual void StartingClick();
|
||||
virtual void StartingKey(wxKeyEvent& event);
|
||||
virtual void Reset() wxOVERRIDE;
|
||||
virtual void StartingClick() wxOVERRIDE;
|
||||
virtual void StartingKey(wxKeyEvent& event) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellEditor *Clone() const
|
||||
virtual wxGridCellEditor *Clone() const wxOVERRIDE
|
||||
{ return new wxGridCellBoolEditor; }
|
||||
|
||||
// added GetValue so we can get the value which is in the control, see
|
||||
// also UseStringValues()
|
||||
virtual wxString GetValue() const;
|
||||
virtual wxString GetValue() const wxOVERRIDE;
|
||||
|
||||
// set the string values returned by GetValue() for the true and false
|
||||
// states, respectively
|
||||
@@ -297,28 +297,28 @@ public:
|
||||
|
||||
virtual void Create(wxWindow* parent,
|
||||
wxWindowID id,
|
||||
wxEvtHandler* evtHandler);
|
||||
wxEvtHandler* evtHandler) wxOVERRIDE;
|
||||
|
||||
virtual void SetSize(const wxRect& rect);
|
||||
virtual void SetSize(const wxRect& rect) wxOVERRIDE;
|
||||
|
||||
virtual void PaintBackground(wxDC& dc,
|
||||
const wxRect& rectCell,
|
||||
const wxGridCellAttr& attr);
|
||||
const wxGridCellAttr& attr) wxOVERRIDE;
|
||||
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid);
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
virtual bool EndEdit(int row, int col, const wxGrid* grid,
|
||||
const wxString& oldval, wxString *newval);
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid);
|
||||
const wxString& oldval, wxString *newval) wxOVERRIDE;
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
|
||||
virtual void Reset();
|
||||
virtual void Reset() wxOVERRIDE;
|
||||
|
||||
// parameters string format is "item1[,item2[...,itemN]]"
|
||||
virtual void SetParameters(const wxString& params);
|
||||
virtual void SetParameters(const wxString& params) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellEditor *Clone() const;
|
||||
virtual wxGridCellEditor *Clone() const wxOVERRIDE;
|
||||
|
||||
// added GetValue so we can get the value which is in the control
|
||||
virtual wxString GetValue() const;
|
||||
virtual wxString GetValue() const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
wxComboBox *Combo() const { return (wxComboBox *)m_control; }
|
||||
@@ -340,12 +340,12 @@ public:
|
||||
wxGridCellEnumEditor( const wxString& choices = wxEmptyString );
|
||||
virtual ~wxGridCellEnumEditor() {}
|
||||
|
||||
virtual wxGridCellEditor* Clone() const;
|
||||
virtual wxGridCellEditor* Clone() const wxOVERRIDE;
|
||||
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid);
|
||||
virtual void BeginEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
virtual bool EndEdit(int row, int col, const wxGrid* grid,
|
||||
const wxString& oldval, wxString *newval);
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid);
|
||||
const wxString& oldval, wxString *newval) wxOVERRIDE;
|
||||
virtual void ApplyEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
long m_index;
|
||||
@@ -361,9 +361,9 @@ public:
|
||||
wxGridCellAutoWrapStringEditor() : wxGridCellTextEditor() { }
|
||||
virtual void Create(wxWindow* parent,
|
||||
wxWindowID id,
|
||||
wxEvtHandler* evtHandler);
|
||||
wxEvtHandler* evtHandler) wxOVERRIDE;
|
||||
|
||||
virtual wxGridCellEditor *Clone() const
|
||||
virtual wxGridCellEditor *Clone() const wxOVERRIDE
|
||||
{ return new wxGridCellAutoWrapStringEditor; }
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxGridCellAutoWrapStringEditor);
|
||||
|
@@ -48,19 +48,19 @@ public:
|
||||
virtual ~wxHeaderCtrl();
|
||||
|
||||
protected:
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
|
||||
private:
|
||||
// implement base class pure virtuals
|
||||
virtual void DoSetCount(unsigned int count);
|
||||
virtual unsigned int DoGetCount() const;
|
||||
virtual void DoUpdate(unsigned int idx);
|
||||
virtual void DoSetCount(unsigned int count) wxOVERRIDE;
|
||||
virtual unsigned int DoGetCount() const wxOVERRIDE;
|
||||
virtual void DoUpdate(unsigned int idx) wxOVERRIDE;
|
||||
|
||||
virtual void DoScrollHorz(int dx);
|
||||
virtual void DoScrollHorz(int dx) wxOVERRIDE;
|
||||
|
||||
virtual void DoSetColumnsOrder(const wxArrayInt& order);
|
||||
virtual wxArrayInt DoGetColumnsOrder() const;
|
||||
virtual void DoSetColumnsOrder(const wxArrayInt& order) wxOVERRIDE;
|
||||
virtual wxArrayInt DoGetColumnsOrder() const wxOVERRIDE;
|
||||
|
||||
// common part of all ctors
|
||||
void Init();
|
||||
|
@@ -47,7 +47,7 @@ public:
|
||||
|
||||
// unhide the base class version
|
||||
virtual bool LoadFile(const wxString& name,
|
||||
wxBitmapType flags = wxICON_DEFAULT_TYPE)
|
||||
wxBitmapType flags = wxICON_DEFAULT_TYPE) wxOVERRIDE
|
||||
{ return wxBitmap::LoadFile(name, flags); }
|
||||
|
||||
// create from bitmap (which should have a mask unless it's monochrome):
|
||||
|
@@ -38,13 +38,13 @@ public:
|
||||
// ----------------------------
|
||||
|
||||
virtual void ShowMessage(const wxString& msg,
|
||||
int flags = wxICON_INFORMATION);
|
||||
int flags = wxICON_INFORMATION) wxOVERRIDE;
|
||||
|
||||
virtual void Dismiss();
|
||||
virtual void Dismiss() wxOVERRIDE;
|
||||
|
||||
virtual void AddButton(wxWindowID btnid, const wxString& label = wxString());
|
||||
virtual void AddButton(wxWindowID btnid, const wxString& label = wxString()) wxOVERRIDE;
|
||||
|
||||
virtual void RemoveButton(wxWindowID btnid);
|
||||
virtual void RemoveButton(wxWindowID btnid) wxOVERRIDE;
|
||||
|
||||
// methods specific to this version
|
||||
// --------------------------------
|
||||
@@ -77,15 +77,15 @@ public:
|
||||
|
||||
// setting the font of this window sets it for the text control inside it
|
||||
// (default font is a larger and bold version of the normal one)
|
||||
virtual bool SetFont(const wxFont& font);
|
||||
virtual bool SetFont(const wxFont& font) wxOVERRIDE;
|
||||
|
||||
// same thing with the colour: this affects the text colour
|
||||
virtual bool SetForegroundColour(const wxColor& colour);
|
||||
virtual bool SetForegroundColour(const wxColor& colour) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
// info bar shouldn't have any border by default, the colour difference
|
||||
// between it and the main window separates it well enough
|
||||
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
|
||||
virtual wxBorder GetDefaultBorder() const wxOVERRIDE { return wxBORDER_NONE; }
|
||||
|
||||
|
||||
// update the parent to take our new or changed size into account (notably
|
||||
|
@@ -87,7 +87,7 @@ public:
|
||||
void SetAlignment(wxLayoutAlignment align) { m_alignment = align; }
|
||||
wxLayoutAlignment GetAlignment() const { return m_alignment; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxQueryLayoutInfoEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxQueryLayoutInfoEvent(*this); }
|
||||
|
||||
protected:
|
||||
int m_flags;
|
||||
@@ -130,7 +130,7 @@ public:
|
||||
void SetRect(const wxRect& rect) { m_rect = rect; }
|
||||
wxRect GetRect() const { return m_rect; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxCalculateLayoutEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxCalculateLayoutEvent(*this); }
|
||||
|
||||
protected:
|
||||
int m_flags;
|
||||
|
@@ -63,10 +63,10 @@ public:
|
||||
const wxValidator& validator = wxDefaultValidator,
|
||||
const wxString &name = wxListCtrlNameStr);
|
||||
|
||||
bool GetColumn( int col, wxListItem& item ) const;
|
||||
bool SetColumn( int col, const wxListItem& item );
|
||||
int GetColumnWidth( int col ) const;
|
||||
bool SetColumnWidth( int col, int width);
|
||||
bool GetColumn( int col, wxListItem& item ) const wxOVERRIDE;
|
||||
bool SetColumn( int col, const wxListItem& item ) wxOVERRIDE;
|
||||
int GetColumnWidth( int col ) const wxOVERRIDE;
|
||||
bool SetColumnWidth( int col, int width) wxOVERRIDE;
|
||||
int GetCountPerPage() const; // not the same in wxGLC as in Windows, I think
|
||||
wxRect GetViewRect() const;
|
||||
|
||||
@@ -87,7 +87,7 @@ public:
|
||||
bool GetItemPosition( long item, wxPoint& pos ) const;
|
||||
bool SetItemPosition( long item, const wxPoint& pos ); // not supported in wxGLC
|
||||
int GetItemCount() const;
|
||||
int GetColumnCount() const;
|
||||
int GetColumnCount() const wxOVERRIDE;
|
||||
void SetItemSpacing( int spacing, bool isSmall = false );
|
||||
wxSize GetItemSpacing() const;
|
||||
void SetItemTextColour( long item, const wxColour& col);
|
||||
@@ -102,19 +102,19 @@ public:
|
||||
long GetTopItem() const;
|
||||
|
||||
void SetSingleStyle( long style, bool add = true ) ;
|
||||
void SetWindowStyleFlag( long style );
|
||||
void SetWindowStyleFlag( long style ) wxOVERRIDE;
|
||||
void RecreateWindow() {}
|
||||
long GetNextItem( long item, int geometry = wxLIST_NEXT_ALL, int state = wxLIST_STATE_DONTCARE ) const;
|
||||
wxImageList *GetImageList( int which ) const;
|
||||
void SetImageList( wxImageList *imageList, int which );
|
||||
void AssignImageList( wxImageList *imageList, int which );
|
||||
wxImageList *GetImageList( int which ) const wxOVERRIDE;
|
||||
void SetImageList( wxImageList *imageList, int which ) wxOVERRIDE;
|
||||
void AssignImageList( wxImageList *imageList, int which ) wxOVERRIDE;
|
||||
bool Arrange( int flag = wxLIST_ALIGN_DEFAULT ); // always wxLIST_ALIGN_LEFT in wxGLC
|
||||
|
||||
void ClearAll();
|
||||
bool DeleteItem( long item );
|
||||
bool DeleteAllItems();
|
||||
bool DeleteAllColumns();
|
||||
bool DeleteColumn( int col );
|
||||
bool DeleteAllColumns() wxOVERRIDE;
|
||||
bool DeleteColumn( int col ) wxOVERRIDE;
|
||||
|
||||
void SetItemCount(long count);
|
||||
|
||||
@@ -143,12 +143,12 @@ public:
|
||||
void RefreshItem(long item);
|
||||
void RefreshItems(long itemFrom, long itemTo);
|
||||
|
||||
virtual void EnableBellOnNoMatch(bool on = true);
|
||||
virtual void EnableBellOnNoMatch(bool on = true) wxOVERRIDE;
|
||||
|
||||
// overridden base class virtuals
|
||||
// ------------------------------
|
||||
|
||||
virtual wxVisualAttributes GetDefaultAttributes() const
|
||||
virtual wxVisualAttributes GetDefaultAttributes() const wxOVERRIDE
|
||||
{
|
||||
return GetClassDefaultAttributes(GetWindowVariant());
|
||||
}
|
||||
@@ -156,7 +156,7 @@ public:
|
||||
static wxVisualAttributes
|
||||
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
|
||||
|
||||
virtual void Update();
|
||||
virtual void Update() wxOVERRIDE;
|
||||
|
||||
|
||||
// implementation only from now on
|
||||
@@ -165,25 +165,25 @@ public:
|
||||
// generic version extension, don't use in portable code
|
||||
bool Update( long item );
|
||||
|
||||
void OnInternalIdle( );
|
||||
void OnInternalIdle( ) wxOVERRIDE;
|
||||
|
||||
// We have to hand down a few functions
|
||||
virtual void Refresh(bool eraseBackground = true,
|
||||
const wxRect *rect = NULL);
|
||||
const wxRect *rect = NULL) wxOVERRIDE;
|
||||
|
||||
virtual bool SetBackgroundColour( const wxColour &colour );
|
||||
virtual bool SetForegroundColour( const wxColour &colour );
|
||||
virtual bool SetBackgroundColour( const wxColour &colour ) wxOVERRIDE;
|
||||
virtual bool SetForegroundColour( const wxColour &colour ) wxOVERRIDE;
|
||||
virtual wxColour GetBackgroundColour() const;
|
||||
virtual wxColour GetForegroundColour() const;
|
||||
virtual bool SetFont( const wxFont &font );
|
||||
virtual bool SetCursor( const wxCursor &cursor );
|
||||
virtual bool SetFont( const wxFont &font ) wxOVERRIDE;
|
||||
virtual bool SetCursor( const wxCursor &cursor ) wxOVERRIDE;
|
||||
|
||||
#if wxUSE_DRAG_AND_DROP
|
||||
virtual void SetDropTarget( wxDropTarget *dropTarget );
|
||||
virtual wxDropTarget *GetDropTarget() const;
|
||||
virtual void SetDropTarget( wxDropTarget *dropTarget ) wxOVERRIDE;
|
||||
virtual wxDropTarget *GetDropTarget() const wxOVERRIDE;
|
||||
#endif
|
||||
|
||||
virtual bool ShouldInheritColours() const { return false; }
|
||||
virtual bool ShouldInheritColours() const wxOVERRIDE { return false; }
|
||||
|
||||
// implementation
|
||||
// --------------
|
||||
@@ -199,12 +199,12 @@ public:
|
||||
|
||||
protected:
|
||||
// Implement base class pure virtual methods.
|
||||
long DoInsertColumn(long col, const wxListItem& info);
|
||||
long DoInsertColumn(long col, const wxListItem& info) wxOVERRIDE;
|
||||
|
||||
|
||||
virtual bool DoPopupMenu( wxMenu *menu, int x, int y );
|
||||
virtual bool DoPopupMenu( wxMenu *menu, int x, int y ) wxOVERRIDE;
|
||||
|
||||
virtual wxSize DoGetBestClientSize() const;
|
||||
virtual wxSize DoGetBestClientSize() const wxOVERRIDE;
|
||||
|
||||
// return the text for the given column of the given item
|
||||
virtual wxString OnGetItemText(long item, long column) const;
|
||||
@@ -220,9 +220,9 @@ protected:
|
||||
// it calls our OnGetXXX() functions
|
||||
friend class WXDLLIMPEXP_FWD_CORE wxListMainWindow;
|
||||
|
||||
virtual wxBorder GetDefaultBorder() const;
|
||||
virtual wxBorder GetDefaultBorder() const wxOVERRIDE;
|
||||
|
||||
virtual wxSize GetSizeAvailableForScrollTarget(const wxSize& size);
|
||||
virtual wxSize GetSizeAvailableForScrollTarget(const wxSize& size) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
void CreateOrDestroyHeaderWindowAsNeeded();
|
||||
|
@@ -33,7 +33,7 @@ public:
|
||||
|
||||
protected:
|
||||
// implement sink function
|
||||
virtual void DoLogText(const wxString& msg);
|
||||
virtual void DoLogText(const wxString& msg) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
// the control we use
|
||||
@@ -57,12 +57,12 @@ public:
|
||||
wxLogGui();
|
||||
|
||||
// show all messages that were logged since the last Flush()
|
||||
virtual void Flush();
|
||||
virtual void Flush() wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
virtual void DoLogRecord(wxLogLevel level,
|
||||
const wxString& msg,
|
||||
const wxLogRecordInfo& info);
|
||||
const wxLogRecordInfo& info) wxOVERRIDE;
|
||||
|
||||
// return the title to be used for the log dialog, depending on m_bErrors
|
||||
// and m_bWarnings values
|
||||
@@ -136,7 +136,7 @@ public:
|
||||
virtual void OnFrameDelete(wxFrame *frame);
|
||||
|
||||
protected:
|
||||
virtual void DoLogTextAtLevel(wxLogLevel level, const wxString& msg);
|
||||
virtual void DoLogTextAtLevel(wxLogLevel level, const wxString& msg) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxLogFrame *m_pLogFrame; // the log frame
|
||||
|
@@ -26,9 +26,9 @@ public:
|
||||
wxPostScriptPrinter(wxPrintDialogData *data = NULL);
|
||||
virtual ~wxPostScriptPrinter();
|
||||
|
||||
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true);
|
||||
virtual wxDC* PrintDialog(wxWindow *parent);
|
||||
virtual bool Setup(wxWindow *parent);
|
||||
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true) wxOVERRIDE;
|
||||
virtual wxDC* PrintDialog(wxWindow *parent) wxOVERRIDE;
|
||||
virtual bool Setup(wxWindow *parent) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter)
|
||||
@@ -51,8 +51,8 @@ public:
|
||||
|
||||
virtual ~wxPostScriptPrintPreview();
|
||||
|
||||
virtual bool Print(bool interactive);
|
||||
virtual void DetermineScaling();
|
||||
virtual bool Print(bool interactive) wxOVERRIDE;
|
||||
virtual void DetermineScaling() wxOVERRIDE;
|
||||
|
||||
private:
|
||||
void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
|
||||
|
@@ -57,9 +57,9 @@ public:
|
||||
bool WasSkipped() const;
|
||||
|
||||
// Must provide overload to avoid hiding it (and warnings about it)
|
||||
virtual void Update() { wxDialog::Update(); }
|
||||
virtual void Update() wxOVERRIDE { wxDialog::Update(); }
|
||||
|
||||
virtual bool Show( bool show = true );
|
||||
virtual bool Show( bool show = true ) wxOVERRIDE;
|
||||
|
||||
// This enum is an implementation detail and should not be used
|
||||
// by user code.
|
||||
|
@@ -106,7 +106,7 @@ public:
|
||||
wxBookCtrlBase* GetBookCtrl() const { return m_bookCtrl; }
|
||||
|
||||
// Override function in base
|
||||
virtual wxWindow* GetContentWindow() const;
|
||||
virtual wxWindow* GetContentWindow() const wxOVERRIDE;
|
||||
|
||||
// Set and get the inner sizer
|
||||
void SetInnerSize(wxSizer* sizer) { m_innerSizer = sizer; }
|
||||
|
@@ -224,7 +224,7 @@ public:
|
||||
void SetDragStatus(wxSashDragStatus status) { m_dragStatus = status; }
|
||||
wxSashDragStatus GetDragStatus() const { return m_dragStatus; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxSashEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxSashEvent(*this); }
|
||||
|
||||
private:
|
||||
wxSashEdgePosition m_edge;
|
||||
|
@@ -54,7 +54,7 @@ public:
|
||||
int GetTimeout() const { return m_milliseconds; }
|
||||
|
||||
// Override wxEventFilter method to hide splash screen on any user input.
|
||||
virtual int FilterEvent(wxEvent& event);
|
||||
virtual int FilterEvent(wxEvent& event) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
// Common part of all ctors.
|
||||
|
@@ -202,7 +202,7 @@ public:
|
||||
void OnSize(wxSizeEvent& event);
|
||||
|
||||
// In live mode, resize child windows in idle time
|
||||
void OnInternalIdle();
|
||||
void OnInternalIdle() wxOVERRIDE;
|
||||
|
||||
// Draws the sash
|
||||
virtual void DrawSash(wxDC& dc);
|
||||
@@ -274,7 +274,7 @@ protected:
|
||||
|
||||
// return the best size of the splitter equal to best sizes of its
|
||||
// subwindows
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
|
||||
wxSplitMode m_splitMode;
|
||||
@@ -370,7 +370,7 @@ public:
|
||||
return m_data.pt.y;
|
||||
}
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxSplitterEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxSplitterEvent(*this); }
|
||||
|
||||
private:
|
||||
friend class WXDLLIMPEXP_FWD_CORE wxSplitterWindow;
|
||||
|
@@ -49,17 +49,17 @@ public:
|
||||
#if wxUSE_MENUS
|
||||
// get/set search button menu
|
||||
// --------------------------
|
||||
virtual void SetMenu( wxMenu* menu );
|
||||
virtual wxMenu* GetMenu();
|
||||
virtual void SetMenu( wxMenu* menu ) wxOVERRIDE;
|
||||
virtual wxMenu* GetMenu() wxOVERRIDE;
|
||||
#endif // wxUSE_MENUS
|
||||
|
||||
// get/set search options
|
||||
// ----------------------
|
||||
virtual void ShowSearchButton( bool show );
|
||||
virtual bool IsSearchButtonVisible() const;
|
||||
virtual void ShowSearchButton( bool show ) wxOVERRIDE;
|
||||
virtual bool IsSearchButtonVisible() const wxOVERRIDE;
|
||||
|
||||
virtual void ShowCancelButton( bool show );
|
||||
virtual bool IsCancelButtonVisible() const;
|
||||
virtual void ShowCancelButton( bool show ) wxOVERRIDE;
|
||||
virtual bool IsCancelButtonVisible() const wxOVERRIDE;
|
||||
|
||||
// TODO: In 2.9 these should probably be virtual, and declared in the base class...
|
||||
void SetDescriptiveText(const wxString& text);
|
||||
@@ -68,48 +68,48 @@ public:
|
||||
// accessors
|
||||
// ---------
|
||||
|
||||
virtual wxString GetRange(long from, long to) const;
|
||||
virtual wxString GetRange(long from, long to) const wxOVERRIDE;
|
||||
|
||||
virtual int GetLineLength(long lineNo) const;
|
||||
virtual wxString GetLineText(long lineNo) const;
|
||||
virtual int GetNumberOfLines() const;
|
||||
virtual int GetLineLength(long lineNo) const wxOVERRIDE;
|
||||
virtual wxString GetLineText(long lineNo) const wxOVERRIDE;
|
||||
virtual int GetNumberOfLines() const wxOVERRIDE;
|
||||
|
||||
virtual bool IsModified() const;
|
||||
virtual bool IsEditable() const;
|
||||
virtual bool IsModified() const wxOVERRIDE;
|
||||
virtual bool IsEditable() const wxOVERRIDE;
|
||||
|
||||
// more readable flag testing methods
|
||||
virtual bool IsSingleLine() const;
|
||||
virtual bool IsMultiLine() const;
|
||||
|
||||
// If the return values from and to are the same, there is no selection.
|
||||
virtual void GetSelection(long* from, long* to) const;
|
||||
virtual void GetSelection(long* from, long* to) const wxOVERRIDE;
|
||||
|
||||
virtual wxString GetStringSelection() const;
|
||||
virtual wxString GetStringSelection() const wxOVERRIDE;
|
||||
|
||||
// operations
|
||||
// ----------
|
||||
|
||||
// editing
|
||||
virtual void Clear();
|
||||
virtual void Replace(long from, long to, const wxString& value);
|
||||
virtual void Remove(long from, long to);
|
||||
virtual void Clear() wxOVERRIDE;
|
||||
virtual void Replace(long from, long to, const wxString& value) wxOVERRIDE;
|
||||
virtual void Remove(long from, long to) wxOVERRIDE;
|
||||
|
||||
// load/save the controls contents from/to the file
|
||||
virtual bool LoadFile(const wxString& file);
|
||||
virtual bool SaveFile(const wxString& file = wxEmptyString);
|
||||
|
||||
// sets/clears the dirty flag
|
||||
virtual void MarkDirty();
|
||||
virtual void DiscardEdits();
|
||||
virtual void MarkDirty() wxOVERRIDE;
|
||||
virtual void DiscardEdits() wxOVERRIDE;
|
||||
|
||||
// set the max number of characters which may be entered in a single line
|
||||
// text control
|
||||
virtual void SetMaxLength(unsigned long WXUNUSED(len));
|
||||
virtual void SetMaxLength(unsigned long WXUNUSED(len)) wxOVERRIDE;
|
||||
|
||||
// writing text inserts it at the current position, appending always
|
||||
// inserts it at the end
|
||||
virtual void WriteText(const wxString& text);
|
||||
virtual void AppendText(const wxString& text);
|
||||
virtual void WriteText(const wxString& text) wxOVERRIDE;
|
||||
virtual void AppendText(const wxString& text) wxOVERRIDE;
|
||||
|
||||
// insert the character which would have resulted from this key event,
|
||||
// return true if anything has been inserted
|
||||
@@ -118,53 +118,53 @@ public:
|
||||
// text control under some platforms supports the text styles: these
|
||||
// methods allow to apply the given text style to the given selection or to
|
||||
// set/get the style which will be used for all appended text
|
||||
virtual bool SetStyle(long start, long end, const wxTextAttr& style);
|
||||
virtual bool GetStyle(long position, wxTextAttr& style);
|
||||
virtual bool SetDefaultStyle(const wxTextAttr& style);
|
||||
virtual const wxTextAttr& GetDefaultStyle() const;
|
||||
virtual bool SetStyle(long start, long end, const wxTextAttr& style) wxOVERRIDE;
|
||||
virtual bool GetStyle(long position, wxTextAttr& style) wxOVERRIDE;
|
||||
virtual bool SetDefaultStyle(const wxTextAttr& style) wxOVERRIDE;
|
||||
virtual const wxTextAttr& GetDefaultStyle() const wxOVERRIDE;
|
||||
|
||||
// translate between the position (which is just an index in the text ctrl
|
||||
// considering all its contents as a single strings) and (x, y) coordinates
|
||||
// which represent column and line.
|
||||
virtual long XYToPosition(long x, long y) const;
|
||||
virtual bool PositionToXY(long pos, long *x, long *y) const;
|
||||
virtual long XYToPosition(long x, long y) const wxOVERRIDE;
|
||||
virtual bool PositionToXY(long pos, long *x, long *y) const wxOVERRIDE;
|
||||
|
||||
virtual void ShowPosition(long pos);
|
||||
virtual void ShowPosition(long pos) wxOVERRIDE;
|
||||
|
||||
// find the character at position given in pixels
|
||||
//
|
||||
// NB: pt is in device coords (not adjusted for the client area origin nor
|
||||
// scrolling)
|
||||
virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const;
|
||||
virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const wxOVERRIDE;
|
||||
virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt,
|
||||
wxTextCoord *col,
|
||||
wxTextCoord *row) const;
|
||||
wxTextCoord *row) const wxOVERRIDE;
|
||||
|
||||
// Clipboard operations
|
||||
virtual void Copy();
|
||||
virtual void Cut();
|
||||
virtual void Paste();
|
||||
virtual void Copy() wxOVERRIDE;
|
||||
virtual void Cut() wxOVERRIDE;
|
||||
virtual void Paste() wxOVERRIDE;
|
||||
|
||||
virtual bool CanCopy() const;
|
||||
virtual bool CanCut() const;
|
||||
virtual bool CanPaste() const;
|
||||
virtual bool CanCopy() const wxOVERRIDE;
|
||||
virtual bool CanCut() const wxOVERRIDE;
|
||||
virtual bool CanPaste() const wxOVERRIDE;
|
||||
|
||||
// Undo/redo
|
||||
virtual void Undo();
|
||||
virtual void Redo();
|
||||
virtual void Undo() wxOVERRIDE;
|
||||
virtual void Redo() wxOVERRIDE;
|
||||
|
||||
virtual bool CanUndo() const;
|
||||
virtual bool CanRedo() const;
|
||||
virtual bool CanUndo() const wxOVERRIDE;
|
||||
virtual bool CanRedo() const wxOVERRIDE;
|
||||
|
||||
// Insertion point
|
||||
virtual void SetInsertionPoint(long pos);
|
||||
virtual void SetInsertionPointEnd();
|
||||
virtual long GetInsertionPoint() const;
|
||||
virtual wxTextPos GetLastPosition() const;
|
||||
virtual void SetInsertionPoint(long pos) wxOVERRIDE;
|
||||
virtual void SetInsertionPointEnd() wxOVERRIDE;
|
||||
virtual long GetInsertionPoint() const wxOVERRIDE;
|
||||
virtual wxTextPos GetLastPosition() const wxOVERRIDE;
|
||||
|
||||
virtual void SetSelection(long from, long to);
|
||||
virtual void SelectAll();
|
||||
virtual void SetEditable(bool editable);
|
||||
virtual void SetSelection(long from, long to) wxOVERRIDE;
|
||||
virtual void SelectAll() wxOVERRIDE;
|
||||
virtual void SetEditable(bool editable) wxOVERRIDE;
|
||||
|
||||
#if 0
|
||||
|
||||
@@ -184,13 +184,13 @@ public:
|
||||
#endif
|
||||
|
||||
// do the window-specific processing after processing the update event
|
||||
virtual void DoUpdateWindowUI(wxUpdateUIEvent& event);
|
||||
virtual void DoUpdateWindowUI(wxUpdateUIEvent& event) wxOVERRIDE;
|
||||
|
||||
virtual bool ShouldInheritColours() const;
|
||||
virtual bool ShouldInheritColours() const wxOVERRIDE;
|
||||
|
||||
// wxWindow overrides
|
||||
virtual bool SetFont(const wxFont& font);
|
||||
virtual bool SetBackgroundColour(const wxColour& colour);
|
||||
virtual bool SetFont(const wxFont& font) wxOVERRIDE;
|
||||
virtual bool SetBackgroundColour(const wxColour& colour) wxOVERRIDE;
|
||||
|
||||
// search control generic only
|
||||
void SetSearchBitmap( const wxBitmap& bitmap );
|
||||
@@ -200,15 +200,15 @@ public:
|
||||
#endif // wxUSE_MENUS
|
||||
|
||||
protected:
|
||||
virtual void DoSetValue(const wxString& value, int flags);
|
||||
virtual wxString DoGetValue() const;
|
||||
virtual void DoSetValue(const wxString& value, int flags) wxOVERRIDE;
|
||||
virtual wxString DoGetValue() const wxOVERRIDE;
|
||||
|
||||
virtual bool DoLoadFile(const wxString& file, int fileType);
|
||||
virtual bool DoSaveFile(const wxString& file, int fileType);
|
||||
virtual bool DoLoadFile(const wxString& file, int fileType) wxOVERRIDE;
|
||||
virtual bool DoSaveFile(const wxString& file, int fileType) wxOVERRIDE;
|
||||
|
||||
// override the base class virtuals involved into geometry calculations
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
virtual void DoMoveWindow(int x, int y, int width, int height) wxOVERRIDE;
|
||||
virtual void LayoutControls(int x, int y, int width, int height);
|
||||
|
||||
virtual void RecalcBitmaps();
|
||||
@@ -236,7 +236,7 @@ private:
|
||||
friend class wxSearchButton;
|
||||
|
||||
// Implement pure virtual function inherited from wxCompositeWindow.
|
||||
virtual wxWindowList GetCompositeWindowParts() const;
|
||||
virtual wxWindowList GetCompositeWindowParts() const wxOVERRIDE;
|
||||
|
||||
#if wxUSE_MENUS
|
||||
void PopupSearchMenu();
|
||||
|
@@ -44,12 +44,12 @@ public:
|
||||
const wxString& name = wxStatusBarNameStr);
|
||||
|
||||
// implement base class methods
|
||||
virtual void SetStatusWidths(int n, const int widths_field[]);
|
||||
virtual bool GetFieldRect(int i, wxRect& rect) const;
|
||||
virtual void SetMinHeight(int height);
|
||||
virtual void SetStatusWidths(int n, const int widths_field[]) wxOVERRIDE;
|
||||
virtual bool GetFieldRect(int i, wxRect& rect) const wxOVERRIDE;
|
||||
virtual void SetMinHeight(int height) wxOVERRIDE;
|
||||
|
||||
virtual int GetBorderX() const { return m_borderX; }
|
||||
virtual int GetBorderY() const { return m_borderY; }
|
||||
virtual int GetBorderX() const wxOVERRIDE { return m_borderX; }
|
||||
virtual int GetBorderY() const wxOVERRIDE { return m_borderY; }
|
||||
|
||||
|
||||
// implementation only (not part of wxStatusBar public API):
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
int GetFieldFromPoint(const wxPoint& point) const;
|
||||
|
||||
protected:
|
||||
virtual void DoUpdateStatusText(int number);
|
||||
virtual void DoUpdateStatusText(int number) wxOVERRIDE;
|
||||
|
||||
// event handlers
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
@@ -103,7 +103,7 @@ protected:
|
||||
wxPen m_mediumShadowPen;
|
||||
wxPen m_hilightPen;
|
||||
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
// Update m_lastClientSize and m_widthsAbs from the current size.
|
||||
|
@@ -72,8 +72,8 @@ public:
|
||||
wxTextValidator* GetTextValidator() { return (wxTextValidator*)m_textctrl->GetValidator(); }
|
||||
#endif // wxUSE_VALIDATORS
|
||||
|
||||
virtual bool TransferDataToWindow();
|
||||
virtual bool TransferDataFromWindow();
|
||||
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||
|
||||
// implementation only
|
||||
void OnOK(wxCommandEvent& event);
|
||||
|
@@ -67,74 +67,74 @@ public:
|
||||
// implement base class pure virtuals
|
||||
// ----------------------------------
|
||||
|
||||
virtual unsigned int GetCount() const;
|
||||
virtual unsigned int GetCount() const wxOVERRIDE;
|
||||
|
||||
virtual unsigned int GetIndent() const { return m_indent; }
|
||||
virtual void SetIndent(unsigned int indent);
|
||||
virtual unsigned int GetIndent() const wxOVERRIDE { return m_indent; }
|
||||
virtual void SetIndent(unsigned int indent) wxOVERRIDE;
|
||||
|
||||
|
||||
virtual void SetImageList(wxImageList *imageList);
|
||||
virtual void SetStateImageList(wxImageList *imageList);
|
||||
virtual void SetImageList(wxImageList *imageList) wxOVERRIDE;
|
||||
virtual void SetStateImageList(wxImageList *imageList) wxOVERRIDE;
|
||||
|
||||
virtual wxString GetItemText(const wxTreeItemId& item) const;
|
||||
virtual wxString GetItemText(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual int GetItemImage(const wxTreeItemId& item,
|
||||
wxTreeItemIcon which = wxTreeItemIcon_Normal) const;
|
||||
virtual wxTreeItemData *GetItemData(const wxTreeItemId& item) const;
|
||||
virtual wxColour GetItemTextColour(const wxTreeItemId& item) const;
|
||||
virtual wxColour GetItemBackgroundColour(const wxTreeItemId& item) const;
|
||||
virtual wxFont GetItemFont(const wxTreeItemId& item) const;
|
||||
wxTreeItemIcon which = wxTreeItemIcon_Normal) const wxOVERRIDE;
|
||||
virtual wxTreeItemData *GetItemData(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual wxColour GetItemTextColour(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual wxColour GetItemBackgroundColour(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual wxFont GetItemFont(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
|
||||
virtual void SetItemText(const wxTreeItemId& item, const wxString& text);
|
||||
virtual void SetItemText(const wxTreeItemId& item, const wxString& text) wxOVERRIDE;
|
||||
virtual void SetItemImage(const wxTreeItemId& item,
|
||||
int image,
|
||||
wxTreeItemIcon which = wxTreeItemIcon_Normal);
|
||||
virtual void SetItemData(const wxTreeItemId& item, wxTreeItemData *data);
|
||||
wxTreeItemIcon which = wxTreeItemIcon_Normal) wxOVERRIDE;
|
||||
virtual void SetItemData(const wxTreeItemId& item, wxTreeItemData *data) wxOVERRIDE;
|
||||
|
||||
virtual void SetItemHasChildren(const wxTreeItemId& item, bool has = true);
|
||||
virtual void SetItemBold(const wxTreeItemId& item, bool bold = true);
|
||||
virtual void SetItemDropHighlight(const wxTreeItemId& item, bool highlight = true);
|
||||
virtual void SetItemTextColour(const wxTreeItemId& item, const wxColour& col);
|
||||
virtual void SetItemBackgroundColour(const wxTreeItemId& item, const wxColour& col);
|
||||
virtual void SetItemFont(const wxTreeItemId& item, const wxFont& font);
|
||||
virtual void SetItemHasChildren(const wxTreeItemId& item, bool has = true) wxOVERRIDE;
|
||||
virtual void SetItemBold(const wxTreeItemId& item, bool bold = true) wxOVERRIDE;
|
||||
virtual void SetItemDropHighlight(const wxTreeItemId& item, bool highlight = true) wxOVERRIDE;
|
||||
virtual void SetItemTextColour(const wxTreeItemId& item, const wxColour& col) wxOVERRIDE;
|
||||
virtual void SetItemBackgroundColour(const wxTreeItemId& item, const wxColour& col) wxOVERRIDE;
|
||||
virtual void SetItemFont(const wxTreeItemId& item, const wxFont& font) wxOVERRIDE;
|
||||
|
||||
virtual bool IsVisible(const wxTreeItemId& item) const;
|
||||
virtual bool ItemHasChildren(const wxTreeItemId& item) const;
|
||||
virtual bool IsExpanded(const wxTreeItemId& item) const;
|
||||
virtual bool IsSelected(const wxTreeItemId& item) const;
|
||||
virtual bool IsBold(const wxTreeItemId& item) const;
|
||||
virtual bool IsVisible(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual bool ItemHasChildren(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual bool IsExpanded(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual bool IsSelected(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual bool IsBold(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
|
||||
virtual size_t GetChildrenCount(const wxTreeItemId& item,
|
||||
bool recursively = true) const;
|
||||
bool recursively = true) const wxOVERRIDE;
|
||||
|
||||
// navigation
|
||||
// ----------
|
||||
|
||||
virtual wxTreeItemId GetRootItem() const { return m_anchor; }
|
||||
virtual wxTreeItemId GetSelection() const
|
||||
virtual wxTreeItemId GetRootItem() const wxOVERRIDE { return m_anchor; }
|
||||
virtual wxTreeItemId GetSelection() const wxOVERRIDE
|
||||
{
|
||||
wxASSERT_MSG( !HasFlag(wxTR_MULTIPLE),
|
||||
wxT("must use GetSelections() with this control") );
|
||||
|
||||
return m_current;
|
||||
}
|
||||
virtual size_t GetSelections(wxArrayTreeItemIds&) const;
|
||||
virtual wxTreeItemId GetFocusedItem() const { return m_current; }
|
||||
virtual size_t GetSelections(wxArrayTreeItemIds&) const wxOVERRIDE;
|
||||
virtual wxTreeItemId GetFocusedItem() const wxOVERRIDE { return m_current; }
|
||||
|
||||
virtual void ClearFocusedItem();
|
||||
virtual void SetFocusedItem(const wxTreeItemId& item);
|
||||
virtual void ClearFocusedItem() wxOVERRIDE;
|
||||
virtual void SetFocusedItem(const wxTreeItemId& item) wxOVERRIDE;
|
||||
|
||||
virtual wxTreeItemId GetItemParent(const wxTreeItemId& item) const;
|
||||
virtual wxTreeItemId GetItemParent(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual wxTreeItemId GetFirstChild(const wxTreeItemId& item,
|
||||
wxTreeItemIdValue& cookie) const;
|
||||
wxTreeItemIdValue& cookie) const wxOVERRIDE;
|
||||
virtual wxTreeItemId GetNextChild(const wxTreeItemId& item,
|
||||
wxTreeItemIdValue& cookie) const;
|
||||
virtual wxTreeItemId GetLastChild(const wxTreeItemId& item) const;
|
||||
virtual wxTreeItemId GetNextSibling(const wxTreeItemId& item) const;
|
||||
virtual wxTreeItemId GetPrevSibling(const wxTreeItemId& item) const;
|
||||
wxTreeItemIdValue& cookie) const wxOVERRIDE;
|
||||
virtual wxTreeItemId GetLastChild(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual wxTreeItemId GetNextSibling(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual wxTreeItemId GetPrevSibling(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
|
||||
virtual wxTreeItemId GetFirstVisibleItem() const;
|
||||
virtual wxTreeItemId GetNextVisible(const wxTreeItemId& item) const;
|
||||
virtual wxTreeItemId GetPrevVisible(const wxTreeItemId& item) const;
|
||||
virtual wxTreeItemId GetFirstVisibleItem() const wxOVERRIDE;
|
||||
virtual wxTreeItemId GetNextVisible(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual wxTreeItemId GetPrevVisible(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
|
||||
|
||||
// operations
|
||||
@@ -142,41 +142,41 @@ public:
|
||||
|
||||
virtual wxTreeItemId AddRoot(const wxString& text,
|
||||
int image = -1, int selectedImage = -1,
|
||||
wxTreeItemData *data = NULL);
|
||||
wxTreeItemData *data = NULL) wxOVERRIDE;
|
||||
|
||||
virtual void Delete(const wxTreeItemId& item);
|
||||
virtual void DeleteChildren(const wxTreeItemId& item);
|
||||
virtual void DeleteAllItems();
|
||||
virtual void Delete(const wxTreeItemId& item) wxOVERRIDE;
|
||||
virtual void DeleteChildren(const wxTreeItemId& item) wxOVERRIDE;
|
||||
virtual void DeleteAllItems() wxOVERRIDE;
|
||||
|
||||
virtual void Expand(const wxTreeItemId& item);
|
||||
virtual void Collapse(const wxTreeItemId& item);
|
||||
virtual void CollapseAndReset(const wxTreeItemId& item);
|
||||
virtual void Toggle(const wxTreeItemId& item);
|
||||
virtual void Expand(const wxTreeItemId& item) wxOVERRIDE;
|
||||
virtual void Collapse(const wxTreeItemId& item) wxOVERRIDE;
|
||||
virtual void CollapseAndReset(const wxTreeItemId& item) wxOVERRIDE;
|
||||
virtual void Toggle(const wxTreeItemId& item) wxOVERRIDE;
|
||||
|
||||
virtual void Unselect();
|
||||
virtual void UnselectAll();
|
||||
virtual void SelectItem(const wxTreeItemId& item, bool select = true);
|
||||
virtual void SelectChildren(const wxTreeItemId& parent);
|
||||
virtual void Unselect() wxOVERRIDE;
|
||||
virtual void UnselectAll() wxOVERRIDE;
|
||||
virtual void SelectItem(const wxTreeItemId& item, bool select = true) wxOVERRIDE;
|
||||
virtual void SelectChildren(const wxTreeItemId& parent) wxOVERRIDE;
|
||||
|
||||
virtual void EnsureVisible(const wxTreeItemId& item);
|
||||
virtual void ScrollTo(const wxTreeItemId& item);
|
||||
virtual void EnsureVisible(const wxTreeItemId& item) wxOVERRIDE;
|
||||
virtual void ScrollTo(const wxTreeItemId& item) wxOVERRIDE;
|
||||
|
||||
virtual wxTextCtrl *EditLabel(const wxTreeItemId& item,
|
||||
wxClassInfo* textCtrlClass = wxCLASSINFO(wxTextCtrl));
|
||||
virtual wxTextCtrl *GetEditControl() const;
|
||||
wxClassInfo* textCtrlClass = wxCLASSINFO(wxTextCtrl)) wxOVERRIDE;
|
||||
virtual wxTextCtrl *GetEditControl() const wxOVERRIDE;
|
||||
virtual void EndEditLabel(const wxTreeItemId& item,
|
||||
bool discardChanges = false);
|
||||
bool discardChanges = false) wxOVERRIDE;
|
||||
|
||||
virtual void EnableBellOnNoMatch(bool on = true);
|
||||
virtual void EnableBellOnNoMatch(bool on = true) wxOVERRIDE;
|
||||
|
||||
virtual void SortChildren(const wxTreeItemId& item);
|
||||
virtual void SortChildren(const wxTreeItemId& item) wxOVERRIDE;
|
||||
|
||||
// items geometry
|
||||
// --------------
|
||||
|
||||
virtual bool GetBoundingRect(const wxTreeItemId& item,
|
||||
wxRect& rect,
|
||||
bool textOnly = false) const;
|
||||
bool textOnly = false) const wxOVERRIDE;
|
||||
|
||||
|
||||
// this version specific methods
|
||||
@@ -194,12 +194,12 @@ public:
|
||||
// implementation only from now on
|
||||
|
||||
// overridden base class virtuals
|
||||
virtual bool SetBackgroundColour(const wxColour& colour);
|
||||
virtual bool SetForegroundColour(const wxColour& colour);
|
||||
virtual bool SetBackgroundColour(const wxColour& colour) wxOVERRIDE;
|
||||
virtual bool SetForegroundColour(const wxColour& colour) wxOVERRIDE;
|
||||
|
||||
virtual void Refresh(bool eraseBackground = true, const wxRect *rect = NULL);
|
||||
virtual void Refresh(bool eraseBackground = true, const wxRect *rect = NULL) wxOVERRIDE;
|
||||
|
||||
virtual bool SetFont( const wxFont &font );
|
||||
virtual bool SetFont( const wxFont &font ) wxOVERRIDE;
|
||||
virtual void SetWindowStyle(const long styles);
|
||||
|
||||
// callbacks
|
||||
@@ -211,9 +211,9 @@ public:
|
||||
void OnMouse( wxMouseEvent &event );
|
||||
void OnGetToolTip( wxTreeEvent &event );
|
||||
void OnSize( wxSizeEvent &event );
|
||||
void OnInternalIdle( );
|
||||
void OnInternalIdle( ) wxOVERRIDE;
|
||||
|
||||
virtual wxVisualAttributes GetDefaultAttributes() const
|
||||
virtual wxVisualAttributes GetDefaultAttributes() const wxOVERRIDE
|
||||
{
|
||||
return GetClassDefaultAttributes(GetWindowVariant());
|
||||
}
|
||||
@@ -281,7 +281,7 @@ protected:
|
||||
void Init();
|
||||
|
||||
// overridden wxWindow methods
|
||||
virtual void DoThaw();
|
||||
virtual void DoThaw() wxOVERRIDE;
|
||||
|
||||
// misc helpers
|
||||
void SendDeleteEvent(wxGenericTreeItem *itemBeingDeleted);
|
||||
@@ -294,21 +294,21 @@ protected:
|
||||
bool unselect_others = true,
|
||||
bool extended_select = false);
|
||||
|
||||
virtual int DoGetItemState(const wxTreeItemId& item) const;
|
||||
virtual void DoSetItemState(const wxTreeItemId& item, int state);
|
||||
virtual int DoGetItemState(const wxTreeItemId& item) const wxOVERRIDE;
|
||||
virtual void DoSetItemState(const wxTreeItemId& item, int state) wxOVERRIDE;
|
||||
|
||||
virtual wxTreeItemId DoInsertItem(const wxTreeItemId& parent,
|
||||
size_t previous,
|
||||
const wxString& text,
|
||||
int image,
|
||||
int selectedImage,
|
||||
wxTreeItemData *data);
|
||||
wxTreeItemData *data) wxOVERRIDE;
|
||||
virtual wxTreeItemId DoInsertAfter(const wxTreeItemId& parent,
|
||||
const wxTreeItemId& idPrevious,
|
||||
const wxString& text,
|
||||
int image = -1, int selImage = -1,
|
||||
wxTreeItemData *data = NULL);
|
||||
virtual wxTreeItemId DoTreeHitTest(const wxPoint& point, int& flags) const;
|
||||
wxTreeItemData *data = NULL) wxOVERRIDE;
|
||||
virtual wxTreeItemId DoTreeHitTest(const wxPoint& point, int& flags) const wxOVERRIDE;
|
||||
|
||||
// called by wxTextTreeCtrl when it marks itself for deletion
|
||||
void ResetTextControl();
|
||||
@@ -348,7 +348,7 @@ protected:
|
||||
|
||||
void DoDirtyProcessing();
|
||||
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
// Reset the state of the last find (i.e. keyboard incremental search)
|
||||
|
@@ -46,13 +46,13 @@ public:
|
||||
virtual ~wxWizard();
|
||||
|
||||
// implement base class pure virtuals
|
||||
virtual bool RunWizard(wxWizardPage *firstPage);
|
||||
virtual wxWizardPage *GetCurrentPage() const;
|
||||
virtual void SetPageSize(const wxSize& size);
|
||||
virtual wxSize GetPageSize() const;
|
||||
virtual void FitToPage(const wxWizardPage *firstPage);
|
||||
virtual wxSizer *GetPageAreaSizer() const;
|
||||
virtual void SetBorder(int border);
|
||||
virtual bool RunWizard(wxWizardPage *firstPage) wxOVERRIDE;
|
||||
virtual wxWizardPage *GetCurrentPage() const wxOVERRIDE;
|
||||
virtual void SetPageSize(const wxSize& size) wxOVERRIDE;
|
||||
virtual wxSize GetPageSize() const wxOVERRIDE;
|
||||
virtual void FitToPage(const wxWizardPage *firstPage) wxOVERRIDE;
|
||||
virtual wxSizer *GetPageAreaSizer() const wxOVERRIDE;
|
||||
virtual void SetBorder(int border) wxOVERRIDE;
|
||||
|
||||
/// set/get bitmap
|
||||
const wxBitmap& GetBitmap() const { return m_bitmap; }
|
||||
@@ -74,7 +74,7 @@ public:
|
||||
virtual void DoCreateControls();
|
||||
|
||||
// Do the adaptation
|
||||
virtual bool DoLayoutAdaptation();
|
||||
virtual bool DoLayoutAdaptation() wxOVERRIDE;
|
||||
|
||||
// Set/get bitmap background colour
|
||||
void SetBitmapBackgroundColour(const wxColour& colour) { m_bitmapBackgroundColour = colour; }
|
||||
|
Reference in New Issue
Block a user