more use of wxOVERRIDE
This commit is contained in:
@@ -163,7 +163,7 @@ public: \
|
|||||||
const wxAnyValueType& otherRef = *otherType; \
|
const wxAnyValueType& otherRef = *otherType; \
|
||||||
return wxTypeId(inst) == wxTypeId(otherRef); \
|
return wxTypeId(inst) == wxTypeId(otherRef); \
|
||||||
} \
|
} \
|
||||||
virtual bool IsSameType(const wxAnyValueType* otherType) const \
|
virtual bool IsSameType(const wxAnyValueType* otherType) const wxOVERRIDE \
|
||||||
{ \
|
{ \
|
||||||
return IsSameClass(otherType); \
|
return IsSameClass(otherType); \
|
||||||
} \
|
} \
|
||||||
@@ -335,7 +335,7 @@ public:
|
|||||||
|
|
||||||
virtual bool ConvertValue(const wxAnyValueBuffer& src,
|
virtual bool ConvertValue(const wxAnyValueBuffer& src,
|
||||||
wxAnyValueType* dstType,
|
wxAnyValueType* dstType,
|
||||||
wxAnyValueBuffer& dst) const
|
wxAnyValueBuffer& dst) const wxOVERRIDE
|
||||||
{
|
{
|
||||||
wxUnusedVar(src);
|
wxUnusedVar(src);
|
||||||
wxUnusedVar(dstType);
|
wxUnusedVar(dstType);
|
||||||
@@ -464,7 +464,7 @@ public: \
|
|||||||
virtual ~wxAnyValueTypeImpl##TYPENAME() { } \
|
virtual ~wxAnyValueTypeImpl##TYPENAME() { } \
|
||||||
virtual bool ConvertValue(const wxAnyValueBuffer& src, \
|
virtual bool ConvertValue(const wxAnyValueBuffer& src, \
|
||||||
wxAnyValueType* dstType, \
|
wxAnyValueType* dstType, \
|
||||||
wxAnyValueBuffer& dst) const \
|
wxAnyValueBuffer& dst) const wxOVERRIDE \
|
||||||
{ \
|
{ \
|
||||||
GV value = GetValue(src); \
|
GV value = GetValue(src); \
|
||||||
return CONVFUNC(value, dstType, dst); \
|
return CONVFUNC(value, dstType, dst); \
|
||||||
@@ -560,7 +560,7 @@ public: \
|
|||||||
\
|
\
|
||||||
virtual bool ConvertValue(const wxAnyValueBuffer& src, \
|
virtual bool ConvertValue(const wxAnyValueBuffer& src, \
|
||||||
wxAnyValueType* dstType, \
|
wxAnyValueType* dstType, \
|
||||||
wxAnyValueBuffer& dst) const \
|
wxAnyValueBuffer& dst) const wxOVERRIDE \
|
||||||
{ \
|
{ \
|
||||||
wxUnusedVar(src); \
|
wxUnusedVar(src); \
|
||||||
wxUnusedVar(dstType); \
|
wxUnusedVar(dstType); \
|
||||||
|
@@ -83,7 +83,7 @@ public:
|
|||||||
m_toolId = c.m_toolId;
|
m_toolId = c.m_toolId;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
wxEvent *Clone() const { return new wxAuiToolBarEvent(*this); }
|
wxEvent *Clone() const wxOVERRIDE { return new wxAuiToolBarEvent(*this); }
|
||||||
|
|
||||||
bool IsDropDownClicked() const { return m_isDropdownClicked; }
|
bool IsDropDownClicked() const { return m_isDropdownClicked; }
|
||||||
void SetDropDownClicked(bool c) { m_isDropdownClicked = c; }
|
void SetDropDownClicked(bool c) { m_isDropdownClicked = c; }
|
||||||
@@ -355,78 +355,78 @@ public:
|
|||||||
wxAuiDefaultToolBarArt();
|
wxAuiDefaultToolBarArt();
|
||||||
virtual ~wxAuiDefaultToolBarArt();
|
virtual ~wxAuiDefaultToolBarArt();
|
||||||
|
|
||||||
virtual wxAuiToolBarArt* Clone();
|
virtual wxAuiToolBarArt* Clone() wxOVERRIDE;
|
||||||
virtual void SetFlags(unsigned int flags);
|
virtual void SetFlags(unsigned int flags) wxOVERRIDE;
|
||||||
virtual unsigned int GetFlags();
|
virtual unsigned int GetFlags() wxOVERRIDE;
|
||||||
virtual void SetFont(const wxFont& font);
|
virtual void SetFont(const wxFont& font) wxOVERRIDE;
|
||||||
virtual wxFont GetFont();
|
virtual wxFont GetFont() wxOVERRIDE;
|
||||||
virtual void SetTextOrientation(int orientation);
|
virtual void SetTextOrientation(int orientation) wxOVERRIDE;
|
||||||
virtual int GetTextOrientation();
|
virtual int GetTextOrientation() wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DrawBackground(
|
virtual void DrawBackground(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxRect& rect);
|
const wxRect& rect) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DrawPlainBackground(wxDC& dc,
|
virtual void DrawPlainBackground(wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxRect& rect);
|
const wxRect& rect) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DrawLabel(
|
virtual void DrawLabel(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxAuiToolBarItem& item,
|
const wxAuiToolBarItem& item,
|
||||||
const wxRect& rect);
|
const wxRect& rect) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DrawButton(
|
virtual void DrawButton(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxAuiToolBarItem& item,
|
const wxAuiToolBarItem& item,
|
||||||
const wxRect& rect);
|
const wxRect& rect) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DrawDropDownButton(
|
virtual void DrawDropDownButton(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxAuiToolBarItem& item,
|
const wxAuiToolBarItem& item,
|
||||||
const wxRect& rect);
|
const wxRect& rect) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DrawControlLabel(
|
virtual void DrawControlLabel(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxAuiToolBarItem& item,
|
const wxAuiToolBarItem& item,
|
||||||
const wxRect& rect);
|
const wxRect& rect) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DrawSeparator(
|
virtual void DrawSeparator(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxRect& rect);
|
const wxRect& rect) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DrawGripper(
|
virtual void DrawGripper(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxRect& rect);
|
const wxRect& rect) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DrawOverflowButton(
|
virtual void DrawOverflowButton(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxRect& rect,
|
const wxRect& rect,
|
||||||
int state);
|
int state) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxSize GetLabelSize(
|
virtual wxSize GetLabelSize(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxAuiToolBarItem& item);
|
const wxAuiToolBarItem& item) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxSize GetToolSize(
|
virtual wxSize GetToolSize(
|
||||||
wxDC& dc,
|
wxDC& dc,
|
||||||
wxWindow* wnd,
|
wxWindow* wnd,
|
||||||
const wxAuiToolBarItem& item);
|
const wxAuiToolBarItem& item) wxOVERRIDE;
|
||||||
|
|
||||||
virtual int GetElementSize(int element);
|
virtual int GetElementSize(int element) wxOVERRIDE;
|
||||||
virtual void SetElementSize(int elementId, int size);
|
virtual void SetElementSize(int elementId, int size) wxOVERRIDE;
|
||||||
|
|
||||||
virtual int ShowDropDown(wxWindow* wnd,
|
virtual int ShowDropDown(wxWindow* wnd,
|
||||||
const wxAuiToolBarItemArray& items);
|
const wxAuiToolBarItemArray& items) wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
@@ -475,12 +475,12 @@ public:
|
|||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
long style = wxAUI_TB_DEFAULT_STYLE);
|
long style = wxAUI_TB_DEFAULT_STYLE);
|
||||||
|
|
||||||
virtual void SetWindowStyleFlag(long style);
|
virtual void SetWindowStyleFlag(long style) wxOVERRIDE;
|
||||||
|
|
||||||
void SetArtProvider(wxAuiToolBarArt* art);
|
void SetArtProvider(wxAuiToolBarArt* art);
|
||||||
wxAuiToolBarArt* GetArtProvider() const;
|
wxAuiToolBarArt* GetArtProvider() const;
|
||||||
|
|
||||||
bool SetFont(const wxFont& font);
|
bool SetFont(const wxFont& font) wxOVERRIDE;
|
||||||
|
|
||||||
|
|
||||||
wxAuiToolBarItem* AddTool(int toolId,
|
wxAuiToolBarItem* AddTool(int toolId,
|
||||||
@@ -605,7 +605,7 @@ public:
|
|||||||
bool IsPaneValid(const wxAuiPaneInfo& pane) const;
|
bool IsPaneValid(const wxAuiPaneInfo& pane) const;
|
||||||
|
|
||||||
// Override to call DoIdleUpdate().
|
// Override to call DoIdleUpdate().
|
||||||
virtual void UpdateWindowUI(long flags = wxUPDATE_UI_NONE);
|
virtual void UpdateWindowUI(long flags = wxUPDATE_UI_NONE) wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void Init();
|
void Init();
|
||||||
@@ -631,7 +631,7 @@ protected:
|
|||||||
int y,
|
int y,
|
||||||
int width,
|
int width,
|
||||||
int height,
|
int height,
|
||||||
int sizeFlags = wxSIZE_AUTO);
|
int sizeFlags = wxSIZE_AUTO) wxOVERRIDE;
|
||||||
|
|
||||||
protected: // handlers
|
protected: // handlers
|
||||||
|
|
||||||
|
@@ -65,7 +65,7 @@ public:
|
|||||||
wxMenu* GetWindowMenu() const { return m_pWindowMenu; }
|
wxMenu* GetWindowMenu() const { return m_pWindowMenu; }
|
||||||
void SetWindowMenu(wxMenu* pMenu);
|
void SetWindowMenu(wxMenu* pMenu);
|
||||||
|
|
||||||
virtual void SetMenuBar(wxMenuBar *pMenuBar);
|
virtual void SetMenuBar(wxMenuBar *pMenuBar) wxOVERRIDE;
|
||||||
#endif // wxUSE_MENUS
|
#endif // wxUSE_MENUS
|
||||||
|
|
||||||
void SetChildMenuBar(wxAuiMDIChildFrame *pChild);
|
void SetChildMenuBar(wxAuiMDIChildFrame *pChild);
|
||||||
@@ -102,9 +102,9 @@ protected:
|
|||||||
void DoHandleUpdateUI(wxUpdateUIEvent &event);
|
void DoHandleUpdateUI(wxUpdateUIEvent &event);
|
||||||
#endif // wxUSE_MENUS
|
#endif // wxUSE_MENUS
|
||||||
|
|
||||||
virtual bool ProcessEvent(wxEvent& event);
|
virtual bool ProcessEvent(wxEvent& event) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoGetClientSize(int *width, int *height) const;
|
virtual void DoGetClientSize(int *width, int *height) const wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxDECLARE_EVENT_TABLE();
|
wxDECLARE_EVENT_TABLE();
|
||||||
@@ -151,9 +151,9 @@ public:
|
|||||||
virtual const wxIcon& GetIcon() const;
|
virtual const wxIcon& GetIcon() const;
|
||||||
|
|
||||||
virtual void Activate();
|
virtual void Activate();
|
||||||
virtual bool Destroy();
|
virtual bool Destroy() wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool Show(bool show = true);
|
virtual bool Show(bool show = true) wxOVERRIDE;
|
||||||
|
|
||||||
#if wxUSE_STATUSBAR
|
#if wxUSE_STATUSBAR
|
||||||
// no status bars
|
// no status bars
|
||||||
@@ -187,7 +187,7 @@ public:
|
|||||||
virtual bool ShowFullScreen(bool WXUNUSED(show), long WXUNUSED(style)) { return false; }
|
virtual bool ShowFullScreen(bool WXUNUSED(show), long WXUNUSED(style)) { return false; }
|
||||||
virtual bool IsFullScreen() const { return false; }
|
virtual bool IsFullScreen() const { return false; }
|
||||||
|
|
||||||
virtual bool IsTopLevel() const { return false; }
|
virtual bool IsTopLevel() const wxOVERRIDE { return false; }
|
||||||
|
|
||||||
void OnMenuHighlight(wxMenuEvent& evt);
|
void OnMenuHighlight(wxMenuEvent& evt);
|
||||||
void OnActivate(wxActivateEvent& evt);
|
void OnActivate(wxActivateEvent& evt);
|
||||||
@@ -198,13 +198,13 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
void Init();
|
void Init();
|
||||||
virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags);
|
virtual void DoSetSize(int x, int y, int width, int height, int sizeFlags) wxOVERRIDE;
|
||||||
virtual void DoMoveWindow(int x, int y, int width, int height);
|
virtual void DoMoveWindow(int x, int y, int width, int height) wxOVERRIDE;
|
||||||
|
|
||||||
// no size hints
|
// no size hints
|
||||||
virtual void DoSetSizeHints(int WXUNUSED(minW), int WXUNUSED(minH),
|
virtual void DoSetSizeHints(int WXUNUSED(minW), int WXUNUSED(minH),
|
||||||
int WXUNUSED(maxW), int WXUNUSED(maxH),
|
int WXUNUSED(maxW), int WXUNUSED(maxH),
|
||||||
int WXUNUSED(incW), int WXUNUSED(incH)) {}
|
int WXUNUSED(incW), int WXUNUSED(incH)) wxOVERRIDE {}
|
||||||
public:
|
public:
|
||||||
// This function needs to be called when a size change is confirmed,
|
// This function needs to be called when a size change is confirmed,
|
||||||
// we needed this function to prevent anybody from the outside
|
// we needed this function to prevent anybody from the outside
|
||||||
@@ -247,7 +247,7 @@ public:
|
|||||||
virtual bool CreateClient(wxAuiMDIParentFrame *parent,
|
virtual bool CreateClient(wxAuiMDIParentFrame *parent,
|
||||||
long style = wxVSCROLL | wxHSCROLL);
|
long style = wxVSCROLL | wxHSCROLL);
|
||||||
|
|
||||||
virtual int SetSelection(size_t page);
|
virtual int SetSelection(size_t page) wxOVERRIDE;
|
||||||
virtual wxAuiMDIChildFrame* GetActiveChild();
|
virtual wxAuiMDIChildFrame* GetActiveChild();
|
||||||
virtual void SetActiveChild(wxAuiMDIChildFrame* pChildFrame)
|
virtual void SetActiveChild(wxAuiMDIChildFrame* pChildFrame)
|
||||||
{
|
{
|
||||||
|
@@ -53,8 +53,8 @@ public:
|
|||||||
// but still make it pure virtual because for some platforms it's not
|
// but still make it pure virtual because for some platforms it's not
|
||||||
// implemented there and also because the derived class has to override
|
// implemented there and also because the derived class has to override
|
||||||
// it anyhow to avoid ambiguity with the other GetSelection()
|
// it anyhow to avoid ambiguity with the other GetSelection()
|
||||||
virtual int GetSelection() const = 0;
|
virtual int GetSelection() const wxOVERRIDE = 0;
|
||||||
virtual void GetSelection(long *from, long *to) const = 0;
|
virtual void GetSelection(long *from, long *to) const wxOVERRIDE = 0;
|
||||||
|
|
||||||
virtual void Popup() { wxFAIL_MSG( wxT("Not implemented") ); }
|
virtual void Popup() { wxFAIL_MSG( wxT("Not implemented") ); }
|
||||||
virtual void Dismiss() { wxFAIL_MSG( wxT("Not implemented") ); }
|
virtual void Dismiss() { wxFAIL_MSG( wxT("Not implemented") ); }
|
||||||
|
@@ -36,8 +36,8 @@ public:
|
|||||||
wxGCDC();
|
wxGCDC();
|
||||||
virtual ~wxGCDC();
|
virtual ~wxGCDC();
|
||||||
|
|
||||||
wxGraphicsContext* GetGraphicsContext() const;
|
wxGraphicsContext* GetGraphicsContext() const wxOVERRIDE;
|
||||||
void SetGraphicsContext( wxGraphicsContext* ctx );
|
void SetGraphicsContext( wxGraphicsContext* ctx ) wxOVERRIDE;
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
// override wxDC virtual functions to provide access to HDC associated with
|
// override wxDC virtual functions to provide access to HDC associated with
|
||||||
@@ -70,100 +70,100 @@ public:
|
|||||||
// implement base class pure virtuals
|
// implement base class pure virtuals
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
|
|
||||||
virtual void Clear();
|
virtual void Clear() wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool StartDoc( const wxString& message );
|
virtual bool StartDoc( const wxString& message ) wxOVERRIDE;
|
||||||
virtual void EndDoc();
|
virtual void EndDoc() wxOVERRIDE;
|
||||||
|
|
||||||
virtual void StartPage();
|
virtual void StartPage() wxOVERRIDE;
|
||||||
virtual void EndPage();
|
virtual void EndPage() wxOVERRIDE;
|
||||||
|
|
||||||
// flushing the content of this dc immediately onto screen
|
// flushing the content of this dc immediately onto screen
|
||||||
virtual void Flush();
|
virtual void Flush() wxOVERRIDE;
|
||||||
|
|
||||||
virtual void SetFont(const wxFont& font);
|
virtual void SetFont(const wxFont& font) wxOVERRIDE;
|
||||||
virtual void SetPen(const wxPen& pen);
|
virtual void SetPen(const wxPen& pen) wxOVERRIDE;
|
||||||
virtual void SetBrush(const wxBrush& brush);
|
virtual void SetBrush(const wxBrush& brush) wxOVERRIDE;
|
||||||
virtual void SetBackground(const wxBrush& brush);
|
virtual void SetBackground(const wxBrush& brush) wxOVERRIDE;
|
||||||
virtual void SetBackgroundMode(int mode);
|
virtual void SetBackgroundMode(int mode) wxOVERRIDE;
|
||||||
virtual void SetPalette(const wxPalette& palette);
|
virtual void SetPalette(const wxPalette& palette) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DestroyClippingRegion();
|
virtual void DestroyClippingRegion() wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxCoord GetCharHeight() const;
|
virtual wxCoord GetCharHeight() const wxOVERRIDE;
|
||||||
virtual wxCoord GetCharWidth() const;
|
virtual wxCoord GetCharWidth() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool CanDrawBitmap() const;
|
virtual bool CanDrawBitmap() const wxOVERRIDE;
|
||||||
virtual bool CanGetTextExtent() const;
|
virtual bool CanGetTextExtent() const wxOVERRIDE;
|
||||||
virtual int GetDepth() const;
|
virtual int GetDepth() const wxOVERRIDE;
|
||||||
virtual wxSize GetPPI() const;
|
virtual wxSize GetPPI() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual void SetLogicalFunction(wxRasterOperationMode function);
|
virtual void SetLogicalFunction(wxRasterOperationMode function) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void SetTextForeground(const wxColour& colour);
|
virtual void SetTextForeground(const wxColour& colour) wxOVERRIDE;
|
||||||
virtual void SetTextBackground(const wxColour& colour);
|
virtual void SetTextBackground(const wxColour& colour) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void ComputeScaleAndOrigin();
|
virtual void ComputeScaleAndOrigin() wxOVERRIDE;
|
||||||
|
|
||||||
wxGraphicsContext* GetGraphicsContext() const { return m_graphicContext; }
|
wxGraphicsContext* GetGraphicsContext() const wxOVERRIDE { return m_graphicContext; }
|
||||||
virtual void SetGraphicsContext( wxGraphicsContext* ctx );
|
virtual void SetGraphicsContext( wxGraphicsContext* ctx ) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void* GetHandle() const;
|
virtual void* GetHandle() const wxOVERRIDE;
|
||||||
|
|
||||||
// the true implementations
|
// the true implementations
|
||||||
virtual bool DoFloodFill(wxCoord x, wxCoord y, const wxColour& col,
|
virtual bool DoFloodFill(wxCoord x, wxCoord y, const wxColour& col,
|
||||||
wxFloodFillStyle style = wxFLOOD_SURFACE);
|
wxFloodFillStyle style = wxFLOOD_SURFACE) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoGradientFillLinear(const wxRect& rect,
|
virtual void DoGradientFillLinear(const wxRect& rect,
|
||||||
const wxColour& initialColour,
|
const wxColour& initialColour,
|
||||||
const wxColour& destColour,
|
const wxColour& destColour,
|
||||||
wxDirection nDirection = wxEAST);
|
wxDirection nDirection = wxEAST) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoGradientFillConcentric(const wxRect& rect,
|
virtual void DoGradientFillConcentric(const wxRect& rect,
|
||||||
const wxColour& initialColour,
|
const wxColour& initialColour,
|
||||||
const wxColour& destColour,
|
const wxColour& destColour,
|
||||||
const wxPoint& circleCenter);
|
const wxPoint& circleCenter) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool DoGetPixel(wxCoord x, wxCoord y, wxColour *col) const;
|
virtual bool DoGetPixel(wxCoord x, wxCoord y, wxColour *col) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoDrawPoint(wxCoord x, wxCoord y);
|
virtual void DoDrawPoint(wxCoord x, wxCoord y) wxOVERRIDE;
|
||||||
|
|
||||||
#if wxUSE_SPLINES
|
#if wxUSE_SPLINES
|
||||||
virtual void DoDrawSpline(const wxPointList *points);
|
virtual void DoDrawSpline(const wxPointList *points) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
virtual void DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2);
|
virtual void DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoDrawArc(wxCoord x1, wxCoord y1,
|
virtual void DoDrawArc(wxCoord x1, wxCoord y1,
|
||||||
wxCoord x2, wxCoord y2,
|
wxCoord x2, wxCoord y2,
|
||||||
wxCoord xc, wxCoord yc);
|
wxCoord xc, wxCoord yc) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoDrawCheckMark(wxCoord x, wxCoord y,
|
virtual void DoDrawCheckMark(wxCoord x, wxCoord y,
|
||||||
wxCoord width, wxCoord height);
|
wxCoord width, wxCoord height) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoDrawEllipticArc(wxCoord x, wxCoord y, wxCoord w, wxCoord h,
|
virtual void DoDrawEllipticArc(wxCoord x, wxCoord y, wxCoord w, wxCoord h,
|
||||||
double sa, double ea);
|
double sa, double ea) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
virtual void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE;
|
||||||
virtual void DoDrawRoundedRectangle(wxCoord x, wxCoord y,
|
virtual void DoDrawRoundedRectangle(wxCoord x, wxCoord y,
|
||||||
wxCoord width, wxCoord height,
|
wxCoord width, wxCoord height,
|
||||||
double radius);
|
double radius) wxOVERRIDE;
|
||||||
virtual void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
virtual void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord width, wxCoord height) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoCrossHair(wxCoord x, wxCoord y);
|
virtual void DoCrossHair(wxCoord x, wxCoord y) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y);
|
virtual void DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y) wxOVERRIDE;
|
||||||
virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
|
virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
|
||||||
bool useMask = false);
|
bool useMask = false) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoDrawText(const wxString& text, wxCoord x, wxCoord y);
|
virtual void DoDrawText(const wxString& text, wxCoord x, wxCoord y) wxOVERRIDE;
|
||||||
virtual void DoDrawRotatedText(const wxString& text, wxCoord x, wxCoord y,
|
virtual void DoDrawRotatedText(const wxString& text, wxCoord x, wxCoord y,
|
||||||
double angle);
|
double angle) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height,
|
virtual bool DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height,
|
||||||
wxDC *source, wxCoord xsrc, wxCoord ysrc,
|
wxDC *source, wxCoord xsrc, wxCoord ysrc,
|
||||||
wxRasterOperationMode rop = wxCOPY, bool useMask = false,
|
wxRasterOperationMode rop = wxCOPY, bool useMask = false,
|
||||||
wxCoord xsrcMask = -1, wxCoord ysrcMask = -1);
|
wxCoord xsrcMask = -1, wxCoord ysrcMask = -1) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool DoStretchBlit(wxCoord xdest, wxCoord ydest,
|
virtual bool DoStretchBlit(wxCoord xdest, wxCoord ydest,
|
||||||
wxCoord dstWidth, wxCoord dstHeight,
|
wxCoord dstWidth, wxCoord dstHeight,
|
||||||
@@ -171,31 +171,31 @@ public:
|
|||||||
wxCoord xsrc, wxCoord ysrc,
|
wxCoord xsrc, wxCoord ysrc,
|
||||||
wxCoord srcWidth, wxCoord srcHeight,
|
wxCoord srcWidth, wxCoord srcHeight,
|
||||||
wxRasterOperationMode = wxCOPY, bool useMask = false,
|
wxRasterOperationMode = wxCOPY, bool useMask = false,
|
||||||
wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord);
|
wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoGetSize(int *,int *) const;
|
virtual void DoGetSize(int *,int *) const wxOVERRIDE;
|
||||||
virtual void DoGetSizeMM(int* width, int* height) const;
|
virtual void DoGetSizeMM(int* width, int* height) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoDrawLines(int n, const wxPoint points[],
|
virtual void DoDrawLines(int n, const wxPoint points[],
|
||||||
wxCoord xoffset, wxCoord yoffset);
|
wxCoord xoffset, wxCoord yoffset) wxOVERRIDE;
|
||||||
virtual void DoDrawPolygon(int n, const wxPoint points[],
|
virtual void DoDrawPolygon(int n, const wxPoint points[],
|
||||||
wxCoord xoffset, wxCoord yoffset,
|
wxCoord xoffset, wxCoord yoffset,
|
||||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE);
|
wxPolygonFillMode fillStyle = wxODDEVEN_RULE) wxOVERRIDE;
|
||||||
virtual void DoDrawPolyPolygon(int n, const int count[], const wxPoint points[],
|
virtual void DoDrawPolyPolygon(int n, const int count[], const wxPoint points[],
|
||||||
wxCoord xoffset, wxCoord yoffset,
|
wxCoord xoffset, wxCoord yoffset,
|
||||||
wxPolygonFillMode fillStyle);
|
wxPolygonFillMode fillStyle) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoSetDeviceClippingRegion(const wxRegion& region);
|
virtual void DoSetDeviceClippingRegion(const wxRegion& region) wxOVERRIDE;
|
||||||
virtual void DoSetClippingRegion(wxCoord x, wxCoord y,
|
virtual void DoSetClippingRegion(wxCoord x, wxCoord y,
|
||||||
wxCoord width, wxCoord height);
|
wxCoord width, wxCoord height) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoGetTextExtent(const wxString& string,
|
virtual void DoGetTextExtent(const wxString& string,
|
||||||
wxCoord *x, wxCoord *y,
|
wxCoord *x, wxCoord *y,
|
||||||
wxCoord *descent = NULL,
|
wxCoord *descent = NULL,
|
||||||
wxCoord *externalLeading = NULL,
|
wxCoord *externalLeading = NULL,
|
||||||
const wxFont *theFont = NULL) const;
|
const wxFont *theFont = NULL) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool DoGetPartialTextExtents(const wxString& text, wxArrayInt& widths) const;
|
virtual bool DoGetPartialTextExtents(const wxString& text, wxArrayInt& widths) const wxOVERRIDE;
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
virtual wxRect MSWApplyGDIPlusTransform(const wxRect& r) const;
|
virtual wxRect MSWApplyGDIPlusTransform(const wxRect& r) const;
|
||||||
|
@@ -305,12 +305,12 @@ public:
|
|||||||
|
|
||||||
// Override the base class virtual method to simply store the attribute so
|
// Override the base class virtual method to simply store the attribute so
|
||||||
// that it can be accessed using GetAttr() from Render() if needed.
|
// that it can be accessed using GetAttr() from Render() if needed.
|
||||||
virtual void SetAttr(const wxDataViewItemAttr& attr) { m_attr = attr; }
|
virtual void SetAttr(const wxDataViewItemAttr& attr) wxOVERRIDE { m_attr = attr; }
|
||||||
const wxDataViewItemAttr& GetAttr() const { return m_attr; }
|
const wxDataViewItemAttr& GetAttr() const { return m_attr; }
|
||||||
|
|
||||||
// Store the enabled state of the item so that it can be accessed from
|
// Store the enabled state of the item so that it can be accessed from
|
||||||
// Render() via GetEnabled() if needed.
|
// Render() via GetEnabled() if needed.
|
||||||
virtual void SetEnabled(bool enabled);
|
virtual void SetEnabled(bool enabled) wxOVERRIDE;
|
||||||
bool GetEnabled() const { return m_enabled; }
|
bool GetEnabled() const { return m_enabled; }
|
||||||
|
|
||||||
|
|
||||||
@@ -326,7 +326,7 @@ public:
|
|||||||
// Prepare DC to use attributes and call Render().
|
// Prepare DC to use attributes and call Render().
|
||||||
void WXCallRender(wxRect rect, wxDC *dc, int state);
|
void WXCallRender(wxRect rect, wxDC *dc, int state);
|
||||||
|
|
||||||
virtual bool IsCustomRenderer() const { return true; }
|
virtual bool IsCustomRenderer() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// helper for GetSize() implementations, respects attributes
|
// helper for GetSize() implementations, respects attributes
|
||||||
@@ -368,13 +368,13 @@ public:
|
|||||||
wxDataViewSpinRenderer( int min, int max,
|
wxDataViewSpinRenderer( int min, int max,
|
||||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE,
|
wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE,
|
||||||
int alignment = wxDVR_DEFAULT_ALIGNMENT );
|
int alignment = wxDVR_DEFAULT_ALIGNMENT );
|
||||||
virtual bool HasEditorCtrl() const { return true; }
|
virtual bool HasEditorCtrl() const wxOVERRIDE { return true; }
|
||||||
virtual wxWindow* CreateEditorCtrl( wxWindow *parent, wxRect labelRect, const wxVariant &value );
|
virtual wxWindow* CreateEditorCtrl( wxWindow *parent, wxRect labelRect, const wxVariant &value ) wxOVERRIDE;
|
||||||
virtual bool GetValueFromEditorCtrl( wxWindow* editor, wxVariant &value );
|
virtual bool GetValueFromEditorCtrl( wxWindow* editor, wxVariant &value ) wxOVERRIDE;
|
||||||
virtual bool Render( wxRect rect, wxDC *dc, int state );
|
virtual bool Render( wxRect rect, wxDC *dc, int state ) wxOVERRIDE;
|
||||||
virtual wxSize GetSize() const;
|
virtual wxSize GetSize() const wxOVERRIDE;
|
||||||
virtual bool SetValue( const wxVariant &value );
|
virtual bool SetValue( const wxVariant &value ) wxOVERRIDE;
|
||||||
virtual bool GetValue( wxVariant &value ) const;
|
virtual bool GetValue( wxVariant &value ) const wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long m_data;
|
long m_data;
|
||||||
@@ -446,13 +446,13 @@ public:
|
|||||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE,
|
wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE,
|
||||||
int align = wxDVR_DEFAULT_ALIGNMENT);
|
int align = wxDVR_DEFAULT_ALIGNMENT);
|
||||||
|
|
||||||
virtual bool HasEditorCtrl() const { return true; }
|
virtual bool HasEditorCtrl() const wxOVERRIDE { return true; }
|
||||||
virtual wxWindow *CreateEditorCtrl(wxWindow *parent, wxRect labelRect, const wxVariant &value);
|
virtual wxWindow *CreateEditorCtrl(wxWindow *parent, wxRect labelRect, const wxVariant &value) wxOVERRIDE;
|
||||||
virtual bool GetValueFromEditorCtrl(wxWindow* editor, wxVariant &value);
|
virtual bool GetValueFromEditorCtrl(wxWindow* editor, wxVariant &value) wxOVERRIDE;
|
||||||
virtual bool SetValue(const wxVariant &value);
|
virtual bool SetValue(const wxVariant &value) wxOVERRIDE;
|
||||||
virtual bool GetValue(wxVariant& value) const;
|
virtual bool GetValue(wxVariant& value) const wxOVERRIDE;
|
||||||
virtual bool Render( wxRect cell, wxDC *dc, int state );
|
virtual bool Render( wxRect cell, wxDC *dc, int state ) wxOVERRIDE;
|
||||||
virtual wxSize GetSize() const;
|
virtual wxSize GetSize() const wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxDateTime m_date;
|
wxDateTime m_date;
|
||||||
|
@@ -46,22 +46,22 @@ public:
|
|||||||
|
|
||||||
virtual ~wxGenericCalendarCtrl();
|
virtual ~wxGenericCalendarCtrl();
|
||||||
|
|
||||||
virtual bool Destroy();
|
virtual bool Destroy() wxOVERRIDE;
|
||||||
|
|
||||||
// set/get the current date
|
// set/get the current date
|
||||||
// ------------------------
|
// ------------------------
|
||||||
|
|
||||||
virtual bool SetDate(const wxDateTime& date);
|
virtual bool SetDate(const wxDateTime& date) wxOVERRIDE;
|
||||||
virtual wxDateTime GetDate() const { return m_date; }
|
virtual wxDateTime GetDate() const wxOVERRIDE { return m_date; }
|
||||||
|
|
||||||
|
|
||||||
// set/get the range in which selection can occur
|
// set/get the range in which selection can occur
|
||||||
// ---------------------------------------------
|
// ---------------------------------------------
|
||||||
|
|
||||||
virtual bool SetDateRange(const wxDateTime& lowerdate = wxDefaultDateTime,
|
virtual bool SetDateRange(const wxDateTime& lowerdate = wxDefaultDateTime,
|
||||||
const wxDateTime& upperdate = wxDefaultDateTime);
|
const wxDateTime& upperdate = wxDefaultDateTime) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool GetDateRange(wxDateTime *lowerdate, wxDateTime *upperdate) const;
|
virtual bool GetDateRange(wxDateTime *lowerdate, wxDateTime *upperdate) const wxOVERRIDE;
|
||||||
|
|
||||||
// these functions are for generic version only, don't use them but use the
|
// these functions are for generic version only, don't use them but use the
|
||||||
// Set/GetDateRange() above instead
|
// Set/GetDateRange() above instead
|
||||||
@@ -79,7 +79,7 @@ public:
|
|||||||
// should be used instead for them
|
// should be used instead for them
|
||||||
|
|
||||||
// corresponds to wxCAL_NO_MONTH_CHANGE bit
|
// corresponds to wxCAL_NO_MONTH_CHANGE bit
|
||||||
virtual bool EnableMonthChange(bool enable = true);
|
virtual bool EnableMonthChange(bool enable = true) wxOVERRIDE;
|
||||||
|
|
||||||
// corresponds to wxCAL_NO_YEAR_CHANGE bit, deprecated, generic only
|
// corresponds to wxCAL_NO_YEAR_CHANGE bit, deprecated, generic only
|
||||||
void EnableYearChange(bool enable = true);
|
void EnableYearChange(bool enable = true);
|
||||||
@@ -88,48 +88,48 @@ public:
|
|||||||
// customization
|
// customization
|
||||||
// -------------
|
// -------------
|
||||||
|
|
||||||
virtual void Mark(size_t day, bool mark);
|
virtual void Mark(size_t day, bool mark) wxOVERRIDE;
|
||||||
|
|
||||||
// all other functions in this section are for generic version only
|
// all other functions in this section are for generic version only
|
||||||
|
|
||||||
// header colours are used for painting the weekdays at the top
|
// header colours are used for painting the weekdays at the top
|
||||||
virtual void SetHeaderColours(const wxColour& colFg, const wxColour& colBg)
|
virtual void SetHeaderColours(const wxColour& colFg, const wxColour& colBg) wxOVERRIDE
|
||||||
{
|
{
|
||||||
m_colHeaderFg = colFg;
|
m_colHeaderFg = colFg;
|
||||||
m_colHeaderBg = colBg;
|
m_colHeaderBg = colBg;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual const wxColour& GetHeaderColourFg() const { return m_colHeaderFg; }
|
virtual const wxColour& GetHeaderColourFg() const wxOVERRIDE { return m_colHeaderFg; }
|
||||||
virtual const wxColour& GetHeaderColourBg() const { return m_colHeaderBg; }
|
virtual const wxColour& GetHeaderColourBg() const wxOVERRIDE { return m_colHeaderBg; }
|
||||||
|
|
||||||
// highlight colour is used for the currently selected date
|
// highlight colour is used for the currently selected date
|
||||||
virtual void SetHighlightColours(const wxColour& colFg, const wxColour& colBg)
|
virtual void SetHighlightColours(const wxColour& colFg, const wxColour& colBg) wxOVERRIDE
|
||||||
{
|
{
|
||||||
m_colHighlightFg = colFg;
|
m_colHighlightFg = colFg;
|
||||||
m_colHighlightBg = colBg;
|
m_colHighlightBg = colBg;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual const wxColour& GetHighlightColourFg() const { return m_colHighlightFg; }
|
virtual const wxColour& GetHighlightColourFg() const wxOVERRIDE { return m_colHighlightFg; }
|
||||||
virtual const wxColour& GetHighlightColourBg() const { return m_colHighlightBg; }
|
virtual const wxColour& GetHighlightColourBg() const wxOVERRIDE { return m_colHighlightBg; }
|
||||||
|
|
||||||
// holiday colour is used for the holidays (if style & wxCAL_SHOW_HOLIDAYS)
|
// holiday colour is used for the holidays (if style & wxCAL_SHOW_HOLIDAYS)
|
||||||
virtual void SetHolidayColours(const wxColour& colFg, const wxColour& colBg)
|
virtual void SetHolidayColours(const wxColour& colFg, const wxColour& colBg) wxOVERRIDE
|
||||||
{
|
{
|
||||||
m_colHolidayFg = colFg;
|
m_colHolidayFg = colFg;
|
||||||
m_colHolidayBg = colBg;
|
m_colHolidayBg = colBg;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual const wxColour& GetHolidayColourFg() const { return m_colHolidayFg; }
|
virtual const wxColour& GetHolidayColourFg() const wxOVERRIDE { return m_colHolidayFg; }
|
||||||
virtual const wxColour& GetHolidayColourBg() const { return m_colHolidayBg; }
|
virtual const wxColour& GetHolidayColourBg() const wxOVERRIDE { return m_colHolidayBg; }
|
||||||
|
|
||||||
virtual wxCalendarDateAttr *GetAttr(size_t day) const
|
virtual wxCalendarDateAttr *GetAttr(size_t day) const wxOVERRIDE
|
||||||
{
|
{
|
||||||
wxCHECK_MSG( day > 0 && day < 32, NULL, wxT("invalid day") );
|
wxCHECK_MSG( day > 0 && day < 32, NULL, wxT("invalid day") );
|
||||||
|
|
||||||
return m_attrs[day - 1];
|
return m_attrs[day - 1];
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void SetAttr(size_t day, wxCalendarDateAttr *attr)
|
virtual void SetAttr(size_t day, wxCalendarDateAttr *attr) wxOVERRIDE
|
||||||
{
|
{
|
||||||
wxCHECK_RET( day > 0 && day < 32, wxT("invalid day") );
|
wxCHECK_RET( day > 0 && day < 32, wxT("invalid day") );
|
||||||
|
|
||||||
@@ -137,24 +137,24 @@ public:
|
|||||||
m_attrs[day - 1] = attr;
|
m_attrs[day - 1] = attr;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void ResetAttr(size_t day) { SetAttr(day, NULL); }
|
virtual void ResetAttr(size_t day) wxOVERRIDE { SetAttr(day, NULL); }
|
||||||
|
|
||||||
virtual void SetHoliday(size_t day);
|
virtual void SetHoliday(size_t day) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxCalendarHitTestResult HitTest(const wxPoint& pos,
|
virtual wxCalendarHitTestResult HitTest(const wxPoint& pos,
|
||||||
wxDateTime *date = NULL,
|
wxDateTime *date = NULL,
|
||||||
wxDateTime::WeekDay *wd = NULL);
|
wxDateTime::WeekDay *wd = NULL) wxOVERRIDE;
|
||||||
|
|
||||||
// implementation only from now on
|
// implementation only 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 void SetWindowStyleFlag(long style);
|
virtual void SetWindowStyleFlag(long style) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxVisualAttributes GetDefaultAttributes() const
|
virtual wxVisualAttributes GetDefaultAttributes() const wxOVERRIDE
|
||||||
{ return GetClassDefaultAttributes(GetWindowVariant()); }
|
{ return GetClassDefaultAttributes(GetWindowVariant()); }
|
||||||
|
|
||||||
static wxVisualAttributes
|
static wxVisualAttributes
|
||||||
@@ -164,9 +164,9 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
// override some base class virtuals
|
// override some base class virtuals
|
||||||
virtual wxSize DoGetBestSize() const;
|
virtual wxSize DoGetBestSize() 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;
|
||||||
virtual void DoGetSize(int *width, int *height) const;
|
virtual void DoGetSize(int *width, int *height) const wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// common part of all ctors
|
// common part of all ctors
|
||||||
@@ -248,8 +248,8 @@ public:
|
|||||||
wxControl *GetYearControl() const;
|
wxControl *GetYearControl() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void ResetHolidayAttrs();
|
virtual void ResetHolidayAttrs() wxOVERRIDE;
|
||||||
virtual void RefreshHolidays() { Refresh(); }
|
virtual void RefreshHolidays() wxOVERRIDE { Refresh(); }
|
||||||
|
|
||||||
// OnPaint helper-methods
|
// OnPaint helper-methods
|
||||||
|
|
||||||
|
@@ -279,13 +279,13 @@ public:
|
|||||||
wxArrayInt GetSelections() const { return m_selections; }
|
wxArrayInt GetSelections() const { return m_selections; }
|
||||||
|
|
||||||
// implementation from now on
|
// implementation from now on
|
||||||
virtual bool TransferDataFromWindow();
|
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
#if wxUSE_CHECKLISTBOX
|
#if wxUSE_CHECKLISTBOX
|
||||||
virtual wxListBoxBase *CreateList(int n,
|
virtual wxListBoxBase *CreateList(int n,
|
||||||
const wxString *choices,
|
const wxString *choices,
|
||||||
long styleLbox);
|
long styleLbox) wxOVERRIDE;
|
||||||
#endif // wxUSE_CHECKLISTBOX
|
#endif // wxUSE_CHECKLISTBOX
|
||||||
|
|
||||||
wxArrayInt m_selections;
|
wxArrayInt m_selections;
|
||||||
|
@@ -68,7 +68,7 @@ public:
|
|||||||
|
|
||||||
void SetCustomPaintWidth( int width );
|
void SetCustomPaintWidth( int width );
|
||||||
|
|
||||||
virtual bool IsKeyPopupToggle(const wxKeyEvent& event) const;
|
virtual bool IsKeyPopupToggle(const wxKeyEvent& event) const wxOVERRIDE;
|
||||||
|
|
||||||
static int GetFeatures() { return wxComboCtrlFeatures::All; }
|
static int GetFeatures() { return wxComboCtrlFeatures::All; }
|
||||||
|
|
||||||
@@ -88,15 +88,15 @@ protected:
|
|||||||
virtual WXWidget GetTextWidget() const { return NULL; }
|
virtual WXWidget GetTextWidget() const { return NULL; }
|
||||||
#elif defined(__WXGTK__)
|
#elif defined(__WXGTK__)
|
||||||
#if defined(__WXGTK20__)
|
#if defined(__WXGTK20__)
|
||||||
virtual GtkEditable *GetEditable() const { return NULL; }
|
virtual GtkEditable *GetEditable() const wxOVERRIDE { return NULL; }
|
||||||
virtual GtkEntry *GetEntry() const { return NULL; }
|
virtual GtkEntry *GetEntry() const wxOVERRIDE { return NULL; }
|
||||||
#endif
|
#endif
|
||||||
#elif defined(__WXMAC__)
|
#elif defined(__WXMAC__)
|
||||||
// Looks like there's nothing we need to override here
|
// Looks like there's nothing we need to override here
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// For better transparent background rendering
|
// For better transparent background rendering
|
||||||
virtual bool HasTransparentBackground()
|
virtual bool HasTransparentBackground() wxOVERRIDE
|
||||||
{
|
{
|
||||||
#if wxALWAYS_NATIVE_DOUBLE_BUFFER
|
#if wxALWAYS_NATIVE_DOUBLE_BUFFER
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
@@ -111,7 +111,7 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Mandatory virtuals
|
// Mandatory virtuals
|
||||||
virtual void OnResize();
|
virtual void OnResize() wxOVERRIDE;
|
||||||
|
|
||||||
// Event handlers
|
// Event handlers
|
||||||
void OnPaintEvent( wxPaintEvent& event );
|
void OnPaintEvent( wxPaintEvent& event );
|
||||||
|
@@ -49,11 +49,11 @@ public:
|
|||||||
const wxString& name = wxDatePickerCtrlNameStr);
|
const wxString& name = wxDatePickerCtrlNameStr);
|
||||||
|
|
||||||
// wxDatePickerCtrl methods
|
// wxDatePickerCtrl methods
|
||||||
void SetValue(const wxDateTime& date);
|
void SetValue(const wxDateTime& date) wxOVERRIDE;
|
||||||
wxDateTime GetValue() const;
|
wxDateTime GetValue() const wxOVERRIDE;
|
||||||
|
|
||||||
bool GetRange(wxDateTime *dt1, wxDateTime *dt2) const;
|
bool GetRange(wxDateTime *dt1, wxDateTime *dt2) const wxOVERRIDE;
|
||||||
void SetRange(const wxDateTime &dt1, const wxDateTime &dt2);
|
void SetRange(const wxDateTime &dt1, const wxDateTime &dt2) wxOVERRIDE;
|
||||||
|
|
||||||
bool SetDateRange(const wxDateTime& lowerdate = wxDefaultDateTime,
|
bool SetDateRange(const wxDateTime& lowerdate = wxDefaultDateTime,
|
||||||
const wxDateTime& upperdate = wxDefaultDateTime);
|
const wxDateTime& upperdate = wxDefaultDateTime);
|
||||||
@@ -66,16 +66,16 @@ public:
|
|||||||
// -------------------------------
|
// -------------------------------
|
||||||
|
|
||||||
// overridden base class methods
|
// overridden base class methods
|
||||||
virtual bool Destroy();
|
virtual bool Destroy() wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxSize DoGetBestSize() const;
|
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
// return the list of the windows composing this one
|
// return the list of the windows composing this one
|
||||||
virtual wxWindowList GetCompositeWindowParts() const;
|
virtual wxWindowList GetCompositeWindowParts() const wxOVERRIDE;
|
||||||
|
|
||||||
void OnText(wxCommandEvent &event);
|
void OnText(wxCommandEvent &event);
|
||||||
void OnSize(wxSizeEvent& event);
|
void OnSize(wxSizeEvent& event);
|
||||||
|
@@ -174,7 +174,7 @@ public:
|
|||||||
virtual void CollapseTree();
|
virtual void CollapseTree();
|
||||||
|
|
||||||
// overridden base class methods
|
// overridden base class methods
|
||||||
virtual void SetFocus();
|
virtual void SetFocus() wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void ExpandRoot();
|
virtual void ExpandRoot();
|
||||||
|
@@ -217,32 +217,32 @@ public:
|
|||||||
const wxSize& size = wxDefaultSize,
|
const wxSize& size = wxDefaultSize,
|
||||||
const wxString& name = wxFileCtrlNameStr );
|
const wxString& name = wxFileCtrlNameStr );
|
||||||
|
|
||||||
virtual void SetWildcard( const wxString& wildCard );
|
virtual void SetWildcard( const wxString& wildCard ) wxOVERRIDE;
|
||||||
virtual void SetFilterIndex( int filterindex );
|
virtual void SetFilterIndex( int filterindex ) wxOVERRIDE;
|
||||||
virtual bool SetDirectory( const wxString& dir );
|
virtual bool SetDirectory( const wxString& dir ) wxOVERRIDE;
|
||||||
|
|
||||||
// Selects a certain file.
|
// Selects a certain file.
|
||||||
// In case the filename specified isn't found/couldn't be shown with
|
// In case the filename specified isn't found/couldn't be shown with
|
||||||
// currently selected filter, false is returned and nothing happens
|
// currently selected filter, false is returned and nothing happens
|
||||||
virtual bool SetFilename( const wxString& name );
|
virtual bool SetFilename( const wxString& name ) wxOVERRIDE;
|
||||||
|
|
||||||
// Changes to a certain directory and selects a certain file.
|
// Changes to a certain directory and selects a certain file.
|
||||||
// In case the filename specified isn't found/couldn't be shown with
|
// In case the filename specified isn't found/couldn't be shown with
|
||||||
// currently selected filter, false is returned and if directory exists
|
// currently selected filter, false is returned and if directory exists
|
||||||
// it's chdir'ed to
|
// it's chdir'ed to
|
||||||
virtual bool SetPath( const wxString& path );
|
virtual bool SetPath( const wxString& path ) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetFilename() const;
|
virtual wxString GetFilename() const wxOVERRIDE;
|
||||||
virtual wxString GetDirectory() const;
|
virtual wxString GetDirectory() const wxOVERRIDE;
|
||||||
virtual wxString GetWildcard() const { return this->m_wildCard; }
|
virtual wxString GetWildcard() const wxOVERRIDE { return this->m_wildCard; }
|
||||||
virtual wxString GetPath() const;
|
virtual wxString GetPath() const wxOVERRIDE;
|
||||||
virtual void GetPaths( wxArrayString& paths ) const;
|
virtual void GetPaths( wxArrayString& paths ) const wxOVERRIDE;
|
||||||
virtual void GetFilenames( wxArrayString& files ) const;
|
virtual void GetFilenames( wxArrayString& files ) const wxOVERRIDE;
|
||||||
virtual int GetFilterIndex() const { return m_filterIndex; }
|
virtual int GetFilterIndex() const wxOVERRIDE { return m_filterIndex; }
|
||||||
|
|
||||||
virtual bool HasMultipleFileSelection() const
|
virtual bool HasMultipleFileSelection() const wxOVERRIDE
|
||||||
{ return HasFlag(wxFC_MULTIPLE); }
|
{ return HasFlag(wxFC_MULTIPLE); }
|
||||||
virtual void ShowHidden(bool show) { m_list->ShowHidden( show ); }
|
virtual void ShowHidden(bool show) wxOVERRIDE { m_list->ShowHidden( show ); }
|
||||||
|
|
||||||
void GoToParentDir();
|
void GoToParentDir();
|
||||||
void GoToHomeDir();
|
void GoToHomeDir();
|
||||||
|
@@ -46,7 +46,7 @@ public:
|
|||||||
pos, size, style, validator, name);
|
pos, size, style, validator, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual wxControl *AsControl() { return this; }
|
virtual wxControl *AsControl() wxOVERRIDE { return this; }
|
||||||
|
|
||||||
public: // overridable
|
public: // overridable
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ public: // overridable
|
|||||||
|
|
||||||
virtual wxEventType GetEventType() const = 0;
|
virtual wxEventType GetEventType() const = 0;
|
||||||
|
|
||||||
virtual void SetInitialDirectory(const wxString& dir);
|
virtual void SetInitialDirectory(const wxString& dir) wxOVERRIDE;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@@ -144,15 +144,15 @@ public: // overridable
|
|||||||
return filedlgstyle;
|
return filedlgstyle;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual wxDialog *CreateDialog();
|
virtual wxDialog *CreateDialog() wxOVERRIDE;
|
||||||
|
|
||||||
wxEventType GetEventType() const
|
wxEventType GetEventType() const wxOVERRIDE
|
||||||
{ return wxEVT_FILEPICKER_CHANGED; }
|
{ return wxEVT_FILEPICKER_CHANGED; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void UpdateDialogPath(wxDialog *p)
|
void UpdateDialogPath(wxDialog *p) wxOVERRIDE
|
||||||
{ wxStaticCast(p, wxFileDialog)->SetPath(m_path); }
|
{ wxStaticCast(p, wxFileDialog)->SetPath(m_path); }
|
||||||
void UpdatePathFromDialog(wxDialog *p)
|
void UpdatePathFromDialog(wxDialog *p) wxOVERRIDE
|
||||||
{ m_path = wxStaticCast(p, wxFileDialog)->GetPath(); }
|
{ m_path = wxStaticCast(p, wxFileDialog)->GetPath(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -199,15 +199,15 @@ public: // overridable
|
|||||||
return dirdlgstyle;
|
return dirdlgstyle;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual wxDialog *CreateDialog();
|
virtual wxDialog *CreateDialog() wxOVERRIDE;
|
||||||
|
|
||||||
wxEventType GetEventType() const
|
wxEventType GetEventType() const wxOVERRIDE
|
||||||
{ return wxEVT_DIRPICKER_CHANGED; }
|
{ return wxEVT_DIRPICKER_CHANGED; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void UpdateDialogPath(wxDialog *p)
|
void UpdateDialogPath(wxDialog *p) wxOVERRIDE
|
||||||
{ wxStaticCast(p, wxDirDialog)->SetPath(m_path); }
|
{ wxStaticCast(p, wxDirDialog)->SetPath(m_path); }
|
||||||
void UpdatePathFromDialog(wxDialog *p)
|
void UpdatePathFromDialog(wxDialog *p) wxOVERRIDE
|
||||||
{ m_path = wxStaticCast(p, wxDirDialog)->GetPath(); }
|
{ m_path = wxStaticCast(p, wxDirDialog)->GetPath(); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -37,36 +37,36 @@ public:
|
|||||||
|
|
||||||
// Set viewer: new name for SetBrowser
|
// Set viewer: new name for SetBrowser
|
||||||
virtual void SetViewer(const wxString& viewer = wxEmptyString,
|
virtual void SetViewer(const wxString& viewer = wxEmptyString,
|
||||||
long flags = wxHELP_NETSCAPE);
|
long flags = wxHELP_NETSCAPE) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool Initialize(const wxString& dir, int WXUNUSED(server))
|
virtual bool Initialize(const wxString& dir, int WXUNUSED(server)) wxOVERRIDE
|
||||||
{ return Initialize(dir); }
|
{ return Initialize(dir); }
|
||||||
|
|
||||||
virtual bool Initialize(const wxString& dir);
|
virtual bool Initialize(const wxString& dir) wxOVERRIDE;
|
||||||
virtual bool LoadFile(const wxString& file = wxEmptyString);
|
virtual bool LoadFile(const wxString& file = wxEmptyString) wxOVERRIDE;
|
||||||
virtual bool DisplayContents(void);
|
virtual bool DisplayContents(void) wxOVERRIDE;
|
||||||
virtual bool DisplaySection(int sectionNo);
|
virtual bool DisplaySection(int sectionNo) wxOVERRIDE;
|
||||||
virtual bool DisplaySection(const wxString& section);
|
virtual bool DisplaySection(const wxString& section) wxOVERRIDE;
|
||||||
virtual bool DisplayBlock(long blockNo);
|
virtual bool DisplayBlock(long blockNo) wxOVERRIDE;
|
||||||
virtual bool KeywordSearch(const wxString& k,
|
virtual bool KeywordSearch(const wxString& k,
|
||||||
wxHelpSearchMode mode = wxHELP_SEARCH_ALL);
|
wxHelpSearchMode mode = wxHELP_SEARCH_ALL) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool Quit(void);
|
virtual bool Quit(void) wxOVERRIDE;
|
||||||
virtual void OnQuit(void);
|
virtual void OnQuit(void) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool DisplayHelp(const wxString &) ;
|
virtual bool DisplayHelp(const wxString &) ;
|
||||||
|
|
||||||
virtual void SetFrameParameters(const wxString& WXUNUSED(title),
|
virtual void SetFrameParameters(const wxString& WXUNUSED(title),
|
||||||
const wxSize& WXUNUSED(size),
|
const wxSize& WXUNUSED(size),
|
||||||
const wxPoint& WXUNUSED(pos) = wxDefaultPosition,
|
const wxPoint& WXUNUSED(pos) = wxDefaultPosition,
|
||||||
bool WXUNUSED(newFrameEachTime) = false)
|
bool WXUNUSED(newFrameEachTime) = false) wxOVERRIDE
|
||||||
{
|
{
|
||||||
// does nothing by default
|
// does nothing by default
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual wxFrame *GetFrameParameters(wxSize *WXUNUSED(size) = NULL,
|
virtual wxFrame *GetFrameParameters(wxSize *WXUNUSED(size) = NULL,
|
||||||
wxPoint *WXUNUSED(pos) = NULL,
|
wxPoint *WXUNUSED(pos) = NULL,
|
||||||
bool *WXUNUSED(newFrameEachTime) = NULL)
|
bool *WXUNUSED(newFrameEachTime) = NULL) wxOVERRIDE
|
||||||
{
|
{
|
||||||
return NULL; // does nothing by default
|
return NULL; // does nothing by default
|
||||||
}
|
}
|
||||||
|
@@ -22,7 +22,7 @@ public:
|
|||||||
long style = wxOK|wxCENTRE,
|
long style = wxOK|wxCENTRE,
|
||||||
const wxPoint& pos = wxDefaultPosition);
|
const wxPoint& pos = wxDefaultPosition);
|
||||||
|
|
||||||
virtual int ShowModal();
|
virtual int ShowModal() wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Creates a message dialog taking any options that have been set after
|
// Creates a message dialog taking any options that have been set after
|
||||||
|
@@ -37,11 +37,11 @@ public:
|
|||||||
int GetPixel( unsigned char red, unsigned char green, unsigned char blue ) const;
|
int GetPixel( unsigned char red, unsigned char green, unsigned char blue ) const;
|
||||||
bool GetRGB( int pixel, unsigned char *red, unsigned char *green, unsigned char *blue ) const;
|
bool GetRGB( int pixel, unsigned char *red, unsigned char *green, unsigned char *blue ) const;
|
||||||
|
|
||||||
virtual int GetColoursCount() const;
|
virtual int GetColoursCount() const wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxGDIRefData *CreateGDIRefData() const;
|
virtual wxGDIRefData *CreateGDIRefData() const wxOVERRIDE;
|
||||||
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
|
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxDECLARE_DYNAMIC_CLASS(wxPalette);
|
wxDECLARE_DYNAMIC_CLASS(wxPalette);
|
||||||
|
@@ -92,11 +92,11 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual wxString GetTitle() const { return m_grid->GetColLabelValue(m_col); }
|
virtual wxString GetTitle() const wxOVERRIDE { return m_grid->GetColLabelValue(m_col); }
|
||||||
virtual wxBitmap GetBitmap() const { return wxNullBitmap; }
|
virtual wxBitmap GetBitmap() const wxOVERRIDE { return wxNullBitmap; }
|
||||||
virtual int GetWidth() const { return m_grid->GetColSize(m_col); }
|
virtual int GetWidth() const wxOVERRIDE { return m_grid->GetColSize(m_col); }
|
||||||
virtual int GetMinWidth() const { return 0; }
|
virtual int GetMinWidth() const wxOVERRIDE { return 0; }
|
||||||
virtual wxAlignment GetAlignment() const
|
virtual wxAlignment GetAlignment() const wxOVERRIDE
|
||||||
{
|
{
|
||||||
int horz,
|
int horz,
|
||||||
vert;
|
vert;
|
||||||
@@ -105,7 +105,7 @@ public:
|
|||||||
return static_cast<wxAlignment>(horz);
|
return static_cast<wxAlignment>(horz);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int GetFlags() const
|
virtual int GetFlags() const wxOVERRIDE
|
||||||
{
|
{
|
||||||
// we can't know in advance whether we can sort by this column or not
|
// we can't know in advance whether we can sort by this column or not
|
||||||
// with wxGrid API so suppose we can by default
|
// with wxGrid API so suppose we can by default
|
||||||
@@ -120,12 +120,12 @@ public:
|
|||||||
return flags;
|
return flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool IsSortKey() const
|
virtual bool IsSortKey() const wxOVERRIDE
|
||||||
{
|
{
|
||||||
return m_grid->IsSortingBy(m_col);
|
return m_grid->IsSortingBy(m_col);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool IsSortOrderAscending() const
|
virtual bool IsSortOrderAscending() const wxOVERRIDE
|
||||||
{
|
{
|
||||||
return m_grid->IsSortOrderAscending();
|
return m_grid->IsSortOrderAscending();
|
||||||
}
|
}
|
||||||
@@ -153,7 +153,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual const wxHeaderColumn& GetColumn(unsigned int idx) const
|
virtual const wxHeaderColumn& GetColumn(unsigned int idx) const wxOVERRIDE
|
||||||
{
|
{
|
||||||
return m_columns[idx];
|
return m_columns[idx];
|
||||||
}
|
}
|
||||||
@@ -171,7 +171,7 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// override the base class method to update our m_columns array
|
// override the base class method to update our m_columns array
|
||||||
virtual void OnColumnCountChanging(unsigned int count)
|
virtual void OnColumnCountChanging(unsigned int count) wxOVERRIDE
|
||||||
{
|
{
|
||||||
const unsigned countOld = m_columns.size();
|
const unsigned countOld = m_columns.size();
|
||||||
if ( count < countOld )
|
if ( count < countOld )
|
||||||
@@ -191,7 +191,7 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// override to implement column auto sizing
|
// override to implement column auto sizing
|
||||||
virtual bool UpdateColumnWidthToFit(unsigned int idx, int widthTitle)
|
virtual bool UpdateColumnWidthToFit(unsigned int idx, int widthTitle) wxOVERRIDE
|
||||||
{
|
{
|
||||||
// TODO: currently grid doesn't support computing the column best width
|
// TODO: currently grid doesn't support computing the column best width
|
||||||
// from its contents so we just use the best label width as is
|
// from its contents so we just use the best label width as is
|
||||||
@@ -201,7 +201,7 @@ private:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// overridden to react to the actions using the columns popup menu
|
// overridden to react to the actions using the columns popup menu
|
||||||
virtual void UpdateColumnVisibility(unsigned int idx, bool show)
|
virtual void UpdateColumnVisibility(unsigned int idx, bool show) wxOVERRIDE
|
||||||
{
|
{
|
||||||
GetOwner()->SetColSize(idx, show ? wxGRID_AUTOSIZE : 0);
|
GetOwner()->SetColSize(idx, show ? wxGRID_AUTOSIZE : 0);
|
||||||
|
|
||||||
@@ -213,7 +213,7 @@ private:
|
|||||||
|
|
||||||
// overridden to react to the columns order changes in the customization
|
// overridden to react to the columns order changes in the customization
|
||||||
// dialog
|
// dialog
|
||||||
virtual void UpdateColumnsOrder(const wxArrayInt& order)
|
virtual void UpdateColumnsOrder(const wxArrayInt& order) wxOVERRIDE
|
||||||
{
|
{
|
||||||
GetOwner()->SetColumnsOrder(order);
|
GetOwner()->SetColumnsOrder(order);
|
||||||
}
|
}
|
||||||
@@ -304,9 +304,9 @@ public:
|
|||||||
m_owner = owner;
|
m_owner = owner;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual wxWindow *GetMainWindowOfCompositeControl() { return m_owner; }
|
virtual wxWindow *GetMainWindowOfCompositeControl() wxOVERRIDE { return m_owner; }
|
||||||
|
|
||||||
virtual bool AcceptsFocus() const { return false; }
|
virtual bool AcceptsFocus() const wxOVERRIDE { return false; }
|
||||||
|
|
||||||
wxGrid *GetOwner() { return m_owner; }
|
wxGrid *GetOwner() { return m_owner; }
|
||||||
|
|
||||||
@@ -385,9 +385,9 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
virtual void ScrollWindow( int dx, int dy, const wxRect *rect );
|
virtual void ScrollWindow( int dx, int dy, const wxRect *rect ) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool AcceptsFocus() const { return true; }
|
virtual bool AcceptsFocus() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void OnPaint( wxPaintEvent &event );
|
void OnPaint( wxPaintEvent &event );
|
||||||
@@ -574,135 +574,135 @@ public:
|
|||||||
class wxGridRowOperations : public wxGridOperations
|
class wxGridRowOperations : public wxGridOperations
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual wxGridOperations& Dual() const;
|
virtual wxGridOperations& Dual() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual int GetNumberOfLines(const wxGrid *grid) const
|
virtual int GetNumberOfLines(const wxGrid *grid) const wxOVERRIDE
|
||||||
{ return grid->GetNumberRows(); }
|
{ return grid->GetNumberRows(); }
|
||||||
|
|
||||||
virtual wxGrid::wxGridSelectionModes GetSelectionMode() const
|
virtual wxGrid::wxGridSelectionModes GetSelectionMode() const wxOVERRIDE
|
||||||
{ return wxGrid::wxGridSelectRows; }
|
{ return wxGrid::wxGridSelectRows; }
|
||||||
|
|
||||||
virtual wxGridCellCoords MakeCoords(int thisDir, int otherDir) const
|
virtual wxGridCellCoords MakeCoords(int thisDir, int otherDir) const wxOVERRIDE
|
||||||
{ return wxGridCellCoords(thisDir, otherDir); }
|
{ return wxGridCellCoords(thisDir, otherDir); }
|
||||||
|
|
||||||
virtual int CalcScrolledPosition(wxGrid *grid, int pos) const
|
virtual int CalcScrolledPosition(wxGrid *grid, int pos) const wxOVERRIDE
|
||||||
{ return grid->CalcScrolledPosition(wxPoint(pos, 0)).x; }
|
{ return grid->CalcScrolledPosition(wxPoint(pos, 0)).x; }
|
||||||
|
|
||||||
virtual int Select(const wxGridCellCoords& c) const { return c.GetRow(); }
|
virtual int Select(const wxGridCellCoords& c) const wxOVERRIDE { return c.GetRow(); }
|
||||||
virtual int Select(const wxPoint& pt) const { return pt.x; }
|
virtual int Select(const wxPoint& pt) const wxOVERRIDE { return pt.x; }
|
||||||
virtual int Select(const wxSize& sz) const { return sz.x; }
|
virtual int Select(const wxSize& sz) const wxOVERRIDE { return sz.x; }
|
||||||
virtual int Select(const wxRect& r) const { return r.x; }
|
virtual int Select(const wxRect& r) const wxOVERRIDE { return r.x; }
|
||||||
virtual int& Select(wxRect& r) const { return r.x; }
|
virtual int& Select(wxRect& r) const wxOVERRIDE { return r.x; }
|
||||||
virtual int& SelectSize(wxRect& r) const { return r.width; }
|
virtual int& SelectSize(wxRect& r) const wxOVERRIDE { return r.width; }
|
||||||
virtual wxSize MakeSize(int first, int second) const
|
virtual wxSize MakeSize(int first, int second) const wxOVERRIDE
|
||||||
{ return wxSize(first, second); }
|
{ return wxSize(first, second); }
|
||||||
virtual void Set(wxGridCellCoords& coords, int line) const
|
virtual void Set(wxGridCellCoords& coords, int line) const wxOVERRIDE
|
||||||
{ coords.SetRow(line); }
|
{ coords.SetRow(line); }
|
||||||
|
|
||||||
virtual void DrawParallelLine(wxDC& dc, int start, int end, int pos) const
|
virtual void DrawParallelLine(wxDC& dc, int start, int end, int pos) const wxOVERRIDE
|
||||||
{ dc.DrawLine(start, pos, end, pos); }
|
{ dc.DrawLine(start, pos, end, pos); }
|
||||||
|
|
||||||
virtual int PosToLine(const wxGrid *grid, int pos, bool clip = false) const
|
virtual int PosToLine(const wxGrid *grid, int pos, bool clip = false) const wxOVERRIDE
|
||||||
{ return grid->YToRow(pos, clip); }
|
{ return grid->YToRow(pos, clip); }
|
||||||
virtual int GetLineStartPos(const wxGrid *grid, int line) const
|
virtual int GetLineStartPos(const wxGrid *grid, int line) const wxOVERRIDE
|
||||||
{ return grid->GetRowTop(line); }
|
{ return grid->GetRowTop(line); }
|
||||||
virtual int GetLineEndPos(const wxGrid *grid, int line) const
|
virtual int GetLineEndPos(const wxGrid *grid, int line) const wxOVERRIDE
|
||||||
{ return grid->GetRowBottom(line); }
|
{ return grid->GetRowBottom(line); }
|
||||||
virtual int GetLineSize(const wxGrid *grid, int line) const
|
virtual int GetLineSize(const wxGrid *grid, int line) const wxOVERRIDE
|
||||||
{ return grid->GetRowHeight(line); }
|
{ return grid->GetRowHeight(line); }
|
||||||
virtual const wxArrayInt& GetLineEnds(const wxGrid *grid) const
|
virtual const wxArrayInt& GetLineEnds(const wxGrid *grid) const wxOVERRIDE
|
||||||
{ return grid->m_rowBottoms; }
|
{ return grid->m_rowBottoms; }
|
||||||
virtual int GetDefaultLineSize(const wxGrid *grid) const
|
virtual int GetDefaultLineSize(const wxGrid *grid) const wxOVERRIDE
|
||||||
{ return grid->GetDefaultRowSize(); }
|
{ return grid->GetDefaultRowSize(); }
|
||||||
virtual int GetMinimalAcceptableLineSize(const wxGrid *grid) const
|
virtual int GetMinimalAcceptableLineSize(const wxGrid *grid) const wxOVERRIDE
|
||||||
{ return grid->GetRowMinimalAcceptableHeight(); }
|
{ return grid->GetRowMinimalAcceptableHeight(); }
|
||||||
virtual int GetMinimalLineSize(const wxGrid *grid, int line) const
|
virtual int GetMinimalLineSize(const wxGrid *grid, int line) const wxOVERRIDE
|
||||||
{ return grid->GetRowMinimalHeight(line); }
|
{ return grid->GetRowMinimalHeight(line); }
|
||||||
virtual void SetLineSize(wxGrid *grid, int line, int size) const
|
virtual void SetLineSize(wxGrid *grid, int line, int size) const wxOVERRIDE
|
||||||
{ grid->SetRowSize(line, size); }
|
{ grid->SetRowSize(line, size); }
|
||||||
virtual void SetDefaultLineSize(wxGrid *grid, int size, bool resizeExisting) const
|
virtual void SetDefaultLineSize(wxGrid *grid, int size, bool resizeExisting) const wxOVERRIDE
|
||||||
{ grid->SetDefaultRowSize(size, resizeExisting); }
|
{ grid->SetDefaultRowSize(size, resizeExisting); }
|
||||||
|
|
||||||
virtual int GetLineAt(const wxGrid * WXUNUSED(grid), int pos) const
|
virtual int GetLineAt(const wxGrid * WXUNUSED(grid), int pos) const wxOVERRIDE
|
||||||
{ return pos; } // TODO: implement row reordering
|
{ return pos; } // TODO: implement row reordering
|
||||||
virtual int GetLinePos(const wxGrid * WXUNUSED(grid), int line) const
|
virtual int GetLinePos(const wxGrid * WXUNUSED(grid), int line) const wxOVERRIDE
|
||||||
{ return line; } // TODO: implement row reordering
|
{ return line; } // TODO: implement row reordering
|
||||||
|
|
||||||
virtual int GetLineBefore(const wxGrid* WXUNUSED(grid), int line) const
|
virtual int GetLineBefore(const wxGrid* WXUNUSED(grid), int line) const wxOVERRIDE
|
||||||
{ return line - 1; }
|
{ return line - 1; }
|
||||||
|
|
||||||
virtual wxWindow *GetHeaderWindow(wxGrid *grid) const
|
virtual wxWindow *GetHeaderWindow(wxGrid *grid) const wxOVERRIDE
|
||||||
{ return grid->GetGridRowLabelWindow(); }
|
{ return grid->GetGridRowLabelWindow(); }
|
||||||
virtual int GetHeaderWindowSize(wxGrid *grid) const
|
virtual int GetHeaderWindowSize(wxGrid *grid) const wxOVERRIDE
|
||||||
{ return grid->GetRowLabelSize(); }
|
{ return grid->GetRowLabelSize(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
class wxGridColumnOperations : public wxGridOperations
|
class wxGridColumnOperations : public wxGridOperations
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual wxGridOperations& Dual() const;
|
virtual wxGridOperations& Dual() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual int GetNumberOfLines(const wxGrid *grid) const
|
virtual int GetNumberOfLines(const wxGrid *grid) const wxOVERRIDE
|
||||||
{ return grid->GetNumberCols(); }
|
{ return grid->GetNumberCols(); }
|
||||||
|
|
||||||
virtual wxGrid::wxGridSelectionModes GetSelectionMode() const
|
virtual wxGrid::wxGridSelectionModes GetSelectionMode() const wxOVERRIDE
|
||||||
{ return wxGrid::wxGridSelectColumns; }
|
{ return wxGrid::wxGridSelectColumns; }
|
||||||
|
|
||||||
virtual wxGridCellCoords MakeCoords(int thisDir, int otherDir) const
|
virtual wxGridCellCoords MakeCoords(int thisDir, int otherDir) const wxOVERRIDE
|
||||||
{ return wxGridCellCoords(otherDir, thisDir); }
|
{ return wxGridCellCoords(otherDir, thisDir); }
|
||||||
|
|
||||||
virtual int CalcScrolledPosition(wxGrid *grid, int pos) const
|
virtual int CalcScrolledPosition(wxGrid *grid, int pos) const wxOVERRIDE
|
||||||
{ return grid->CalcScrolledPosition(wxPoint(0, pos)).y; }
|
{ return grid->CalcScrolledPosition(wxPoint(0, pos)).y; }
|
||||||
|
|
||||||
virtual int Select(const wxGridCellCoords& c) const { return c.GetCol(); }
|
virtual int Select(const wxGridCellCoords& c) const wxOVERRIDE { return c.GetCol(); }
|
||||||
virtual int Select(const wxPoint& pt) const { return pt.y; }
|
virtual int Select(const wxPoint& pt) const wxOVERRIDE { return pt.y; }
|
||||||
virtual int Select(const wxSize& sz) const { return sz.y; }
|
virtual int Select(const wxSize& sz) const wxOVERRIDE { return sz.y; }
|
||||||
virtual int Select(const wxRect& r) const { return r.y; }
|
virtual int Select(const wxRect& r) const wxOVERRIDE { return r.y; }
|
||||||
virtual int& Select(wxRect& r) const { return r.y; }
|
virtual int& Select(wxRect& r) const wxOVERRIDE { return r.y; }
|
||||||
virtual int& SelectSize(wxRect& r) const { return r.height; }
|
virtual int& SelectSize(wxRect& r) const wxOVERRIDE { return r.height; }
|
||||||
virtual wxSize MakeSize(int first, int second) const
|
virtual wxSize MakeSize(int first, int second) const wxOVERRIDE
|
||||||
{ return wxSize(second, first); }
|
{ return wxSize(second, first); }
|
||||||
virtual void Set(wxGridCellCoords& coords, int line) const
|
virtual void Set(wxGridCellCoords& coords, int line) const wxOVERRIDE
|
||||||
{ coords.SetCol(line); }
|
{ coords.SetCol(line); }
|
||||||
|
|
||||||
virtual void DrawParallelLine(wxDC& dc, int start, int end, int pos) const
|
virtual void DrawParallelLine(wxDC& dc, int start, int end, int pos) const wxOVERRIDE
|
||||||
{ dc.DrawLine(pos, start, pos, end); }
|
{ dc.DrawLine(pos, start, pos, end); }
|
||||||
|
|
||||||
virtual int PosToLine(const wxGrid *grid, int pos, bool clip = false) const
|
virtual int PosToLine(const wxGrid *grid, int pos, bool clip = false) const wxOVERRIDE
|
||||||
{ return grid->XToCol(pos, clip); }
|
{ return grid->XToCol(pos, clip); }
|
||||||
virtual int GetLineStartPos(const wxGrid *grid, int line) const
|
virtual int GetLineStartPos(const wxGrid *grid, int line) const wxOVERRIDE
|
||||||
{ return grid->GetColLeft(line); }
|
{ return grid->GetColLeft(line); }
|
||||||
virtual int GetLineEndPos(const wxGrid *grid, int line) const
|
virtual int GetLineEndPos(const wxGrid *grid, int line) const wxOVERRIDE
|
||||||
{ return grid->GetColRight(line); }
|
{ return grid->GetColRight(line); }
|
||||||
virtual int GetLineSize(const wxGrid *grid, int line) const
|
virtual int GetLineSize(const wxGrid *grid, int line) const wxOVERRIDE
|
||||||
{ return grid->GetColWidth(line); }
|
{ return grid->GetColWidth(line); }
|
||||||
virtual const wxArrayInt& GetLineEnds(const wxGrid *grid) const
|
virtual const wxArrayInt& GetLineEnds(const wxGrid *grid) const wxOVERRIDE
|
||||||
{ return grid->m_colRights; }
|
{ return grid->m_colRights; }
|
||||||
virtual int GetDefaultLineSize(const wxGrid *grid) const
|
virtual int GetDefaultLineSize(const wxGrid *grid) const wxOVERRIDE
|
||||||
{ return grid->GetDefaultColSize(); }
|
{ return grid->GetDefaultColSize(); }
|
||||||
virtual int GetMinimalAcceptableLineSize(const wxGrid *grid) const
|
virtual int GetMinimalAcceptableLineSize(const wxGrid *grid) const wxOVERRIDE
|
||||||
{ return grid->GetColMinimalAcceptableWidth(); }
|
{ return grid->GetColMinimalAcceptableWidth(); }
|
||||||
virtual int GetMinimalLineSize(const wxGrid *grid, int line) const
|
virtual int GetMinimalLineSize(const wxGrid *grid, int line) const wxOVERRIDE
|
||||||
{ return grid->GetColMinimalWidth(line); }
|
{ return grid->GetColMinimalWidth(line); }
|
||||||
virtual void SetLineSize(wxGrid *grid, int line, int size) const
|
virtual void SetLineSize(wxGrid *grid, int line, int size) const wxOVERRIDE
|
||||||
{ grid->SetColSize(line, size); }
|
{ grid->SetColSize(line, size); }
|
||||||
virtual void SetDefaultLineSize(wxGrid *grid, int size, bool resizeExisting) const
|
virtual void SetDefaultLineSize(wxGrid *grid, int size, bool resizeExisting) const wxOVERRIDE
|
||||||
{ grid->SetDefaultColSize(size, resizeExisting); }
|
{ grid->SetDefaultColSize(size, resizeExisting); }
|
||||||
|
|
||||||
virtual int GetLineAt(const wxGrid *grid, int pos) const
|
virtual int GetLineAt(const wxGrid *grid, int pos) const wxOVERRIDE
|
||||||
{ return grid->GetColAt(pos); }
|
{ return grid->GetColAt(pos); }
|
||||||
virtual int GetLinePos(const wxGrid *grid, int line) const
|
virtual int GetLinePos(const wxGrid *grid, int line) const wxOVERRIDE
|
||||||
{ return grid->GetColPos(line); }
|
{ return grid->GetColPos(line); }
|
||||||
|
|
||||||
virtual int GetLineBefore(const wxGrid* grid, int line) const
|
virtual int GetLineBefore(const wxGrid* grid, int line) const wxOVERRIDE
|
||||||
{
|
{
|
||||||
int posBefore = grid->GetColPos(line) - 1;
|
int posBefore = grid->GetColPos(line) - 1;
|
||||||
return posBefore >= 0 ? grid->GetColAt(posBefore) : wxNOT_FOUND;
|
return posBefore >= 0 ? grid->GetColAt(posBefore) : wxNOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual wxWindow *GetHeaderWindow(wxGrid *grid) const
|
virtual wxWindow *GetHeaderWindow(wxGrid *grid) const wxOVERRIDE
|
||||||
{ return grid->GetGridColLabelWindow(); }
|
{ return grid->GetGridColLabelWindow(); }
|
||||||
virtual int GetHeaderWindowSize(wxGrid *grid) const
|
virtual int GetHeaderWindowSize(wxGrid *grid) const wxOVERRIDE
|
||||||
{ return grid->GetColLabelSize(); }
|
{ return grid->GetColLabelSize(); }
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -787,7 +787,7 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool IsAtBoundary(const wxGridCellCoords& coords) const
|
virtual bool IsAtBoundary(const wxGridCellCoords& coords) const wxOVERRIDE
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( m_oper.Select(coords) >= 0, "invalid row/column" );
|
wxASSERT_MSG( m_oper.Select(coords) >= 0, "invalid row/column" );
|
||||||
|
|
||||||
@@ -808,7 +808,7 @@ public:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void Advance(wxGridCellCoords& coords) const
|
virtual void Advance(wxGridCellCoords& coords) const wxOVERRIDE
|
||||||
{
|
{
|
||||||
int pos = GetLinePos(coords);
|
int pos = GetLinePos(coords);
|
||||||
for ( ;; )
|
for ( ;; )
|
||||||
@@ -825,7 +825,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int MoveByPixelDistance(int line, int distance) const
|
virtual int MoveByPixelDistance(int line, int distance) const wxOVERRIDE
|
||||||
{
|
{
|
||||||
int pos = m_oper.GetLineStartPos(m_grid, line);
|
int pos = m_oper.GetLineStartPos(m_grid, line);
|
||||||
return m_oper.PosToLine(m_grid, pos - distance + 1, true);
|
return m_oper.PosToLine(m_grid, pos - distance + 1, true);
|
||||||
@@ -843,7 +843,7 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool IsAtBoundary(const wxGridCellCoords& coords) const
|
virtual bool IsAtBoundary(const wxGridCellCoords& coords) const wxOVERRIDE
|
||||||
{
|
{
|
||||||
wxASSERT_MSG( m_oper.Select(coords) < m_numLines, "invalid row/column" );
|
wxASSERT_MSG( m_oper.Select(coords) < m_numLines, "invalid row/column" );
|
||||||
|
|
||||||
@@ -858,7 +858,7 @@ public:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void Advance(wxGridCellCoords& coords) const
|
virtual void Advance(wxGridCellCoords& coords) const wxOVERRIDE
|
||||||
{
|
{
|
||||||
int pos = GetLinePos(coords);
|
int pos = GetLinePos(coords);
|
||||||
for ( ;; )
|
for ( ;; )
|
||||||
@@ -875,7 +875,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual int MoveByPixelDistance(int line, int distance) const
|
virtual int MoveByPixelDistance(int line, int distance) const wxOVERRIDE
|
||||||
{
|
{
|
||||||
int pos = m_oper.GetLineStartPos(m_grid, line);
|
int pos = m_oper.GetLineStartPos(m_grid, line);
|
||||||
return m_oper.PosToLine(m_grid, pos + distance, true);
|
return m_oper.PosToLine(m_grid, pos + distance, true);
|
||||||
|
@@ -349,7 +349,7 @@ public:
|
|||||||
virtual ~wxListHeaderWindow();
|
virtual ~wxListHeaderWindow();
|
||||||
|
|
||||||
// We never need focus as we don't have any keyboard interface.
|
// We never need focus as we don't have any keyboard interface.
|
||||||
virtual bool AcceptsFocus() const { return false; }
|
virtual bool AcceptsFocus() const wxOVERRIDE { return false; }
|
||||||
|
|
||||||
void DrawCurrent();
|
void DrawCurrent();
|
||||||
void AdjustDC( wxDC& dc );
|
void AdjustDC( wxDC& dc );
|
||||||
@@ -365,7 +365,7 @@ public:
|
|||||||
int m_colToSend;
|
int m_colToSend;
|
||||||
int m_widthToSend;
|
int m_widthToSend;
|
||||||
|
|
||||||
virtual void OnInternalIdle();
|
virtual void OnInternalIdle() wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// common part of all ctors
|
// common part of all ctors
|
||||||
@@ -389,7 +389,7 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxListRenameTimer( wxListMainWindow *owner );
|
wxListRenameTimer( wxListMainWindow *owner );
|
||||||
void Notify();
|
void Notify() wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@@ -407,7 +407,7 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void Notify();
|
virtual void Notify() wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxListMainWindow *m_owner;
|
wxListMainWindow *m_owner;
|
||||||
@@ -694,7 +694,7 @@ public:
|
|||||||
const wxPoint& point = wxDefaultPosition );
|
const wxPoint& point = wxDefaultPosition );
|
||||||
|
|
||||||
// override base class virtual to reset m_lineHeight when the font changes
|
// override base class virtual to reset m_lineHeight when the font changes
|
||||||
virtual bool SetFont(const wxFont& font)
|
virtual bool SetFont(const wxFont& font) wxOVERRIDE
|
||||||
{
|
{
|
||||||
if ( !wxWindow::SetFont(font) )
|
if ( !wxWindow::SetFont(font) )
|
||||||
return false;
|
return false;
|
||||||
@@ -724,7 +724,7 @@ public:
|
|||||||
return m_hasFocus ? m_highlightBrush : m_highlightUnfocusedBrush;
|
return m_hasFocus ? m_highlightBrush : m_highlightUnfocusedBrush;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HasFocus() const
|
bool HasFocus() const wxOVERRIDE
|
||||||
{
|
{
|
||||||
return m_hasFocus;
|
return m_hasFocus;
|
||||||
}
|
}
|
||||||
@@ -780,7 +780,7 @@ protected:
|
|||||||
m_lineSelectSingleOnUp;
|
m_lineSelectSingleOnUp;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxWindow *GetMainWindowOfCompositeControl() { return GetParent(); }
|
wxWindow *GetMainWindowOfCompositeControl() wxOVERRIDE { return GetParent(); }
|
||||||
|
|
||||||
// the total count of items in a virtual list control
|
// the total count of items in a virtual list control
|
||||||
size_t m_countVirt;
|
size_t m_countVirt;
|
||||||
|
@@ -83,11 +83,11 @@ public:
|
|||||||
wxPostScriptPrintNativeData();
|
wxPostScriptPrintNativeData();
|
||||||
virtual ~wxPostScriptPrintNativeData();
|
virtual ~wxPostScriptPrintNativeData();
|
||||||
|
|
||||||
virtual bool TransferTo( wxPrintData &data );
|
virtual bool TransferTo( wxPrintData &data ) wxOVERRIDE;
|
||||||
virtual bool TransferFrom( const wxPrintData &data );
|
virtual bool TransferFrom( const wxPrintData &data ) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool Ok() const { return IsOk(); }
|
virtual bool Ok() const wxOVERRIDE { return IsOk(); }
|
||||||
virtual bool IsOk() const { return true; }
|
virtual bool IsOk() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
const wxString& GetPrinterCommand() const { return m_printerCommand; }
|
const wxString& GetPrinterCommand() const { return m_printerCommand; }
|
||||||
const wxString& GetPrinterOptions() const { return m_printerOptions; }
|
const wxString& GetPrinterOptions() const { return m_printerOptions; }
|
||||||
@@ -149,16 +149,16 @@ public:
|
|||||||
void OnRange(wxCommandEvent& event);
|
void OnRange(wxCommandEvent& event);
|
||||||
void OnOK(wxCommandEvent& event);
|
void OnOK(wxCommandEvent& event);
|
||||||
|
|
||||||
virtual bool TransferDataFromWindow();
|
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||||
virtual bool TransferDataToWindow();
|
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||||
|
|
||||||
virtual int ShowModal();
|
virtual int ShowModal() wxOVERRIDE;
|
||||||
|
|
||||||
wxPrintData& GetPrintData()
|
wxPrintData& GetPrintData() wxOVERRIDE
|
||||||
{ return m_printDialogData.GetPrintData(); }
|
{ return m_printDialogData.GetPrintData(); }
|
||||||
|
|
||||||
wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; }
|
wxPrintDialogData& GetPrintDialogData() wxOVERRIDE { return m_printDialogData; }
|
||||||
wxDC *GetPrintDC();
|
wxDC *GetPrintDC() wxOVERRIDE;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// wxStaticText* m_printerMessage;
|
// wxStaticText* m_printerMessage;
|
||||||
@@ -193,8 +193,8 @@ public:
|
|||||||
|
|
||||||
void OnPrinter(wxListEvent& event);
|
void OnPrinter(wxListEvent& event);
|
||||||
|
|
||||||
virtual bool TransferDataFromWindow();
|
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||||
virtual bool TransferDataToWindow();
|
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxComboBox *CreatePaperTypeChoice();
|
virtual wxComboBox *CreatePaperTypeChoice();
|
||||||
|
|
||||||
@@ -226,10 +226,10 @@ public:
|
|||||||
wxPageSetupDialogData* data = NULL);
|
wxPageSetupDialogData* data = NULL);
|
||||||
virtual ~wxGenericPageSetupDialog();
|
virtual ~wxGenericPageSetupDialog();
|
||||||
|
|
||||||
virtual bool TransferDataFromWindow();
|
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||||
virtual bool TransferDataToWindow();
|
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxPageSetupDialogData& GetPageSetupDialogData();
|
virtual wxPageSetupDialogData& GetPageSetupDialogData() wxOVERRIDE;
|
||||||
|
|
||||||
void OnPrinter(wxCommandEvent& event);
|
void OnPrinter(wxCommandEvent& event);
|
||||||
wxComboBox *CreatePaperTypeChoice(int* x, int* y);
|
wxComboBox *CreatePaperTypeChoice(int* x, int* y);
|
||||||
|
@@ -27,15 +27,15 @@ public:
|
|||||||
m_detailsPane(NULL)
|
m_detailsPane(NULL)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
virtual bool IsCheckBoxChecked() const;
|
virtual bool IsCheckBoxChecked() const wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxCheckBox *m_checkBox;
|
wxCheckBox *m_checkBox;
|
||||||
wxCollapsiblePane *m_detailsPane;
|
wxCollapsiblePane *m_detailsPane;
|
||||||
|
|
||||||
// overrides methods in the base class
|
// overrides methods in the base class
|
||||||
virtual void AddMessageDialogCheckBox(wxSizer *sizer);
|
virtual void AddMessageDialogCheckBox(wxSizer *sizer) wxOVERRIDE;
|
||||||
virtual void AddMessageDialogDetails(wxSizer *sizer);
|
virtual void AddMessageDialogDetails(wxSizer *sizer) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void OnPaneChanged(wxCollapsiblePaneEvent& event);
|
void OnPaneChanged(wxCollapsiblePaneEvent& event);
|
||||||
|
@@ -35,16 +35,16 @@ public:
|
|||||||
long style = 0,
|
long style = 0,
|
||||||
const wxString& name = wxStaticBitmapNameStr);
|
const wxString& name = wxStaticBitmapNameStr);
|
||||||
|
|
||||||
virtual void SetBitmap(const wxBitmap& bitmap)
|
virtual void SetBitmap(const wxBitmap& bitmap) wxOVERRIDE
|
||||||
{
|
{
|
||||||
m_bitmap = bitmap;
|
m_bitmap = bitmap;
|
||||||
SetInitialSize(GetBitmapSize());
|
SetInitialSize(GetBitmapSize());
|
||||||
Refresh();
|
Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual wxBitmap GetBitmap() const { return m_bitmap; }
|
virtual wxBitmap GetBitmap() const wxOVERRIDE { return m_bitmap; }
|
||||||
|
|
||||||
virtual void SetIcon(const wxIcon& icon)
|
virtual void SetIcon(const wxIcon& icon) wxOVERRIDE
|
||||||
{
|
{
|
||||||
m_bitmap.CopyFromIcon(icon);
|
m_bitmap.CopyFromIcon(icon);
|
||||||
SetInitialSize(GetBitmapSize());
|
SetInitialSize(GetBitmapSize());
|
||||||
@@ -53,7 +53,7 @@ public:
|
|||||||
|
|
||||||
#if defined(__WXGTK20__) || defined(__WXMAC__)
|
#if defined(__WXGTK20__) || defined(__WXMAC__)
|
||||||
// icons and bitmaps are really the same thing in wxGTK and wxMac
|
// icons and bitmaps are really the same thing in wxGTK and wxMac
|
||||||
wxIcon GetIcon() const { return (const wxIcon &)m_bitmap; }
|
wxIcon GetIcon() const wxOVERRIDE { return (const wxIcon &)m_bitmap; }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@@ -48,19 +48,19 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
// overridden base class virtual methods
|
// overridden base class virtual methods
|
||||||
virtual void SetLabel(const wxString& label);
|
virtual void SetLabel(const wxString& label) wxOVERRIDE;
|
||||||
virtual bool SetFont(const wxFont &font);
|
virtual bool SetFont(const wxFont &font) wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxSize DoGetBestClientSize() const;
|
virtual wxSize DoGetBestClientSize() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString DoGetLabel() const { return m_label; }
|
virtual wxString DoGetLabel() const wxOVERRIDE { return m_label; }
|
||||||
virtual void DoSetLabel(const wxString& label);
|
virtual void DoSetLabel(const wxString& label) wxOVERRIDE;
|
||||||
|
|
||||||
void DoSetSize(int x, int y, int width, int height, int sizeFlags);
|
void DoSetSize(int x, int y, int width, int height, int sizeFlags) wxOVERRIDE;
|
||||||
|
|
||||||
#if wxUSE_MARKUP
|
#if wxUSE_MARKUP
|
||||||
virtual bool DoSetLabelMarkup(const wxString& markup);
|
virtual bool DoSetLabelMarkup(const wxString& markup) wxOVERRIDE;
|
||||||
#endif // wxUSE_MARKUP
|
#endif // wxUSE_MARKUP
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -39,7 +39,7 @@ public:
|
|||||||
|
|
||||||
virtual wxVisualAttributes GetDefaultAttributes() const wxOVERRIDE;
|
virtual wxVisualAttributes GetDefaultAttributes() const wxOVERRIDE;
|
||||||
#ifdef __WXGTK3__
|
#ifdef __WXGTK3__
|
||||||
virtual bool SetFont(const wxFont& font);
|
virtual bool SetFont(const wxFont& font) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
@@ -25,14 +25,14 @@ public:
|
|||||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||||
|
|
||||||
virtual void SetMode( wxDataViewCellMode mode );
|
virtual void SetMode( wxDataViewCellMode mode ) wxOVERRIDE;
|
||||||
virtual wxDataViewCellMode GetMode() const;
|
virtual wxDataViewCellMode GetMode() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual void SetAlignment( int align );
|
virtual void SetAlignment( int align ) wxOVERRIDE;
|
||||||
virtual int GetAlignment() const;
|
virtual int GetAlignment() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual void EnableEllipsize(wxEllipsizeMode mode = wxELLIPSIZE_MIDDLE);
|
virtual void EnableEllipsize(wxEllipsizeMode mode = wxELLIPSIZE_MIDDLE) wxOVERRIDE;
|
||||||
virtual wxEllipsizeMode GetEllipsizeMode() const;
|
virtual wxEllipsizeMode GetEllipsizeMode() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool FinishEditing() wxOVERRIDE;
|
virtual bool FinishEditing() wxOVERRIDE;
|
||||||
|
|
||||||
|
@@ -31,12 +31,12 @@ public:
|
|||||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||||
|
|
||||||
virtual bool SetValue( const wxVariant &value )
|
virtual bool SetValue( const wxVariant &value ) wxOVERRIDE
|
||||||
{
|
{
|
||||||
return SetTextValue(value);
|
return SetTextValue(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool GetValue( wxVariant &value ) const
|
virtual bool GetValue( wxVariant &value ) const wxOVERRIDE
|
||||||
{
|
{
|
||||||
wxString str;
|
wxString str;
|
||||||
if ( !GetTextValue(str) )
|
if ( !GetTextValue(str) )
|
||||||
@@ -47,9 +47,9 @@ public:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void SetAlignment( int align );
|
virtual void SetAlignment( int align ) wxOVERRIDE;
|
||||||
|
|
||||||
virtual GtkCellRendererText *GtkGetTextRenderer() const;
|
virtual GtkCellRendererText *GtkGetTextRenderer() const wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void SetAttr(const wxDataViewItemAttr& attr) wxOVERRIDE;
|
virtual void SetAttr(const wxDataViewItemAttr& attr) wxOVERRIDE;
|
||||||
@@ -75,8 +75,8 @@ public:
|
|||||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||||
|
|
||||||
bool SetValue( const wxVariant &value );
|
bool SetValue( const wxVariant &value ) wxOVERRIDE;
|
||||||
bool GetValue( wxVariant &value ) const;
|
bool GetValue( wxVariant &value ) const wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewBitmapRenderer);
|
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewBitmapRenderer);
|
||||||
@@ -95,8 +95,8 @@ public:
|
|||||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||||
|
|
||||||
bool SetValue( const wxVariant &value );
|
bool SetValue( const wxVariant &value ) wxOVERRIDE;
|
||||||
bool GetValue( wxVariant &value ) const;
|
bool GetValue( wxVariant &value ) const wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewToggleRenderer);
|
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxDataViewToggleRenderer);
|
||||||
@@ -119,14 +119,14 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
// Create DC on request
|
// Create DC on request
|
||||||
virtual wxDC *GetDC();
|
virtual wxDC *GetDC() wxOVERRIDE;
|
||||||
|
|
||||||
// override the base class function to use GTK text cell renderer
|
// override the base class function to use GTK text cell renderer
|
||||||
virtual void RenderText(const wxString& text,
|
virtual void RenderText(const wxString& text,
|
||||||
int xoffset,
|
int xoffset,
|
||||||
wxRect cell,
|
wxRect cell,
|
||||||
wxDC *dc,
|
wxDC *dc,
|
||||||
int state);
|
int state) wxOVERRIDE;
|
||||||
|
|
||||||
struct GTKRenderParams;
|
struct GTKRenderParams;
|
||||||
|
|
||||||
@@ -136,7 +136,7 @@ public:
|
|||||||
m_renderParams = renderParams;
|
m_renderParams = renderParams;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual GtkCellRendererText *GtkGetTextRenderer() const;
|
virtual GtkCellRendererText *GtkGetTextRenderer() const wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool Init(wxDataViewCellMode mode, int align);
|
bool Init(wxDataViewCellMode mode, int align);
|
||||||
@@ -171,11 +171,11 @@ public:
|
|||||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||||
virtual ~wxDataViewProgressRenderer();
|
virtual ~wxDataViewProgressRenderer();
|
||||||
|
|
||||||
bool SetValue( const wxVariant &value );
|
bool SetValue( const wxVariant &value ) wxOVERRIDE;
|
||||||
bool GetValue( wxVariant &value ) const;
|
bool GetValue( wxVariant &value ) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool Render( wxRect cell, wxDC *dc, int state );
|
virtual bool Render( wxRect cell, wxDC *dc, int state ) wxOVERRIDE;
|
||||||
virtual wxSize GetSize() const;
|
virtual wxSize GetSize() const wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void GTKSetLabel();
|
void GTKSetLabel();
|
||||||
@@ -207,15 +207,15 @@ public:
|
|||||||
int align = wxDVR_DEFAULT_ALIGNMENT );
|
int align = wxDVR_DEFAULT_ALIGNMENT );
|
||||||
virtual ~wxDataViewIconTextRenderer();
|
virtual ~wxDataViewIconTextRenderer();
|
||||||
|
|
||||||
bool SetValue( const wxVariant &value );
|
bool SetValue( const wxVariant &value ) wxOVERRIDE;
|
||||||
bool GetValue( wxVariant &value ) const;
|
bool GetValue( wxVariant &value ) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual void GtkPackIntoColumn(GtkTreeViewColumn *column);
|
virtual void GtkPackIntoColumn(GtkTreeViewColumn *column) wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void GtkOnCellChanged(const wxVariant& value,
|
virtual void GtkOnCellChanged(const wxVariant& value,
|
||||||
const wxDataViewItem& item,
|
const wxDataViewItem& item,
|
||||||
unsigned col);
|
unsigned col) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxDataViewIconText m_value;
|
wxDataViewIconText m_value;
|
||||||
@@ -236,12 +236,12 @@ public:
|
|||||||
wxDataViewChoiceRenderer(const wxArrayString &choices,
|
wxDataViewChoiceRenderer(const wxArrayString &choices,
|
||||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE,
|
wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE,
|
||||||
int alignment = wxDVR_DEFAULT_ALIGNMENT );
|
int alignment = wxDVR_DEFAULT_ALIGNMENT );
|
||||||
virtual bool Render( wxRect rect, wxDC *dc, int state );
|
virtual bool Render( wxRect rect, wxDC *dc, int state ) wxOVERRIDE;
|
||||||
virtual wxSize GetSize() const;
|
virtual wxSize GetSize() const wxOVERRIDE;
|
||||||
virtual bool SetValue( const wxVariant &value );
|
virtual bool SetValue( const wxVariant &value ) wxOVERRIDE;
|
||||||
virtual bool GetValue( wxVariant &value ) const;
|
virtual bool GetValue( wxVariant &value ) const wxOVERRIDE;
|
||||||
|
|
||||||
void SetAlignment( int align );
|
void SetAlignment( int align ) wxOVERRIDE;
|
||||||
|
|
||||||
wxString GetChoice(size_t index) const { return m_choices[index]; }
|
wxString GetChoice(size_t index) const { return m_choices[index]; }
|
||||||
const wxArrayString& GetChoices() const { return m_choices; }
|
const wxArrayString& GetChoices() const { return m_choices; }
|
||||||
@@ -262,11 +262,11 @@ public:
|
|||||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE,
|
wxDataViewCellMode mode = wxDATAVIEW_CELL_EDITABLE,
|
||||||
int alignment = wxDVR_DEFAULT_ALIGNMENT );
|
int alignment = wxDVR_DEFAULT_ALIGNMENT );
|
||||||
|
|
||||||
virtual bool SetValue( const wxVariant &value );
|
virtual bool SetValue( const wxVariant &value ) wxOVERRIDE;
|
||||||
virtual bool GetValue( wxVariant &value ) const;
|
virtual bool GetValue( wxVariant &value ) const wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void GtkOnTextEdited(const char *itempath, const wxString& str);
|
virtual void GtkOnTextEdited(const char *itempath, const wxString& str) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
/* needs to create the dialog in ::Create() and not for each user */ \
|
/* needs to create the dialog in ::Create() and not for each user */ \
|
||||||
/* request in response to the user click as the generic implementation */ \
|
/* request in response to the user click as the generic implementation */ \
|
||||||
/* does. */ \
|
/* does. */ \
|
||||||
virtual wxWindow *GetDialogParent() \
|
virtual wxWindow *GetDialogParent() wxOVERRIDE \
|
||||||
{ \
|
{ \
|
||||||
return NULL; \
|
return NULL; \
|
||||||
} \
|
} \
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
/* give us access to the internal GdkWindow of a GtkFileChooserButton */ \
|
/* give us access to the internal GdkWindow of a GtkFileChooserButton */ \
|
||||||
protected: \
|
protected: \
|
||||||
virtual GdkWindow * \
|
virtual GdkWindow * \
|
||||||
GTKGetWindow(wxArrayGdkWindows& WXUNUSED(windows)) const \
|
GTKGetWindow(wxArrayGdkWindows& WXUNUSED(windows)) const wxOVERRIDE \
|
||||||
{ return NULL; }
|
{ return NULL; }
|
||||||
|
|
||||||
|
|
||||||
@@ -92,8 +92,8 @@ public: // overrides
|
|||||||
// event handler for the click
|
// event handler for the click
|
||||||
void OnDialogOK(wxCommandEvent &);
|
void OnDialogOK(wxCommandEvent &);
|
||||||
|
|
||||||
virtual void SetPath(const wxString &str);
|
virtual void SetPath(const wxString &str) wxOVERRIDE;
|
||||||
virtual void SetInitialDirectory(const wxString& dir);
|
virtual void SetInitialDirectory(const wxString& dir) wxOVERRIDE;
|
||||||
|
|
||||||
// see macro defined above
|
// see macro defined above
|
||||||
FILEDIRBTN_OVERRIDES
|
FILEDIRBTN_OVERRIDES
|
||||||
@@ -156,13 +156,13 @@ public: // overrides
|
|||||||
|
|
||||||
// GtkFileChooserButton does not support GTK_FILE_CHOOSER_CREATE_FOLDER
|
// GtkFileChooserButton does not support GTK_FILE_CHOOSER_CREATE_FOLDER
|
||||||
// thus we must ensure that the wxDD_DIR_MUST_EXIST style was given
|
// thus we must ensure that the wxDD_DIR_MUST_EXIST style was given
|
||||||
long GetDialogStyle() const
|
long GetDialogStyle() const wxOVERRIDE
|
||||||
{
|
{
|
||||||
return (wxGenericDirButton::GetDialogStyle() | wxDD_DIR_MUST_EXIST);
|
return (wxGenericDirButton::GetDialogStyle() | wxDD_DIR_MUST_EXIST);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void SetPath(const wxString &str);
|
virtual void SetPath(const wxString &str) wxOVERRIDE;
|
||||||
virtual void SetInitialDirectory(const wxString& dir);
|
virtual void SetInitialDirectory(const wxString& dir) wxOVERRIDE;
|
||||||
|
|
||||||
// see macro defined above
|
// see macro defined above
|
||||||
FILEDIRBTN_OVERRIDES
|
FILEDIRBTN_OVERRIDES
|
||||||
|
@@ -60,7 +60,7 @@ I STRONGLY recommend reading and understanding these macros!!
|
|||||||
{ \
|
{ \
|
||||||
wxDECLARE_DYNAMIC_CLASS(wxHTML_Module##name ); \
|
wxDECLARE_DYNAMIC_CLASS(wxHTML_Module##name ); \
|
||||||
public: \
|
public: \
|
||||||
void FillHandlersTable(wxHtmlWinParser *parser) \
|
void FillHandlersTable(wxHtmlWinParser *parser) wxOVERRIDE \
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
@@ -272,7 +272,7 @@ public:
|
|||||||
virtual void SetString(unsigned int n, const wxString& s) wxOVERRIDE;
|
virtual void SetString(unsigned int n, const wxString& s) wxOVERRIDE;
|
||||||
|
|
||||||
// resolve ambiguity between wxItemContainer and wxVListBox versions
|
// resolve ambiguity between wxItemContainer and wxVListBox versions
|
||||||
void Clear();
|
void Clear() wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual int DoInsertItems(const wxArrayStringsAdapter & items,
|
virtual int DoInsertItems(const wxArrayStringsAdapter & items,
|
||||||
|
@@ -239,7 +239,7 @@ public:
|
|||||||
|
|
||||||
// title is used as the tab label
|
// title is used as the tab label
|
||||||
virtual wxString GetTitle() const wxOVERRIDE { return m_title; }
|
virtual wxString GetTitle() const wxOVERRIDE { return m_title; }
|
||||||
virtual void SetTitle(const wxString& title) = 0;
|
virtual void SetTitle(const wxString& title) wxOVERRIDE = 0;
|
||||||
|
|
||||||
// no maximize etc
|
// no maximize etc
|
||||||
virtual void Maximize(bool WXUNUSED(maximize) = true) wxOVERRIDE { }
|
virtual void Maximize(bool WXUNUSED(maximize) = true) wxOVERRIDE { }
|
||||||
|
@@ -190,7 +190,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
virtual bool IsShown() const;
|
virtual bool IsShown() const wxOVERRIDE;
|
||||||
#endif // __WXMSW__
|
#endif // __WXMSW__
|
||||||
|
|
||||||
// this is an implementation detail: called when the native window is
|
// this is an implementation detail: called when the native window is
|
||||||
|
@@ -158,14 +158,14 @@ public:
|
|||||||
const wxString& name = wxPG_LABEL,
|
const wxString& name = wxPG_LABEL,
|
||||||
const wxFont& value = wxFont());
|
const wxFont& value = wxFont());
|
||||||
virtual ~wxFontProperty();
|
virtual ~wxFontProperty();
|
||||||
virtual void OnSetValue();
|
virtual void OnSetValue() wxOVERRIDE;
|
||||||
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const;
|
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool OnEvent( wxPropertyGrid* propgrid,
|
virtual bool OnEvent( wxPropertyGrid* propgrid,
|
||||||
wxWindow* primary, wxEvent& event );
|
wxWindow* primary, wxEvent& event ) wxOVERRIDE;
|
||||||
virtual wxVariant ChildChanged( wxVariant& thisValue,
|
virtual wxVariant ChildChanged( wxVariant& thisValue,
|
||||||
int childIndex,
|
int childIndex,
|
||||||
wxVariant& childValue ) const;
|
wxVariant& childValue ) const wxOVERRIDE;
|
||||||
virtual void RefreshChildren();
|
virtual void RefreshChildren() wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
};
|
};
|
||||||
@@ -193,10 +193,10 @@ public:
|
|||||||
value = wxColourPropertyValue() );
|
value = wxColourPropertyValue() );
|
||||||
virtual ~wxSystemColourProperty();
|
virtual ~wxSystemColourProperty();
|
||||||
|
|
||||||
virtual void OnSetValue();
|
virtual void OnSetValue() wxOVERRIDE;
|
||||||
virtual bool IntToValue(wxVariant& variant,
|
virtual bool IntToValue(wxVariant& variant,
|
||||||
int number,
|
int number,
|
||||||
int argFlags = 0) const;
|
int argFlags = 0) const wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Override in derived class to customize how colours are printed as
|
Override in derived class to customize how colours are printed as
|
||||||
@@ -210,16 +210,16 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual int GetCustomColourIndex() const;
|
virtual int GetCustomColourIndex() const;
|
||||||
|
|
||||||
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const;
|
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool StringToValue( wxVariant& variant,
|
virtual bool StringToValue( wxVariant& variant,
|
||||||
const wxString& text,
|
const wxString& text,
|
||||||
int argFlags = 0 ) const;
|
int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool OnEvent( wxPropertyGrid* propgrid,
|
virtual bool OnEvent( wxPropertyGrid* propgrid,
|
||||||
wxWindow* primary, wxEvent& event );
|
wxWindow* primary, wxEvent& event ) wxOVERRIDE;
|
||||||
virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
|
virtual bool DoSetAttribute( const wxString& name, wxVariant& value ) wxOVERRIDE;
|
||||||
virtual wxSize OnMeasureImage( int item ) const;
|
virtual wxSize OnMeasureImage( int item ) const wxOVERRIDE;
|
||||||
virtual void OnCustomPaint( wxDC& dc,
|
virtual void OnCustomPaint( wxDC& dc,
|
||||||
const wxRect& rect, wxPGPaintData& paintdata );
|
const wxRect& rect, wxPGPaintData& paintdata ) wxOVERRIDE;
|
||||||
|
|
||||||
// Helper function to show the colour dialog
|
// Helper function to show the colour dialog
|
||||||
bool QueryColourFromUser( wxVariant& variant ) const;
|
bool QueryColourFromUser( wxVariant& variant ) const;
|
||||||
@@ -270,11 +270,11 @@ public:
|
|||||||
const wxColour& value = *wxWHITE );
|
const wxColour& value = *wxWHITE );
|
||||||
virtual ~wxColourProperty();
|
virtual ~wxColourProperty();
|
||||||
|
|
||||||
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const;
|
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual wxColour GetColour( int index ) const;
|
virtual wxColour GetColour( int index ) const wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxVariant DoTranslateVal( wxColourPropertyValue& v ) const;
|
virtual wxVariant DoTranslateVal( wxColourPropertyValue& v ) const wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init( wxColour colour );
|
void Init( wxColour colour );
|
||||||
@@ -295,9 +295,9 @@ class WXDLLIMPEXP_PROPGRID wxCursorProperty : public wxEnumProperty
|
|||||||
int value = 0 );
|
int value = 0 );
|
||||||
virtual ~wxCursorProperty();
|
virtual ~wxCursorProperty();
|
||||||
|
|
||||||
virtual wxSize OnMeasureImage( int item ) const;
|
virtual wxSize OnMeasureImage( int item ) const wxOVERRIDE;
|
||||||
virtual void OnCustomPaint( wxDC& dc,
|
virtual void OnCustomPaint( wxDC& dc,
|
||||||
const wxRect& rect, wxPGPaintData& paintdata );
|
const wxRect& rect, wxPGPaintData& paintdata ) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
@@ -320,11 +320,11 @@ public:
|
|||||||
const wxString& value = wxEmptyString);
|
const wxString& value = wxEmptyString);
|
||||||
virtual ~wxImageFileProperty();
|
virtual ~wxImageFileProperty();
|
||||||
|
|
||||||
virtual void OnSetValue();
|
virtual void OnSetValue() wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxSize OnMeasureImage( int item ) const;
|
virtual wxSize OnMeasureImage( int item ) const wxOVERRIDE;
|
||||||
virtual void OnCustomPaint( wxDC& dc,
|
virtual void OnCustomPaint( wxDC& dc,
|
||||||
const wxRect& rect, wxPGPaintData& paintdata );
|
const wxRect& rect, wxPGPaintData& paintdata ) wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxBitmap* m_pBitmap; // final thumbnail area
|
wxBitmap* m_pBitmap; // final thumbnail area
|
||||||
@@ -371,13 +371,13 @@ public:
|
|||||||
|
|
||||||
virtual ~wxMultiChoiceProperty();
|
virtual ~wxMultiChoiceProperty();
|
||||||
|
|
||||||
virtual void OnSetValue();
|
virtual void OnSetValue() wxOVERRIDE;
|
||||||
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const;
|
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool StringToValue(wxVariant& variant,
|
virtual bool StringToValue(wxVariant& variant,
|
||||||
const wxString& text,
|
const wxString& text,
|
||||||
int argFlags = 0) const;
|
int argFlags = 0) const wxOVERRIDE;
|
||||||
virtual bool OnEvent( wxPropertyGrid* propgrid,
|
virtual bool OnEvent( wxPropertyGrid* propgrid,
|
||||||
wxWindow* primary, wxEvent& event );
|
wxWindow* primary, wxEvent& event ) wxOVERRIDE;
|
||||||
|
|
||||||
wxArrayInt GetValueAsArrayInt() const
|
wxArrayInt GetValueAsArrayInt() const
|
||||||
{
|
{
|
||||||
@@ -423,13 +423,13 @@ public:
|
|||||||
const wxDateTime& value = wxDateTime() );
|
const wxDateTime& value = wxDateTime() );
|
||||||
virtual ~wxDateProperty();
|
virtual ~wxDateProperty();
|
||||||
|
|
||||||
virtual void OnSetValue();
|
virtual void OnSetValue() wxOVERRIDE;
|
||||||
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const;
|
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool StringToValue(wxVariant& variant,
|
virtual bool StringToValue(wxVariant& variant,
|
||||||
const wxString& text,
|
const wxString& text,
|
||||||
int argFlags = 0) const;
|
int argFlags = 0) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
|
virtual bool DoSetAttribute( const wxString& name, wxVariant& value ) wxOVERRIDE;
|
||||||
|
|
||||||
void SetFormat( const wxString& format )
|
void SetFormat( const wxString& format )
|
||||||
{
|
{
|
||||||
@@ -498,13 +498,13 @@ class WXDLLIMPEXP_PROPGRID wxPGSpinCtrlEditor : public wxPGTextCtrlEditor
|
|||||||
public:
|
public:
|
||||||
virtual ~wxPGSpinCtrlEditor();
|
virtual ~wxPGSpinCtrlEditor();
|
||||||
|
|
||||||
wxString GetName() const;
|
wxString GetName() const wxOVERRIDE;
|
||||||
virtual wxPGWindowList CreateControls(wxPropertyGrid* propgrid,
|
virtual wxPGWindowList CreateControls(wxPropertyGrid* propgrid,
|
||||||
wxPGProperty* property,
|
wxPGProperty* property,
|
||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& size) const;
|
const wxSize& size) const wxOVERRIDE;
|
||||||
virtual bool OnEvent( wxPropertyGrid* propgrid, wxPGProperty* property,
|
virtual bool OnEvent( wxPropertyGrid* propgrid, wxPGProperty* property,
|
||||||
wxWindow* wnd, wxEvent& event ) const;
|
wxWindow* wnd, wxEvent& event ) const wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
mutable wxString m_tempString;
|
mutable wxString m_tempString;
|
||||||
|
@@ -254,24 +254,24 @@ public:
|
|||||||
virtual wxPGWindowList CreateControls(wxPropertyGrid* propgrid,
|
virtual wxPGWindowList CreateControls(wxPropertyGrid* propgrid,
|
||||||
wxPGProperty* property,
|
wxPGProperty* property,
|
||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& size) const;
|
const wxSize& size) const wxOVERRIDE;
|
||||||
virtual void UpdateControl( wxPGProperty* property,
|
virtual void UpdateControl( wxPGProperty* property,
|
||||||
wxWindow* ctrl ) const;
|
wxWindow* ctrl ) const wxOVERRIDE;
|
||||||
virtual bool OnEvent( wxPropertyGrid* propgrid,
|
virtual bool OnEvent( wxPropertyGrid* propgrid,
|
||||||
wxPGProperty* property,
|
wxPGProperty* property,
|
||||||
wxWindow* primaryCtrl,
|
wxWindow* primaryCtrl,
|
||||||
wxEvent& event ) const;
|
wxEvent& event ) const wxOVERRIDE;
|
||||||
virtual bool GetValueFromControl( wxVariant& variant,
|
virtual bool GetValueFromControl( wxVariant& variant,
|
||||||
wxPGProperty* property,
|
wxPGProperty* property,
|
||||||
wxWindow* ctrl ) const;
|
wxWindow* ctrl ) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetName() const;
|
virtual wxString GetName() const wxOVERRIDE;
|
||||||
|
|
||||||
//virtual wxPGCellRenderer* GetCellRenderer() const;
|
//virtual wxPGCellRenderer* GetCellRenderer() const;
|
||||||
virtual void SetControlStringValue( wxPGProperty* property,
|
virtual void SetControlStringValue( wxPGProperty* property,
|
||||||
wxWindow* ctrl,
|
wxWindow* ctrl,
|
||||||
const wxString& txt ) const;
|
const wxString& txt ) const wxOVERRIDE;
|
||||||
virtual void OnFocus( wxPGProperty* property, wxWindow* wnd ) const;
|
virtual void OnFocus( wxPGProperty* property, wxWindow* wnd ) const wxOVERRIDE;
|
||||||
|
|
||||||
// Provided so that, for example, ComboBox editor can use the same code
|
// Provided so that, for example, ComboBox editor can use the same code
|
||||||
// (multiple inheritance would get way too messy).
|
// (multiple inheritance would get way too messy).
|
||||||
@@ -297,32 +297,32 @@ public:
|
|||||||
virtual wxPGWindowList CreateControls(wxPropertyGrid* propgrid,
|
virtual wxPGWindowList CreateControls(wxPropertyGrid* propgrid,
|
||||||
wxPGProperty* property,
|
wxPGProperty* property,
|
||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& size) const;
|
const wxSize& size) const wxOVERRIDE;
|
||||||
virtual void UpdateControl( wxPGProperty* property,
|
virtual void UpdateControl( wxPGProperty* property,
|
||||||
wxWindow* ctrl ) const;
|
wxWindow* ctrl ) const wxOVERRIDE;
|
||||||
virtual bool OnEvent( wxPropertyGrid* propgrid,
|
virtual bool OnEvent( wxPropertyGrid* propgrid,
|
||||||
wxPGProperty* property,
|
wxPGProperty* property,
|
||||||
wxWindow* primaryCtrl,
|
wxWindow* primaryCtrl,
|
||||||
wxEvent& event ) const;
|
wxEvent& event ) const wxOVERRIDE;
|
||||||
virtual bool GetValueFromControl( wxVariant& variant,
|
virtual bool GetValueFromControl( wxVariant& variant,
|
||||||
wxPGProperty* property,
|
wxPGProperty* property,
|
||||||
wxWindow* ctrl ) const;
|
wxWindow* ctrl ) const wxOVERRIDE;
|
||||||
virtual void SetValueToUnspecified( wxPGProperty* property,
|
virtual void SetValueToUnspecified( wxPGProperty* property,
|
||||||
wxWindow* ctrl ) const;
|
wxWindow* ctrl ) const wxOVERRIDE;
|
||||||
virtual wxString GetName() const;
|
virtual wxString GetName() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual void SetControlIntValue( wxPGProperty* property,
|
virtual void SetControlIntValue( wxPGProperty* property,
|
||||||
wxWindow* ctrl,
|
wxWindow* ctrl,
|
||||||
int value ) const;
|
int value ) const wxOVERRIDE;
|
||||||
virtual void SetControlStringValue( wxPGProperty* property,
|
virtual void SetControlStringValue( wxPGProperty* property,
|
||||||
wxWindow* ctrl,
|
wxWindow* ctrl,
|
||||||
const wxString& txt ) const;
|
const wxString& txt ) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual int InsertItem( wxWindow* ctrl,
|
virtual int InsertItem( wxWindow* ctrl,
|
||||||
const wxString& label,
|
const wxString& label,
|
||||||
int index ) const;
|
int index ) const wxOVERRIDE;
|
||||||
virtual void DeleteItem( wxWindow* ctrl, int index ) const;
|
virtual void DeleteItem( wxWindow* ctrl, int index ) const wxOVERRIDE;
|
||||||
virtual bool CanContainCustomImage() const;
|
virtual bool CanContainCustomImage() const wxOVERRIDE;
|
||||||
|
|
||||||
// CreateControls calls this with CB_READONLY in extraStyle
|
// CreateControls calls this with CB_READONLY in extraStyle
|
||||||
wxWindow* CreateControlsBase( wxPropertyGrid* propgrid,
|
wxWindow* CreateControlsBase( wxPropertyGrid* propgrid,
|
||||||
@@ -344,20 +344,20 @@ public:
|
|||||||
virtual wxPGWindowList CreateControls(wxPropertyGrid* propgrid,
|
virtual wxPGWindowList CreateControls(wxPropertyGrid* propgrid,
|
||||||
wxPGProperty* property,
|
wxPGProperty* property,
|
||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& size) const;
|
const wxSize& size) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetName() const;
|
virtual wxString GetName() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual void UpdateControl( wxPGProperty* property, wxWindow* ctrl ) const;
|
virtual void UpdateControl( wxPGProperty* property, wxWindow* ctrl ) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool OnEvent( wxPropertyGrid* propgrid, wxPGProperty* property,
|
virtual bool OnEvent( wxPropertyGrid* propgrid, wxPGProperty* property,
|
||||||
wxWindow* ctrl, wxEvent& event ) const;
|
wxWindow* ctrl, wxEvent& event ) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool GetValueFromControl( wxVariant& variant,
|
virtual bool GetValueFromControl( wxVariant& variant,
|
||||||
wxPGProperty* property,
|
wxPGProperty* property,
|
||||||
wxWindow* ctrl ) const;
|
wxWindow* ctrl ) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual void OnFocus( wxPGProperty* property, wxWindow* wnd ) const;
|
virtual void OnFocus( wxPGProperty* property, wxWindow* wnd ) const wxOVERRIDE;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -367,12 +367,12 @@ class WXDLLIMPEXP_PROPGRID wxPGChoiceAndButtonEditor : public wxPGChoiceEditor
|
|||||||
public:
|
public:
|
||||||
wxPGChoiceAndButtonEditor() {}
|
wxPGChoiceAndButtonEditor() {}
|
||||||
virtual ~wxPGChoiceAndButtonEditor();
|
virtual ~wxPGChoiceAndButtonEditor();
|
||||||
virtual wxString GetName() const;
|
virtual wxString GetName() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxPGWindowList CreateControls(wxPropertyGrid* propgrid,
|
virtual wxPGWindowList CreateControls(wxPropertyGrid* propgrid,
|
||||||
wxPGProperty* property,
|
wxPGProperty* property,
|
||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& size) const;
|
const wxSize& size) const wxOVERRIDE;
|
||||||
|
|
||||||
wxDECLARE_DYNAMIC_CLASS(wxPGChoiceAndButtonEditor);
|
wxDECLARE_DYNAMIC_CLASS(wxPGChoiceAndButtonEditor);
|
||||||
};
|
};
|
||||||
@@ -383,12 +383,12 @@ wxPGTextCtrlAndButtonEditor : public wxPGTextCtrlEditor
|
|||||||
public:
|
public:
|
||||||
wxPGTextCtrlAndButtonEditor() {}
|
wxPGTextCtrlAndButtonEditor() {}
|
||||||
virtual ~wxPGTextCtrlAndButtonEditor();
|
virtual ~wxPGTextCtrlAndButtonEditor();
|
||||||
virtual wxString GetName() const;
|
virtual wxString GetName() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxPGWindowList CreateControls(wxPropertyGrid* propgrid,
|
virtual wxPGWindowList CreateControls(wxPropertyGrid* propgrid,
|
||||||
wxPGProperty* property,
|
wxPGProperty* property,
|
||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& size) const;
|
const wxSize& size) const wxOVERRIDE;
|
||||||
|
|
||||||
wxDECLARE_DYNAMIC_CLASS(wxPGTextCtrlAndButtonEditor);
|
wxDECLARE_DYNAMIC_CLASS(wxPGTextCtrlAndButtonEditor);
|
||||||
};
|
};
|
||||||
@@ -407,32 +407,32 @@ public:
|
|||||||
wxPGCheckBoxEditor() {}
|
wxPGCheckBoxEditor() {}
|
||||||
virtual ~wxPGCheckBoxEditor();
|
virtual ~wxPGCheckBoxEditor();
|
||||||
|
|
||||||
virtual wxString GetName() const;
|
virtual wxString GetName() const wxOVERRIDE;
|
||||||
virtual wxPGWindowList CreateControls(wxPropertyGrid* propgrid,
|
virtual wxPGWindowList CreateControls(wxPropertyGrid* propgrid,
|
||||||
wxPGProperty* property,
|
wxPGProperty* property,
|
||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& size) const;
|
const wxSize& size) const wxOVERRIDE;
|
||||||
virtual void UpdateControl( wxPGProperty* property,
|
virtual void UpdateControl( wxPGProperty* property,
|
||||||
wxWindow* ctrl ) const;
|
wxWindow* ctrl ) const wxOVERRIDE;
|
||||||
virtual bool OnEvent( wxPropertyGrid* propgrid,
|
virtual bool OnEvent( wxPropertyGrid* propgrid,
|
||||||
wxPGProperty* property,
|
wxPGProperty* property,
|
||||||
wxWindow* primaryCtrl,
|
wxWindow* primaryCtrl,
|
||||||
wxEvent& event ) const;
|
wxEvent& event ) const wxOVERRIDE;
|
||||||
virtual bool GetValueFromControl( wxVariant& variant,
|
virtual bool GetValueFromControl( wxVariant& variant,
|
||||||
wxPGProperty* property,
|
wxPGProperty* property,
|
||||||
wxWindow* ctrl ) const;
|
wxWindow* ctrl ) const wxOVERRIDE;
|
||||||
virtual void SetValueToUnspecified( wxPGProperty* property,
|
virtual void SetValueToUnspecified( wxPGProperty* property,
|
||||||
wxWindow* ctrl ) const;
|
wxWindow* ctrl ) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DrawValue( wxDC& dc,
|
virtual void DrawValue( wxDC& dc,
|
||||||
const wxRect& rect,
|
const wxRect& rect,
|
||||||
wxPGProperty* property,
|
wxPGProperty* property,
|
||||||
const wxString& text ) const;
|
const wxString& text ) const wxOVERRIDE;
|
||||||
//virtual wxPGCellRenderer* GetCellRenderer() const;
|
//virtual wxPGCellRenderer* GetCellRenderer() const;
|
||||||
|
|
||||||
virtual void SetControlIntValue( wxPGProperty* property,
|
virtual void SetControlIntValue( wxPGProperty* property,
|
||||||
wxWindow* ctrl,
|
wxWindow* ctrl,
|
||||||
int value ) const;
|
int value ) const wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -184,11 +184,11 @@ public:
|
|||||||
wxPGProperty* property,
|
wxPGProperty* property,
|
||||||
int column,
|
int column,
|
||||||
int item,
|
int item,
|
||||||
int flags ) const;
|
int flags ) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxSize GetImageSize( const wxPGProperty* property,
|
virtual wxSize GetImageSize( const wxPGProperty* property,
|
||||||
int column,
|
int column,
|
||||||
int item ) const;
|
int item ) const wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
};
|
};
|
||||||
@@ -2572,7 +2572,7 @@ private:
|
|||||||
//
|
//
|
||||||
|
|
||||||
#define WX_PG_DECLARE_DOGETEDITORCLASS \
|
#define WX_PG_DECLARE_DOGETEDITORCLASS \
|
||||||
virtual const wxPGEditor* DoGetEditorClass() const;
|
virtual const wxPGEditor* DoGetEditorClass() const wxOVERRIDE;
|
||||||
|
|
||||||
#ifndef WX_PG_DECLARE_PROPERTY_CLASS
|
#ifndef WX_PG_DECLARE_PROPERTY_CLASS
|
||||||
#define WX_PG_DECLARE_PROPERTY_CLASS(CLASSNAME) \
|
#define WX_PG_DECLARE_PROPERTY_CLASS(CLASSNAME) \
|
||||||
@@ -2612,7 +2612,7 @@ public:
|
|||||||
wxPGRootProperty( const wxString& name = wxS("<Root>") );
|
wxPGRootProperty( const wxString& name = wxS("<Root>") );
|
||||||
virtual ~wxPGRootProperty();
|
virtual ~wxPGRootProperty();
|
||||||
|
|
||||||
virtual bool StringToValue( wxVariant&, const wxString&, int ) const
|
virtual bool StringToValue( wxVariant&, const wxString&, int ) const wxOVERRIDE
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -2642,8 +2642,8 @@ public:
|
|||||||
|
|
||||||
int GetTextExtent( const wxWindow* wnd, const wxFont& font ) const;
|
int GetTextExtent( const wxWindow* wnd, const wxFont& font ) const;
|
||||||
|
|
||||||
virtual wxString ValueToString( wxVariant& value, int argFlags ) const;
|
virtual wxString ValueToString( wxVariant& value, int argFlags ) const wxOVERRIDE;
|
||||||
virtual wxString GetValueAsString( int argFlags = 0 ) const;
|
virtual wxString GetValueAsString( int argFlags = 0 ) const wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void SetTextColIndex( unsigned int colInd )
|
void SetTextColIndex( unsigned int colInd )
|
||||||
|
@@ -521,11 +521,11 @@ public:\
|
|||||||
\
|
\
|
||||||
const classname &GetValue() const { return m_value; } \
|
const classname &GetValue() const { return m_value; } \
|
||||||
\
|
\
|
||||||
virtual bool Eq(wxVariantData& data) const; \
|
virtual bool Eq(wxVariantData& data) const wxOVERRIDE; \
|
||||||
\
|
\
|
||||||
virtual wxString GetType() const; \
|
virtual wxString GetType() const wxOVERRIDE; \
|
||||||
\
|
\
|
||||||
virtual wxVariantData* Clone() const { return new classname##VariantData(m_value); } \
|
virtual wxVariantData* Clone() const wxOVERRIDE { return new classname##VariantData(m_value); } \
|
||||||
\
|
\
|
||||||
DECLARE_WXANY_CONVERSION() \
|
DECLARE_WXANY_CONVERSION() \
|
||||||
protected:\
|
protected:\
|
||||||
|
@@ -115,16 +115,16 @@ public:
|
|||||||
const wxString& value = wxEmptyString );
|
const wxString& value = wxEmptyString );
|
||||||
virtual ~wxStringProperty();
|
virtual ~wxStringProperty();
|
||||||
|
|
||||||
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const;
|
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool StringToValue( wxVariant& variant,
|
virtual bool StringToValue( wxVariant& variant,
|
||||||
const wxString& text,
|
const wxString& text,
|
||||||
int argFlags = 0 ) const;
|
int argFlags = 0 ) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
|
virtual bool DoSetAttribute( const wxString& name, wxVariant& value ) wxOVERRIDE;
|
||||||
|
|
||||||
/** This is updated so "<composed>" special value can be handled.
|
/** This is updated so "<composed>" special value can be handled.
|
||||||
*/
|
*/
|
||||||
virtual void OnSetValue();
|
virtual void OnSetValue() wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
};
|
};
|
||||||
@@ -167,7 +167,7 @@ public:
|
|||||||
|
|
||||||
wxNumericPropertyValidator( NumericType numericType, int base = 10 );
|
wxNumericPropertyValidator( NumericType numericType, int base = 10 );
|
||||||
virtual ~wxNumericPropertyValidator() { }
|
virtual ~wxNumericPropertyValidator() { }
|
||||||
virtual bool Validate(wxWindow* parent);
|
virtual bool Validate(wxWindow* parent) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_VALIDATORS
|
#endif // wxUSE_VALIDATORS
|
||||||
@@ -228,17 +228,17 @@ public:
|
|||||||
const wxString& name,
|
const wxString& name,
|
||||||
const wxLongLong& value );
|
const wxLongLong& value );
|
||||||
#endif
|
#endif
|
||||||
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const;
|
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool StringToValue( wxVariant& variant,
|
virtual bool StringToValue( wxVariant& variant,
|
||||||
const wxString& text,
|
const wxString& text,
|
||||||
int argFlags = 0 ) const;
|
int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool ValidateValue( wxVariant& value,
|
virtual bool ValidateValue( wxVariant& value,
|
||||||
wxPGValidationInfo& validationInfo ) const;
|
wxPGValidationInfo& validationInfo ) const wxOVERRIDE;
|
||||||
virtual bool IntToValue( wxVariant& variant,
|
virtual bool IntToValue( wxVariant& variant,
|
||||||
int number,
|
int number,
|
||||||
int argFlags = 0 ) const;
|
int argFlags = 0 ) const wxOVERRIDE;
|
||||||
static wxValidator* GetClassValidator();
|
static wxValidator* GetClassValidator();
|
||||||
virtual wxValidator* DoGetValidator() const;
|
virtual wxValidator* DoGetValidator() const wxOVERRIDE;
|
||||||
|
|
||||||
/** Validation helpers.
|
/** Validation helpers.
|
||||||
*/
|
*/
|
||||||
@@ -291,17 +291,17 @@ public:
|
|||||||
const wxString& name,
|
const wxString& name,
|
||||||
const wxULongLong& value );
|
const wxULongLong& value );
|
||||||
#endif
|
#endif
|
||||||
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const;
|
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool StringToValue( wxVariant& variant,
|
virtual bool StringToValue( wxVariant& variant,
|
||||||
const wxString& text,
|
const wxString& text,
|
||||||
int argFlags = 0 ) const;
|
int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
|
virtual bool DoSetAttribute( const wxString& name, wxVariant& value ) wxOVERRIDE;
|
||||||
virtual bool ValidateValue( wxVariant& value,
|
virtual bool ValidateValue( wxVariant& value,
|
||||||
wxPGValidationInfo& validationInfo ) const;
|
wxPGValidationInfo& validationInfo ) const wxOVERRIDE;
|
||||||
virtual wxValidator* DoGetValidator () const;
|
virtual wxValidator* DoGetValidator () const wxOVERRIDE;
|
||||||
virtual bool IntToValue( wxVariant& variant,
|
virtual bool IntToValue( wxVariant& variant,
|
||||||
int number,
|
int number,
|
||||||
int argFlags = 0 ) const;
|
int argFlags = 0 ) const wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxByte m_base;
|
wxByte m_base;
|
||||||
@@ -342,15 +342,15 @@ public:
|
|||||||
double value = 0.0 );
|
double value = 0.0 );
|
||||||
virtual ~wxFloatProperty();
|
virtual ~wxFloatProperty();
|
||||||
|
|
||||||
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const;
|
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool StringToValue( wxVariant& variant,
|
virtual bool StringToValue( wxVariant& variant,
|
||||||
const wxString& text,
|
const wxString& text,
|
||||||
int argFlags = 0 ) const;
|
int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
|
virtual bool DoSetAttribute( const wxString& name, wxVariant& value ) wxOVERRIDE;
|
||||||
virtual wxVariant DoGetAttribute( const wxString& name ) const;
|
virtual wxVariant DoGetAttribute( const wxString& name ) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool ValidateValue( wxVariant& value,
|
virtual bool ValidateValue( wxVariant& value,
|
||||||
wxPGValidationInfo& validationInfo ) const;
|
wxPGValidationInfo& validationInfo ) const wxOVERRIDE;
|
||||||
|
|
||||||
/** Validation helper.
|
/** Validation helper.
|
||||||
*/
|
*/
|
||||||
@@ -360,7 +360,7 @@ public:
|
|||||||
int mode =
|
int mode =
|
||||||
wxPG_PROPERTY_VALIDATION_ERROR_MESSAGE );
|
wxPG_PROPERTY_VALIDATION_ERROR_MESSAGE );
|
||||||
static wxValidator* GetClassValidator();
|
static wxValidator* GetClassValidator();
|
||||||
virtual wxValidator* DoGetValidator () const;
|
virtual wxValidator* DoGetValidator () const wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int m_precision;
|
int m_precision;
|
||||||
@@ -385,14 +385,14 @@ public:
|
|||||||
bool value = false );
|
bool value = false );
|
||||||
virtual ~wxBoolProperty();
|
virtual ~wxBoolProperty();
|
||||||
|
|
||||||
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const;
|
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool StringToValue( wxVariant& variant,
|
virtual bool StringToValue( wxVariant& variant,
|
||||||
const wxString& text,
|
const wxString& text,
|
||||||
int argFlags = 0 ) const;
|
int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool IntToValue( wxVariant& variant,
|
virtual bool IntToValue( wxVariant& variant,
|
||||||
int number, int argFlags = 0 ) const;
|
int number, int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
|
virtual bool DoSetAttribute( const wxString& name, wxVariant& value ) wxOVERRIDE;
|
||||||
virtual wxVariant DoGetAttribute( const wxString& name ) const;
|
virtual wxVariant DoGetAttribute( const wxString& name ) const wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
@@ -453,19 +453,19 @@ public:
|
|||||||
|
|
||||||
size_t GetItemCount() const { return m_choices.GetCount(); }
|
size_t GetItemCount() const { return m_choices.GetCount(); }
|
||||||
|
|
||||||
virtual void OnSetValue();
|
virtual void OnSetValue() wxOVERRIDE;
|
||||||
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const;
|
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool StringToValue( wxVariant& variant,
|
virtual bool StringToValue( wxVariant& variant,
|
||||||
const wxString& text,
|
const wxString& text,
|
||||||
int argFlags = 0 ) const;
|
int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool ValidateValue( wxVariant& value,
|
virtual bool ValidateValue( wxVariant& value,
|
||||||
wxPGValidationInfo& validationInfo ) const;
|
wxPGValidationInfo& validationInfo ) const wxOVERRIDE;
|
||||||
|
|
||||||
// If wxPG_FULL_VALUE is not set in flags, then the value is interpreted
|
// If wxPG_FULL_VALUE is not set in flags, then the value is interpreted
|
||||||
// as index to choices list. Otherwise, it is actual value.
|
// as index to choices list. Otherwise, it is actual value.
|
||||||
virtual bool IntToValue( wxVariant& variant,
|
virtual bool IntToValue( wxVariant& variant,
|
||||||
int number,
|
int number,
|
||||||
int argFlags = 0 ) const;
|
int argFlags = 0 ) const wxOVERRIDE;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Additional virtuals
|
// Additional virtuals
|
||||||
@@ -476,9 +476,9 @@ public:
|
|||||||
// GetChoiceSelection needs to overridden since m_index is
|
// GetChoiceSelection needs to overridden since m_index is
|
||||||
// the true index, and various property classes derived from
|
// the true index, and various property classes derived from
|
||||||
// this take advantage of it.
|
// this take advantage of it.
|
||||||
virtual int GetChoiceSelection() const { return m_index; }
|
virtual int GetChoiceSelection() const wxOVERRIDE { return m_index; }
|
||||||
|
|
||||||
virtual void OnValidationFailure( wxVariant& pendingValue );
|
virtual void OnValidationFailure( wxVariant& pendingValue ) wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
@@ -600,20 +600,20 @@ public:
|
|||||||
int value = 0 );
|
int value = 0 );
|
||||||
virtual ~wxFlagsProperty ();
|
virtual ~wxFlagsProperty ();
|
||||||
|
|
||||||
virtual void OnSetValue();
|
virtual void OnSetValue() wxOVERRIDE;
|
||||||
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const;
|
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool StringToValue( wxVariant& variant,
|
virtual bool StringToValue( wxVariant& variant,
|
||||||
const wxString& text,
|
const wxString& text,
|
||||||
int flags ) const;
|
int flags ) const wxOVERRIDE;
|
||||||
virtual wxVariant ChildChanged( wxVariant& thisValue,
|
virtual wxVariant ChildChanged( wxVariant& thisValue,
|
||||||
int childIndex,
|
int childIndex,
|
||||||
wxVariant& childValue ) const;
|
wxVariant& childValue ) const wxOVERRIDE;
|
||||||
virtual void RefreshChildren();
|
virtual void RefreshChildren() wxOVERRIDE;
|
||||||
virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
|
virtual bool DoSetAttribute( const wxString& name, wxVariant& value ) wxOVERRIDE;
|
||||||
|
|
||||||
// GetChoiceSelection needs to overridden since m_choices is
|
// GetChoiceSelection needs to overridden since m_choices is
|
||||||
// used and value is integer, but it is not index.
|
// used and value is integer, but it is not index.
|
||||||
virtual int GetChoiceSelection() const { return wxNOT_FOUND; }
|
virtual int GetChoiceSelection() const wxOVERRIDE { return wxNOT_FOUND; }
|
||||||
|
|
||||||
// helpers
|
// helpers
|
||||||
size_t GetItemCount() const { return m_choices.GetCount(); }
|
size_t GetItemCount() const { return m_choices.GetCount(); }
|
||||||
@@ -644,7 +644,7 @@ class WXDLLIMPEXP_PROPGRID
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual bool DoShowDialog( wxPropertyGrid* propGrid,
|
virtual bool DoShowDialog( wxPropertyGrid* propGrid,
|
||||||
wxPGProperty* property );
|
wxPGProperty* property ) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
@@ -677,16 +677,16 @@ public:
|
|||||||
const wxString& value = wxEmptyString );
|
const wxString& value = wxEmptyString );
|
||||||
virtual ~wxFileProperty ();
|
virtual ~wxFileProperty ();
|
||||||
|
|
||||||
virtual void OnSetValue();
|
virtual void OnSetValue() wxOVERRIDE;
|
||||||
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const;
|
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool StringToValue( wxVariant& variant,
|
virtual bool StringToValue( wxVariant& variant,
|
||||||
const wxString& text,
|
const wxString& text,
|
||||||
int argFlags = 0 ) const;
|
int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual wxPGEditorDialogAdapter* GetEditorDialog() const;
|
virtual wxPGEditorDialogAdapter* GetEditorDialog() const wxOVERRIDE;
|
||||||
virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
|
virtual bool DoSetAttribute( const wxString& name, wxVariant& value ) wxOVERRIDE;
|
||||||
|
|
||||||
static wxValidator* GetClassValidator();
|
static wxValidator* GetClassValidator();
|
||||||
virtual wxValidator* DoGetValidator() const;
|
virtual wxValidator* DoGetValidator() const wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns filename to file represented by current value.
|
Returns filename to file represented by current value.
|
||||||
@@ -717,7 +717,7 @@ class WXDLLIMPEXP_PROPGRID
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual bool DoShowDialog( wxPropertyGrid* propGrid,
|
virtual bool DoShowDialog( wxPropertyGrid* propGrid,
|
||||||
wxPGProperty* property );
|
wxPGProperty* property ) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -736,12 +736,12 @@ public:
|
|||||||
const wxString& value = wxEmptyString );
|
const wxString& value = wxEmptyString );
|
||||||
virtual ~wxLongStringProperty();
|
virtual ~wxLongStringProperty();
|
||||||
|
|
||||||
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const;
|
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool StringToValue( wxVariant& variant,
|
virtual bool StringToValue( wxVariant& variant,
|
||||||
const wxString& text,
|
const wxString& text,
|
||||||
int argFlags = 0 ) const;
|
int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool OnEvent( wxPropertyGrid* propgrid,
|
virtual bool OnEvent( wxPropertyGrid* propgrid,
|
||||||
wxWindow* primary, wxEvent& event );
|
wxWindow* primary, wxEvent& event ) wxOVERRIDE;
|
||||||
|
|
||||||
// Shows string editor dialog. Value to be edited should be read from
|
// Shows string editor dialog. Value to be edited should be read from
|
||||||
// value, and if dialog is not cancelled, it should be stored back and true
|
// value, and if dialog is not cancelled, it should be stored back and true
|
||||||
@@ -774,10 +774,10 @@ public:
|
|||||||
const wxString& value = wxEmptyString );
|
const wxString& value = wxEmptyString );
|
||||||
virtual ~wxDirProperty();
|
virtual ~wxDirProperty();
|
||||||
|
|
||||||
virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
|
virtual bool DoSetAttribute( const wxString& name, wxVariant& value ) wxOVERRIDE;
|
||||||
virtual wxValidator* DoGetValidator() const;
|
virtual wxValidator* DoGetValidator() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool OnButtonClick ( wxPropertyGrid* propGrid, wxString& value );
|
virtual bool OnButtonClick ( wxPropertyGrid* propGrid, wxString& value ) wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxString m_dlgMessage;
|
wxString m_dlgMessage;
|
||||||
@@ -806,14 +806,14 @@ public:
|
|||||||
const wxArrayString& value = wxArrayString() );
|
const wxArrayString& value = wxArrayString() );
|
||||||
virtual ~wxArrayStringProperty();
|
virtual ~wxArrayStringProperty();
|
||||||
|
|
||||||
virtual void OnSetValue();
|
virtual void OnSetValue() wxOVERRIDE;
|
||||||
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const;
|
virtual wxString ValueToString( wxVariant& value, int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool StringToValue( wxVariant& variant,
|
virtual bool StringToValue( wxVariant& variant,
|
||||||
const wxString& text,
|
const wxString& text,
|
||||||
int argFlags = 0 ) const;
|
int argFlags = 0 ) const wxOVERRIDE;
|
||||||
virtual bool OnEvent( wxPropertyGrid* propgrid,
|
virtual bool OnEvent( wxPropertyGrid* propgrid,
|
||||||
wxWindow* primary, wxEvent& event );
|
wxWindow* primary, wxEvent& event ) wxOVERRIDE;
|
||||||
virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
|
virtual bool DoSetAttribute( const wxString& name, wxVariant& value ) wxOVERRIDE;
|
||||||
|
|
||||||
// Implement in derived class for custom array-to-string conversion.
|
// Implement in derived class for custom array-to-string conversion.
|
||||||
virtual void ConvertArrayToString(const wxArrayString& arr,
|
virtual void ConvertArrayToString(const wxArrayString& arr,
|
||||||
@@ -1041,12 +1041,12 @@ public:
|
|||||||
|
|
||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
virtual void SetDialogValue( const wxVariant& value )
|
virtual void SetDialogValue( const wxVariant& value ) wxOVERRIDE
|
||||||
{
|
{
|
||||||
m_array = value.GetArrayString();
|
m_array = value.GetArrayString();
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual wxVariant GetDialogValue() const
|
virtual wxVariant GetDialogValue() const wxOVERRIDE
|
||||||
{
|
{
|
||||||
return m_array;
|
return m_array;
|
||||||
}
|
}
|
||||||
@@ -1061,19 +1061,19 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool OnCustomNewAction(wxString* resString);
|
virtual bool OnCustomNewAction(wxString* resString) wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxArrayString m_array;
|
wxArrayString m_array;
|
||||||
|
|
||||||
wxArrayStringProperty* m_pCallingClass;
|
wxArrayStringProperty* m_pCallingClass;
|
||||||
|
|
||||||
virtual wxString ArrayGet( size_t index );
|
virtual wxString ArrayGet( size_t index ) wxOVERRIDE;
|
||||||
virtual size_t ArrayGetCount();
|
virtual size_t ArrayGetCount() wxOVERRIDE;
|
||||||
virtual bool ArrayInsert( const wxString& str, int index );
|
virtual bool ArrayInsert( const wxString& str, int index ) wxOVERRIDE;
|
||||||
virtual bool ArraySet( size_t index, const wxString& str );
|
virtual bool ArraySet( size_t index, const wxString& str ) wxOVERRIDE;
|
||||||
virtual void ArrayRemoveAt( int index );
|
virtual void ArrayRemoveAt( int index ) wxOVERRIDE;
|
||||||
virtual void ArraySwap( size_t first, size_t second );
|
virtual void ArraySwap( size_t first, size_t second ) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPGArrayStringEditorDialog);
|
wxDECLARE_DYNAMIC_CLASS_NO_COPY(wxPGArrayStringEditorDialog);
|
||||||
|
@@ -72,8 +72,8 @@ public:
|
|||||||
wxRichTextAttr* GetAttributes();
|
wxRichTextAttr* GetAttributes();
|
||||||
|
|
||||||
/// Data transfer
|
/// Data transfer
|
||||||
virtual bool TransferDataToWindow();
|
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||||
virtual bool TransferDataFromWindow();
|
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||||
|
|
||||||
/// Respond to colour swatch click
|
/// Respond to colour swatch click
|
||||||
void OnColourSwatch(wxCommandEvent& event);
|
void OnColourSwatch(wxCommandEvent& event);
|
||||||
|
@@ -73,8 +73,8 @@ public:
|
|||||||
wxRichTextAttr* GetAttributes();
|
wxRichTextAttr* GetAttributes();
|
||||||
|
|
||||||
/// Data transfer
|
/// Data transfer
|
||||||
virtual bool TransferDataToWindow();
|
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||||
virtual bool TransferDataFromWindow();
|
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||||
|
|
||||||
/// Updates the synchronization checkboxes to reflect the state of the attributes
|
/// Updates the synchronization checkboxes to reflect the state of the attributes
|
||||||
void UpdateSyncControls();
|
void UpdateSyncControls();
|
||||||
|
@@ -3115,21 +3115,21 @@ public:
|
|||||||
|
|
||||||
// Overridables
|
// Overridables
|
||||||
|
|
||||||
virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0);
|
virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool FindPosition(wxDC& dc, wxRichTextDrawingContext& context, long index, wxPoint& pt, int* height, bool forceLineStart);
|
virtual bool FindPosition(wxDC& dc, wxRichTextDrawingContext& context, long index, wxPoint& pt, int* height, bool forceLineStart) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void CalculateRange(long start, long& end);
|
virtual void CalculateRange(long start, long& end) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool DeleteRange(const wxRichTextRange& range);
|
virtual bool DeleteRange(const wxRichTextRange& range) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetTextForRange(const wxRichTextRange& range) const;
|
virtual wxString GetTextForRange(const wxRichTextRange& range) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxPoint(0,0), const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const;
|
virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxPoint(0,0), const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual void Dump(wxTextOutputStream& stream);
|
virtual void Dump(wxTextOutputStream& stream) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void Invalidate(const wxRichTextRange& invalidRange = wxRICHTEXT_ALL);
|
virtual void Invalidate(const wxRichTextRange& invalidRange = wxRICHTEXT_ALL) wxOVERRIDE;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
|
|
||||||
@@ -3155,18 +3155,18 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns @true if this object is composite.
|
Returns @true if this object is composite.
|
||||||
*/
|
*/
|
||||||
virtual bool IsComposite() const { return true; }
|
virtual bool IsComposite() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns @true if no user editing can be done inside the object. This returns @true for simple objects,
|
Returns @true if no user editing can be done inside the object. This returns @true for simple objects,
|
||||||
@false for most composite objects, but @true for fields, which if composite, should not be user-edited.
|
@false for most composite objects, but @true for fields, which if composite, should not be user-edited.
|
||||||
*/
|
*/
|
||||||
virtual bool IsAtomic() const { return false; }
|
virtual bool IsAtomic() const wxOVERRIDE { return false; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns true if the buffer is empty.
|
Returns true if the buffer is empty.
|
||||||
*/
|
*/
|
||||||
virtual bool IsEmpty() const { return GetChildCount() == 0; }
|
virtual bool IsEmpty() const wxOVERRIDE { return GetChildCount() == 0; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the child object at the given character position.
|
Returns the child object at the given character position.
|
||||||
@@ -3207,7 +3207,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Moves the object recursively, by adding the offset from old to new.
|
Moves the object recursively, by adding the offset from old to new.
|
||||||
*/
|
*/
|
||||||
virtual void Move(const wxPoint& pt);
|
virtual void Move(const wxPoint& pt) wxOVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxRichTextObjectList m_children;
|
wxRichTextObjectList m_children;
|
||||||
@@ -3236,33 +3236,33 @@ public:
|
|||||||
|
|
||||||
// Overridables
|
// Overridables
|
||||||
|
|
||||||
virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0);
|
virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style);
|
virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style);
|
virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxPoint(0,0), const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const;
|
virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxPoint(0,0), const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool DeleteRange(const wxRichTextRange& range);
|
virtual bool DeleteRange(const wxRichTextRange& range) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetTextForRange(const wxRichTextRange& range) const;
|
virtual wxString GetTextForRange(const wxRichTextRange& range) const wxOVERRIDE;
|
||||||
|
|
||||||
#if wxUSE_XML
|
#if wxUSE_XML
|
||||||
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse);
|
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
|
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
|
||||||
virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler);
|
virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT
|
#if wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT
|
||||||
virtual bool ExportXML(wxXmlNode* parent, wxRichTextXMLHandler* handler);
|
virtual bool ExportXML(wxXmlNode* parent, wxRichTextXMLHandler* handler) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
virtual wxString GetXMLNodeName() const { return wxT("paragraphlayout"); }
|
virtual wxString GetXMLNodeName() const wxOVERRIDE { return wxT("paragraphlayout"); }
|
||||||
|
|
||||||
virtual bool AcceptsFocus() const { return true; }
|
virtual bool AcceptsFocus() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
|
|
||||||
@@ -3291,7 +3291,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual wxRichTextStyleSheet* GetStyleSheet() const;
|
virtual wxRichTextStyleSheet* GetStyleSheet() const;
|
||||||
|
|
||||||
virtual bool IsTopLevel() const { return true; }
|
virtual bool IsTopLevel() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
// Operations
|
// Operations
|
||||||
|
|
||||||
@@ -3681,7 +3681,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual bool HasParagraphAttributes(const wxRichTextRange& range, const wxRichTextAttr& style) const;
|
virtual bool HasParagraphAttributes(const wxRichTextRange& range, const wxRichTextAttr& style) const;
|
||||||
|
|
||||||
virtual wxRichTextObject* Clone() const { return new wxRichTextParagraphLayoutBox(*this); }
|
virtual wxRichTextObject* Clone() const wxOVERRIDE { return new wxRichTextParagraphLayoutBox(*this); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Prepares the content just before insertion (or after buffer reset).
|
Prepares the content just before insertion (or after buffer reset).
|
||||||
@@ -3760,7 +3760,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Invalidates the buffer. With no argument, invalidates whole buffer.
|
Invalidates the buffer. With no argument, invalidates whole buffer.
|
||||||
*/
|
*/
|
||||||
virtual void Invalidate(const wxRichTextRange& invalidRange = wxRICHTEXT_ALL);
|
virtual void Invalidate(const wxRichTextRange& invalidRange = wxRICHTEXT_ALL) wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Do the (in)validation for this object only.
|
Do the (in)validation for this object only.
|
||||||
@@ -3849,21 +3849,21 @@ public:
|
|||||||
|
|
||||||
// Overridables
|
// Overridables
|
||||||
|
|
||||||
virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style);
|
virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetXMLNodeName() const { return wxT("textbox"); }
|
virtual wxString GetXMLNodeName() const wxOVERRIDE { return wxT("textbox"); }
|
||||||
|
|
||||||
virtual bool CanEditProperties() const { return true; }
|
virtual bool CanEditProperties() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer);
|
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetPropertiesMenuLabel() const { return wxGetTranslation("&Box"); }
|
virtual wxString GetPropertiesMenuLabel() const wxOVERRIDE { return wxGetTranslation("&Box"); }
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
|
|
||||||
// Operations
|
// Operations
|
||||||
|
|
||||||
virtual wxRichTextObject* Clone() const { return new wxRichTextBox(*this); }
|
virtual wxRichTextObject* Clone() const wxOVERRIDE { return new wxRichTextBox(*this); }
|
||||||
|
|
||||||
void Copy(const wxRichTextBox& obj);
|
void Copy(const wxRichTextBox& obj);
|
||||||
|
|
||||||
@@ -3931,32 +3931,32 @@ public:
|
|||||||
|
|
||||||
// Overridables
|
// Overridables
|
||||||
|
|
||||||
virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style);
|
virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style);
|
virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxPoint(0,0), const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const;
|
virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxPoint(0,0), const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetXMLNodeName() const { return wxT("field"); }
|
virtual wxString GetXMLNodeName() const wxOVERRIDE { return wxT("field"); }
|
||||||
|
|
||||||
virtual bool CanEditProperties() const;
|
virtual bool CanEditProperties() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer);
|
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetPropertiesMenuLabel() const;
|
virtual wxString GetPropertiesMenuLabel() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool AcceptsFocus() const { return false; }
|
virtual bool AcceptsFocus() const wxOVERRIDE { return false; }
|
||||||
|
|
||||||
virtual void CalculateRange(long start, long& end);
|
virtual void CalculateRange(long start, long& end) wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
If a field has children, we don't want the user to be able to edit it.
|
If a field has children, we don't want the user to be able to edit it.
|
||||||
*/
|
*/
|
||||||
virtual bool IsAtomic() const { return true; }
|
virtual bool IsAtomic() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
virtual bool IsEmpty() const { return false; }
|
virtual bool IsEmpty() const wxOVERRIDE { return false; }
|
||||||
|
|
||||||
virtual bool IsTopLevel() const;
|
virtual bool IsTopLevel() const wxOVERRIDE;
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
|
|
||||||
@@ -3971,7 +3971,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual bool UpdateField(wxRichTextBuffer* buffer);
|
virtual bool UpdateField(wxRichTextBuffer* buffer);
|
||||||
|
|
||||||
virtual wxRichTextObject* Clone() const { return new wxRichTextField(*this); }
|
virtual wxRichTextObject* Clone() const wxOVERRIDE { return new wxRichTextField(*this); }
|
||||||
|
|
||||||
void Copy(const wxRichTextField& obj);
|
void Copy(const wxRichTextField& obj);
|
||||||
|
|
||||||
@@ -4187,7 +4187,7 @@ public:
|
|||||||
Draw the item, within the given range. Some objects may ignore the range (for
|
Draw the item, within the given range. Some objects may ignore the range (for
|
||||||
example paragraphs) while others must obey it (lines, to implement wrapping)
|
example paragraphs) while others must obey it (lines, to implement wrapping)
|
||||||
*/
|
*/
|
||||||
virtual bool Draw(wxRichTextField* obj, wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style);
|
virtual bool Draw(wxRichTextField* obj, wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style) wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Lay the item out at the specified position with the given size constraint.
|
Lay the item out at the specified position with the given size constraint.
|
||||||
@@ -4195,13 +4195,13 @@ public:
|
|||||||
and @a parentRect is the container that is used to determine a relative size
|
and @a parentRect is the container that is used to determine a relative size
|
||||||
or position (for example if a text box must be 50% of the parent text box).
|
or position (for example if a text box must be 50% of the parent text box).
|
||||||
*/
|
*/
|
||||||
virtual bool Layout(wxRichTextField* obj, wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style);
|
virtual bool Layout(wxRichTextField* obj, wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style) wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the object size for the given range. Returns @false if the range
|
Returns the object size for the given range. Returns @false if the range
|
||||||
is invalid for this object.
|
is invalid for this object.
|
||||||
*/
|
*/
|
||||||
virtual bool GetRangeSize(wxRichTextField* obj, const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxPoint(0,0), const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const;
|
virtual bool GetRangeSize(wxRichTextField* obj, const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxPoint(0,0), const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get the size of the field, given the label, font size, and so on.
|
Get the size of the field, given the label, font size, and so on.
|
||||||
@@ -4211,7 +4211,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns @true if the display type is wxRICHTEXT_FIELD_STYLE_COMPOSITE, @false otherwise.
|
Returns @true if the display type is wxRICHTEXT_FIELD_STYLE_COMPOSITE, @false otherwise.
|
||||||
*/
|
*/
|
||||||
virtual bool IsTopLevel(wxRichTextField* WXUNUSED(obj)) const { return (GetDisplayStyle() & wxRICHTEXT_FIELD_STYLE_COMPOSITE) != 0; }
|
virtual bool IsTopLevel(wxRichTextField* WXUNUSED(obj)) const wxOVERRIDE { return (GetDisplayStyle() & wxRICHTEXT_FIELD_STYLE_COMPOSITE) != 0; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the text label for fields of this type.
|
Sets the text label for fields of this type.
|
||||||
@@ -4506,19 +4506,19 @@ public:
|
|||||||
|
|
||||||
// Overridables
|
// Overridables
|
||||||
|
|
||||||
virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style);
|
virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style);
|
virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxPoint(0,0), const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const;
|
virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxPoint(0,0), const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool FindPosition(wxDC& dc, wxRichTextDrawingContext& context, long index, wxPoint& pt, int* height, bool forceLineStart);
|
virtual bool FindPosition(wxDC& dc, wxRichTextDrawingContext& context, long index, wxPoint& pt, int* height, bool forceLineStart) wxOVERRIDE;
|
||||||
|
|
||||||
virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0);
|
virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void CalculateRange(long start, long& end);
|
virtual void CalculateRange(long start, long& end) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetXMLNodeName() const { return wxT("paragraph"); }
|
virtual wxString GetXMLNodeName() const wxOVERRIDE { return wxT("paragraph"); }
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
|
|
||||||
@@ -4534,7 +4534,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
void Copy(const wxRichTextParagraph& obj);
|
void Copy(const wxRichTextParagraph& obj);
|
||||||
|
|
||||||
virtual wxRichTextObject* Clone() const { return new wxRichTextParagraph(*this); }
|
virtual wxRichTextObject* Clone() const wxOVERRIDE { return new wxRichTextParagraph(*this); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Clears the cached lines.
|
Clears the cached lines.
|
||||||
@@ -4690,33 +4690,33 @@ public:
|
|||||||
|
|
||||||
// Overridables
|
// Overridables
|
||||||
|
|
||||||
virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style);
|
virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style);
|
virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool AdjustAttributes(wxRichTextAttr& attr, wxRichTextDrawingContext& context);
|
virtual bool AdjustAttributes(wxRichTextAttr& attr, wxRichTextDrawingContext& context) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxPoint(0,0), const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const;
|
virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxPoint(0,0), const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetTextForRange(const wxRichTextRange& range) const;
|
virtual wxString GetTextForRange(const wxRichTextRange& range) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxRichTextObject* DoSplit(long pos);
|
virtual wxRichTextObject* DoSplit(long pos) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void CalculateRange(long start, long& end);
|
virtual void CalculateRange(long start, long& end) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool DeleteRange(const wxRichTextRange& range);
|
virtual bool DeleteRange(const wxRichTextRange& range) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool IsEmpty() const { return m_text.empty(); }
|
virtual bool IsEmpty() const wxOVERRIDE { return m_text.empty(); }
|
||||||
|
|
||||||
virtual bool CanMerge(wxRichTextObject* object, wxRichTextDrawingContext& context) const;
|
virtual bool CanMerge(wxRichTextObject* object, wxRichTextDrawingContext& context) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool Merge(wxRichTextObject* object, wxRichTextDrawingContext& context);
|
virtual bool Merge(wxRichTextObject* object, wxRichTextDrawingContext& context) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void Dump(wxTextOutputStream& stream);
|
virtual void Dump(wxTextOutputStream& stream) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool CanSplit(wxRichTextDrawingContext& context) const;
|
virtual bool CanSplit(wxRichTextDrawingContext& context) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxRichTextObject* Split(wxRichTextDrawingContext& context);
|
virtual wxRichTextObject* Split(wxRichTextDrawingContext& context) wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Get the first position from pos that has a line break character.
|
Get the first position from pos that has a line break character.
|
||||||
@@ -4724,21 +4724,21 @@ public:
|
|||||||
long GetFirstLineBreakPosition(long pos);
|
long GetFirstLineBreakPosition(long pos);
|
||||||
|
|
||||||
/// Does this object take note of paragraph attributes? Text and image objects don't.
|
/// Does this object take note of paragraph attributes? Text and image objects don't.
|
||||||
virtual bool UsesParagraphAttributes() const { return false; }
|
virtual bool UsesParagraphAttributes() const wxOVERRIDE { return false; }
|
||||||
|
|
||||||
#if wxUSE_XML
|
#if wxUSE_XML
|
||||||
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse);
|
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
|
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
|
||||||
virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler);
|
virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT
|
#if wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT
|
||||||
virtual bool ExportXML(wxXmlNode* parent, wxRichTextXMLHandler* handler);
|
virtual bool ExportXML(wxXmlNode* parent, wxRichTextXMLHandler* handler) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
virtual wxString GetXMLNodeName() const { return wxT("text"); }
|
virtual wxString GetXMLNodeName() const wxOVERRIDE { return wxT("text"); }
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
|
|
||||||
@@ -4758,7 +4758,7 @@ public:
|
|||||||
void Copy(const wxRichTextPlainText& obj);
|
void Copy(const wxRichTextPlainText& obj);
|
||||||
|
|
||||||
// Clones the text object.
|
// Clones the text object.
|
||||||
virtual wxRichTextObject* Clone() const { return new wxRichTextPlainText(*this); }
|
virtual wxRichTextObject* Clone() const wxOVERRIDE { return new wxRichTextPlainText(*this); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool DrawTabbedString(wxDC& dc, const wxRichTextAttr& attr, const wxRect& rect, wxString& str, wxCoord& x, wxCoord& y, bool selected);
|
bool DrawTabbedString(wxDC& dc, const wxRichTextAttr& attr, const wxRect& rect, wxString& str, wxCoord& x, wxCoord& y, bool selected);
|
||||||
@@ -4984,43 +4984,43 @@ public:
|
|||||||
|
|
||||||
// Overridables
|
// Overridables
|
||||||
|
|
||||||
virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style);
|
virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style);
|
virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxPoint(0,0), const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const;
|
virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxPoint(0,0), const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the 'natural' size for this object - the image size.
|
Returns the 'natural' size for this object - the image size.
|
||||||
*/
|
*/
|
||||||
virtual wxTextAttrSize GetNaturalSize() const;
|
virtual wxTextAttrSize GetNaturalSize() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool IsEmpty() const { return false; /* !m_imageBlock.IsOk(); */ }
|
virtual bool IsEmpty() const wxOVERRIDE { return false; /* !m_imageBlock.IsOk(); */ }
|
||||||
|
|
||||||
virtual bool CanEditProperties() const { return true; }
|
virtual bool CanEditProperties() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer);
|
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetPropertiesMenuLabel() const { return wxGetTranslation("&Picture"); }
|
virtual wxString GetPropertiesMenuLabel() const wxOVERRIDE { return wxGetTranslation("&Picture"); }
|
||||||
|
|
||||||
virtual bool UsesParagraphAttributes() const { return false; }
|
virtual bool UsesParagraphAttributes() const wxOVERRIDE { return false; }
|
||||||
|
|
||||||
#if wxUSE_XML
|
#if wxUSE_XML
|
||||||
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse);
|
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
|
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
|
||||||
virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler);
|
virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT
|
#if wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT
|
||||||
virtual bool ExportXML(wxXmlNode* parent, wxRichTextXMLHandler* handler);
|
virtual bool ExportXML(wxXmlNode* parent, wxRichTextXMLHandler* handler) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Images can be floatable (optionally).
|
// Images can be floatable (optionally).
|
||||||
virtual bool IsFloatable() const { return true; }
|
virtual bool IsFloatable() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
virtual wxString GetXMLNodeName() const { return wxT("image"); }
|
virtual wxString GetXMLNodeName() const wxOVERRIDE { return wxT("image"); }
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
|
|
||||||
@@ -5054,7 +5054,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Clones the image object.
|
Clones the image object.
|
||||||
*/
|
*/
|
||||||
virtual wxRichTextObject* Clone() const { return new wxRichTextImage(*this); }
|
virtual wxRichTextObject* Clone() const wxOVERRIDE { return new wxRichTextImage(*this); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Creates a cached image at the required size.
|
Creates a cached image at the required size.
|
||||||
@@ -5144,7 +5144,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns the style sheet.
|
Returns the style sheet.
|
||||||
*/
|
*/
|
||||||
virtual wxRichTextStyleSheet* GetStyleSheet() const { return m_styleSheet; }
|
virtual wxRichTextStyleSheet* GetStyleSheet() const wxOVERRIDE { return m_styleSheet; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the style sheet and sends a notification of the change.
|
Sets the style sheet and sends a notification of the change.
|
||||||
@@ -5262,7 +5262,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Convenience function to add a paragraph of text.
|
Convenience function to add a paragraph of text.
|
||||||
*/
|
*/
|
||||||
virtual wxRichTextRange AddParagraph(const wxString& text, wxRichTextAttr* paraStyle = NULL) { Modify(); return wxRichTextParagraphLayoutBox::AddParagraph(text, paraStyle); }
|
virtual wxRichTextRange AddParagraph(const wxString& text, wxRichTextAttr* paraStyle = NULL) wxOVERRIDE { Modify(); return wxRichTextParagraphLayoutBox::AddParagraph(text, paraStyle); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Begin collapsing undo/redo commands. Note that this may not work properly
|
Begin collapsing undo/redo commands. Note that this may not work properly
|
||||||
@@ -5602,7 +5602,7 @@ public:
|
|||||||
|
|
||||||
// Implementation
|
// Implementation
|
||||||
|
|
||||||
virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0);
|
virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0) wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Copies the buffer.
|
Copies the buffer.
|
||||||
@@ -5617,7 +5617,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Clones the buffer.
|
Clones the buffer.
|
||||||
*/
|
*/
|
||||||
virtual wxRichTextObject* Clone() const { return new wxRichTextBuffer(*this); }
|
virtual wxRichTextObject* Clone() const wxOVERRIDE { return new wxRichTextBuffer(*this); }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Submits a command to insert paragraphs.
|
Submits a command to insert paragraphs.
|
||||||
@@ -5665,7 +5665,7 @@ public:
|
|||||||
Dumps contents of buffer for debugging purposes.
|
Dumps contents of buffer for debugging purposes.
|
||||||
*/
|
*/
|
||||||
virtual void Dump();
|
virtual void Dump();
|
||||||
virtual void Dump(wxTextOutputStream& stream) { wxRichTextParagraphLayoutBox::Dump(stream); }
|
virtual void Dump(wxTextOutputStream& stream) wxOVERRIDE { wxRichTextParagraphLayoutBox::Dump(stream); }
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -5939,22 +5939,22 @@ public:
|
|||||||
|
|
||||||
// Overridables
|
// Overridables
|
||||||
|
|
||||||
virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style);
|
virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style) wxOVERRIDE;
|
||||||
|
|
||||||
virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0);
|
virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool AdjustAttributes(wxRichTextAttr& attr, wxRichTextDrawingContext& context);
|
virtual bool AdjustAttributes(wxRichTextAttr& attr, wxRichTextDrawingContext& context) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetXMLNodeName() const { return wxT("cell"); }
|
virtual wxString GetXMLNodeName() const wxOVERRIDE { return wxT("cell"); }
|
||||||
|
|
||||||
virtual bool CanEditProperties() const { return true; }
|
virtual bool CanEditProperties() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer);
|
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetPropertiesMenuLabel() const { return wxGetTranslation("&Cell"); }
|
virtual wxString GetPropertiesMenuLabel() const wxOVERRIDE { return wxGetTranslation("&Cell"); }
|
||||||
|
|
||||||
/// Don't allow a cell to be deleted in Defragment
|
/// Don't allow a cell to be deleted in Defragment
|
||||||
virtual bool IsEmpty() const { return false; }
|
virtual bool IsEmpty() const wxOVERRIDE { return false; }
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
|
|
||||||
@@ -5980,7 +5980,7 @@ public:
|
|||||||
|
|
||||||
// Operations
|
// Operations
|
||||||
|
|
||||||
virtual wxRichTextObject* Clone() const { return new wxRichTextCell(*this); }
|
virtual wxRichTextObject* Clone() const wxOVERRIDE { return new wxRichTextCell(*this); }
|
||||||
|
|
||||||
void Copy(const wxRichTextCell& obj);
|
void Copy(const wxRichTextCell& obj);
|
||||||
|
|
||||||
@@ -6017,55 +6017,55 @@ public:
|
|||||||
|
|
||||||
// Overridables
|
// Overridables
|
||||||
|
|
||||||
virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style);
|
virtual bool Draw(wxDC& dc, wxRichTextDrawingContext& context, const wxRichTextRange& range, const wxRichTextSelection& selection, const wxRect& rect, int descent, int style) wxOVERRIDE;
|
||||||
|
|
||||||
virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0);
|
virtual int HitTest(wxDC& dc, wxRichTextDrawingContext& context, const wxPoint& pt, long& textPosition, wxRichTextObject** obj, wxRichTextObject** contextObj, int flags = 0) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool AdjustAttributes(wxRichTextAttr& attr, wxRichTextDrawingContext& context);
|
virtual bool AdjustAttributes(wxRichTextAttr& attr, wxRichTextDrawingContext& context) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetXMLNodeName() const { return wxT("table"); }
|
virtual wxString GetXMLNodeName() const wxOVERRIDE { return wxT("table"); }
|
||||||
|
|
||||||
virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style);
|
virtual bool Layout(wxDC& dc, wxRichTextDrawingContext& context, const wxRect& rect, const wxRect& parentRect, int style) wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxPoint(0,0), const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const;
|
virtual bool GetRangeSize(const wxRichTextRange& range, wxSize& size, int& descent, wxDC& dc, wxRichTextDrawingContext& context, int flags, const wxPoint& position = wxPoint(0,0), const wxSize& parentSize = wxDefaultSize, wxArrayInt* partialExtents = NULL) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool DeleteRange(const wxRichTextRange& range);
|
virtual bool DeleteRange(const wxRichTextRange& range) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetTextForRange(const wxRichTextRange& range) const;
|
virtual wxString GetTextForRange(const wxRichTextRange& range) const wxOVERRIDE;
|
||||||
|
|
||||||
#if wxUSE_XML
|
#if wxUSE_XML
|
||||||
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse);
|
virtual bool ImportFromXML(wxRichTextBuffer* buffer, wxXmlNode* node, wxRichTextXMLHandler* handler, bool* recurse) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
|
#if wxRICHTEXT_HAVE_DIRECT_OUTPUT
|
||||||
virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler);
|
virtual bool ExportXML(wxOutputStream& stream, int indent, wxRichTextXMLHandler* handler) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT
|
#if wxRICHTEXT_HAVE_XMLDOCUMENT_OUTPUT
|
||||||
virtual bool ExportXML(wxXmlNode* parent, wxRichTextXMLHandler* handler);
|
virtual bool ExportXML(wxXmlNode* parent, wxRichTextXMLHandler* handler) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
virtual bool FindPosition(wxDC& dc, wxRichTextDrawingContext& context, long index, wxPoint& pt, int* height, bool forceLineStart);
|
virtual bool FindPosition(wxDC& dc, wxRichTextDrawingContext& context, long index, wxPoint& pt, int* height, bool forceLineStart) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void CalculateRange(long start, long& end);
|
virtual void CalculateRange(long start, long& end) wxOVERRIDE;
|
||||||
|
|
||||||
// Can this object handle the selections of its children? FOr example, a table.
|
// Can this object handle the selections of its children? FOr example, a table.
|
||||||
virtual bool HandlesChildSelections() const { return true; }
|
virtual bool HandlesChildSelections() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
/// Returns a selection object specifying the selections between start and end character positions.
|
/// Returns a selection object specifying the selections between start and end character positions.
|
||||||
/// For example, a table would deduce what cells (of range length 1) are selected when dragging across the table.
|
/// For example, a table would deduce what cells (of range length 1) are selected when dragging across the table.
|
||||||
virtual wxRichTextSelection GetSelection(long start, long end) const;
|
virtual wxRichTextSelection GetSelection(long start, long end) const wxOVERRIDE;
|
||||||
|
|
||||||
virtual bool CanEditProperties() const { return true; }
|
virtual bool CanEditProperties() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer);
|
virtual bool EditProperties(wxWindow* parent, wxRichTextBuffer* buffer) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetPropertiesMenuLabel() const { return wxGetTranslation("&Table"); }
|
virtual wxString GetPropertiesMenuLabel() const wxOVERRIDE { return wxGetTranslation("&Table"); }
|
||||||
|
|
||||||
// Returns true if objects of this class can accept the focus, i.e. a call to SetFocusObject
|
// Returns true if objects of this class can accept the focus, i.e. a call to SetFocusObject
|
||||||
// is possible. For example, containers supporting text, such as a text box object, can accept the focus,
|
// is possible. For example, containers supporting text, such as a text box object, can accept the focus,
|
||||||
// but a table can't (set the focus to individual cells instead).
|
// but a table can't (set the focus to individual cells instead).
|
||||||
virtual bool AcceptsFocus() const { return false; }
|
virtual bool AcceptsFocus() const wxOVERRIDE { return false; }
|
||||||
|
|
||||||
// Accessors
|
// Accessors
|
||||||
|
|
||||||
@@ -6164,7 +6164,7 @@ public:
|
|||||||
virtual bool AddColumns(int startCol, int noCols = 1, const wxRichTextAttr& attr = wxRichTextAttr());
|
virtual bool AddColumns(int startCol, int noCols = 1, const wxRichTextAttr& attr = wxRichTextAttr());
|
||||||
|
|
||||||
// Makes a clone of this object.
|
// Makes a clone of this object.
|
||||||
virtual wxRichTextObject* Clone() const { return new wxRichTextTable(*this); }
|
virtual wxRichTextObject* Clone() const wxOVERRIDE { return new wxRichTextTable(*this); }
|
||||||
|
|
||||||
// Copies this object.
|
// Copies this object.
|
||||||
void Copy(const wxRichTextTable& obj);
|
void Copy(const wxRichTextTable& obj);
|
||||||
@@ -6353,12 +6353,12 @@ public:
|
|||||||
/**
|
/**
|
||||||
Performs the command.
|
Performs the command.
|
||||||
*/
|
*/
|
||||||
bool Do();
|
bool Do() wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Undoes the command.
|
Undoes the command.
|
||||||
*/
|
*/
|
||||||
bool Undo();
|
bool Undo() wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Adds an action to the action list.
|
Adds an action to the action list.
|
||||||
@@ -6784,16 +6784,16 @@ public:
|
|||||||
{ }
|
{ }
|
||||||
|
|
||||||
// Can we save using this handler?
|
// Can we save using this handler?
|
||||||
virtual bool CanSave() const { return true; }
|
virtual bool CanSave() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
// Can we load using this handler?
|
// Can we load using this handler?
|
||||||
virtual bool CanLoad() const { return true; }
|
virtual bool CanLoad() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
#if wxUSE_STREAMS
|
#if wxUSE_STREAMS
|
||||||
virtual bool DoLoadFile(wxRichTextBuffer *buffer, wxInputStream& stream);
|
virtual bool DoLoadFile(wxRichTextBuffer *buffer, wxInputStream& stream) wxOVERRIDE;
|
||||||
virtual bool DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream& stream);
|
virtual bool DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream& stream) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
};
|
};
|
||||||
@@ -6907,16 +6907,16 @@ public:
|
|||||||
|
|
||||||
// base class pure virtuals
|
// base class pure virtuals
|
||||||
|
|
||||||
virtual wxDataFormat GetPreferredFormat(Direction dir) const;
|
virtual wxDataFormat GetPreferredFormat(Direction dir) const wxOVERRIDE;
|
||||||
virtual size_t GetDataSize() const;
|
virtual size_t GetDataSize() const wxOVERRIDE;
|
||||||
virtual bool GetDataHere(void *pBuf) const;
|
virtual bool GetDataHere(void *pBuf) const wxOVERRIDE;
|
||||||
virtual bool SetData(size_t len, const void *buf);
|
virtual bool SetData(size_t len, const void *buf) wxOVERRIDE;
|
||||||
|
|
||||||
// prevent warnings
|
// prevent warnings
|
||||||
|
|
||||||
virtual size_t GetDataSize(const wxDataFormat&) const { return GetDataSize(); }
|
virtual size_t GetDataSize(const wxDataFormat&) const wxOVERRIDE { return GetDataSize(); }
|
||||||
virtual bool GetDataHere(const wxDataFormat&, void *buf) const { return GetDataHere(buf); }
|
virtual bool GetDataHere(const wxDataFormat&, void *buf) const wxOVERRIDE { return GetDataHere(buf); }
|
||||||
virtual bool SetData(const wxDataFormat&, size_t len, const void *buf) { return SetData(len, buf); }
|
virtual bool SetData(const wxDataFormat&, size_t len, const void *buf) wxOVERRIDE { return SetData(len, buf); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxDataFormat m_formatRichTextBuffer; // our custom format
|
wxDataFormat m_formatRichTextBuffer; // our custom format
|
||||||
@@ -6992,19 +6992,19 @@ public:
|
|||||||
wxRichTextStdRenderer() {}
|
wxRichTextStdRenderer() {}
|
||||||
|
|
||||||
// Draw a standard bullet, as specified by the value of GetBulletName
|
// Draw a standard bullet, as specified by the value of GetBulletName
|
||||||
virtual bool DrawStandardBullet(wxRichTextParagraph* paragraph, wxDC& dc, const wxRichTextAttr& attr, const wxRect& rect);
|
virtual bool DrawStandardBullet(wxRichTextParagraph* paragraph, wxDC& dc, const wxRichTextAttr& attr, const wxRect& rect) wxOVERRIDE;
|
||||||
|
|
||||||
// Draw a bullet that can be described by text, such as numbered or symbol bullets
|
// Draw a bullet that can be described by text, such as numbered or symbol bullets
|
||||||
virtual bool DrawTextBullet(wxRichTextParagraph* paragraph, wxDC& dc, const wxRichTextAttr& attr, const wxRect& rect, const wxString& text);
|
virtual bool DrawTextBullet(wxRichTextParagraph* paragraph, wxDC& dc, const wxRichTextAttr& attr, const wxRect& rect, const wxString& text) wxOVERRIDE;
|
||||||
|
|
||||||
// Draw a bitmap bullet, where the bullet bitmap is specified by the value of GetBulletName
|
// Draw a bitmap bullet, where the bullet bitmap is specified by the value of GetBulletName
|
||||||
virtual bool DrawBitmapBullet(wxRichTextParagraph* paragraph, wxDC& dc, const wxRichTextAttr& attr, const wxRect& rect);
|
virtual bool DrawBitmapBullet(wxRichTextParagraph* paragraph, wxDC& dc, const wxRichTextAttr& attr, const wxRect& rect) wxOVERRIDE;
|
||||||
|
|
||||||
// Enumerate the standard bullet names currently supported
|
// Enumerate the standard bullet names currently supported
|
||||||
virtual bool EnumerateStandardBulletNames(wxArrayString& bulletNames);
|
virtual bool EnumerateStandardBulletNames(wxArrayString& bulletNames) wxOVERRIDE;
|
||||||
|
|
||||||
// Measure the bullet.
|
// Measure the bullet.
|
||||||
virtual bool MeasureBullet(wxRichTextParagraph* paragraph, wxDC& dc, const wxRichTextAttr& attr, wxSize& sz);
|
virtual bool MeasureBullet(wxRichTextParagraph* paragraph, wxDC& dc, const wxRichTextAttr& attr, wxSize& sz) wxOVERRIDE;
|
||||||
|
|
||||||
// Set a font which may depend on text effects.
|
// Set a font which may depend on text effects.
|
||||||
static void SetFontForBullet(wxRichTextBuffer& buffer, wxDC& dc, const wxRichTextAttr& attr);
|
static void SetFontForBullet(wxRichTextBuffer& buffer, wxDC& dc, const wxRichTextAttr& attr);
|
||||||
|
@@ -67,8 +67,8 @@ public:
|
|||||||
void UpdatePreview();
|
void UpdatePreview();
|
||||||
|
|
||||||
/// Transfer data from/to window
|
/// Transfer data from/to window
|
||||||
virtual bool TransferDataFromWindow();
|
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||||
virtual bool TransferDataToWindow();
|
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||||
|
|
||||||
/// Gets the attributes associated with the main formatting dialog
|
/// Gets the attributes associated with the main formatting dialog
|
||||||
wxRichTextAttr* GetAttributes();
|
wxRichTextAttr* GetAttributes();
|
||||||
|
@@ -278,32 +278,32 @@ public:
|
|||||||
The end point of range is specified as the last character position of
|
The end point of range is specified as the last character position of
|
||||||
the span of text, plus one.
|
the span of text, plus one.
|
||||||
*/
|
*/
|
||||||
virtual wxString GetRange(long from, long to) const;
|
virtual wxString GetRange(long from, long to) const wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the length of the specified line in characters.
|
Returns the length of the specified line in characters.
|
||||||
*/
|
*/
|
||||||
virtual int GetLineLength(long lineNo) const ;
|
virtual int GetLineLength(long lineNo) const wxOVERRIDE ;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the text for the given line.
|
Returns the text for the given line.
|
||||||
*/
|
*/
|
||||||
virtual wxString GetLineText(long lineNo) const ;
|
virtual wxString GetLineText(long lineNo) const wxOVERRIDE ;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the number of lines in the buffer.
|
Returns the number of lines in the buffer.
|
||||||
*/
|
*/
|
||||||
virtual int GetNumberOfLines() const ;
|
virtual int GetNumberOfLines() const wxOVERRIDE ;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns @true if the buffer has been modified.
|
Returns @true if the buffer has been modified.
|
||||||
*/
|
*/
|
||||||
virtual bool IsModified() const ;
|
virtual bool IsModified() const wxOVERRIDE ;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns @true if the control is editable.
|
Returns @true if the control is editable.
|
||||||
*/
|
*/
|
||||||
virtual bool IsEditable() const ;
|
virtual bool IsEditable() const wxOVERRIDE ;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns @true if the control is single-line.
|
Returns @true if the control is single-line.
|
||||||
@@ -323,7 +323,7 @@ public:
|
|||||||
of text, plus one.
|
of text, plus one.
|
||||||
If the return values @a from and @a to are the same, there is no selection.
|
If the return values @a from and @a 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;
|
||||||
const wxRichTextSelection& GetSelection() const { return m_selection; }
|
const wxRichTextSelection& GetSelection() const { return m_selection; }
|
||||||
wxRichTextSelection& GetSelection() { return m_selection; }
|
wxRichTextSelection& GetSelection() { return m_selection; }
|
||||||
//@}
|
//@}
|
||||||
@@ -331,7 +331,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns the text within the current selection range, if any.
|
Returns the text within the current selection range, if any.
|
||||||
*/
|
*/
|
||||||
virtual wxString GetStringSelection() const;
|
virtual wxString GetStringSelection() const wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Gets the current filename associated with the control.
|
Gets the current filename associated with the control.
|
||||||
@@ -548,18 +548,18 @@ public:
|
|||||||
/**
|
/**
|
||||||
Clears the buffer content, leaving a single empty paragraph. Cannot be undone.
|
Clears the buffer content, leaving a single empty paragraph. Cannot be undone.
|
||||||
*/
|
*/
|
||||||
virtual void Clear();
|
virtual void Clear() wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Replaces the content in the specified range with the string specified by
|
Replaces the content in the specified range with the string specified by
|
||||||
@a value.
|
@a value.
|
||||||
*/
|
*/
|
||||||
virtual void Replace(long from, long to, const wxString& value);
|
virtual void Replace(long from, long to, const wxString& value) wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Removes the content in the specified range.
|
Removes the content in the specified range.
|
||||||
*/
|
*/
|
||||||
virtual void Remove(long from, long to);
|
virtual void Remove(long from, long to) wxOVERRIDE;
|
||||||
|
|
||||||
#ifdef DOXYGEN
|
#ifdef DOXYGEN
|
||||||
/**
|
/**
|
||||||
@@ -583,7 +583,7 @@ public:
|
|||||||
|
|
||||||
This function looks for a suitable wxRichTextFileHandler object.
|
This function looks for a suitable wxRichTextFileHandler object.
|
||||||
*/
|
*/
|
||||||
virtual bool DoLoadFile(const wxString& file, int fileType);
|
virtual bool DoLoadFile(const wxString& file, int fileType) wxOVERRIDE;
|
||||||
#endif // wxUSE_FFILE && wxUSE_STREAMS
|
#endif // wxUSE_FFILE && wxUSE_STREAMS
|
||||||
|
|
||||||
#ifdef DOXYGEN
|
#ifdef DOXYGEN
|
||||||
@@ -609,7 +609,7 @@ public:
|
|||||||
This function looks for a suitable wxRichTextFileHandler object.
|
This function looks for a suitable wxRichTextFileHandler object.
|
||||||
*/
|
*/
|
||||||
virtual bool DoSaveFile(const wxString& file = wxEmptyString,
|
virtual bool DoSaveFile(const wxString& file = wxEmptyString,
|
||||||
int fileType = wxRICHTEXT_TYPE_ANY);
|
int fileType = wxRICHTEXT_TYPE_ANY) wxOVERRIDE;
|
||||||
#endif // wxUSE_FFILE && wxUSE_STREAMS
|
#endif // wxUSE_FFILE && wxUSE_STREAMS
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -630,29 +630,29 @@ public:
|
|||||||
/**
|
/**
|
||||||
Marks the buffer as modified.
|
Marks the buffer as modified.
|
||||||
*/
|
*/
|
||||||
virtual void MarkDirty();
|
virtual void MarkDirty() wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the buffer's modified status to @false, and clears the buffer's command
|
Sets the buffer's modified status to @false, and clears the buffer's command
|
||||||
history.
|
history.
|
||||||
*/
|
*/
|
||||||
virtual void DiscardEdits();
|
virtual void DiscardEdits() wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the maximum number of characters that may be entered in a single line
|
Sets the maximum number of characters that may be entered in a single line
|
||||||
text control. For compatibility only; currently does nothing.
|
text control. For compatibility only; currently does nothing.
|
||||||
*/
|
*/
|
||||||
virtual void SetMaxLength(unsigned long WXUNUSED(len)) { }
|
virtual void SetMaxLength(unsigned long WXUNUSED(len)) wxOVERRIDE { }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Writes text at the current position.
|
Writes text at the current position.
|
||||||
*/
|
*/
|
||||||
virtual void WriteText(const wxString& text);
|
virtual void WriteText(const wxString& text) wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the insertion point to the end of the buffer and writes the text.
|
Sets the insertion point to the end of the buffer and writes the text.
|
||||||
*/
|
*/
|
||||||
virtual void AppendText(const wxString& text);
|
virtual void AppendText(const wxString& text) wxOVERRIDE;
|
||||||
|
|
||||||
//@{
|
//@{
|
||||||
/**
|
/**
|
||||||
@@ -668,7 +668,7 @@ public:
|
|||||||
returning a 2-element list (ok, attr).
|
returning a 2-element list (ok, attr).
|
||||||
@endWxPerlOnly
|
@endWxPerlOnly
|
||||||
*/
|
*/
|
||||||
virtual bool GetStyle(long position, wxTextAttr& style);
|
virtual bool GetStyle(long position, wxTextAttr& style) wxOVERRIDE;
|
||||||
virtual bool GetStyle(long position, wxRichTextAttr& style);
|
virtual bool GetStyle(long position, wxRichTextAttr& style);
|
||||||
virtual bool GetStyle(long position, wxRichTextAttr& style, wxRichTextParagraphLayoutBox* container);
|
virtual bool GetStyle(long position, wxRichTextAttr& style, wxRichTextParagraphLayoutBox* container);
|
||||||
//@}
|
//@}
|
||||||
@@ -682,7 +682,7 @@ public:
|
|||||||
So, for example, to set the style for a character at position 5, use the range
|
So, for example, to set the style for a character at position 5, use the range
|
||||||
(5,6).
|
(5,6).
|
||||||
*/
|
*/
|
||||||
virtual bool SetStyle(long start, long end, const wxTextAttr& style);
|
virtual bool SetStyle(long start, long end, const wxTextAttr& style) wxOVERRIDE;
|
||||||
virtual bool SetStyle(long start, long end, const wxRichTextAttr& style);
|
virtual bool SetStyle(long start, long end, const wxRichTextAttr& style);
|
||||||
virtual bool SetStyle(const wxRichTextRange& range, const wxTextAttr& style);
|
virtual bool SetStyle(const wxRichTextRange& range, const wxTextAttr& style);
|
||||||
virtual bool SetStyle(const wxRichTextRange& range, const wxRichTextAttr& style);
|
virtual bool SetStyle(const wxRichTextRange& range, const wxRichTextAttr& style);
|
||||||
@@ -764,7 +764,7 @@ public:
|
|||||||
Sets the current default style, which can be used to change how subsequently
|
Sets the current default style, which can be used to change how subsequently
|
||||||
inserted text is displayed.
|
inserted text is displayed.
|
||||||
*/
|
*/
|
||||||
virtual bool SetDefaultStyle(const wxTextAttr& style);
|
virtual bool SetDefaultStyle(const wxTextAttr& style) wxOVERRIDE;
|
||||||
virtual bool SetDefaultStyle(const wxRichTextAttr& style);
|
virtual bool SetDefaultStyle(const wxRichTextAttr& style);
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
@@ -879,17 +879,17 @@ public:
|
|||||||
/**
|
/**
|
||||||
Translates from column and line number to position.
|
Translates from column and line number to position.
|
||||||
*/
|
*/
|
||||||
virtual long XYToPosition(long x, long y) const;
|
virtual long XYToPosition(long x, long y) const wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Converts a text position to zero-based column and line numbers.
|
Converts a text position to zero-based column and line numbers.
|
||||||
*/
|
*/
|
||||||
virtual bool PositionToXY(long pos, long *x, long *y) const;
|
virtual bool PositionToXY(long pos, long *x, long *y) const wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Scrolls the buffer so that the given position is in view.
|
Scrolls the buffer so that the given position is in view.
|
||||||
*/
|
*/
|
||||||
virtual void ShowPosition(long pos);
|
virtual void ShowPosition(long pos) wxOVERRIDE;
|
||||||
|
|
||||||
//@{
|
//@{
|
||||||
/**
|
/**
|
||||||
@@ -897,10 +897,10 @@ public:
|
|||||||
@a pt is in device coords (not adjusted for the client area origin nor for
|
@a pt is in device coords (not adjusted for the client area origin nor for
|
||||||
scrolling).
|
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,
|
virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt,
|
||||||
wxTextCoord *col,
|
wxTextCoord *col,
|
||||||
wxTextCoord *row) const;
|
wxTextCoord *row) const wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Finds the container at the given point, which is in screen coordinates.
|
Finds the container at the given point, which is in screen coordinates.
|
||||||
@@ -920,18 +920,18 @@ public:
|
|||||||
/**
|
/**
|
||||||
Copies the selected content (if any) to the clipboard.
|
Copies the selected content (if any) to the clipboard.
|
||||||
*/
|
*/
|
||||||
virtual void Copy();
|
virtual void Copy() wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Copies the selected content (if any) to the clipboard and deletes the selection.
|
Copies the selected content (if any) to the clipboard and deletes the selection.
|
||||||
This is undoable.
|
This is undoable.
|
||||||
*/
|
*/
|
||||||
virtual void Cut();
|
virtual void Cut() wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Pastes content from the clipboard to the buffer.
|
Pastes content from the clipboard to the buffer.
|
||||||
*/
|
*/
|
||||||
virtual void Paste();
|
virtual void Paste() wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Deletes the content in the selection, if any. This is undoable.
|
Deletes the content in the selection, if any. This is undoable.
|
||||||
@@ -941,17 +941,17 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns @true if selected content can be copied to the clipboard.
|
Returns @true if selected content can be copied to the clipboard.
|
||||||
*/
|
*/
|
||||||
virtual bool CanCopy() const;
|
virtual bool CanCopy() const wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns @true if selected content can be copied to the clipboard and deleted.
|
Returns @true if selected content can be copied to the clipboard and deleted.
|
||||||
*/
|
*/
|
||||||
virtual bool CanCut() const;
|
virtual bool CanCut() const wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns @true if the clipboard content can be pasted to the buffer.
|
Returns @true if the clipboard content can be pasted to the buffer.
|
||||||
*/
|
*/
|
||||||
virtual bool CanPaste() const;
|
virtual bool CanPaste() const wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns @true if selected content can be deleted.
|
Returns @true if selected content can be deleted.
|
||||||
@@ -961,43 +961,43 @@ public:
|
|||||||
/**
|
/**
|
||||||
Undoes the command at the top of the command history, if there is one.
|
Undoes the command at the top of the command history, if there is one.
|
||||||
*/
|
*/
|
||||||
virtual void Undo();
|
virtual void Undo() wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Redoes the current command.
|
Redoes the current command.
|
||||||
*/
|
*/
|
||||||
virtual void Redo();
|
virtual void Redo() wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns @true if there is a command in the command history that can be undone.
|
Returns @true if there is a command in the command history that can be undone.
|
||||||
*/
|
*/
|
||||||
virtual bool CanUndo() const;
|
virtual bool CanUndo() const wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns @true if there is a command in the command history that can be redone.
|
Returns @true if there is a command in the command history that can be redone.
|
||||||
*/
|
*/
|
||||||
virtual bool CanRedo() const;
|
virtual bool CanRedo() const wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the insertion point and causes the current editing style to be taken from
|
Sets the insertion point and causes the current editing style to be taken from
|
||||||
the new position (unlike wxRichTextCtrl::SetCaretPosition).
|
the new position (unlike wxRichTextCtrl::SetCaretPosition).
|
||||||
*/
|
*/
|
||||||
virtual void SetInsertionPoint(long pos);
|
virtual void SetInsertionPoint(long pos) wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the insertion point to the end of the text control.
|
Sets the insertion point to the end of the text control.
|
||||||
*/
|
*/
|
||||||
virtual void SetInsertionPointEnd();
|
virtual void SetInsertionPointEnd() wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the current insertion point.
|
Returns the current insertion point.
|
||||||
*/
|
*/
|
||||||
virtual long GetInsertionPoint() const;
|
virtual long GetInsertionPoint() const wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns the last position in the buffer.
|
Returns the last position in the buffer.
|
||||||
*/
|
*/
|
||||||
virtual wxTextPos GetLastPosition() const;
|
virtual wxTextPos GetLastPosition() const wxOVERRIDE;
|
||||||
|
|
||||||
//@{
|
//@{
|
||||||
/**
|
/**
|
||||||
@@ -1008,14 +1008,14 @@ public:
|
|||||||
So, for example, to set the selection for a character at position 5, use the
|
So, for example, to set the selection for a character at position 5, use the
|
||||||
range (5,6).
|
range (5,6).
|
||||||
*/
|
*/
|
||||||
virtual void SetSelection(long from, long to);
|
virtual void SetSelection(long from, long to) wxOVERRIDE;
|
||||||
void SetSelection(const wxRichTextSelection& sel) { m_selection = sel; }
|
void SetSelection(const wxRichTextSelection& sel) { m_selection = sel; }
|
||||||
//@}
|
//@}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Makes the control editable, or not.
|
Makes the control editable, or not.
|
||||||
*/
|
*/
|
||||||
virtual void SetEditable(bool editable);
|
virtual void SetEditable(bool editable) wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Returns @true if there is a selection and the object containing the selection
|
Returns @true if there is a selection and the object containing the selection
|
||||||
@@ -1360,7 +1360,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Cancels any selection.
|
Cancels any selection.
|
||||||
*/
|
*/
|
||||||
virtual void SelectNone();
|
virtual void SelectNone() wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Selects the word at the given character position.
|
Selects the word at the given character position.
|
||||||
@@ -1787,7 +1787,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
Sends the event to the control.
|
Sends the event to the control.
|
||||||
*/
|
*/
|
||||||
void Command(wxCommandEvent& event);
|
void Command(wxCommandEvent& event) wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Loads the first dropped file.
|
Loads the first dropped file.
|
||||||
@@ -1928,7 +1928,7 @@ public:
|
|||||||
Sets the font, and also the basic and default attributes
|
Sets the font, and also the basic and default attributes
|
||||||
(see wxRichTextCtrl::SetDefaultStyle).
|
(see wxRichTextCtrl::SetDefaultStyle).
|
||||||
*/
|
*/
|
||||||
virtual bool SetFont(const wxFont& font);
|
virtual bool SetFont(const wxFont& font) wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
A helper function setting up scrollbars, for example after a resize.
|
A helper function setting up scrollbars, for example after a resize.
|
||||||
@@ -1963,7 +1963,7 @@ public:
|
|||||||
virtual void DoWriteText(const wxString& value, int flags = 0);
|
virtual void DoWriteText(const wxString& value, int flags = 0);
|
||||||
|
|
||||||
// Should we inherit colours?
|
// Should we inherit colours?
|
||||||
virtual bool ShouldInheritColours() const { return false; }
|
virtual bool ShouldInheritColours() const wxOVERRIDE { return false; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Internal function to position the visible caret according to the current caret
|
Internal function to position the visible caret according to the current caret
|
||||||
@@ -2001,7 +2001,7 @@ public:
|
|||||||
Overrides standard refresh in order to provoke delayed image loading.
|
Overrides standard refresh in order to provoke delayed image loading.
|
||||||
*/
|
*/
|
||||||
virtual void Refresh( bool eraseBackground = true,
|
virtual void Refresh( bool eraseBackground = true,
|
||||||
const wxRect *rect = (const wxRect *) NULL );
|
const wxRect *rect = (const wxRect *) NULL ) wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Sets the caret position.
|
Sets the caret position.
|
||||||
@@ -2262,7 +2262,7 @@ public:
|
|||||||
WX_FORWARD_TO_SCROLL_HELPER()
|
WX_FORWARD_TO_SCROLL_HELPER()
|
||||||
|
|
||||||
// implement wxTextEntry methods
|
// implement wxTextEntry methods
|
||||||
virtual wxString DoGetValue() const;
|
virtual wxString DoGetValue() const wxOVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Do delayed image loading and garbage-collect other images
|
Do delayed image loading and garbage-collect other images
|
||||||
@@ -2282,11 +2282,11 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
// implement the wxTextEntry pure virtual method
|
// implement the wxTextEntry pure virtual method
|
||||||
virtual wxWindow *GetEditableWindow() { return this; }
|
virtual wxWindow *GetEditableWindow() wxOVERRIDE { return this; }
|
||||||
|
|
||||||
// margins functions
|
// margins functions
|
||||||
virtual bool DoSetMargins(const wxPoint& pt);
|
virtual bool DoSetMargins(const wxPoint& pt) wxOVERRIDE;
|
||||||
virtual wxPoint DoGetMargins() const;
|
virtual wxPoint DoGetMargins() const wxOVERRIDE;
|
||||||
|
|
||||||
// FIXME: this does not work, it allows this code to compile but will fail
|
// FIXME: this does not work, it allows this code to compile but will fail
|
||||||
// during run-time
|
// during run-time
|
||||||
@@ -2309,11 +2309,11 @@ protected:
|
|||||||
/**
|
/**
|
||||||
Currently this simply returns @c wxSize(10, 10).
|
Currently this simply returns @c wxSize(10, 10).
|
||||||
*/
|
*/
|
||||||
virtual wxSize DoGetBestSize() const ;
|
virtual wxSize DoGetBestSize() const wxOVERRIDE ;
|
||||||
|
|
||||||
virtual void DoSetValue(const wxString& value, int flags = 0);
|
virtual void DoSetValue(const wxString& value, int flags = 0) wxOVERRIDE;
|
||||||
|
|
||||||
virtual void DoThaw();
|
virtual void DoThaw() wxOVERRIDE;
|
||||||
|
|
||||||
|
|
||||||
// Data members
|
// Data members
|
||||||
@@ -2423,7 +2423,7 @@ public:
|
|||||||
: wxDropSource(data, tc), m_rtc(tc) {}
|
: wxDropSource(data, tc), m_rtc(tc) {}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool GiveFeedback(wxDragResult effect);
|
bool GiveFeedback(wxDragResult effect) wxOVERRIDE;
|
||||||
|
|
||||||
wxRichTextCtrl* m_rtc;
|
wxRichTextCtrl* m_rtc;
|
||||||
};
|
};
|
||||||
@@ -2434,7 +2434,7 @@ public:
|
|||||||
wxRichTextDropTarget(wxRichTextCtrl* tc)
|
wxRichTextDropTarget(wxRichTextCtrl* tc)
|
||||||
: wxDropTarget(new wxRichTextBufferDataObject(new wxRichTextBuffer)), m_rtc(tc) {}
|
: wxDropTarget(new wxRichTextBufferDataObject(new wxRichTextBuffer)), m_rtc(tc) {}
|
||||||
|
|
||||||
virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def)
|
virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def) wxOVERRIDE
|
||||||
{
|
{
|
||||||
if ( !GetData() )
|
if ( !GetData() )
|
||||||
return wxDragNone;
|
return wxDragNone;
|
||||||
@@ -2640,7 +2640,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
void SetOldContainer(wxRichTextParagraphLayoutBox* container) { m_oldContainer = container; }
|
void SetOldContainer(wxRichTextParagraphLayoutBox* container) { m_oldContainer = container; }
|
||||||
|
|
||||||
virtual wxEvent *Clone() const { return new wxRichTextEvent(*this); }
|
virtual wxEvent *Clone() const wxOVERRIDE { return new wxRichTextEvent(*this); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
int m_flags;
|
int m_flags;
|
||||||
|
@@ -70,8 +70,8 @@ public:
|
|||||||
void CreateControls();
|
void CreateControls();
|
||||||
|
|
||||||
/// Transfer data from/to window
|
/// Transfer data from/to window
|
||||||
virtual bool TransferDataFromWindow();
|
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||||
virtual bool TransferDataToWindow();
|
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||||
|
|
||||||
/// Updates the font preview
|
/// Updates the font preview
|
||||||
void UpdatePreview();
|
void UpdatePreview();
|
||||||
|
@@ -192,8 +192,8 @@ public:
|
|||||||
void SetObject(wxRichTextObject* obj) { m_object = obj; }
|
void SetObject(wxRichTextObject* obj) { m_object = obj; }
|
||||||
|
|
||||||
/// Transfers the data and from to the window
|
/// Transfers the data and from to the window
|
||||||
virtual bool TransferDataToWindow();
|
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||||
virtual bool TransferDataFromWindow();
|
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||||
|
|
||||||
/// Apply the styles when a different tab is selected, so the previews are
|
/// Apply the styles when a different tab is selected, so the previews are
|
||||||
/// up to date
|
/// up to date
|
||||||
@@ -312,7 +312,7 @@ public:
|
|||||||
|
|
||||||
wxColour& GetColour() { return m_colour; }
|
wxColour& GetColour() { return m_colour; }
|
||||||
|
|
||||||
virtual wxSize DoGetBestSize() const { return GetSize(); }
|
virtual wxSize DoGetBestSize() const wxOVERRIDE { return GetSize(); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxColour m_colour;
|
wxColour m_colour;
|
||||||
@@ -366,7 +366,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// Returns the HTML for this item
|
/// Returns the HTML for this item
|
||||||
virtual wxString OnGetItem(size_t n) const;
|
virtual wxString OnGetItem(size_t n) const wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@@ -31,13 +31,13 @@ public:
|
|||||||
wxRichTextHTMLHandler(const wxString& name = wxT("HTML"), const wxString& ext = wxT("html"), int type = wxRICHTEXT_TYPE_HTML);
|
wxRichTextHTMLHandler(const wxString& name = wxT("HTML"), const wxString& ext = wxT("html"), int type = wxRICHTEXT_TYPE_HTML);
|
||||||
|
|
||||||
/// Can we save using this handler?
|
/// Can we save using this handler?
|
||||||
virtual bool CanSave() const { return true; }
|
virtual bool CanSave() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
/// Can we load using this handler?
|
/// Can we load using this handler?
|
||||||
virtual bool CanLoad() const { return false; }
|
virtual bool CanLoad() const wxOVERRIDE { return false; }
|
||||||
|
|
||||||
/// Can we handle this filename (if using files)? By default, checks the extension.
|
/// Can we handle this filename (if using files)? By default, checks the extension.
|
||||||
virtual bool CanHandle(const wxString& filename) const;
|
virtual bool CanHandle(const wxString& filename) const wxOVERRIDE;
|
||||||
|
|
||||||
// Accessors and operations unique to this handler
|
// Accessors and operations unique to this handler
|
||||||
|
|
||||||
@@ -75,8 +75,8 @@ protected:
|
|||||||
// Implementation
|
// Implementation
|
||||||
|
|
||||||
#if wxUSE_STREAMS
|
#if wxUSE_STREAMS
|
||||||
virtual bool DoLoadFile(wxRichTextBuffer *buffer, wxInputStream& stream);
|
virtual bool DoLoadFile(wxRichTextBuffer *buffer, wxInputStream& stream) wxOVERRIDE;
|
||||||
virtual bool DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream& stream);
|
virtual bool DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream& stream) wxOVERRIDE;
|
||||||
|
|
||||||
/// Output character formatting
|
/// Output character formatting
|
||||||
void BeginCharacterFormatting(const wxRichTextAttr& currentStyle, const wxRichTextAttr& thisStyle, const wxRichTextAttr& paraStyle, wxTextOutputStream& stream );
|
void BeginCharacterFormatting(const wxRichTextAttr& currentStyle, const wxRichTextAttr& thisStyle, const wxRichTextAttr& paraStyle, wxTextOutputStream& stream );
|
||||||
|
@@ -66,8 +66,8 @@ public:
|
|||||||
void CreateControls();
|
void CreateControls();
|
||||||
|
|
||||||
/// Transfer data from/to window
|
/// Transfer data from/to window
|
||||||
virtual bool TransferDataFromWindow();
|
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||||
virtual bool TransferDataToWindow();
|
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||||
|
|
||||||
/// Updates the paragraph preview
|
/// Updates the paragraph preview
|
||||||
void UpdatePreview();
|
void UpdatePreview();
|
||||||
|
@@ -63,8 +63,8 @@ public:
|
|||||||
void UpdatePreview();
|
void UpdatePreview();
|
||||||
|
|
||||||
/// Transfer data from/to window
|
/// Transfer data from/to window
|
||||||
virtual bool TransferDataFromWindow();
|
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||||
virtual bool TransferDataToWindow();
|
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||||
|
|
||||||
/// Get attributes for selected level
|
/// Get attributes for selected level
|
||||||
wxRichTextAttr* GetAttributesForSelection();
|
wxRichTextAttr* GetAttributesForSelection();
|
||||||
|
@@ -72,8 +72,8 @@ public:
|
|||||||
wxRichTextAttr* GetAttributes();
|
wxRichTextAttr* GetAttributes();
|
||||||
|
|
||||||
/// Data transfer
|
/// Data transfer
|
||||||
virtual bool TransferDataToWindow();
|
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||||
virtual bool TransferDataFromWindow();
|
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||||
|
|
||||||
////@begin wxRichTextMarginsPage event handler declarations
|
////@begin wxRichTextMarginsPage event handler declarations
|
||||||
|
|
||||||
|
@@ -73,8 +73,8 @@ public:
|
|||||||
wxRichTextAttr* GetAttributes();
|
wxRichTextAttr* GetAttributes();
|
||||||
|
|
||||||
/// Data transfer
|
/// Data transfer
|
||||||
virtual bool TransferDataToWindow();
|
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||||
virtual bool TransferDataFromWindow();
|
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||||
|
|
||||||
/// Show/hide position controls
|
/// Show/hide position controls
|
||||||
static void ShowPositionControls(bool show) { sm_showPositionControls = show; }
|
static void ShowPositionControls(bool show) { sm_showPositionControls = show; }
|
||||||
|
@@ -97,8 +97,8 @@ public:
|
|||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
/// Transfer data from/to window
|
/// Transfer data from/to window
|
||||||
virtual bool TransferDataFromWindow();
|
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||||
virtual bool TransferDataToWindow();
|
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||||
|
|
||||||
/// Set/get style sheet
|
/// Set/get style sheet
|
||||||
void SetStyleSheet(wxRichTextStyleSheet* sheet) { m_richTextStyleSheet = sheet; }
|
void SetStyleSheet(wxRichTextStyleSheet* sheet) { m_richTextStyleSheet = sheet; }
|
||||||
|
@@ -50,8 +50,8 @@ public:
|
|||||||
void CreateControls();
|
void CreateControls();
|
||||||
|
|
||||||
/// Transfer data from/to window
|
/// Transfer data from/to window
|
||||||
virtual bool TransferDataFromWindow();
|
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||||
virtual bool TransferDataToWindow();
|
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||||
|
|
||||||
/// Gets the attributes associated with the main formatting dialog
|
/// Gets the attributes associated with the main formatting dialog
|
||||||
wxRichTextAttr* GetAttributes();
|
wxRichTextAttr* GetAttributes();
|
||||||
|
@@ -143,7 +143,7 @@ public:
|
|||||||
virtual ~wxRichTextCharacterStyleDefinition() {}
|
virtual ~wxRichTextCharacterStyleDefinition() {}
|
||||||
|
|
||||||
/// Clones the object
|
/// Clones the object
|
||||||
virtual wxRichTextStyleDefinition* Clone() const { return new wxRichTextCharacterStyleDefinition(*this); }
|
virtual wxRichTextStyleDefinition* Clone() const wxOVERRIDE { return new wxRichTextCharacterStyleDefinition(*this); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
};
|
};
|
||||||
@@ -181,7 +181,7 @@ public:
|
|||||||
bool operator ==(const wxRichTextParagraphStyleDefinition& def) const;
|
bool operator ==(const wxRichTextParagraphStyleDefinition& def) const;
|
||||||
|
|
||||||
/// Clones the object
|
/// Clones the object
|
||||||
virtual wxRichTextStyleDefinition* Clone() const { return new wxRichTextParagraphStyleDefinition(*this); }
|
virtual wxRichTextStyleDefinition* Clone() const wxOVERRIDE { return new wxRichTextParagraphStyleDefinition(*this); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
@@ -218,7 +218,7 @@ public:
|
|||||||
bool operator ==(const wxRichTextListStyleDefinition& def) const;
|
bool operator ==(const wxRichTextListStyleDefinition& def) const;
|
||||||
|
|
||||||
/// Clones the object
|
/// Clones the object
|
||||||
virtual wxRichTextStyleDefinition* Clone() const { return new wxRichTextListStyleDefinition(*this); }
|
virtual wxRichTextStyleDefinition* Clone() const wxOVERRIDE { return new wxRichTextListStyleDefinition(*this); }
|
||||||
|
|
||||||
/// Sets/gets the attributes for the given level
|
/// Sets/gets the attributes for the given level
|
||||||
void SetLevelAttributes(int i, const wxRichTextAttr& attr);
|
void SetLevelAttributes(int i, const wxRichTextAttr& attr);
|
||||||
@@ -284,7 +284,7 @@ public:
|
|||||||
bool operator ==(const wxRichTextBoxStyleDefinition& def) const;
|
bool operator ==(const wxRichTextBoxStyleDefinition& def) const;
|
||||||
|
|
||||||
/// Clones the object
|
/// Clones the object
|
||||||
virtual wxRichTextStyleDefinition* Clone() const { return new wxRichTextBoxStyleDefinition(*this); }
|
virtual wxRichTextStyleDefinition* Clone() const wxOVERRIDE { return new wxRichTextBoxStyleDefinition(*this); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
};
|
};
|
||||||
@@ -556,7 +556,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// Returns the HTML for this item
|
/// Returns the HTML for this item
|
||||||
virtual wxString OnGetItem(size_t n) const;
|
virtual wxString OnGetItem(size_t n) const wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
@@ -656,23 +656,23 @@ private:
|
|||||||
class wxRichTextStyleComboPopup : public wxRichTextStyleListBox, public wxComboPopup
|
class wxRichTextStyleComboPopup : public wxRichTextStyleListBox, public wxComboPopup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual void Init()
|
virtual void Init() wxOVERRIDE
|
||||||
{
|
{
|
||||||
m_itemHere = -1; // hot item in list
|
m_itemHere = -1; // hot item in list
|
||||||
m_value = -1;
|
m_value = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool Create( wxWindow* parent );
|
virtual bool Create( wxWindow* parent ) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxWindow *GetControl() { return this; }
|
virtual wxWindow *GetControl() wxOVERRIDE { return this; }
|
||||||
|
|
||||||
virtual void SetStringValue( const wxString& s );
|
virtual void SetStringValue( const wxString& s ) wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString GetStringValue() const;
|
virtual wxString GetStringValue() const wxOVERRIDE;
|
||||||
|
|
||||||
/// Can we set the selection based on the editor caret position?
|
/// Can we set the selection based on the editor caret position?
|
||||||
// virtual bool CanAutoSetSelection() { return ((m_combo == NULL) || !m_combo->IsPopupShown()); }
|
// virtual bool CanAutoSetSelection() { return ((m_combo == NULL) || !m_combo->IsPopupShown()); }
|
||||||
virtual bool CanAutoSetSelection() { return false; }
|
virtual bool CanAutoSetSelection() wxOVERRIDE { return false; }
|
||||||
|
|
||||||
//
|
//
|
||||||
// Popup event handlers
|
// Popup event handlers
|
||||||
|
@@ -103,7 +103,7 @@ public:
|
|||||||
static void SetShowToolTips(bool show) { sm_showToolTips = show; }
|
static void SetShowToolTips(bool show) { sm_showToolTips = show; }
|
||||||
|
|
||||||
/// Data transfer
|
/// Data transfer
|
||||||
virtual bool TransferDataToWindow();
|
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||||
|
|
||||||
////@begin wxSymbolPickerDialog event handler declarations
|
////@begin wxSymbolPickerDialog event handler declarations
|
||||||
|
|
||||||
@@ -231,7 +231,7 @@ public:
|
|||||||
// ---------
|
// ---------
|
||||||
|
|
||||||
// set the current font
|
// set the current font
|
||||||
virtual bool SetFont(const wxFont& font);
|
virtual bool SetFont(const wxFont& font) wxOVERRIDE;
|
||||||
|
|
||||||
// set Unicode/ASCII mode
|
// set Unicode/ASCII mode
|
||||||
void SetUnicodeMode(bool unicodeMode);
|
void SetUnicodeMode(bool unicodeMode);
|
||||||
@@ -276,7 +276,7 @@ public:
|
|||||||
// change the background colour of the selected cells
|
// change the background colour of the selected cells
|
||||||
void SetSelectionBackground(const wxColour& col);
|
void SetSelectionBackground(const wxColour& col);
|
||||||
|
|
||||||
virtual wxVisualAttributes GetDefaultAttributes() const
|
virtual wxVisualAttributes GetDefaultAttributes() const wxOVERRIDE
|
||||||
{
|
{
|
||||||
return GetClassDefaultAttributes(GetWindowVariant());
|
return GetClassDefaultAttributes(GetWindowVariant());
|
||||||
}
|
}
|
||||||
@@ -297,7 +297,7 @@ protected:
|
|||||||
virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const;
|
virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const;
|
||||||
|
|
||||||
// gets the line height
|
// gets the line height
|
||||||
virtual wxCoord OnGetRowHeight(size_t line) const;
|
virtual wxCoord OnGetRowHeight(size_t line) const wxOVERRIDE;
|
||||||
|
|
||||||
// event handlers
|
// event handlers
|
||||||
void OnPaint(wxPaintEvent& event);
|
void OnPaint(wxPaintEvent& event);
|
||||||
|
@@ -64,8 +64,8 @@ public:
|
|||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
/// Transfer data from/to window
|
/// Transfer data from/to window
|
||||||
virtual bool TransferDataFromWindow();
|
virtual bool TransferDataFromWindow() wxOVERRIDE;
|
||||||
virtual bool TransferDataToWindow();
|
virtual bool TransferDataToWindow() wxOVERRIDE;
|
||||||
|
|
||||||
/// Sorts the tab array
|
/// Sorts the tab array
|
||||||
virtual void SortTabs();
|
virtual void SortTabs();
|
||||||
|
@@ -202,10 +202,10 @@ public:
|
|||||||
virtual wxRichTextObject* CreateObjectForXMLName(wxRichTextObject* parent, const wxString& name) const;
|
virtual wxRichTextObject* CreateObjectForXMLName(wxRichTextObject* parent, const wxString& name) const;
|
||||||
|
|
||||||
/// Can we save using this handler?
|
/// Can we save using this handler?
|
||||||
virtual bool CanSave() const { return true; }
|
virtual bool CanSave() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
/// Can we load using this handler?
|
/// Can we load using this handler?
|
||||||
virtual bool CanLoad() const { return true; }
|
virtual bool CanLoad() const wxOVERRIDE { return true; }
|
||||||
|
|
||||||
/// Returns the XML helper object, implementing functionality
|
/// Returns the XML helper object, implementing functionality
|
||||||
/// that can be reused elsewhere.
|
/// that can be reused elsewhere.
|
||||||
@@ -226,8 +226,8 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
#if wxUSE_STREAMS
|
#if wxUSE_STREAMS
|
||||||
virtual bool DoLoadFile(wxRichTextBuffer *buffer, wxInputStream& stream);
|
virtual bool DoLoadFile(wxRichTextBuffer *buffer, wxInputStream& stream) wxOVERRIDE;
|
||||||
virtual bool DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream& stream);
|
virtual bool DoSaveFile(wxRichTextBuffer *buffer, wxOutputStream& stream) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wxRichTextXMLHelper m_helper;
|
wxRichTextXMLHelper m_helper;
|
||||||
|
@@ -124,14 +124,14 @@ public:
|
|||||||
wxIPV4address(const wxIPV4address& other) : wxIPaddress(other) { }
|
wxIPV4address(const wxIPV4address& other) : wxIPaddress(other) { }
|
||||||
|
|
||||||
// implement wxSockAddress pure virtuals:
|
// implement wxSockAddress pure virtuals:
|
||||||
virtual Family Type() { return IPV4; }
|
virtual Family Type() wxOVERRIDE { return IPV4; }
|
||||||
virtual wxSockAddress *Clone() const { return new wxIPV4address(*this); }
|
virtual wxSockAddress *Clone() const wxOVERRIDE { return new wxIPV4address(*this); }
|
||||||
|
|
||||||
|
|
||||||
// implement wxIPaddress pure virtuals:
|
// implement wxIPaddress pure virtuals:
|
||||||
virtual bool IsLocalHost() const;
|
virtual bool IsLocalHost() const wxOVERRIDE;
|
||||||
|
|
||||||
virtual wxString IPAddress() const;
|
virtual wxString IPAddress() const wxOVERRIDE;
|
||||||
|
|
||||||
|
|
||||||
// IPv4-specific methods:
|
// IPv4-specific methods:
|
||||||
@@ -143,7 +143,7 @@ public:
|
|||||||
bool BroadcastAddress();
|
bool BroadcastAddress();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void DoInitImpl();
|
virtual void DoInitImpl() wxOVERRIDE;
|
||||||
|
|
||||||
wxDECLARE_DYNAMIC_CLASS(wxIPV4address);
|
wxDECLARE_DYNAMIC_CLASS(wxIPV4address);
|
||||||
};
|
};
|
||||||
@@ -198,8 +198,8 @@ public:
|
|||||||
void Filename(const wxString& name);
|
void Filename(const wxString& name);
|
||||||
wxString Filename() const;
|
wxString Filename() const;
|
||||||
|
|
||||||
virtual Family Type() { return UNIX; }
|
virtual Family Type() wxOVERRIDE { return UNIX; }
|
||||||
virtual wxSockAddress *Clone() const { return new wxUNIXaddress(*this); }
|
virtual wxSockAddress *Clone() const wxOVERRIDE { return new wxUNIXaddress(*this); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxSockAddressImpl& GetUNIX();
|
wxSockAddressImpl& GetUNIX();
|
||||||
|
@@ -341,13 +341,13 @@ protected:
|
|||||||
// methods to corresponding wxScrollHelper methods
|
// methods to corresponding wxScrollHelper methods
|
||||||
#define WX_FORWARD_TO_SCROLL_HELPER() \
|
#define WX_FORWARD_TO_SCROLL_HELPER() \
|
||||||
public: \
|
public: \
|
||||||
virtual void PrepareDC(wxDC& dc) { DoPrepareDC(dc); } \
|
virtual void PrepareDC(wxDC& dc) wxOVERRIDE { DoPrepareDC(dc); } \
|
||||||
virtual bool Layout() { return ScrollLayout(); } \
|
virtual bool Layout() wxOVERRIDE { return ScrollLayout(); } \
|
||||||
virtual bool CanScroll(int orient) const \
|
virtual bool CanScroll(int orient) const wxOVERRIDE \
|
||||||
{ return IsScrollbarShown(orient); } \
|
{ return IsScrollbarShown(orient); } \
|
||||||
virtual void DoSetVirtualSize(int x, int y) \
|
virtual void DoSetVirtualSize(int x, int y) wxOVERRIDE \
|
||||||
{ ScrollDoSetVirtualSize(x, y); } \
|
{ ScrollDoSetVirtualSize(x, y); } \
|
||||||
virtual wxSize GetBestVirtualSize() const \
|
virtual wxSize GetBestVirtualSize() const wxOVERRIDE \
|
||||||
{ return ScrollGetBestVirtualSize(); }
|
{ return ScrollGetBestVirtualSize(); }
|
||||||
|
|
||||||
// include the declaration of the real wxScrollHelper
|
// include the declaration of the real wxScrollHelper
|
||||||
@@ -446,7 +446,7 @@ public:
|
|||||||
WX_FORWARD_TO_SCROLL_HELPER()
|
WX_FORWARD_TO_SCROLL_HELPER()
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxSize DoGetBestSize() const
|
virtual wxSize DoGetBestSize() const wxOVERRIDE
|
||||||
{
|
{
|
||||||
return FilterBestSize(this, this, T::DoGetBestSize());
|
return FilterBestSize(this, this, T::DoGetBestSize());
|
||||||
}
|
}
|
||||||
|
@@ -73,7 +73,7 @@ protected:
|
|||||||
void OnActivate(wxActivateEvent& event);
|
void OnActivate(wxActivateEvent& event);
|
||||||
void OnKillFocus(wxFocusEvent& event);
|
void OnKillFocus(wxFocusEvent& event);
|
||||||
#else // wxUSE_POPUPWIN
|
#else // wxUSE_POPUPWIN
|
||||||
virtual void OnDismiss();
|
virtual void OnDismiss() wxOVERRIDE;
|
||||||
#endif // wxUSE_POPUPWIN/!wxUSE_POPUPWIN
|
#endif // wxUSE_POPUPWIN/!wxUSE_POPUPWIN
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@@ -54,8 +54,8 @@ public:
|
|||||||
virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer) wxOVERRIDE;
|
virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
#if wxUSE_THREADS && defined(__WXGTK20__)
|
#if wxUSE_THREADS && defined(__WXGTK20__)
|
||||||
virtual void MutexGuiEnter();
|
virtual void MutexGuiEnter() wxOVERRIDE;
|
||||||
virtual void MutexGuiLeave();
|
virtual void MutexGuiLeave() wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__WXMAC__) && wxUSE_STDPATHS
|
#if defined(__WXMAC__) && wxUSE_STDPATHS
|
||||||
@@ -64,13 +64,13 @@ public:
|
|||||||
virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const wxOVERRIDE;
|
virtual wxPortId GetToolkitVersion(int *majVer = NULL, int *minVer = NULL) const wxOVERRIDE;
|
||||||
|
|
||||||
#ifdef __WXGTK20__
|
#ifdef __WXGTK20__
|
||||||
virtual wxString GetDesktopEnvironment() const;
|
virtual wxString GetDesktopEnvironment() const wxOVERRIDE;
|
||||||
virtual wxString GetStandardCmdLineOptions(wxArrayString& names,
|
virtual wxString GetStandardCmdLineOptions(wxArrayString& names,
|
||||||
wxArrayString& desc) const;
|
wxArrayString& desc) const wxOVERRIDE;
|
||||||
#endif // __WXGTK20____
|
#endif // __WXGTK20____
|
||||||
|
|
||||||
#if defined(__WXGTK20__)
|
#if defined(__WXGTK20__)
|
||||||
virtual bool ShowAssertDialog(const wxString& msg);
|
virtual bool ShowAssertDialog(const wxString& msg) wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if wxUSE_SOCKETS
|
#if wxUSE_SOCKETS
|
||||||
@@ -80,7 +80,7 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef wxHAS_GUI_FDIOMANAGER
|
#ifdef wxHAS_GUI_FDIOMANAGER
|
||||||
virtual wxFDIOManager *GetFDIOManager();
|
virtual wxFDIOManager *GetFDIOManager() wxOVERRIDE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // wxUSE_SOCKETS
|
#endif // wxUSE_SOCKETS
|
||||||
|
@@ -41,7 +41,7 @@ public:
|
|||||||
|
|
||||||
// Override base class method to not do anything but always return success:
|
// Override base class method to not do anything but always return success:
|
||||||
// we don't need this as we do our validation on the fly here.
|
// we don't need this as we do our validation on the fly here.
|
||||||
virtual bool Validate(wxWindow * WXUNUSED(parent)) { return true; }
|
virtual bool Validate(wxWindow * WXUNUSED(parent)) wxOVERRIDE { return true; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxNumValidatorBase(int style)
|
wxNumValidatorBase(int style)
|
||||||
@@ -279,7 +279,7 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Implement wxNumValidatorBase pure virtual method.
|
// Implement wxNumValidatorBase pure virtual method.
|
||||||
virtual bool IsCharOk(const wxString& val, int pos, wxChar ch) const;
|
virtual bool IsCharOk(const wxString& val, int pos, wxChar ch) const wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Minimal and maximal values accepted (inclusive).
|
// Minimal and maximal values accepted (inclusive).
|
||||||
@@ -374,7 +374,7 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Implement wxNumValidatorBase pure virtual method.
|
// Implement wxNumValidatorBase pure virtual method.
|
||||||
virtual bool IsCharOk(const wxString& val, int pos, wxChar ch) const;
|
virtual bool IsCharOk(const wxString& val, int pos, wxChar ch) const wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Maximum number of decimals digits after the decimal separator.
|
// Maximum number of decimals digits after the decimal separator.
|
||||||
|
@@ -438,7 +438,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
#define DECLARE_WXANY_CONVERSION() \
|
#define DECLARE_WXANY_CONVERSION() \
|
||||||
virtual bool GetAsAny(wxAny* any) const; \
|
virtual bool GetAsAny(wxAny* any) const wxOVERRIDE; \
|
||||||
static wxVariantData* VariantDataFactory(const wxAny& any);
|
static wxVariantData* VariantDataFactory(const wxAny& any);
|
||||||
|
|
||||||
#define _REGISTER_WXANY_CONVERSION(T, CLASSNAME, FUNC) \
|
#define _REGISTER_WXANY_CONVERSION(T, CLASSNAME, FUNC) \
|
||||||
@@ -489,12 +489,12 @@ public:\
|
|||||||
\
|
\
|
||||||
classname &GetValue() { return m_value; } \
|
classname &GetValue() { return m_value; } \
|
||||||
\
|
\
|
||||||
virtual bool Eq(wxVariantData& data) const; \
|
virtual bool Eq(wxVariantData& data) const wxOVERRIDE; \
|
||||||
\
|
\
|
||||||
virtual wxString GetType() const; \
|
virtual wxString GetType() const wxOVERRIDE; \
|
||||||
virtual wxClassInfo* GetValueClassInfo(); \
|
virtual wxClassInfo* GetValueClassInfo() wxOVERRIDE; \
|
||||||
\
|
\
|
||||||
virtual wxVariantData* Clone() const { return new classname##VariantData(m_value); } \
|
virtual wxVariantData* Clone() const wxOVERRIDE { return new classname##VariantData(m_value); } \
|
||||||
\
|
\
|
||||||
DECLARE_WXANY_CONVERSION() \
|
DECLARE_WXANY_CONVERSION() \
|
||||||
protected:\
|
protected:\
|
||||||
|
@@ -655,8 +655,8 @@ typedef wxVarVScrollHelper wxVarVScrollLegacyAdaptor;
|
|||||||
// classes
|
// classes
|
||||||
#define WX_FORWARD_TO_VAR_SCROLL_HELPER() \
|
#define WX_FORWARD_TO_VAR_SCROLL_HELPER() \
|
||||||
public: \
|
public: \
|
||||||
virtual void PrepareDC(wxDC& dc) { DoPrepareDC(dc); } \
|
virtual void PrepareDC(wxDC& dc) wxOVERRIDE { DoPrepareDC(dc); } \
|
||||||
virtual bool Layout() { return ScrollLayout(); }
|
virtual bool Layout() wxOVERRIDE { return ScrollLayout(); }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxAnimationCtrlXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxAnimationCtrlXmlHandler();
|
wxAnimationCtrlXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC && wxUSE_ANIMATIONCTRL
|
#endif // wxUSE_XRC && wxUSE_ANIMATIONCTRL
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_AUI wxAuiNotebookXmlHandler : public wxXmlResourceHandler
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxAuiNotebookXmlHandler();
|
wxAuiNotebookXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_isInside;
|
bool m_isInside;
|
||||||
|
@@ -23,8 +23,8 @@ class WXDLLIMPEXP_AUI wxAuiToolBarXmlHandler : public wxXmlResourceHandler
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxAuiToolBarXmlHandler();
|
wxAuiToolBarXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_isInside;
|
bool m_isInside;
|
||||||
|
@@ -19,8 +19,8 @@ class WXDLLIMPEXP_XRC wxBannerWindowXmlHandler : public wxXmlResourceHandler
|
|||||||
public:
|
public:
|
||||||
wxBannerWindowXmlHandler();
|
wxBannerWindowXmlHandler();
|
||||||
|
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
wxDECLARE_DYNAMIC_CLASS(wxBannerWindowXmlHandler);
|
wxDECLARE_DYNAMIC_CLASS(wxBannerWindowXmlHandler);
|
||||||
};
|
};
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxBitmapXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxBitmapXmlHandler();
|
wxBitmapXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
class WXDLLIMPEXP_XRC wxIconXmlHandler : public wxXmlResourceHandler
|
class WXDLLIMPEXP_XRC wxIconXmlHandler : public wxXmlResourceHandler
|
||||||
@@ -30,8 +30,8 @@ class WXDLLIMPEXP_XRC wxIconXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxIconXmlHandler();
|
wxIconXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC
|
#endif // wxUSE_XRC
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxBitmapButtonXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxBitmapButtonXmlHandler();
|
wxBitmapButtonXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC && wxUSE_BMPBUTTON
|
#endif // wxUSE_XRC && wxUSE_BMPBUTTON
|
||||||
|
@@ -22,8 +22,8 @@ class WXDLLIMPEXP_XRC wxBitmapComboBoxXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxBitmapComboBoxXmlHandler();
|
wxBitmapComboBoxXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxBitmapComboBox* m_combobox;
|
wxBitmapComboBox* m_combobox;
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxButtonXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxButtonXmlHandler();
|
wxButtonXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC && wxUSE_BUTTON
|
#endif // wxUSE_XRC && wxUSE_BUTTON
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxCalendarCtrlXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxCalendarCtrlXmlHandler();
|
wxCalendarCtrlXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC && wxUSE_CALENDARCTRL
|
#endif // wxUSE_XRC && wxUSE_CALENDARCTRL
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxCheckBoxXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxCheckBoxXmlHandler();
|
wxCheckBoxXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC && wxUSE_CHECKBOX
|
#endif // wxUSE_XRC && wxUSE_CHECKBOX
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxCheckListBoxXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxCheckListBoxXmlHandler();
|
wxCheckListBoxXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_insideBox;
|
bool m_insideBox;
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxChoiceXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxChoiceXmlHandler();
|
wxChoiceXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_insideBox;
|
bool m_insideBox;
|
||||||
|
@@ -21,8 +21,8 @@ class WXDLLIMPEXP_XRC wxChoicebookXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxChoicebookXmlHandler();
|
wxChoicebookXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_isInside;
|
bool m_isInside;
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxColourPickerCtrlXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxColourPickerCtrlXmlHandler();
|
wxColourPickerCtrlXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC && wxUSE_COLOURPICKERCTRL
|
#endif // wxUSE_XRC && wxUSE_COLOURPICKERCTRL
|
||||||
|
@@ -19,8 +19,8 @@ class WXDLLIMPEXP_XRC wxCommandLinkButtonXmlHandler : public wxXmlResourceHandle
|
|||||||
public:
|
public:
|
||||||
wxCommandLinkButtonXmlHandler();
|
wxCommandLinkButtonXmlHandler();
|
||||||
|
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxDECLARE_DYNAMIC_CLASS(wxCommandLinkButtonXmlHandler);
|
wxDECLARE_DYNAMIC_CLASS(wxCommandLinkButtonXmlHandler);
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxCollapsiblePaneXmlHandler : public wxXmlResourceHandler
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxCollapsiblePaneXmlHandler();
|
wxCollapsiblePaneXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_isInside;
|
bool m_isInside;
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxComboBoxXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxComboBoxXmlHandler();
|
wxComboBoxXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_insideBox;
|
bool m_insideBox;
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxComboCtrlXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxComboCtrlXmlHandler();
|
wxComboCtrlXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
};
|
};
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxDateCtrlXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxDateCtrlXmlHandler();
|
wxDateCtrlXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC && wxUSE_DATEPICKCTRL
|
#endif // wxUSE_XRC && wxUSE_DATEPICKCTRL
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxDirPickerCtrlXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxDirPickerCtrlXmlHandler();
|
wxDirPickerCtrlXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC && wxUSE_DIRPICKERCTRL
|
#endif // wxUSE_XRC && wxUSE_DIRPICKERCTRL
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxDialogXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxDialogXmlHandler();
|
wxDialogXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC
|
#endif // wxUSE_XRC
|
||||||
|
@@ -23,8 +23,8 @@ class WXDLLIMPEXP_XRC wxEditableListBoxXmlHandler : public wxXmlResourceHandler
|
|||||||
public:
|
public:
|
||||||
wxEditableListBoxXmlHandler();
|
wxEditableListBoxXmlHandler();
|
||||||
|
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_insideBox;
|
bool m_insideBox;
|
||||||
|
@@ -18,8 +18,8 @@ class WXDLLIMPEXP_XRC wxFileCtrlXmlHandler : public wxXmlResourceHandler
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxFileCtrlXmlHandler();
|
wxFileCtrlXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxDECLARE_DYNAMIC_CLASS(wxFileCtrlXmlHandler);
|
wxDECLARE_DYNAMIC_CLASS(wxFileCtrlXmlHandler);
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxFilePickerCtrlXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxFilePickerCtrlXmlHandler();
|
wxFilePickerCtrlXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC && wxUSE_FILEPICKERCTRL
|
#endif // wxUSE_XRC && wxUSE_FILEPICKERCTRL
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxFontPickerCtrlXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxFontPickerCtrlXmlHandler();
|
wxFontPickerCtrlXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC && wxUSE_FONTPICKERCTRL
|
#endif // wxUSE_XRC && wxUSE_FONTPICKERCTRL
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxFrameXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxFrameXmlHandler();
|
wxFrameXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC
|
#endif // wxUSE_XRC
|
||||||
|
@@ -18,8 +18,8 @@ class WXDLLIMPEXP_XRC wxGaugeXmlHandler : public wxXmlResourceHandler
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxGaugeXmlHandler();
|
wxGaugeXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
wxDECLARE_DYNAMIC_CLASS(wxGaugeXmlHandler);
|
wxDECLARE_DYNAMIC_CLASS(wxGaugeXmlHandler);
|
||||||
};
|
};
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxGenericDirCtrlXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxGenericDirCtrlXmlHandler();
|
wxGenericDirCtrlXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC && wxUSE_DIRDLG
|
#endif // wxUSE_XRC && wxUSE_DIRDLG
|
||||||
|
@@ -21,8 +21,8 @@ class WXDLLIMPEXP_XRC wxGridXmlHandler : public wxXmlResourceHandler
|
|||||||
public:
|
public:
|
||||||
wxGridXmlHandler();
|
wxGridXmlHandler();
|
||||||
|
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC && wxUSE_GRID
|
#endif // wxUSE_XRC && wxUSE_GRID
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxHtmlWindowXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxHtmlWindowXmlHandler();
|
wxHtmlWindowXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC && wxUSE_HTML
|
#endif // wxUSE_XRC && wxUSE_HTML
|
||||||
|
@@ -18,8 +18,8 @@ class WXDLLIMPEXP_XRC wxSimpleHtmlListBoxXmlHandler : public wxXmlResourceHandle
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxSimpleHtmlListBoxXmlHandler();
|
wxSimpleHtmlListBoxXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_insideBox;
|
bool m_insideBox;
|
||||||
|
@@ -25,10 +25,10 @@ public:
|
|||||||
wxHyperlinkCtrlXmlHandler();
|
wxHyperlinkCtrlXmlHandler();
|
||||||
|
|
||||||
// Creates the control and returns a pointer to it.
|
// Creates the control and returns a pointer to it.
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
|
|
||||||
// Returns true if we know how to create a control for the given node.
|
// Returns true if we know how to create a control for the given node.
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC && wxUSE_HYPERLINKCTRL
|
#endif // wxUSE_XRC && wxUSE_HYPERLINKCTRL
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxListBoxXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxListBoxXmlHandler();
|
wxListBoxXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_insideBox;
|
bool m_insideBox;
|
||||||
|
@@ -21,8 +21,8 @@ class WXDLLIMPEXP_XRC wxListbookXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxListbookXmlHandler();
|
wxListbookXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_isInside;
|
bool m_isInside;
|
||||||
|
@@ -21,8 +21,8 @@ class WXDLLIMPEXP_XRC wxListCtrlXmlHandler : public wxXmlResourceHandler
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxListCtrlXmlHandler();
|
wxListCtrlXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// handlers for wxListCtrl itself and its listcol and listitem children
|
// handlers for wxListCtrl itself and its listcol and listitem children
|
||||||
|
@@ -22,8 +22,8 @@ class WXDLLIMPEXP_XRC wxMdiXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxMdiXmlHandler();
|
wxMdiXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxWindow *CreateFrame();
|
wxWindow *CreateFrame();
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxMenuXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxMenuXmlHandler();
|
wxMenuXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_insideMenu;
|
bool m_insideMenu;
|
||||||
@@ -33,8 +33,8 @@ class WXDLLIMPEXP_XRC wxMenuBarXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxMenuBarXmlHandler();
|
wxMenuBarXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC && wxUSE_MENUS
|
#endif // wxUSE_XRC && wxUSE_MENUS
|
||||||
|
@@ -21,8 +21,8 @@ class WXDLLIMPEXP_XRC wxNotebookXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxNotebookXmlHandler();
|
wxNotebookXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_isInside;
|
bool m_isInside;
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxOwnerDrawnComboBoxXmlHandler : public wxXmlResourceHandl
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxOwnerDrawnComboBoxXmlHandler();
|
wxOwnerDrawnComboBoxXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_insideBox;
|
bool m_insideBox;
|
||||||
|
@@ -20,8 +20,8 @@ class WXDLLIMPEXP_XRC wxPanelXmlHandler : public wxXmlResourceHandler
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
wxPanelXmlHandler();
|
wxPanelXmlHandler();
|
||||||
virtual wxObject *DoCreateResource();
|
virtual wxObject *DoCreateResource() wxOVERRIDE;
|
||||||
virtual bool CanHandle(wxXmlNode *node);
|
virtual bool CanHandle(wxXmlNode *node) wxOVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_XRC
|
#endif // wxUSE_XRC
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user