mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-22 14:20:35 +08:00
use wxOVERRIDE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
+11
-11
@@ -28,19 +28,19 @@ public:
|
||||
}
|
||||
|
||||
// Implement base class pure virtual methods.
|
||||
virtual void Set(const wxMatrix2D& mat2D, const wxPoint2DDouble& tr);
|
||||
virtual void Get(wxMatrix2D* mat2D, wxPoint2DDouble* tr) const;
|
||||
virtual void Concat(const wxAffineMatrix2DBase& t);
|
||||
virtual bool Invert();
|
||||
virtual bool IsIdentity() const;
|
||||
virtual bool IsEqual(const wxAffineMatrix2DBase& t) const;
|
||||
virtual void Translate(wxDouble dx, wxDouble dy);
|
||||
virtual void Scale(wxDouble xScale, wxDouble yScale);
|
||||
virtual void Rotate(wxDouble cRadians);
|
||||
virtual void Set(const wxMatrix2D& mat2D, const wxPoint2DDouble& tr) wxOVERRIDE;
|
||||
virtual void Get(wxMatrix2D* mat2D, wxPoint2DDouble* tr) const wxOVERRIDE;
|
||||
virtual void Concat(const wxAffineMatrix2DBase& t) wxOVERRIDE;
|
||||
virtual bool Invert() wxOVERRIDE;
|
||||
virtual bool IsIdentity() const wxOVERRIDE;
|
||||
virtual bool IsEqual(const wxAffineMatrix2DBase& t) const wxOVERRIDE;
|
||||
virtual void Translate(wxDouble dx, wxDouble dy) wxOVERRIDE;
|
||||
virtual void Scale(wxDouble xScale, wxDouble yScale) wxOVERRIDE;
|
||||
virtual void Rotate(wxDouble cRadians) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
virtual wxPoint2DDouble DoTransformPoint(const wxPoint2DDouble& p) const;
|
||||
virtual wxPoint2DDouble DoTransformDistance(const wxPoint2DDouble& p) const;
|
||||
virtual wxPoint2DDouble DoTransformPoint(const wxPoint2DDouble& p) const wxOVERRIDE;
|
||||
virtual wxPoint2DDouble DoTransformDistance(const wxPoint2DDouble& p) const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxDouble m_11, m_12, m_21, m_22, m_tx, m_ty;
|
||||
|
||||
+10
-10
@@ -36,26 +36,26 @@ public:
|
||||
~wxANIDecoder();
|
||||
|
||||
|
||||
virtual wxSize GetFrameSize(unsigned int frame) const;
|
||||
virtual wxPoint GetFramePosition(unsigned int frame) const;
|
||||
virtual wxAnimationDisposal GetDisposalMethod(unsigned int frame) const;
|
||||
virtual long GetDelay(unsigned int frame) const;
|
||||
virtual wxColour GetTransparentColour(unsigned int frame) const;
|
||||
virtual wxSize GetFrameSize(unsigned int frame) const wxOVERRIDE;
|
||||
virtual wxPoint GetFramePosition(unsigned int frame) const wxOVERRIDE;
|
||||
virtual wxAnimationDisposal GetDisposalMethod(unsigned int frame) const wxOVERRIDE;
|
||||
virtual long GetDelay(unsigned int frame) const wxOVERRIDE;
|
||||
virtual wxColour GetTransparentColour(unsigned int frame) const wxOVERRIDE;
|
||||
|
||||
// implementation of wxAnimationDecoder's pure virtuals
|
||||
|
||||
virtual bool Load( wxInputStream& stream );
|
||||
virtual bool Load( wxInputStream& stream ) wxOVERRIDE;
|
||||
|
||||
bool ConvertToImage(unsigned int frame, wxImage *image) const;
|
||||
bool ConvertToImage(unsigned int frame, wxImage *image) const wxOVERRIDE;
|
||||
|
||||
wxAnimationDecoder *Clone() const
|
||||
wxAnimationDecoder *Clone() const wxOVERRIDE
|
||||
{ return new wxANIDecoder; }
|
||||
wxAnimationType GetType() const
|
||||
wxAnimationType GetType() const wxOVERRIDE
|
||||
{ return wxANIMATION_TYPE_ANI; }
|
||||
|
||||
private:
|
||||
// wxAnimationDecoder pure virtual:
|
||||
virtual bool DoCanRead( wxInputStream& stream ) const;
|
||||
virtual bool DoCanRead( wxInputStream& stream ) const wxOVERRIDE;
|
||||
// modifies current stream position (see wxAnimationDecoder::CanRead)
|
||||
|
||||
// frames stored as wxImage(s): ANI files are meant to be used mostly for animated
|
||||
|
||||
+9
-9
@@ -288,13 +288,13 @@ public:
|
||||
wxAnyValueTypeImplBase() : wxAnyValueType() { }
|
||||
virtual ~wxAnyValueTypeImplBase() { }
|
||||
|
||||
virtual void DeleteValue(wxAnyValueBuffer& buf) const
|
||||
virtual void DeleteValue(wxAnyValueBuffer& buf) const wxOVERRIDE
|
||||
{
|
||||
Ops::DeleteValue(buf);
|
||||
}
|
||||
|
||||
virtual void CopyBuffer(const wxAnyValueBuffer& src,
|
||||
wxAnyValueBuffer& dst) const
|
||||
wxAnyValueBuffer& dst) const wxOVERRIDE
|
||||
{
|
||||
Ops::SetValue(Ops::GetValue(src), dst);
|
||||
}
|
||||
@@ -418,7 +418,7 @@ public:
|
||||
|
||||
virtual bool ConvertValue(const wxAnyValueBuffer& src,
|
||||
wxAnyValueType* dstType,
|
||||
wxAnyValueBuffer& dst) const;
|
||||
wxAnyValueBuffer& dst) const wxOVERRIDE;
|
||||
};
|
||||
|
||||
|
||||
@@ -433,7 +433,7 @@ public:
|
||||
|
||||
virtual bool ConvertValue(const wxAnyValueBuffer& src,
|
||||
wxAnyValueType* dstType,
|
||||
wxAnyValueBuffer& dst) const;
|
||||
wxAnyValueBuffer& dst) const wxOVERRIDE;
|
||||
};
|
||||
|
||||
|
||||
@@ -520,7 +520,7 @@ public:
|
||||
|
||||
virtual bool ConvertValue(const wxAnyValueBuffer& src,
|
||||
wxAnyValueType* dstType,
|
||||
wxAnyValueBuffer& dst) const;
|
||||
wxAnyValueBuffer& dst) const wxOVERRIDE;
|
||||
};
|
||||
|
||||
//
|
||||
@@ -537,7 +537,7 @@ public:
|
||||
|
||||
virtual bool ConvertValue(const wxAnyValueBuffer& src,
|
||||
wxAnyValueType* dstType,
|
||||
wxAnyValueBuffer& dst) const;
|
||||
wxAnyValueBuffer& dst) const wxOVERRIDE;
|
||||
};
|
||||
|
||||
// WX_ANY_DEFINE_SUB_TYPE requires this
|
||||
@@ -614,7 +614,7 @@ public:
|
||||
wxAnyValueTypeImplBase<wxVariantData*>() { }
|
||||
virtual ~wxAnyValueTypeImplVariantData() { }
|
||||
|
||||
virtual void DeleteValue(wxAnyValueBuffer& buf) const
|
||||
virtual void DeleteValue(wxAnyValueBuffer& buf) const wxOVERRIDE
|
||||
{
|
||||
wxVariantData* data = static_cast<wxVariantData*>(buf.m_ptr);
|
||||
if ( data )
|
||||
@@ -622,7 +622,7 @@ public:
|
||||
}
|
||||
|
||||
virtual void CopyBuffer(const wxAnyValueBuffer& src,
|
||||
wxAnyValueBuffer& dst) const
|
||||
wxAnyValueBuffer& dst) const wxOVERRIDE
|
||||
{
|
||||
wxVariantData* data = static_cast<wxVariantData*>(src.m_ptr);
|
||||
if ( data )
|
||||
@@ -644,7 +644,7 @@ public:
|
||||
|
||||
virtual bool ConvertValue(const wxAnyValueBuffer& src,
|
||||
wxAnyValueType* dstType,
|
||||
wxAnyValueBuffer& dst) const
|
||||
wxAnyValueBuffer& dst) const wxOVERRIDE
|
||||
{
|
||||
wxUnusedVar(src);
|
||||
wxUnusedVar(dstType);
|
||||
|
||||
@@ -102,7 +102,7 @@ public:
|
||||
// Buttons on MSW can look bad if they are not native colours, because
|
||||
// then they become owner-drawn and not theme-drawn. Disable it here
|
||||
// in wxAnyButtonBase to make it consistent.
|
||||
virtual bool ShouldInheritColours() const { return false; }
|
||||
virtual bool ShouldInheritColours() const wxOVERRIDE { return false; }
|
||||
|
||||
// wxUniv-compatible and deprecated equivalents to SetBitmapXXX()
|
||||
#if WXWIN_COMPATIBILITY_2_8
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
|
||||
protected:
|
||||
// choose the default border for this window
|
||||
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
|
||||
virtual wxBorder GetDefaultBorder() const wxOVERRIDE { return wxBORDER_NONE; }
|
||||
|
||||
virtual wxBitmap DoGetBitmap(State WXUNUSED(which)) const
|
||||
{ return wxBitmap(); }
|
||||
|
||||
+10
-10
@@ -264,7 +264,7 @@ public:
|
||||
|
||||
// Implement the inherited wxEventFilter method but just return -1 from it
|
||||
// to indicate that default processing should take place.
|
||||
virtual int FilterEvent(wxEvent& event);
|
||||
virtual int FilterEvent(wxEvent& event) wxOVERRIDE;
|
||||
|
||||
// return true if we're running event loop, i.e. if the events can
|
||||
// (already) be dispatched
|
||||
@@ -541,7 +541,7 @@ public:
|
||||
// very first initialization function
|
||||
//
|
||||
// Override: very rarely
|
||||
virtual bool Initialize(int& argc, wxChar **argv);
|
||||
virtual bool Initialize(int& argc, wxChar **argv) wxOVERRIDE;
|
||||
|
||||
// a platform-dependent version of OnInit(): the code here is likely to
|
||||
// depend on the toolkit. default version does nothing.
|
||||
@@ -556,15 +556,15 @@ public:
|
||||
// of the program really starts here
|
||||
//
|
||||
// Override: rarely in GUI applications, always in console ones.
|
||||
virtual int OnRun();
|
||||
virtual int OnRun() wxOVERRIDE;
|
||||
|
||||
// a matching function for OnInit()
|
||||
virtual int OnExit();
|
||||
virtual int OnExit() wxOVERRIDE;
|
||||
|
||||
// very last clean up function
|
||||
//
|
||||
// Override: very rarely
|
||||
virtual void CleanUp();
|
||||
virtual void CleanUp() wxOVERRIDE;
|
||||
|
||||
|
||||
// the worker functions - usually not used directly by the user code
|
||||
@@ -579,10 +579,10 @@ public:
|
||||
// parties
|
||||
//
|
||||
// it should return true if more idle events are needed, false if not
|
||||
virtual bool ProcessIdle();
|
||||
virtual bool ProcessIdle() wxOVERRIDE;
|
||||
|
||||
// override base class version: GUI apps always use an event loop
|
||||
virtual bool UsesEventLoop() const { return true; }
|
||||
virtual bool UsesEventLoop() const wxOVERRIDE { return true; }
|
||||
|
||||
|
||||
// top level window functions
|
||||
@@ -645,8 +645,8 @@ public:
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_CMDLINE_PARSER
|
||||
virtual bool OnCmdLineParsed(wxCmdLineParser& parser);
|
||||
virtual void OnInitCmdLine(wxCmdLineParser& parser);
|
||||
virtual bool OnCmdLineParsed(wxCmdLineParser& parser) wxOVERRIDE;
|
||||
virtual void OnInitCmdLine(wxCmdLineParser& parser) wxOVERRIDE;
|
||||
#endif
|
||||
|
||||
// miscellaneous other stuff
|
||||
@@ -659,7 +659,7 @@ public:
|
||||
|
||||
protected:
|
||||
// override base class method to use GUI traits
|
||||
virtual wxAppTraits *CreateTraits();
|
||||
virtual wxAppTraits *CreateTraits() wxOVERRIDE;
|
||||
|
||||
|
||||
// the main top level window (may be NULL)
|
||||
|
||||
+17
-17
@@ -199,19 +199,19 @@ public:
|
||||
#endif // !wxUSE_CONSOLE_EVENTLOOP
|
||||
|
||||
#if wxUSE_LOG
|
||||
virtual wxLog *CreateLogTarget();
|
||||
virtual wxLog *CreateLogTarget() wxOVERRIDE;
|
||||
#endif // wxUSE_LOG
|
||||
virtual wxMessageOutput *CreateMessageOutput();
|
||||
virtual wxMessageOutput *CreateMessageOutput() wxOVERRIDE;
|
||||
#if wxUSE_FONTMAP
|
||||
virtual wxFontMapper *CreateFontMapper();
|
||||
virtual wxFontMapper *CreateFontMapper() wxOVERRIDE;
|
||||
#endif // wxUSE_FONTMAP
|
||||
virtual wxRendererNative *CreateRenderer();
|
||||
virtual wxRendererNative *CreateRenderer() wxOVERRIDE;
|
||||
|
||||
virtual bool ShowAssertDialog(const wxString& msg);
|
||||
virtual bool HasStderr();
|
||||
virtual bool ShowAssertDialog(const wxString& msg) wxOVERRIDE;
|
||||
virtual bool HasStderr() wxOVERRIDE;
|
||||
|
||||
// the GetToolkitVersion for console application is always the same
|
||||
virtual wxPortId GetToolkitVersion(int *verMaj = NULL, int *verMin = NULL) const
|
||||
virtual wxPortId GetToolkitVersion(int *verMaj = NULL, int *verMin = NULL) const wxOVERRIDE
|
||||
{
|
||||
// no toolkits (wxBase is for console applications without GUI support)
|
||||
// NB: zero means "no toolkit", -1 means "not initialized yet"
|
||||
@@ -221,8 +221,8 @@ public:
|
||||
return wxPORT_BASE;
|
||||
}
|
||||
|
||||
virtual bool IsUsingUniversalWidgets() const { return false; }
|
||||
virtual wxString GetDesktopEnvironment() const { return wxEmptyString; }
|
||||
virtual bool IsUsingUniversalWidgets() const wxOVERRIDE { return false; }
|
||||
virtual wxString GetDesktopEnvironment() const wxOVERRIDE { return wxEmptyString; }
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -235,18 +235,18 @@ class WXDLLIMPEXP_CORE wxGUIAppTraitsBase : public wxAppTraits
|
||||
{
|
||||
public:
|
||||
#if wxUSE_LOG
|
||||
virtual wxLog *CreateLogTarget();
|
||||
virtual wxLog *CreateLogTarget() wxOVERRIDE;
|
||||
#endif // wxUSE_LOG
|
||||
virtual wxMessageOutput *CreateMessageOutput();
|
||||
virtual wxMessageOutput *CreateMessageOutput() wxOVERRIDE;
|
||||
#if wxUSE_FONTMAP
|
||||
virtual wxFontMapper *CreateFontMapper();
|
||||
virtual wxFontMapper *CreateFontMapper() wxOVERRIDE;
|
||||
#endif // wxUSE_FONTMAP
|
||||
virtual wxRendererNative *CreateRenderer();
|
||||
virtual wxRendererNative *CreateRenderer() wxOVERRIDE;
|
||||
|
||||
virtual bool ShowAssertDialog(const wxString& msg);
|
||||
virtual bool HasStderr();
|
||||
virtual bool ShowAssertDialog(const wxString& msg) wxOVERRIDE;
|
||||
virtual bool HasStderr() wxOVERRIDE;
|
||||
|
||||
virtual bool IsUsingUniversalWidgets() const
|
||||
virtual bool IsUsingUniversalWidgets() const wxOVERRIDE
|
||||
{
|
||||
#ifdef __WXUNIVERSAL__
|
||||
return true;
|
||||
@@ -255,7 +255,7 @@ public:
|
||||
#endif
|
||||
}
|
||||
|
||||
virtual wxString GetDesktopEnvironment() const { return wxEmptyString; }
|
||||
virtual wxString GetDesktopEnvironment() const wxOVERRIDE { return wxEmptyString; }
|
||||
};
|
||||
|
||||
#endif // wxUSE_GUI
|
||||
|
||||
@@ -99,7 +99,7 @@ public:
|
||||
|
||||
wxArchiveEntry *GetNextEntry() { return DoGetNextEntry(); }
|
||||
|
||||
virtual char Peek() { return wxInputStream::Peek(); }
|
||||
virtual char Peek() wxOVERRIDE { return wxInputStream::Peek(); }
|
||||
|
||||
protected:
|
||||
wxArchiveInputStream(wxInputStream& stream, wxMBConv& conv);
|
||||
|
||||
+24
-24
@@ -75,7 +75,7 @@ public:
|
||||
m_dragSource = c.m_dragSource;
|
||||
}
|
||||
#endif
|
||||
wxEvent *Clone() const { return new wxAuiNotebookEvent(*this); }
|
||||
wxEvent *Clone() const wxOVERRIDE { return new wxAuiNotebookEvent(*this); }
|
||||
|
||||
void SetDragSource(wxAuiNotebook* s) { m_dragSource = s; }
|
||||
wxAuiNotebook* GetDragSource() const { return m_dragSource; }
|
||||
@@ -206,7 +206,7 @@ public:
|
||||
|
||||
protected:
|
||||
// choose the default border for this window
|
||||
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
|
||||
virtual wxBorder GetDefaultBorder() const wxOVERRIDE { return wxBORDER_NONE; }
|
||||
|
||||
void OnPaint(wxPaintEvent& evt);
|
||||
void OnEraseBackground(wxEraseEvent& evt);
|
||||
@@ -268,7 +268,7 @@ public:
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = 0);
|
||||
|
||||
void SetWindowStyleFlag(long style);
|
||||
void SetWindowStyleFlag(long style) wxOVERRIDE;
|
||||
void SetArtProvider(wxAuiTabArt* art);
|
||||
wxAuiTabArt* GetArtProvider() const;
|
||||
|
||||
@@ -286,15 +286,15 @@ public:
|
||||
bool select = false,
|
||||
const wxBitmap& bitmap = wxNullBitmap);
|
||||
|
||||
bool DeletePage(size_t page);
|
||||
bool RemovePage(size_t page);
|
||||
bool DeletePage(size_t page) wxOVERRIDE;
|
||||
bool RemovePage(size_t page) wxOVERRIDE;
|
||||
|
||||
virtual size_t GetPageCount() const;
|
||||
virtual wxWindow* GetPage(size_t pageIdx) const;
|
||||
virtual size_t GetPageCount() const wxOVERRIDE;
|
||||
virtual wxWindow* GetPage(size_t pageIdx) const wxOVERRIDE;
|
||||
int GetPageIndex(wxWindow* pageWnd) const;
|
||||
|
||||
bool SetPageText(size_t page, const wxString& text);
|
||||
wxString GetPageText(size_t pageIdx) const;
|
||||
bool SetPageText(size_t page, const wxString& text) wxOVERRIDE;
|
||||
wxString GetPageText(size_t pageIdx) const wxOVERRIDE;
|
||||
|
||||
bool SetPageToolTip(size_t page, const wxString& text);
|
||||
wxString GetPageToolTip(size_t pageIdx) const;
|
||||
@@ -302,8 +302,8 @@ public:
|
||||
bool SetPageBitmap(size_t page, const wxBitmap& bitmap);
|
||||
wxBitmap GetPageBitmap(size_t pageIdx) const;
|
||||
|
||||
int SetSelection(size_t newPage);
|
||||
int GetSelection() const;
|
||||
int SetSelection(size_t newPage) wxOVERRIDE;
|
||||
int GetSelection() const wxOVERRIDE;
|
||||
|
||||
virtual void Split(size_t page, int direction);
|
||||
|
||||
@@ -319,7 +319,7 @@ public:
|
||||
void SetMeasuringFont(const wxFont& font);
|
||||
|
||||
// Sets the tab font
|
||||
virtual bool SetFont(const wxFont& font);
|
||||
virtual bool SetFont(const wxFont& font) wxOVERRIDE;
|
||||
|
||||
// Gets the tab control height
|
||||
int GetTabCtrlHeight() const;
|
||||
@@ -331,36 +331,36 @@ public:
|
||||
bool ShowWindowMenu();
|
||||
|
||||
// we do have multiple pages
|
||||
virtual bool HasMultiplePages() const { return true; }
|
||||
virtual bool HasMultiplePages() const wxOVERRIDE { return true; }
|
||||
|
||||
// we don't want focus for ourselves
|
||||
// virtual bool AcceptsFocus() const { return false; }
|
||||
|
||||
//wxBookCtrlBase functions
|
||||
|
||||
virtual void SetPageSize (const wxSize &size);
|
||||
virtual int HitTest (const wxPoint &pt, long *flags=NULL) const;
|
||||
virtual void SetPageSize (const wxSize &size) wxOVERRIDE;
|
||||
virtual int HitTest (const wxPoint &pt, long *flags=NULL) const wxOVERRIDE;
|
||||
|
||||
virtual int GetPageImage(size_t n) const;
|
||||
virtual bool SetPageImage(size_t n, int imageId);
|
||||
virtual int GetPageImage(size_t n) const wxOVERRIDE;
|
||||
virtual bool SetPageImage(size_t n, int imageId) wxOVERRIDE;
|
||||
|
||||
virtual int ChangeSelection(size_t n);
|
||||
virtual int ChangeSelection(size_t n) wxOVERRIDE;
|
||||
|
||||
virtual bool AddPage(wxWindow *page, const wxString &text, bool select,
|
||||
int imageId);
|
||||
virtual bool DeleteAllPages();
|
||||
int imageId) wxOVERRIDE;
|
||||
virtual bool DeleteAllPages() wxOVERRIDE;
|
||||
virtual bool InsertPage(size_t index, wxWindow *page, const wxString &text,
|
||||
bool select, int imageId);
|
||||
bool select, int imageId) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
// Common part of all ctors.
|
||||
void Init();
|
||||
|
||||
// choose the default border for this window
|
||||
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
|
||||
virtual wxBorder GetDefaultBorder() const wxOVERRIDE { return wxBORDER_NONE; }
|
||||
|
||||
// Redo sizing after thawing
|
||||
virtual void DoThaw();
|
||||
virtual void DoThaw() wxOVERRIDE;
|
||||
|
||||
// these can be overridden
|
||||
|
||||
@@ -372,7 +372,7 @@ protected:
|
||||
virtual wxSize CalculateNewSplitSize();
|
||||
|
||||
// remove the page and return a pointer to it
|
||||
virtual wxWindow *DoRemovePage(size_t WXUNUSED(page)) { return NULL; }
|
||||
virtual wxWindow *DoRemovePage(size_t WXUNUSED(page)) wxOVERRIDE { return NULL; }
|
||||
|
||||
//A general selection function
|
||||
virtual int DoModifySelection(size_t n, bool events);
|
||||
|
||||
@@ -696,7 +696,7 @@ public:
|
||||
dc = c.dc;
|
||||
}
|
||||
#endif
|
||||
wxEvent *Clone() const { return new wxAuiManagerEvent(*this); }
|
||||
wxEvent *Clone() const wxOVERRIDE { return new wxAuiManagerEvent(*this); }
|
||||
|
||||
void SetManager(wxAuiManager* mgr) { manager = mgr; }
|
||||
void SetPane(wxAuiPaneInfo* p) { pane = p; }
|
||||
|
||||
+36
-36
@@ -120,26 +120,26 @@ public:
|
||||
wxAuiGenericTabArt();
|
||||
virtual ~wxAuiGenericTabArt();
|
||||
|
||||
wxAuiTabArt* Clone();
|
||||
void SetFlags(unsigned int flags);
|
||||
wxAuiTabArt* Clone() wxOVERRIDE;
|
||||
void SetFlags(unsigned int flags) wxOVERRIDE;
|
||||
void SetSizingInfo(const wxSize& tabCtrlSize,
|
||||
size_t tabCount);
|
||||
size_t tabCount) wxOVERRIDE;
|
||||
|
||||
void SetNormalFont(const wxFont& font);
|
||||
void SetSelectedFont(const wxFont& font);
|
||||
void SetMeasuringFont(const wxFont& font);
|
||||
void SetColour(const wxColour& colour);
|
||||
void SetActiveColour(const wxColour& colour);
|
||||
void SetNormalFont(const wxFont& font) wxOVERRIDE;
|
||||
void SetSelectedFont(const wxFont& font) wxOVERRIDE;
|
||||
void SetMeasuringFont(const wxFont& font) wxOVERRIDE;
|
||||
void SetColour(const wxColour& colour) wxOVERRIDE;
|
||||
void SetActiveColour(const wxColour& colour) wxOVERRIDE;
|
||||
|
||||
void DrawBorder(
|
||||
wxDC& dc,
|
||||
wxWindow* wnd,
|
||||
const wxRect& rect);
|
||||
const wxRect& rect) wxOVERRIDE;
|
||||
|
||||
void DrawBackground(
|
||||
wxDC& dc,
|
||||
wxWindow* wnd,
|
||||
const wxRect& rect);
|
||||
const wxRect& rect) wxOVERRIDE;
|
||||
|
||||
void DrawTab(wxDC& dc,
|
||||
wxWindow* wnd,
|
||||
@@ -148,7 +148,7 @@ public:
|
||||
int closeButtonState,
|
||||
wxRect* outTabRect,
|
||||
wxRect* outButtonRect,
|
||||
int* xExtent);
|
||||
int* xExtent) wxOVERRIDE;
|
||||
|
||||
void DrawButton(
|
||||
wxDC& dc,
|
||||
@@ -157,15 +157,15 @@ public:
|
||||
int bitmapId,
|
||||
int buttonState,
|
||||
int orientation,
|
||||
wxRect* outRect);
|
||||
wxRect* outRect) wxOVERRIDE;
|
||||
|
||||
int GetIndentSize();
|
||||
int GetIndentSize() wxOVERRIDE;
|
||||
|
||||
int GetBorderWidth(
|
||||
wxWindow* wnd);
|
||||
wxWindow* wnd) wxOVERRIDE;
|
||||
|
||||
int GetAdditionalBorderSpace(
|
||||
wxWindow* wnd);
|
||||
wxWindow* wnd) wxOVERRIDE;
|
||||
|
||||
wxSize GetTabSize(
|
||||
wxDC& dc,
|
||||
@@ -174,16 +174,16 @@ public:
|
||||
const wxBitmap& bitmap,
|
||||
bool active,
|
||||
int closeButtonState,
|
||||
int* xExtent);
|
||||
int* xExtent) wxOVERRIDE;
|
||||
|
||||
int ShowDropDown(
|
||||
wxWindow* wnd,
|
||||
const wxAuiNotebookPageArray& items,
|
||||
int activeIdx);
|
||||
int activeIdx) wxOVERRIDE;
|
||||
|
||||
int GetBestTabCtrlSize(wxWindow* wnd,
|
||||
const wxAuiNotebookPageArray& pages,
|
||||
const wxSize& requiredBmpSize);
|
||||
const wxSize& requiredBmpSize) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -218,27 +218,27 @@ public:
|
||||
wxAuiSimpleTabArt();
|
||||
virtual ~wxAuiSimpleTabArt();
|
||||
|
||||
wxAuiTabArt* Clone();
|
||||
void SetFlags(unsigned int flags);
|
||||
wxAuiTabArt* Clone() wxOVERRIDE;
|
||||
void SetFlags(unsigned int flags) wxOVERRIDE;
|
||||
|
||||
void SetSizingInfo(const wxSize& tabCtrlSize,
|
||||
size_t tabCount);
|
||||
size_t tabCount) wxOVERRIDE;
|
||||
|
||||
void SetNormalFont(const wxFont& font);
|
||||
void SetSelectedFont(const wxFont& font);
|
||||
void SetMeasuringFont(const wxFont& font);
|
||||
void SetColour(const wxColour& colour);
|
||||
void SetActiveColour(const wxColour& colour);
|
||||
void SetNormalFont(const wxFont& font) wxOVERRIDE;
|
||||
void SetSelectedFont(const wxFont& font) wxOVERRIDE;
|
||||
void SetMeasuringFont(const wxFont& font) wxOVERRIDE;
|
||||
void SetColour(const wxColour& colour) wxOVERRIDE;
|
||||
void SetActiveColour(const wxColour& colour) wxOVERRIDE;
|
||||
|
||||
void DrawBorder(
|
||||
wxDC& dc,
|
||||
wxWindow* wnd,
|
||||
const wxRect& rect);
|
||||
const wxRect& rect) wxOVERRIDE;
|
||||
|
||||
void DrawBackground(
|
||||
wxDC& dc,
|
||||
wxWindow* wnd,
|
||||
const wxRect& rect);
|
||||
const wxRect& rect) wxOVERRIDE;
|
||||
|
||||
void DrawTab(wxDC& dc,
|
||||
wxWindow* wnd,
|
||||
@@ -247,7 +247,7 @@ public:
|
||||
int closeButtonState,
|
||||
wxRect* outTabRect,
|
||||
wxRect* outButtonRect,
|
||||
int* xExtent);
|
||||
int* xExtent) wxOVERRIDE;
|
||||
|
||||
void DrawButton(
|
||||
wxDC& dc,
|
||||
@@ -256,15 +256,15 @@ public:
|
||||
int bitmapId,
|
||||
int buttonState,
|
||||
int orientation,
|
||||
wxRect* outRect);
|
||||
wxRect* outRect) wxOVERRIDE;
|
||||
|
||||
int GetIndentSize();
|
||||
int GetIndentSize() wxOVERRIDE;
|
||||
|
||||
int GetBorderWidth(
|
||||
wxWindow* wnd);
|
||||
wxWindow* wnd) wxOVERRIDE;
|
||||
|
||||
int GetAdditionalBorderSpace(
|
||||
wxWindow* wnd);
|
||||
wxWindow* wnd) wxOVERRIDE;
|
||||
|
||||
wxSize GetTabSize(
|
||||
wxDC& dc,
|
||||
@@ -273,16 +273,16 @@ public:
|
||||
const wxBitmap& bitmap,
|
||||
bool active,
|
||||
int closeButtonState,
|
||||
int* xExtent);
|
||||
int* xExtent) wxOVERRIDE;
|
||||
|
||||
int ShowDropDown(
|
||||
wxWindow* wnd,
|
||||
const wxAuiNotebookPageArray& items,
|
||||
int activeIdx);
|
||||
int activeIdx) wxOVERRIDE;
|
||||
|
||||
int GetBestTabCtrlSize(wxWindow* wnd,
|
||||
const wxAuiNotebookPageArray& pages,
|
||||
const wxSize& requiredBmpSize);
|
||||
const wxSize& requiredBmpSize) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
@@ -31,9 +31,9 @@ class WXDLLIMPEXP_AUI wxAuiGtkTabArt : public wxAuiGenericTabArt
|
||||
public:
|
||||
wxAuiGtkTabArt();
|
||||
|
||||
virtual wxAuiTabArt* Clone();
|
||||
virtual void DrawBorder(wxDC& dc, wxWindow* wnd, const wxRect& rect);
|
||||
virtual void DrawBackground(wxDC& dc, wxWindow* wnd, const wxRect& rect);
|
||||
virtual wxAuiTabArt* Clone() wxOVERRIDE;
|
||||
virtual void DrawBorder(wxDC& dc, wxWindow* wnd, const wxRect& rect) wxOVERRIDE;
|
||||
virtual void DrawBackground(wxDC& dc, wxWindow* wnd, const wxRect& rect) wxOVERRIDE;
|
||||
virtual void DrawTab(wxDC& dc,
|
||||
wxWindow* wnd,
|
||||
const wxAuiNotebookPage& page,
|
||||
@@ -41,16 +41,16 @@ public:
|
||||
int close_button_state,
|
||||
wxRect* out_tab_rect,
|
||||
wxRect* out_button_rect,
|
||||
int* x_extent);
|
||||
int* x_extent) wxOVERRIDE;
|
||||
void DrawButton(wxDC& dc, wxWindow* wnd, const wxRect& in_rect, int bitmap_id,
|
||||
int button_state, int orientation, wxRect* out_rect);
|
||||
int button_state, int orientation, wxRect* out_rect) wxOVERRIDE;
|
||||
int GetBestTabCtrlSize(wxWindow* wnd, const wxAuiNotebookPageArray& pages,
|
||||
const wxSize& required_bmp_size);
|
||||
int GetBorderWidth(wxWindow* wnd);
|
||||
int GetAdditionalBorderSpace(wxWindow* wnd);
|
||||
const wxSize& required_bmp_size) wxOVERRIDE;
|
||||
int GetBorderWidth(wxWindow* wnd) wxOVERRIDE;
|
||||
int GetAdditionalBorderSpace(wxWindow* wnd) wxOVERRIDE;
|
||||
virtual wxSize GetTabSize(wxDC& dc, wxWindow* wnd, const wxString& caption,
|
||||
const wxBitmap& bitmap, bool active,
|
||||
int close_button_state, int* x_extent);
|
||||
int close_button_state, int* x_extent) wxOVERRIDE;
|
||||
};
|
||||
|
||||
#endif // wxUSE_AUI
|
||||
|
||||
@@ -87,7 +87,7 @@ public:
|
||||
void SetGradient(const wxColour& start, const wxColour& end);
|
||||
|
||||
protected:
|
||||
virtual wxSize DoGetBestClientSize() const;
|
||||
virtual wxSize DoGetBestClientSize() const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
// Common part of all constructors.
|
||||
|
||||
@@ -226,13 +226,13 @@ public:
|
||||
|
||||
|
||||
// we do have multiple pages
|
||||
virtual bool HasMultiplePages() const { return true; }
|
||||
virtual bool HasMultiplePages() const wxOVERRIDE { return true; }
|
||||
|
||||
// we don't want focus for ourselves
|
||||
virtual bool AcceptsFocus() const { return false; }
|
||||
virtual bool AcceptsFocus() const wxOVERRIDE { return false; }
|
||||
|
||||
// returns true if the platform should explicitly apply a theme border
|
||||
virtual bool CanApplyThemeBorder() const { return false; }
|
||||
virtual bool CanApplyThemeBorder() const wxOVERRIDE { return false; }
|
||||
|
||||
protected:
|
||||
// flags for DoSetSelection()
|
||||
@@ -242,7 +242,7 @@ protected:
|
||||
};
|
||||
|
||||
// choose the default border for this window
|
||||
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
|
||||
virtual wxBorder GetDefaultBorder() const wxOVERRIDE { return wxBORDER_NONE; }
|
||||
|
||||
// After the insertion of the page in the method InsertPage, calling this
|
||||
// method sets the selection to the given page or the first one if there is
|
||||
@@ -303,7 +303,7 @@ protected:
|
||||
virtual wxWindow *DoRemovePage(size_t page) = 0;
|
||||
|
||||
// our best size is the size which fits all our pages
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
// helper: get the next page wrapping if we reached the end
|
||||
int GetNextPage(bool forward) const;
|
||||
@@ -384,7 +384,7 @@ public:
|
||||
m_nOldSel = event.m_nOldSel;
|
||||
}
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxBookCtrlEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxBookCtrlEvent(*this); }
|
||||
|
||||
// accessors
|
||||
// the currently selected page (wxNOT_FOUND if none)
|
||||
|
||||
@@ -167,7 +167,7 @@ public:
|
||||
void SetWeekDay(const wxDateTime::WeekDay wd) { m_wday = wd; }
|
||||
wxDateTime::WeekDay GetWeekDay() const { return m_wday; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxCalendarEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxCalendarEvent(*this); }
|
||||
|
||||
private:
|
||||
wxDateTime::WeekDay m_wday;
|
||||
|
||||
@@ -97,10 +97,10 @@ public:
|
||||
return HasFlag(wxCHK_ALLOW_3RD_STATE_FOR_USER);
|
||||
}
|
||||
|
||||
virtual bool HasTransparentBackground() { return true; }
|
||||
virtual bool HasTransparentBackground() wxOVERRIDE { return true; }
|
||||
|
||||
// wxCheckBox-specific processing after processing the update event
|
||||
virtual void DoUpdateWindowUI(wxUpdateUIEvent& event)
|
||||
virtual void DoUpdateWindowUI(wxUpdateUIEvent& event) wxOVERRIDE
|
||||
{
|
||||
wxControl::DoUpdateWindowUI(event);
|
||||
|
||||
@@ -110,7 +110,7 @@ public:
|
||||
|
||||
protected:
|
||||
// choose the default border for this window
|
||||
virtual wxBorder GetDefaultBorder() const { return wxBORDER_NONE; }
|
||||
virtual wxBorder GetDefaultBorder() const wxOVERRIDE { return wxBORDER_NONE; }
|
||||
|
||||
virtual void DoSet3StateValue(wxCheckBoxState WXUNUSED(state)) { wxFAIL; }
|
||||
|
||||
|
||||
+3
-3
@@ -52,17 +52,17 @@ public:
|
||||
virtual int GetColumns() const { return 1 ; }
|
||||
|
||||
// emulate selecting the item event.GetInt()
|
||||
void Command(wxCommandEvent& event);
|
||||
void Command(wxCommandEvent& event) wxOVERRIDE;
|
||||
|
||||
// override wxItemContainer::IsSorted
|
||||
virtual bool IsSorted() const { return HasFlag(wxCB_SORT); }
|
||||
virtual bool IsSorted() const wxOVERRIDE { return HasFlag(wxCB_SORT); }
|
||||
|
||||
protected:
|
||||
// The generic implementation doesn't determine the height correctly and
|
||||
// doesn't account for the width of the arrow but does take into account
|
||||
// the string widths, so the derived classes should override it and set the
|
||||
// height and add the arrow width to the size returned by this version.
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxDECLARE_NO_COPY_CLASS(wxChoiceBase);
|
||||
|
||||
+15
-15
@@ -60,21 +60,21 @@ public:
|
||||
const wxString& name = wxEmptyString);
|
||||
|
||||
|
||||
virtual bool SetPageText(size_t n, const wxString& strText);
|
||||
virtual wxString GetPageText(size_t n) const;
|
||||
virtual int GetPageImage(size_t n) const;
|
||||
virtual bool SetPageImage(size_t n, int imageId);
|
||||
virtual bool SetPageText(size_t n, const wxString& strText) wxOVERRIDE;
|
||||
virtual wxString GetPageText(size_t n) const wxOVERRIDE;
|
||||
virtual int GetPageImage(size_t n) const wxOVERRIDE;
|
||||
virtual bool SetPageImage(size_t n, int imageId) wxOVERRIDE;
|
||||
virtual bool InsertPage(size_t n,
|
||||
wxWindow *page,
|
||||
const wxString& text,
|
||||
bool bSelect = false,
|
||||
int imageId = NO_IMAGE);
|
||||
virtual int SetSelection(size_t n)
|
||||
int imageId = NO_IMAGE) wxOVERRIDE;
|
||||
virtual int SetSelection(size_t n) wxOVERRIDE
|
||||
{ return DoSetSelection(n, SetSelection_SendEvent); }
|
||||
virtual int ChangeSelection(size_t n) { return DoSetSelection(n); }
|
||||
virtual void SetImageList(wxImageList *imageList);
|
||||
virtual int ChangeSelection(size_t n) wxOVERRIDE { return DoSetSelection(n); }
|
||||
virtual void SetImageList(wxImageList *imageList) wxOVERRIDE;
|
||||
|
||||
virtual bool DeleteAllPages();
|
||||
virtual bool DeleteAllPages() wxOVERRIDE;
|
||||
|
||||
// returns the choice control
|
||||
wxChoice* GetChoiceCtrl() const { return (wxChoice*)m_bookctrl; }
|
||||
@@ -82,21 +82,21 @@ public:
|
||||
// Override this to return true because the part of parent window
|
||||
// background between our controlling wxChoice and the page area should
|
||||
// show through.
|
||||
virtual bool HasTransparentBackground() { return true; }
|
||||
virtual bool HasTransparentBackground() wxOVERRIDE { return true; }
|
||||
|
||||
protected:
|
||||
virtual void DoSetWindowVariant(wxWindowVariant variant);
|
||||
virtual void DoSetWindowVariant(wxWindowVariant variant) wxOVERRIDE;
|
||||
|
||||
virtual wxWindow *DoRemovePage(size_t page);
|
||||
virtual wxWindow *DoRemovePage(size_t page) wxOVERRIDE;
|
||||
|
||||
void UpdateSelectedPage(size_t newsel)
|
||||
void UpdateSelectedPage(size_t newsel) wxOVERRIDE
|
||||
{
|
||||
m_selection = static_cast<int>(newsel);
|
||||
GetChoiceCtrl()->Select(m_selection);
|
||||
}
|
||||
|
||||
wxBookCtrlEvent* CreatePageChangingEvent() const;
|
||||
void MakeChangedEvent(wxBookCtrlEvent &event);
|
||||
wxBookCtrlEvent* CreatePageChangingEvent() const wxOVERRIDE;
|
||||
void MakeChangedEvent(wxBookCtrlEvent &event) wxOVERRIDE;
|
||||
|
||||
// event handlers
|
||||
void OnChoiceSelected(wxCommandEvent& event);
|
||||
|
||||
@@ -117,7 +117,7 @@ public:
|
||||
bool SupportsFormat(const wxDataFormat& format) const;
|
||||
void AddFormat(const wxDataFormat& format);
|
||||
|
||||
virtual wxEvent *Clone() const
|
||||
virtual wxEvent *Clone() const wxOVERRIDE
|
||||
{
|
||||
return new wxClipboardEvent(*this);
|
||||
}
|
||||
|
||||
@@ -134,16 +134,16 @@ public: // public API
|
||||
public: // internal functions
|
||||
|
||||
// update the button colour to match the text control contents
|
||||
void UpdatePickerFromTextCtrl();
|
||||
void UpdatePickerFromTextCtrl() wxOVERRIDE;
|
||||
|
||||
// update the text control to match the button's colour
|
||||
void UpdateTextCtrlFromPicker();
|
||||
void UpdateTextCtrlFromPicker() wxOVERRIDE;
|
||||
|
||||
// event handler for our picker
|
||||
void OnColourChange(wxColourPickerEvent &);
|
||||
|
||||
protected:
|
||||
virtual long GetPickerStyle(long style) const
|
||||
virtual long GetPickerStyle(long style) const wxOVERRIDE
|
||||
{ return (style & wxCLRP_SHOW_LABEL); }
|
||||
|
||||
private:
|
||||
@@ -173,7 +173,7 @@ public:
|
||||
|
||||
|
||||
// default copy ctor, assignment operator and dtor are ok
|
||||
virtual wxEvent *Clone() const { return new wxColourPickerEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxColourPickerEvent(*this); }
|
||||
|
||||
private:
|
||||
wxColour m_colour;
|
||||
|
||||
@@ -70,7 +70,7 @@ public:
|
||||
|
||||
|
||||
// default copy ctor, assignment operator and dtor are ok
|
||||
virtual wxEvent *Clone() const { return new wxCollapsiblePaneEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxCollapsiblePaneEvent(*this); }
|
||||
|
||||
private:
|
||||
bool m_bCollapsed;
|
||||
|
||||
+2
-2
@@ -182,14 +182,14 @@ protected:
|
||||
// wxColour doesn't use reference counted data (at least not in all ports)
|
||||
// so provide stubs for the functions which need to be defined if we do use
|
||||
// them
|
||||
virtual wxGDIRefData *CreateGDIRefData() const
|
||||
virtual wxGDIRefData *CreateGDIRefData() const wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG( "must be overridden if used" );
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *WXUNUSED(data)) const
|
||||
virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *WXUNUSED(data)) const wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG( "must be overridden if used" );
|
||||
|
||||
|
||||
+38
-38
@@ -204,9 +204,9 @@ public:
|
||||
wxWindow *GetButton() const { return m_btn; }
|
||||
|
||||
// forward these methods to all subcontrols
|
||||
virtual bool Enable(bool enable = true);
|
||||
virtual bool Show(bool show = true);
|
||||
virtual bool SetFont(const wxFont& font);
|
||||
virtual bool Enable(bool enable = true) wxOVERRIDE;
|
||||
virtual bool Show(bool show = true) wxOVERRIDE;
|
||||
virtual bool SetFont(const wxFont& font) wxOVERRIDE;
|
||||
|
||||
//
|
||||
// wxTextEntry methods
|
||||
@@ -214,49 +214,49 @@ public:
|
||||
// NB: We basically need to override all of them because there is
|
||||
// no guarantee how platform-specific wxTextEntry is implemented.
|
||||
//
|
||||
virtual void SetValue(const wxString& value)
|
||||
virtual void SetValue(const wxString& value) wxOVERRIDE
|
||||
{ wxTextEntryBase::SetValue(value); }
|
||||
virtual void ChangeValue(const wxString& value)
|
||||
virtual void ChangeValue(const wxString& value) wxOVERRIDE
|
||||
{ wxTextEntryBase::ChangeValue(value); }
|
||||
|
||||
virtual void WriteText(const wxString& text);
|
||||
virtual void AppendText(const wxString& text)
|
||||
virtual void WriteText(const wxString& text) wxOVERRIDE;
|
||||
virtual void AppendText(const wxString& text) wxOVERRIDE
|
||||
{ wxTextEntryBase::AppendText(text); }
|
||||
|
||||
virtual wxString GetValue() const
|
||||
virtual wxString GetValue() const wxOVERRIDE
|
||||
{ return wxTextEntryBase::GetValue(); }
|
||||
|
||||
virtual wxString GetRange(long from, long to) const
|
||||
virtual wxString GetRange(long from, long to) const wxOVERRIDE
|
||||
{ return wxTextEntryBase::GetRange(from, to); }
|
||||
|
||||
// Replace() and DoSetValue() need to be fully re-implemented since
|
||||
// EventSuppressor utility class does not work with the way
|
||||
// wxComboCtrl is implemented.
|
||||
virtual void Replace(long from, long to, const wxString& value);
|
||||
virtual void Replace(long from, long to, const wxString& value) wxOVERRIDE;
|
||||
|
||||
virtual void Remove(long from, long to);
|
||||
virtual void Remove(long from, long to) wxOVERRIDE;
|
||||
|
||||
virtual void Copy();
|
||||
virtual void Cut();
|
||||
virtual void Paste();
|
||||
virtual void Copy() wxOVERRIDE;
|
||||
virtual void Cut() wxOVERRIDE;
|
||||
virtual void Paste() wxOVERRIDE;
|
||||
|
||||
virtual void Undo();
|
||||
virtual void Redo();
|
||||
virtual bool CanUndo() const;
|
||||
virtual bool CanRedo() const;
|
||||
virtual void Undo() wxOVERRIDE;
|
||||
virtual void Redo() wxOVERRIDE;
|
||||
virtual bool CanUndo() const wxOVERRIDE;
|
||||
virtual bool CanRedo() const wxOVERRIDE;
|
||||
|
||||
virtual void SetInsertionPoint(long pos);
|
||||
virtual long GetInsertionPoint() const;
|
||||
virtual long GetLastPosition() const;
|
||||
virtual void SetInsertionPoint(long pos) wxOVERRIDE;
|
||||
virtual long GetInsertionPoint() const wxOVERRIDE;
|
||||
virtual long GetLastPosition() const wxOVERRIDE;
|
||||
|
||||
virtual void SetSelection(long from, long to);
|
||||
virtual void GetSelection(long *from, long *to) const;
|
||||
virtual void SetSelection(long from, long to) wxOVERRIDE;
|
||||
virtual void GetSelection(long *from, long *to) const wxOVERRIDE;
|
||||
|
||||
virtual bool IsEditable() const;
|
||||
virtual void SetEditable(bool editable);
|
||||
virtual bool IsEditable() const wxOVERRIDE;
|
||||
virtual void SetEditable(bool editable) wxOVERRIDE;
|
||||
|
||||
virtual bool SetHint(const wxString& hint);
|
||||
virtual wxString GetHint() const;
|
||||
virtual bool SetHint(const wxString& hint) wxOVERRIDE;
|
||||
virtual wxString GetHint() const wxOVERRIDE;
|
||||
|
||||
// This method sets the text without affecting list selection
|
||||
// (ie. wxComboPopup::SetStringValue doesn't get called).
|
||||
@@ -467,12 +467,12 @@ public:
|
||||
void SetCtrlMainWnd( wxWindow* wnd ) { m_mainCtrlWnd = wnd; }
|
||||
|
||||
// This is public so we can access it from wxComboCtrlTextCtrl
|
||||
virtual wxWindow *GetMainWindowOfCompositeControl()
|
||||
virtual wxWindow *GetMainWindowOfCompositeControl() wxOVERRIDE
|
||||
{ return m_mainCtrlWnd; }
|
||||
|
||||
// also set the embedded wxTextCtrl colours
|
||||
virtual bool SetForegroundColour(const wxColour& colour);
|
||||
virtual bool SetBackgroundColour(const wxColour& colour);
|
||||
virtual bool SetForegroundColour(const wxColour& colour) wxOVERRIDE;
|
||||
virtual bool SetBackgroundColour(const wxColour& colour) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
|
||||
@@ -546,8 +546,8 @@ protected:
|
||||
// override the base class virtuals involved in geometry calculations
|
||||
// The common version only sets a default width, so the derived classes
|
||||
// should override it and set the height and change the width as needed.
|
||||
virtual wxSize DoGetBestSize() const;
|
||||
virtual wxSize DoGetSizeFromTextSize(int xlen, int ylen = -1) const;
|
||||
virtual wxSize DoGetBestSize() const wxOVERRIDE;
|
||||
virtual wxSize DoGetSizeFromTextSize(int xlen, int ylen = -1) const wxOVERRIDE;
|
||||
|
||||
// NULL popup can be used to indicate default in a derived class
|
||||
virtual void DoSetPopupControl(wxComboPopup* popup);
|
||||
@@ -598,17 +598,17 @@ protected:
|
||||
virtual bool AnimateShow( const wxRect& rect, int flags );
|
||||
|
||||
#if wxUSE_TOOLTIPS
|
||||
virtual void DoSetToolTip( wxToolTip *tip );
|
||||
virtual void DoSetToolTip( wxToolTip *tip ) wxOVERRIDE;
|
||||
#endif
|
||||
|
||||
// protected wxTextEntry methods
|
||||
virtual void DoSetValue(const wxString& value, int flags);
|
||||
virtual wxString DoGetValue() const;
|
||||
virtual wxWindow *GetEditableWindow() { return this; }
|
||||
virtual void DoSetValue(const wxString& value, int flags) wxOVERRIDE;
|
||||
virtual wxString DoGetValue() const wxOVERRIDE;
|
||||
virtual wxWindow *GetEditableWindow() wxOVERRIDE { return this; }
|
||||
|
||||
// margins functions
|
||||
virtual bool DoSetMargins(const wxPoint& pt);
|
||||
virtual wxPoint DoGetMargins() const;
|
||||
virtual bool DoSetMargins(const wxPoint& pt) wxOVERRIDE;
|
||||
virtual wxPoint DoGetMargins() const wxOVERRIDE;
|
||||
|
||||
// This is used when m_text is hidden (readonly).
|
||||
wxString m_valueString;
|
||||
|
||||
@@ -33,7 +33,7 @@ class WXDLLIMPEXP_CORE wxComboBoxBase : public wxItemContainer,
|
||||
{
|
||||
public:
|
||||
// override these methods to disambiguate between two base classes versions
|
||||
virtual void Clear()
|
||||
virtual void Clear() wxOVERRIDE
|
||||
{
|
||||
wxTextEntry::Clear();
|
||||
wxItemContainer::Clear();
|
||||
|
||||
@@ -120,7 +120,7 @@ public:
|
||||
const wxString& name = wxButtonNameStr);
|
||||
|
||||
virtual void SetMainLabelAndNote(const wxString& mainLabel,
|
||||
const wxString& note)
|
||||
const wxString& note) wxOVERRIDE
|
||||
{
|
||||
wxButton::SetLabel(mainLabel + '\n' + note);
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ class WXDLLIMPEXP_CORE wxControlContainer : public wxControlContainerBase
|
||||
{
|
||||
protected:
|
||||
// set the focus to the child which had it the last time
|
||||
virtual bool SetFocusToChild();
|
||||
virtual bool SetFocusToChild() wxOVERRIDE;
|
||||
};
|
||||
|
||||
#else // !wxHAS_NATIVE_TAB_TRAVERSAL
|
||||
|
||||
@@ -71,7 +71,7 @@ public:
|
||||
int GetAlignment() const { return m_windowStyle & wxALIGN_MASK; }
|
||||
|
||||
// set label with mnemonics
|
||||
virtual void SetLabel(const wxString& label)
|
||||
virtual void SetLabel(const wxString& label) wxOVERRIDE
|
||||
{
|
||||
m_labelOrig = label;
|
||||
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
|
||||
// return the original string, as it was passed to SetLabel()
|
||||
// (i.e. with wx-style mnemonics)
|
||||
virtual wxString GetLabel() const { return m_labelOrig; }
|
||||
virtual wxString GetLabel() const wxOVERRIDE { return m_labelOrig; }
|
||||
|
||||
// set label text (mnemonics will be escaped)
|
||||
virtual void SetLabelText(const wxString& text)
|
||||
@@ -119,7 +119,7 @@ public:
|
||||
// controls by default inherit the colours of their parents, if a
|
||||
// particular control class doesn't want to do it, it can override
|
||||
// ShouldInheritColours() to return false
|
||||
virtual bool ShouldInheritColours() const { return true; }
|
||||
virtual bool ShouldInheritColours() const wxOVERRIDE { return true; }
|
||||
|
||||
|
||||
// WARNING: this doesn't work for all controls nor all platforms!
|
||||
@@ -128,10 +128,10 @@ public:
|
||||
// if the button was clicked)
|
||||
virtual void Command(wxCommandEvent &event);
|
||||
|
||||
virtual bool SetFont(const wxFont& font);
|
||||
virtual bool SetFont(const wxFont& font) wxOVERRIDE;
|
||||
|
||||
// wxControl-specific processing after processing the update event
|
||||
virtual void DoUpdateWindowUI(wxUpdateUIEvent& event);
|
||||
virtual void DoUpdateWindowUI(wxUpdateUIEvent& event) wxOVERRIDE;
|
||||
|
||||
wxSize GetSizeFromTextSize(int xlen, int ylen = -1) const
|
||||
{ return DoGetSizeFromTextSize(xlen, ylen); }
|
||||
@@ -176,7 +176,7 @@ public:
|
||||
|
||||
protected:
|
||||
// choose the default border for this window
|
||||
virtual wxBorder GetDefaultBorder() const;
|
||||
virtual wxBorder GetDefaultBorder() const wxOVERRIDE;
|
||||
|
||||
// creates the control (calls wxWindowBase::CreateBase inside) and adds it
|
||||
// to the list of parents children
|
||||
|
||||
@@ -71,14 +71,14 @@ public:
|
||||
|
||||
// override the base class virtual function(s) to use our m_conv
|
||||
virtual size_t ToWChar(wchar_t *dst, size_t dstLen,
|
||||
const char *src, size_t srcLen = wxNO_LEN) const;
|
||||
const char *src, size_t srcLen = wxNO_LEN) const wxOVERRIDE;
|
||||
|
||||
virtual size_t FromWChar(char *dst, size_t dstLen,
|
||||
const wchar_t *src, size_t srcLen = wxNO_LEN) const;
|
||||
const wchar_t *src, size_t srcLen = wxNO_LEN) const wxOVERRIDE;
|
||||
|
||||
virtual size_t GetMBNulLen() const { return m_conv->GetMBNulLen(); }
|
||||
virtual size_t GetMBNulLen() const wxOVERRIDE { return m_conv->GetMBNulLen(); }
|
||||
|
||||
virtual wxMBConv *Clone() const { return new wxConvAuto(*this); }
|
||||
virtual wxMBConv *Clone() const wxOVERRIDE { return new wxConvAuto(*this); }
|
||||
|
||||
// return the BOM type of this buffer
|
||||
static wxBOM DetectBOM(const char *src, size_t srcLen);
|
||||
|
||||
+6
-6
@@ -204,14 +204,14 @@ class WXDLLIMPEXP_CORE wxSimpleHelpProvider : public wxHelpProvider
|
||||
{
|
||||
public:
|
||||
// implement wxHelpProvider methods
|
||||
virtual wxString GetHelp(const wxWindowBase *window);
|
||||
virtual wxString GetHelp(const wxWindowBase *window) wxOVERRIDE;
|
||||
|
||||
// override ShowHelp() and not ShowHelpAtPoint() as explained above
|
||||
virtual bool ShowHelp(wxWindowBase *window);
|
||||
virtual bool ShowHelp(wxWindowBase *window) wxOVERRIDE;
|
||||
|
||||
virtual void AddHelp(wxWindowBase *window, const wxString& text);
|
||||
virtual void AddHelp(wxWindowID id, const wxString& text);
|
||||
virtual void RemoveHelp(wxWindowBase* window);
|
||||
virtual void AddHelp(wxWindowBase *window, const wxString& text) wxOVERRIDE;
|
||||
virtual void AddHelp(wxWindowID id, const wxString& text) wxOVERRIDE;
|
||||
virtual void RemoveHelp(wxWindowBase* window) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
// we use 2 hashes for storing the help strings associated with windows
|
||||
@@ -235,7 +235,7 @@ public:
|
||||
|
||||
// again (see above): this should be ShowHelpAtPoint() but we need to
|
||||
// override ShowHelp() to avoid breaking existing code
|
||||
virtual bool ShowHelp(wxWindowBase *window);
|
||||
virtual bool ShowHelp(wxWindowBase *window) wxOVERRIDE;
|
||||
|
||||
// Other accessors
|
||||
void SetHelpController(wxHelpControllerBase* hc) { m_helpController = hc; }
|
||||
|
||||
@@ -438,7 +438,7 @@ public:
|
||||
|
||||
// usually the controls like list/combo boxes have their own background
|
||||
// colour
|
||||
virtual bool ShouldInheritColours() const { return false; }
|
||||
virtual bool ShouldInheritColours() const wxOVERRIDE { return false; }
|
||||
|
||||
|
||||
// Implementation only from now on.
|
||||
|
||||
+32
-32
@@ -225,20 +225,20 @@ public:
|
||||
|
||||
// implement base class pure virtuals
|
||||
// ----------------------------------
|
||||
virtual wxDataFormat GetPreferredFormat(wxDataObjectBase::Direction WXUNUSED(dir) = Get) const
|
||||
virtual wxDataFormat GetPreferredFormat(wxDataObjectBase::Direction WXUNUSED(dir) = Get) const wxOVERRIDE
|
||||
{ return m_format; }
|
||||
virtual size_t GetFormatCount(wxDataObjectBase::Direction WXUNUSED(dir) = Get) const
|
||||
virtual size_t GetFormatCount(wxDataObjectBase::Direction WXUNUSED(dir) = Get) const wxOVERRIDE
|
||||
{ return 1; }
|
||||
virtual void GetAllFormats(wxDataFormat *formats,
|
||||
wxDataObjectBase::Direction WXUNUSED(dir) = Get) const
|
||||
wxDataObjectBase::Direction WXUNUSED(dir) = Get) const wxOVERRIDE
|
||||
{ *formats = m_format; }
|
||||
virtual size_t GetDataSize(const wxDataFormat& WXUNUSED(format)) const
|
||||
virtual size_t GetDataSize(const wxDataFormat& WXUNUSED(format)) const wxOVERRIDE
|
||||
{ return GetDataSize(); }
|
||||
virtual bool GetDataHere(const wxDataFormat& WXUNUSED(format),
|
||||
void *buf) const
|
||||
void *buf) const wxOVERRIDE
|
||||
{ return GetDataHere(buf); }
|
||||
virtual bool SetData(const wxDataFormat& WXUNUSED(format),
|
||||
size_t len, const void *buf)
|
||||
size_t len, const void *buf) wxOVERRIDE
|
||||
{ return SetData(len, buf); }
|
||||
|
||||
private:
|
||||
@@ -286,12 +286,12 @@ public:
|
||||
|
||||
// implement base class pure virtuals
|
||||
// ----------------------------------
|
||||
virtual wxDataFormat GetPreferredFormat(wxDataObjectBase::Direction dir = Get) const;
|
||||
virtual size_t GetFormatCount(wxDataObjectBase::Direction dir = Get) const;
|
||||
virtual void GetAllFormats(wxDataFormat *formats, wxDataObjectBase::Direction dir = Get) const;
|
||||
virtual size_t GetDataSize(const wxDataFormat& format) const;
|
||||
virtual bool GetDataHere(const wxDataFormat& format, void *buf) const;
|
||||
virtual bool SetData(const wxDataFormat& format, size_t len, const void *buf);
|
||||
virtual wxDataFormat GetPreferredFormat(wxDataObjectBase::Direction dir = Get) const wxOVERRIDE;
|
||||
virtual size_t GetFormatCount(wxDataObjectBase::Direction dir = Get) const wxOVERRIDE;
|
||||
virtual void GetAllFormats(wxDataFormat *formats, wxDataObjectBase::Direction dir = Get) const wxOVERRIDE;
|
||||
virtual size_t GetDataSize(const wxDataFormat& format) const wxOVERRIDE;
|
||||
virtual bool GetDataHere(const wxDataFormat& format, void *buf) const wxOVERRIDE;
|
||||
virtual bool SetData(const wxDataFormat& format, size_t len, const void *buf) wxOVERRIDE;
|
||||
#if defined(__WXMSW__)
|
||||
virtual const void* GetSizeFromBuffer( const void* buffer, size_t* size,
|
||||
const wxDataFormat& format );
|
||||
@@ -350,20 +350,20 @@ public:
|
||||
virtual wxString GetHTML() const { return m_html; }
|
||||
virtual void SetHTML(const wxString& html) { m_html = html; }
|
||||
|
||||
virtual size_t GetDataSize() const;
|
||||
virtual bool GetDataHere(void *buf) const;
|
||||
virtual bool SetData(size_t len, const void *buf);
|
||||
virtual size_t GetDataSize() const wxOVERRIDE;
|
||||
virtual bool GetDataHere(void *buf) const wxOVERRIDE;
|
||||
virtual bool SetData(size_t len, const void *buf) wxOVERRIDE;
|
||||
|
||||
// Must provide overloads to avoid hiding them (and warnings about it)
|
||||
virtual size_t GetDataSize(const wxDataFormat&) const
|
||||
virtual size_t GetDataSize(const wxDataFormat&) const wxOVERRIDE
|
||||
{
|
||||
return GetDataSize();
|
||||
}
|
||||
virtual bool GetDataHere(const wxDataFormat&, void *buf) const
|
||||
virtual bool GetDataHere(const wxDataFormat&, void *buf) const wxOVERRIDE
|
||||
{
|
||||
return GetDataHere(buf);
|
||||
}
|
||||
virtual bool SetData(const wxDataFormat&, size_t len, const void *buf)
|
||||
virtual bool SetData(const wxDataFormat&, size_t len, const void *buf) wxOVERRIDE
|
||||
{
|
||||
return SetData(len, buf);
|
||||
}
|
||||
@@ -400,17 +400,17 @@ public:
|
||||
|
||||
// some platforms have 2 and not 1 format for text data
|
||||
#if defined(wxNEEDS_UTF8_FOR_TEXT_DATAOBJ) || defined(wxNEEDS_UTF16_FOR_TEXT_DATAOBJ)
|
||||
virtual size_t GetFormatCount(Direction WXUNUSED(dir) = Get) const { return 2; }
|
||||
virtual size_t GetFormatCount(Direction WXUNUSED(dir) = Get) const wxOVERRIDE { return 2; }
|
||||
virtual void GetAllFormats(wxDataFormat *formats,
|
||||
wxDataObjectBase::Direction WXUNUSED(dir) = Get) const;
|
||||
wxDataObjectBase::Direction WXUNUSED(dir) = Get) const wxOVERRIDE;
|
||||
|
||||
virtual size_t GetDataSize() const { return GetDataSize(GetPreferredFormat()); }
|
||||
virtual bool GetDataHere(void *buf) const { return GetDataHere(GetPreferredFormat(), buf); }
|
||||
virtual bool SetData(size_t len, const void *buf) { return SetData(GetPreferredFormat(), len, buf); }
|
||||
virtual size_t GetDataSize() const wxOVERRIDE { return GetDataSize(GetPreferredFormat()); }
|
||||
virtual bool GetDataHere(void *buf) const wxOVERRIDE { return GetDataHere(GetPreferredFormat(), buf); }
|
||||
virtual bool SetData(size_t len, const void *buf) wxOVERRIDE { return SetData(GetPreferredFormat(), len, buf); }
|
||||
|
||||
size_t GetDataSize(const wxDataFormat& format) const;
|
||||
bool GetDataHere(const wxDataFormat& format, void *pBuf) const;
|
||||
bool SetData(const wxDataFormat& format, size_t nLen, const void* pBuf);
|
||||
size_t GetDataSize(const wxDataFormat& format) const wxOVERRIDE;
|
||||
bool GetDataHere(const wxDataFormat& format, void *pBuf) const wxOVERRIDE;
|
||||
bool SetData(const wxDataFormat& format, size_t nLen, const void* pBuf) wxOVERRIDE;
|
||||
#else // !wxNEEDS_UTF{8,16}_FOR_TEXT_DATAOBJ
|
||||
virtual size_t GetDataSize() const;
|
||||
virtual bool GetDataHere(void *buf) const;
|
||||
@@ -520,19 +520,19 @@ public:
|
||||
|
||||
// implement base class pure virtuals
|
||||
// ----------------------------------
|
||||
virtual size_t GetDataSize() const;
|
||||
virtual bool GetDataHere(void *buf) const;
|
||||
virtual bool SetData(size_t size, const void *buf);
|
||||
virtual size_t GetDataSize() const wxOVERRIDE;
|
||||
virtual bool GetDataHere(void *buf) const wxOVERRIDE;
|
||||
virtual bool SetData(size_t size, const void *buf) wxOVERRIDE;
|
||||
// Must provide overloads to avoid hiding them (and warnings about it)
|
||||
virtual size_t GetDataSize(const wxDataFormat&) const
|
||||
virtual size_t GetDataSize(const wxDataFormat&) const wxOVERRIDE
|
||||
{
|
||||
return GetDataSize();
|
||||
}
|
||||
virtual bool GetDataHere(const wxDataFormat&, void *buf) const
|
||||
virtual bool GetDataHere(const wxDataFormat&, void *buf) const wxOVERRIDE
|
||||
{
|
||||
return GetDataHere(buf);
|
||||
}
|
||||
virtual bool SetData(const wxDataFormat&, size_t len, const void *buf)
|
||||
virtual bool SetData(const wxDataFormat&, size_t len, const void *buf) wxOVERRIDE
|
||||
{
|
||||
return SetData(len, buf);
|
||||
}
|
||||
|
||||
+38
-38
@@ -313,13 +313,13 @@ public:
|
||||
|
||||
// implement some base class pure virtual directly
|
||||
virtual wxDataViewItem
|
||||
GetParent( const wxDataViewItem & WXUNUSED(item) ) const
|
||||
GetParent( const wxDataViewItem & WXUNUSED(item) ) const wxOVERRIDE
|
||||
{
|
||||
// items never have valid parent in this model
|
||||
return wxDataViewItem();
|
||||
}
|
||||
|
||||
virtual bool IsContainer( const wxDataViewItem &item ) const
|
||||
virtual bool IsContainer( const wxDataViewItem &item ) const wxOVERRIDE
|
||||
{
|
||||
// only the invisible (and invalid) root item has children
|
||||
return !item.IsOk();
|
||||
@@ -327,30 +327,30 @@ public:
|
||||
|
||||
// and implement some others by forwarding them to our own ones
|
||||
virtual void GetValue( wxVariant &variant,
|
||||
const wxDataViewItem &item, unsigned int col ) const
|
||||
const wxDataViewItem &item, unsigned int col ) const wxOVERRIDE
|
||||
{
|
||||
GetValueByRow(variant, GetRow(item), col);
|
||||
}
|
||||
|
||||
virtual bool SetValue( const wxVariant &variant,
|
||||
const wxDataViewItem &item, unsigned int col )
|
||||
const wxDataViewItem &item, unsigned int col ) wxOVERRIDE
|
||||
{
|
||||
return SetValueByRow( variant, GetRow(item), col );
|
||||
}
|
||||
|
||||
virtual bool GetAttr(const wxDataViewItem &item, unsigned int col,
|
||||
wxDataViewItemAttr &attr) const
|
||||
wxDataViewItemAttr &attr) const wxOVERRIDE
|
||||
{
|
||||
return GetAttrByRow( GetRow(item), col, attr );
|
||||
}
|
||||
|
||||
virtual bool IsEnabled(const wxDataViewItem &item, unsigned int col) const
|
||||
virtual bool IsEnabled(const wxDataViewItem &item, unsigned int col) const wxOVERRIDE
|
||||
{
|
||||
return IsEnabledByRow( GetRow(item), col );
|
||||
}
|
||||
|
||||
|
||||
virtual bool IsListModel() const { return true; }
|
||||
virtual bool IsListModel() const wxOVERRIDE { return true; }
|
||||
};
|
||||
|
||||
// ---------------------------------------------------------
|
||||
@@ -373,13 +373,13 @@ public:
|
||||
|
||||
// convert to/from row/wxDataViewItem
|
||||
|
||||
virtual unsigned GetRow( const wxDataViewItem &item ) const;
|
||||
virtual unsigned GetRow( const wxDataViewItem &item ) const wxOVERRIDE;
|
||||
wxDataViewItem GetItem( unsigned int row ) const;
|
||||
|
||||
// implement base methods
|
||||
virtual unsigned int GetChildren( const wxDataViewItem &item, wxDataViewItemArray &children ) const;
|
||||
virtual unsigned int GetChildren( const wxDataViewItem &item, wxDataViewItemArray &children ) const wxOVERRIDE;
|
||||
|
||||
unsigned int GetCount() const { return m_hash.GetCount(); }
|
||||
unsigned int GetCount() const wxOVERRIDE { return m_hash.GetCount(); }
|
||||
|
||||
private:
|
||||
wxDataViewItemArray m_hash;
|
||||
@@ -412,22 +412,22 @@ public:
|
||||
|
||||
// convert to/from row/wxDataViewItem
|
||||
|
||||
virtual unsigned GetRow( const wxDataViewItem &item ) const;
|
||||
virtual unsigned GetRow( const wxDataViewItem &item ) const wxOVERRIDE;
|
||||
wxDataViewItem GetItem( unsigned int row ) const;
|
||||
|
||||
// compare based on index
|
||||
|
||||
virtual int Compare( const wxDataViewItem &item1, const wxDataViewItem &item2,
|
||||
unsigned int column, bool ascending ) const;
|
||||
virtual bool HasDefaultCompare() const;
|
||||
unsigned int column, bool ascending ) const wxOVERRIDE;
|
||||
virtual bool HasDefaultCompare() const wxOVERRIDE;
|
||||
|
||||
// implement base methods
|
||||
virtual unsigned int GetChildren( const wxDataViewItem &item, wxDataViewItemArray &children ) const;
|
||||
virtual unsigned int GetChildren( const wxDataViewItem &item, wxDataViewItemArray &children ) const wxOVERRIDE;
|
||||
|
||||
unsigned int GetCount() const { return m_size; }
|
||||
unsigned int GetCount() const wxOVERRIDE { return m_size; }
|
||||
|
||||
// internal
|
||||
virtual bool IsVirtualListModel() const { return true; }
|
||||
virtual bool IsVirtualListModel() const wxOVERRIDE { return true; }
|
||||
|
||||
private:
|
||||
unsigned int m_size;
|
||||
@@ -485,8 +485,8 @@ public:
|
||||
|
||||
// implement some of base class pure virtuals (the rest is port-dependent
|
||||
// and done differently in generic and native versions)
|
||||
virtual void SetBitmap( const wxBitmap& bitmap ) { m_bitmap = bitmap; }
|
||||
virtual wxBitmap GetBitmap() const { return m_bitmap; }
|
||||
virtual void SetBitmap( const wxBitmap& bitmap ) wxOVERRIDE { m_bitmap = bitmap; }
|
||||
virtual wxBitmap GetBitmap() const wxOVERRIDE { return m_bitmap; }
|
||||
|
||||
protected:
|
||||
wxDataViewRenderer *m_renderer;
|
||||
@@ -728,7 +728,7 @@ public:
|
||||
// define control visual attributes
|
||||
// --------------------------------
|
||||
|
||||
virtual wxVisualAttributes GetDefaultAttributes() const
|
||||
virtual wxVisualAttributes GetDefaultAttributes() const wxOVERRIDE
|
||||
{
|
||||
return GetClassDefaultAttributes(GetWindowVariant());
|
||||
}
|
||||
@@ -854,7 +854,7 @@ public:
|
||||
wxDragResult GetDropEffect() const { return m_dropEffect; }
|
||||
#endif // wxUSE_DRAG_AND_DROP
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxDataViewEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxDataViewEvent(*this); }
|
||||
|
||||
protected:
|
||||
wxDataViewItem m_item;
|
||||
@@ -1000,15 +1000,15 @@ public:
|
||||
|
||||
// override base virtuals
|
||||
|
||||
virtual unsigned int GetColumnCount() const;
|
||||
virtual unsigned int GetColumnCount() const wxOVERRIDE;
|
||||
|
||||
virtual wxString GetColumnType( unsigned int col ) const;
|
||||
virtual wxString GetColumnType( unsigned int col ) const wxOVERRIDE;
|
||||
|
||||
virtual void GetValueByRow( wxVariant &value,
|
||||
unsigned int row, unsigned int col ) const;
|
||||
unsigned int row, unsigned int col ) const wxOVERRIDE;
|
||||
|
||||
virtual bool SetValueByRow( const wxVariant &value,
|
||||
unsigned int row, unsigned int col );
|
||||
unsigned int row, unsigned int col ) wxOVERRIDE;
|
||||
|
||||
|
||||
public:
|
||||
@@ -1057,10 +1057,10 @@ public:
|
||||
bool InsertColumn( unsigned int pos, wxDataViewColumn *column, const wxString &varianttype );
|
||||
|
||||
// overridden from base class
|
||||
virtual bool PrependColumn( wxDataViewColumn *col );
|
||||
virtual bool InsertColumn( unsigned int pos, wxDataViewColumn *col );
|
||||
virtual bool AppendColumn( wxDataViewColumn *col );
|
||||
virtual bool ClearColumns();
|
||||
virtual bool PrependColumn( wxDataViewColumn *col ) wxOVERRIDE;
|
||||
virtual bool InsertColumn( unsigned int pos, wxDataViewColumn *col ) wxOVERRIDE;
|
||||
virtual bool AppendColumn( wxDataViewColumn *col ) wxOVERRIDE;
|
||||
virtual bool ClearColumns() wxOVERRIDE;
|
||||
|
||||
wxDataViewColumn *AppendTextColumn( const wxString &label,
|
||||
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
|
||||
@@ -1185,7 +1185,7 @@ public:
|
||||
bool IsExpanded() const
|
||||
{ return m_isExpanded; }
|
||||
|
||||
virtual bool IsContainer()
|
||||
virtual bool IsContainer() wxOVERRIDE
|
||||
{ return true; }
|
||||
|
||||
private:
|
||||
@@ -1238,21 +1238,21 @@ public:
|
||||
// implement base methods
|
||||
|
||||
virtual void GetValue( wxVariant &variant,
|
||||
const wxDataViewItem &item, unsigned int col ) const;
|
||||
const wxDataViewItem &item, unsigned int col ) const wxOVERRIDE;
|
||||
virtual bool SetValue( const wxVariant &variant,
|
||||
const wxDataViewItem &item, unsigned int col );
|
||||
virtual wxDataViewItem GetParent( const wxDataViewItem &item ) const;
|
||||
virtual bool IsContainer( const wxDataViewItem &item ) const;
|
||||
virtual unsigned int GetChildren( const wxDataViewItem &item, wxDataViewItemArray &children ) const;
|
||||
const wxDataViewItem &item, unsigned int col ) wxOVERRIDE;
|
||||
virtual wxDataViewItem GetParent( const wxDataViewItem &item ) const wxOVERRIDE;
|
||||
virtual bool IsContainer( const wxDataViewItem &item ) const wxOVERRIDE;
|
||||
virtual unsigned int GetChildren( const wxDataViewItem &item, wxDataViewItemArray &children ) const wxOVERRIDE;
|
||||
|
||||
virtual int Compare( const wxDataViewItem &item1, const wxDataViewItem &item2,
|
||||
unsigned int column, bool ascending ) const;
|
||||
unsigned int column, bool ascending ) const wxOVERRIDE;
|
||||
|
||||
virtual bool HasDefaultCompare() const
|
||||
virtual bool HasDefaultCompare() const wxOVERRIDE
|
||||
{ return true; }
|
||||
virtual unsigned int GetColumnCount() const
|
||||
virtual unsigned int GetColumnCount() const wxOVERRIDE
|
||||
{ return 1; }
|
||||
virtual wxString GetColumnType( unsigned int WXUNUSED(col) ) const
|
||||
virtual wxString GetColumnType( unsigned int WXUNUSED(col) ) const wxOVERRIDE
|
||||
{ return wxT("wxDataViewIconText"); }
|
||||
|
||||
wxDataViewTreeStoreNode *FindNode( const wxDataViewItem &item ) const;
|
||||
|
||||
@@ -34,7 +34,7 @@ public:
|
||||
void SetDate(const wxDateTime &date) { m_date = date; }
|
||||
|
||||
// default copy ctor, assignment operator and dtor are ok
|
||||
virtual wxEvent *Clone() const { return new wxDateEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxDateEvent(*this); }
|
||||
|
||||
private:
|
||||
wxDateTime m_date;
|
||||
|
||||
@@ -1584,10 +1584,10 @@ private:
|
||||
class WXDLLIMPEXP_BASE wxDateTimeWorkDays : public wxDateTimeHolidayAuthority
|
||||
{
|
||||
protected:
|
||||
virtual bool DoIsHoliday(const wxDateTime& dt) const;
|
||||
virtual bool DoIsHoliday(const wxDateTime& dt) const wxOVERRIDE;
|
||||
virtual size_t DoGetHolidaysInRange(const wxDateTime& dtStart,
|
||||
const wxDateTime& dtEnd,
|
||||
wxDateTimeArray& holidays) const;
|
||||
wxDateTimeArray& holidays) const wxOVERRIDE;
|
||||
};
|
||||
|
||||
// ============================================================================
|
||||
|
||||
+8
-8
@@ -242,15 +242,15 @@ class WXDLLIMPEXP_CORE wxNativeDCFactory: public wxDCFactory
|
||||
public:
|
||||
wxNativeDCFactory() {}
|
||||
|
||||
virtual wxDCImpl* CreateWindowDC( wxWindowDC *owner, wxWindow *window );
|
||||
virtual wxDCImpl* CreateClientDC( wxClientDC *owner, wxWindow *window );
|
||||
virtual wxDCImpl* CreatePaintDC( wxPaintDC *owner, wxWindow *window );
|
||||
virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner );
|
||||
virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner, wxBitmap &bitmap );
|
||||
virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner, wxDC *dc );
|
||||
virtual wxDCImpl* CreateScreenDC( wxScreenDC *owner );
|
||||
virtual wxDCImpl* CreateWindowDC( wxWindowDC *owner, wxWindow *window ) wxOVERRIDE;
|
||||
virtual wxDCImpl* CreateClientDC( wxClientDC *owner, wxWindow *window ) wxOVERRIDE;
|
||||
virtual wxDCImpl* CreatePaintDC( wxPaintDC *owner, wxWindow *window ) wxOVERRIDE;
|
||||
virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner ) wxOVERRIDE;
|
||||
virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner, wxBitmap &bitmap ) wxOVERRIDE;
|
||||
virtual wxDCImpl* CreateMemoryDC( wxMemoryDC *owner, wxDC *dc ) wxOVERRIDE;
|
||||
virtual wxDCImpl* CreateScreenDC( wxScreenDC *owner ) wxOVERRIDE;
|
||||
#if wxUSE_PRINTING_ARCHITECTURE
|
||||
virtual wxDCImpl* CreatePrinterDC( wxPrinterDC *owner, const wxPrintData &data );
|
||||
virtual wxDCImpl* CreatePrinterDC( wxPrinterDC *owner, const wxPrintData &data ) wxOVERRIDE;
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
+45
-45
@@ -33,39 +33,39 @@ public:
|
||||
}
|
||||
|
||||
// wxDCBase operations
|
||||
virtual void Clear() { m_dc.Clear(); }
|
||||
virtual void SetFont(const wxFont& font) { m_dc.SetFont(font); }
|
||||
virtual void SetPen(const wxPen& pen) { m_dc.SetPen(pen); }
|
||||
virtual void SetBrush(const wxBrush& brush) { m_dc.SetBrush(brush); }
|
||||
virtual void SetBackground(const wxBrush& brush)
|
||||
virtual void Clear() wxOVERRIDE { m_dc.Clear(); }
|
||||
virtual void SetFont(const wxFont& font) wxOVERRIDE { m_dc.SetFont(font); }
|
||||
virtual void SetPen(const wxPen& pen) wxOVERRIDE { m_dc.SetPen(pen); }
|
||||
virtual void SetBrush(const wxBrush& brush) wxOVERRIDE { m_dc.SetBrush(brush); }
|
||||
virtual void SetBackground(const wxBrush& brush) wxOVERRIDE
|
||||
{ m_dc.SetBackground(brush); }
|
||||
virtual void SetBackgroundMode(int mode) { m_dc.SetBackgroundMode(mode); }
|
||||
virtual void SetBackgroundMode(int mode) wxOVERRIDE { m_dc.SetBackgroundMode(mode); }
|
||||
#if wxUSE_PALETTE
|
||||
virtual void SetPalette(const wxPalette& palette)
|
||||
virtual void SetPalette(const wxPalette& palette) wxOVERRIDE
|
||||
{ m_dc.SetPalette(palette); }
|
||||
#endif // wxUSE_PALETTE
|
||||
virtual void DestroyClippingRegion() { m_dc.DestroyClippingRegion(); }
|
||||
virtual wxCoord GetCharHeight() const { return m_dc.GetCharHeight(); }
|
||||
virtual wxCoord GetCharWidth() const { return m_dc.GetCharWidth(); }
|
||||
virtual bool CanDrawBitmap() const { return m_dc.CanDrawBitmap(); }
|
||||
virtual bool CanGetTextExtent() const { return m_dc.CanGetTextExtent(); }
|
||||
virtual int GetDepth() const { return m_dc.GetDepth(); }
|
||||
virtual wxSize GetPPI() const { return m_dc.GetPPI(); }
|
||||
virtual bool IsOk() const { return m_dc.IsOk(); }
|
||||
virtual void SetMapMode(wxMappingMode mode) { m_dc.SetMapMode(mode); }
|
||||
virtual void SetUserScale(double x, double y)
|
||||
virtual void DestroyClippingRegion() wxOVERRIDE { m_dc.DestroyClippingRegion(); }
|
||||
virtual wxCoord GetCharHeight() const wxOVERRIDE { return m_dc.GetCharHeight(); }
|
||||
virtual wxCoord GetCharWidth() const wxOVERRIDE { return m_dc.GetCharWidth(); }
|
||||
virtual bool CanDrawBitmap() const wxOVERRIDE { return m_dc.CanDrawBitmap(); }
|
||||
virtual bool CanGetTextExtent() const wxOVERRIDE { return m_dc.CanGetTextExtent(); }
|
||||
virtual int GetDepth() const wxOVERRIDE { return m_dc.GetDepth(); }
|
||||
virtual wxSize GetPPI() const wxOVERRIDE { return m_dc.GetPPI(); }
|
||||
virtual bool IsOk() const wxOVERRIDE { return m_dc.IsOk(); }
|
||||
virtual void SetMapMode(wxMappingMode mode) wxOVERRIDE { m_dc.SetMapMode(mode); }
|
||||
virtual void SetUserScale(double x, double y) wxOVERRIDE
|
||||
{ m_dc.SetUserScale(GetX(x, y), GetY(x, y)); }
|
||||
virtual void SetLogicalOrigin(wxCoord x, wxCoord y)
|
||||
virtual void SetLogicalOrigin(wxCoord x, wxCoord y) wxOVERRIDE
|
||||
{ m_dc.SetLogicalOrigin(GetX(x, y), GetY(x, y)); }
|
||||
virtual void SetDeviceOrigin(wxCoord x, wxCoord y)
|
||||
virtual void SetDeviceOrigin(wxCoord x, wxCoord y) wxOVERRIDE
|
||||
{ m_dc.SetDeviceOrigin(GetX(x, y), GetY(x, y)); }
|
||||
virtual void SetAxisOrientation(bool xLeftRight, bool yBottomUp)
|
||||
virtual void SetAxisOrientation(bool xLeftRight, bool yBottomUp) wxOVERRIDE
|
||||
{ m_dc.SetAxisOrientation(GetX(xLeftRight, yBottomUp),
|
||||
GetY(xLeftRight, yBottomUp)); }
|
||||
virtual void SetLogicalFunction(wxRasterOperationMode function)
|
||||
virtual void SetLogicalFunction(wxRasterOperationMode function) wxOVERRIDE
|
||||
{ m_dc.SetLogicalFunction(function); }
|
||||
|
||||
virtual void* GetHandle() const
|
||||
virtual void* GetHandle() const wxOVERRIDE
|
||||
{ return m_dc.GetHandle(); }
|
||||
|
||||
protected:
|
||||
@@ -100,30 +100,30 @@ protected:
|
||||
|
||||
// wxDCBase functions
|
||||
virtual bool DoFloodFill(wxCoord x, wxCoord y, const wxColour& col,
|
||||
wxFloodFillStyle style = wxFLOOD_SURFACE)
|
||||
wxFloodFillStyle style = wxFLOOD_SURFACE) wxOVERRIDE
|
||||
{
|
||||
return m_dc.DoFloodFill(GetX(x, y), GetY(x, y), col, style);
|
||||
}
|
||||
|
||||
virtual bool DoGetPixel(wxCoord x, wxCoord y, wxColour *col) const
|
||||
virtual bool DoGetPixel(wxCoord x, wxCoord y, wxColour *col) const wxOVERRIDE
|
||||
{
|
||||
return m_dc.DoGetPixel(GetX(x, y), GetY(x, y), col);
|
||||
}
|
||||
|
||||
|
||||
virtual void DoDrawPoint(wxCoord x, wxCoord y)
|
||||
virtual void DoDrawPoint(wxCoord x, wxCoord y) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoDrawPoint(GetX(x, y), GetY(x, y));
|
||||
}
|
||||
|
||||
virtual void DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2)
|
||||
virtual void DoDrawLine(wxCoord x1, wxCoord y1, wxCoord x2, wxCoord y2) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoDrawLine(GetX(x1, y1), GetY(x1, y1), GetX(x2, y2), GetY(x2, y2));
|
||||
}
|
||||
|
||||
virtual void DoDrawArc(wxCoord x1, wxCoord y1,
|
||||
wxCoord x2, wxCoord y2,
|
||||
wxCoord xc, wxCoord yc)
|
||||
wxCoord xc, wxCoord yc) wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG( wxT("this is probably wrong") );
|
||||
|
||||
@@ -133,14 +133,14 @@ protected:
|
||||
}
|
||||
|
||||
virtual void DoDrawCheckMark(wxCoord x, wxCoord y,
|
||||
wxCoord w, wxCoord h)
|
||||
wxCoord w, wxCoord h) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoDrawCheckMark(GetX(x, y), GetY(x, y),
|
||||
GetX(w, h), GetY(w, h));
|
||||
}
|
||||
|
||||
virtual void DoDrawEllipticArc(wxCoord x, wxCoord y, wxCoord w, wxCoord h,
|
||||
double sa, double ea)
|
||||
double sa, double ea) wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG( wxT("this is probably wrong") );
|
||||
|
||||
@@ -149,49 +149,49 @@ protected:
|
||||
sa, ea);
|
||||
}
|
||||
|
||||
virtual void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord w, wxCoord h)
|
||||
virtual void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord w, wxCoord h) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoDrawRectangle(GetX(x, y), GetY(x, y), GetX(w, h), GetY(w, h));
|
||||
}
|
||||
|
||||
virtual void DoDrawRoundedRectangle(wxCoord x, wxCoord y,
|
||||
wxCoord w, wxCoord h,
|
||||
double radius)
|
||||
double radius) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoDrawRoundedRectangle(GetX(x, y), GetY(x, y),
|
||||
GetX(w, h), GetY(w, h),
|
||||
radius);
|
||||
}
|
||||
|
||||
virtual void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord w, wxCoord h)
|
||||
virtual void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord w, wxCoord h) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoDrawEllipse(GetX(x, y), GetY(x, y), GetX(w, h), GetY(w, h));
|
||||
}
|
||||
|
||||
virtual void DoCrossHair(wxCoord x, wxCoord y)
|
||||
virtual void DoCrossHair(wxCoord x, wxCoord y) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoCrossHair(GetX(x, y), GetY(x, y));
|
||||
}
|
||||
|
||||
virtual void DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y)
|
||||
virtual void DoDrawIcon(const wxIcon& icon, wxCoord x, wxCoord y) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoDrawIcon(icon, GetX(x, y), GetY(x, y));
|
||||
}
|
||||
|
||||
virtual void DoDrawBitmap(const wxBitmap &bmp, wxCoord x, wxCoord y,
|
||||
bool useMask = false)
|
||||
bool useMask = false) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoDrawBitmap(bmp, GetX(x, y), GetY(x, y), useMask);
|
||||
}
|
||||
|
||||
virtual void DoDrawText(const wxString& text, wxCoord x, wxCoord y)
|
||||
virtual void DoDrawText(const wxString& text, wxCoord x, wxCoord y) wxOVERRIDE
|
||||
{
|
||||
// this is never mirrored
|
||||
m_dc.DoDrawText(text, x, y);
|
||||
}
|
||||
|
||||
virtual void DoDrawRotatedText(const wxString& text,
|
||||
wxCoord x, wxCoord y, double angle)
|
||||
wxCoord x, wxCoord y, double angle) wxOVERRIDE
|
||||
{
|
||||
// this is never mirrored
|
||||
m_dc.DoDrawRotatedText(text, x, y, angle);
|
||||
@@ -202,7 +202,7 @@ protected:
|
||||
wxDC *source, wxCoord xsrc, wxCoord ysrc,
|
||||
wxRasterOperationMode rop = wxCOPY,
|
||||
bool useMask = false,
|
||||
wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord)
|
||||
wxCoord xsrcMask = wxDefaultCoord, wxCoord ysrcMask = wxDefaultCoord) wxOVERRIDE
|
||||
{
|
||||
return m_dc.DoBlit(GetX(xdest, ydest), GetY(xdest, ydest),
|
||||
GetX(w, h), GetY(w, h),
|
||||
@@ -211,18 +211,18 @@ protected:
|
||||
GetX(xsrcMask, ysrcMask), GetX(xsrcMask, ysrcMask));
|
||||
}
|
||||
|
||||
virtual void DoGetSize(int *w, int *h) const
|
||||
virtual void DoGetSize(int *w, int *h) const wxOVERRIDE
|
||||
{
|
||||
m_dc.DoGetSize(GetX(w, h), GetY(w, h));
|
||||
}
|
||||
|
||||
virtual void DoGetSizeMM(int *w, int *h) const
|
||||
virtual void DoGetSizeMM(int *w, int *h) const wxOVERRIDE
|
||||
{
|
||||
m_dc.DoGetSizeMM(GetX(w, h), GetY(w, h));
|
||||
}
|
||||
|
||||
virtual void DoDrawLines(int n, const wxPoint points[],
|
||||
wxCoord xoffset, wxCoord yoffset)
|
||||
wxCoord xoffset, wxCoord yoffset) wxOVERRIDE
|
||||
{
|
||||
wxPoint* points_alloc = Mirror(n, points);
|
||||
|
||||
@@ -234,7 +234,7 @@ protected:
|
||||
|
||||
virtual void DoDrawPolygon(int n, const wxPoint points[],
|
||||
wxCoord xoffset, wxCoord yoffset,
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE)
|
||||
wxPolygonFillMode fillStyle = wxODDEVEN_RULE) wxOVERRIDE
|
||||
{
|
||||
wxPoint* points_alloc = Mirror(n, points);
|
||||
|
||||
@@ -245,13 +245,13 @@ protected:
|
||||
delete[] points_alloc;
|
||||
}
|
||||
|
||||
virtual void DoSetDeviceClippingRegion(const wxRegion& WXUNUSED(region))
|
||||
virtual void DoSetDeviceClippingRegion(const wxRegion& WXUNUSED(region)) wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG( wxT("not implemented") );
|
||||
}
|
||||
|
||||
virtual void DoSetClippingRegion(wxCoord x, wxCoord y,
|
||||
wxCoord w, wxCoord h)
|
||||
wxCoord w, wxCoord h) wxOVERRIDE
|
||||
{
|
||||
m_dc.DoSetClippingRegion(GetX(x, y), GetY(x, y), GetX(w, h), GetY(w, h));
|
||||
}
|
||||
@@ -260,7 +260,7 @@ protected:
|
||||
wxCoord *x, wxCoord *y,
|
||||
wxCoord *descent = NULL,
|
||||
wxCoord *externalLeading = NULL,
|
||||
const wxFont *theFont = NULL) const
|
||||
const wxFont *theFont = NULL) const wxOVERRIDE
|
||||
{
|
||||
// never mirrored
|
||||
m_dc.DoGetTextExtent(string, x, y, descent, externalLeading, theFont);
|
||||
|
||||
@@ -28,7 +28,7 @@ public:
|
||||
wxPrinterDC(const wxPrintData& data);
|
||||
|
||||
wxRect GetPaperRect() const;
|
||||
int GetResolution() const;
|
||||
int GetResolution() const wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
wxPrinterDC(wxDCImpl *impl) : wxDC(impl) { }
|
||||
|
||||
+43
-43
@@ -49,7 +49,7 @@ class WXDLLIMPEXP_CORE wxSVGBitmapFileHandler : public wxSVGBitmapHandler
|
||||
public:
|
||||
virtual bool ProcessBitmap(const wxBitmap& bitmap,
|
||||
wxCoord x, wxCoord y,
|
||||
wxOutputStream& stream) const;
|
||||
wxOutputStream& stream) const wxOVERRIDE;
|
||||
};
|
||||
|
||||
// Predefined handler which embeds the bitmap (base64-encoding it) inside the
|
||||
@@ -59,7 +59,7 @@ class WXDLLIMPEXP_CORE wxSVGBitmapEmbedHandler : public wxSVGBitmapHandler
|
||||
public:
|
||||
virtual bool ProcessBitmap(const wxBitmap& bitmap,
|
||||
wxCoord x, wxCoord y,
|
||||
wxOutputStream& stream) const;
|
||||
wxOutputStream& stream) const wxOVERRIDE;
|
||||
};
|
||||
|
||||
class WXDLLIMPEXP_CORE wxSVGFileDCImpl : public wxDCImpl
|
||||
@@ -70,26 +70,26 @@ public:
|
||||
|
||||
virtual ~wxSVGFileDCImpl();
|
||||
|
||||
bool IsOk() const { return m_OK; }
|
||||
bool IsOk() const wxOVERRIDE { return m_OK; }
|
||||
|
||||
virtual bool CanDrawBitmap() const { return true; }
|
||||
virtual bool CanGetTextExtent() const { return true; }
|
||||
virtual bool CanDrawBitmap() const wxOVERRIDE { return true; }
|
||||
virtual bool CanGetTextExtent() const wxOVERRIDE { return true; }
|
||||
|
||||
virtual int GetDepth() const
|
||||
virtual int GetDepth() const wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxSVGFILEDC::GetDepth Call not implemented"));
|
||||
return -1;
|
||||
}
|
||||
|
||||
virtual void Clear()
|
||||
virtual void Clear() wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxSVGFILEDC::Clear() Call not implemented \nNot sensible for an output file?"));
|
||||
}
|
||||
|
||||
virtual void DestroyClippingRegion();
|
||||
virtual void DestroyClippingRegion() wxOVERRIDE;
|
||||
|
||||
virtual wxCoord GetCharHeight() const;
|
||||
virtual wxCoord GetCharWidth() const;
|
||||
virtual wxCoord GetCharHeight() const wxOVERRIDE;
|
||||
virtual wxCoord GetCharWidth() const wxOVERRIDE;
|
||||
|
||||
virtual void SetClippingRegion(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y),
|
||||
wxCoord WXUNUSED(w), wxCoord WXUNUSED(h))
|
||||
@@ -97,7 +97,7 @@ public:
|
||||
wxFAIL_MSG(wxT("wxSVGFILEDC::SetClippingRegion not implemented"));
|
||||
}
|
||||
|
||||
virtual void SetPalette(const wxPalette& WXUNUSED(palette))
|
||||
virtual void SetPalette(const wxPalette& WXUNUSED(palette)) wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxSVGFILEDC::SetPalette not implemented"));
|
||||
}
|
||||
@@ -108,29 +108,29 @@ public:
|
||||
wxFAIL_MSG(wxT("wxSVGFILEDC::GetClippingBox not implemented"));
|
||||
}
|
||||
|
||||
virtual void SetLogicalFunction(wxRasterOperationMode WXUNUSED(function))
|
||||
virtual void SetLogicalFunction(wxRasterOperationMode WXUNUSED(function)) wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxSVGFILEDC::SetLogicalFunction Call not implemented"));
|
||||
}
|
||||
|
||||
virtual wxRasterOperationMode GetLogicalFunction() const
|
||||
virtual wxRasterOperationMode GetLogicalFunction() const wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxSVGFILEDC::GetLogicalFunction() not implemented"));
|
||||
return wxCOPY;
|
||||
}
|
||||
|
||||
virtual void SetBackground( const wxBrush &brush );
|
||||
virtual void SetBackgroundMode( int mode );
|
||||
virtual void SetBrush(const wxBrush& brush);
|
||||
virtual void SetFont(const wxFont& font);
|
||||
virtual void SetPen(const wxPen& pen);
|
||||
virtual void SetBackground( const wxBrush &brush ) wxOVERRIDE;
|
||||
virtual void SetBackgroundMode( int mode ) wxOVERRIDE;
|
||||
virtual void SetBrush(const wxBrush& brush) wxOVERRIDE;
|
||||
virtual void SetFont(const wxFont& font) wxOVERRIDE;
|
||||
virtual void SetPen(const wxPen& pen) wxOVERRIDE;
|
||||
|
||||
virtual void* GetHandle() const { return NULL; }
|
||||
virtual void* GetHandle() const wxOVERRIDE { return NULL; }
|
||||
|
||||
void SetBitmapHandler(wxSVGBitmapHandler* handler);
|
||||
|
||||
private:
|
||||
virtual bool DoGetPixel(wxCoord, wxCoord, wxColour *) const
|
||||
virtual bool DoGetPixel(wxCoord, wxCoord, wxColour *) const wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxSVGFILEDC::DoGetPixel Call not implemented"));
|
||||
return true;
|
||||
@@ -138,57 +138,57 @@ private:
|
||||
|
||||
virtual bool DoBlit(wxCoord, wxCoord, wxCoord, wxCoord, wxDC *,
|
||||
wxCoord, wxCoord, wxRasterOperationMode = wxCOPY,
|
||||
bool = 0, int = -1, int = -1);
|
||||
bool = 0, int = -1, int = -1) wxOVERRIDE;
|
||||
|
||||
virtual void DoCrossHair(wxCoord, wxCoord)
|
||||
virtual void DoCrossHair(wxCoord, wxCoord) wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxSVGFILEDC::CrossHair Call not implemented"));
|
||||
}
|
||||
|
||||
virtual void DoDrawArc(wxCoord, wxCoord, wxCoord, wxCoord, wxCoord, wxCoord);
|
||||
virtual void DoDrawArc(wxCoord, wxCoord, wxCoord, wxCoord, wxCoord, wxCoord) wxOVERRIDE;
|
||||
|
||||
virtual void DoDrawBitmap(const wxBitmap &, wxCoord, wxCoord, bool = false);
|
||||
virtual void DoDrawBitmap(const wxBitmap &, wxCoord, wxCoord, bool = false) wxOVERRIDE;
|
||||
|
||||
virtual void DoDrawCheckMark(wxCoord x, wxCoord y, wxCoord w, wxCoord h);
|
||||
virtual void DoDrawCheckMark(wxCoord x, wxCoord y, wxCoord w, wxCoord h) wxOVERRIDE;
|
||||
|
||||
virtual void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord w, wxCoord h);
|
||||
virtual void DoDrawEllipse(wxCoord x, wxCoord y, wxCoord w, wxCoord h) wxOVERRIDE;
|
||||
|
||||
virtual void DoDrawEllipticArc(wxCoord x, wxCoord y, wxCoord w, wxCoord h,
|
||||
double sa, double ea);
|
||||
double sa, double ea) wxOVERRIDE;
|
||||
|
||||
virtual void DoDrawIcon(const wxIcon &, wxCoord, wxCoord);
|
||||
virtual void DoDrawIcon(const wxIcon &, wxCoord, wxCoord) wxOVERRIDE;
|
||||
|
||||
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 DoDrawLines(int n, const wxPoint points[],
|
||||
wxCoord xoffset = 0, wxCoord yoffset = 0);
|
||||
wxCoord xoffset = 0, wxCoord yoffset = 0) wxOVERRIDE;
|
||||
|
||||
virtual void DoDrawPoint(wxCoord, wxCoord);
|
||||
virtual void DoDrawPoint(wxCoord, wxCoord) wxOVERRIDE;
|
||||
|
||||
virtual void DoDrawPolygon(int n, const wxPoint points[],
|
||||
wxCoord xoffset, wxCoord yoffset,
|
||||
wxPolygonFillMode fillStyle);
|
||||
wxPolygonFillMode fillStyle) wxOVERRIDE;
|
||||
|
||||
virtual void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord w, wxCoord h);
|
||||
virtual void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord w, wxCoord h) wxOVERRIDE;
|
||||
|
||||
virtual void DoDrawRotatedText(const wxString& text, wxCoord x, wxCoord y,
|
||||
double angle);
|
||||
double angle) wxOVERRIDE;
|
||||
|
||||
virtual void DoDrawRoundedRectangle(wxCoord x, wxCoord y,
|
||||
wxCoord w, wxCoord h,
|
||||
double radius = 20) ;
|
||||
double radius = 20) wxOVERRIDE ;
|
||||
|
||||
virtual void DoDrawText(const wxString& text, wxCoord x, wxCoord y);
|
||||
virtual void DoDrawText(const wxString& text, wxCoord x, wxCoord y) wxOVERRIDE;
|
||||
|
||||
virtual bool DoFloodFill(wxCoord WXUNUSED(x), wxCoord WXUNUSED(y),
|
||||
const wxColour& WXUNUSED(col),
|
||||
wxFloodFillStyle WXUNUSED(style) = wxFLOOD_SURFACE)
|
||||
wxFloodFillStyle WXUNUSED(style) = wxFLOOD_SURFACE) wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxSVGFILEDC::DoFloodFill Call not implemented"));
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual void DoGetSize(int * x, int *y) const
|
||||
virtual void DoGetSize(int * x, int *y) const wxOVERRIDE
|
||||
{
|
||||
if ( x )
|
||||
*x = m_width;
|
||||
@@ -199,18 +199,18 @@ private:
|
||||
virtual void DoGetTextExtent(const wxString& string, wxCoord *w, wxCoord *h,
|
||||
wxCoord *descent = NULL,
|
||||
wxCoord *externalLeading = NULL,
|
||||
const wxFont *font = NULL) const;
|
||||
const wxFont *font = NULL) const wxOVERRIDE;
|
||||
|
||||
virtual void DoSetDeviceClippingRegion(const wxRegion& WXUNUSED(region))
|
||||
virtual void DoSetDeviceClippingRegion(const wxRegion& WXUNUSED(region)) wxOVERRIDE
|
||||
{
|
||||
wxFAIL_MSG(wxT("wxSVGFILEDC::DoSetDeviceClippingRegion not yet implemented"));
|
||||
}
|
||||
|
||||
virtual void DoSetClippingRegion(int x, int y, int width, int height);
|
||||
virtual void DoSetClippingRegion(int x, int y, int width, int height) wxOVERRIDE;
|
||||
|
||||
virtual void DoGetSizeMM( int *width, int *height ) const;
|
||||
virtual void DoGetSizeMM( int *width, int *height ) const wxOVERRIDE;
|
||||
|
||||
virtual wxSize GetPPI() const;
|
||||
virtual wxSize GetPPI() const wxOVERRIDE;
|
||||
|
||||
void Init (const wxString &filename, int width, int height, double dpi);
|
||||
|
||||
|
||||
@@ -146,7 +146,7 @@ public:
|
||||
const wxString& GetCompressedFileName() const { return m_zipfile; }
|
||||
|
||||
protected:
|
||||
virtual bool DoProcess();
|
||||
virtual bool DoProcess() wxOVERRIDE;
|
||||
|
||||
private:
|
||||
// user-specified file directory/base name, use defaults if empty
|
||||
@@ -176,7 +176,7 @@ public:
|
||||
const wxString& curl = wxT("curl"));
|
||||
|
||||
protected:
|
||||
virtual bool DoProcess();
|
||||
virtual bool DoProcess() wxOVERRIDE;
|
||||
|
||||
// this function may be overridden in a derived class to show the output
|
||||
// from curl: this may be an HTML page or anything else that the server
|
||||
@@ -237,7 +237,7 @@ class WXDLLIMPEXP_QA wxDebugReportPreviewStd : public wxDebugReportPreview
|
||||
public:
|
||||
wxDebugReportPreviewStd() { }
|
||||
|
||||
virtual bool Show(wxDebugReport& dbgrpt) const;
|
||||
virtual bool Show(wxDebugReport& dbgrpt) const wxOVERRIDE;
|
||||
};
|
||||
|
||||
#endif // wxUSE_GUI
|
||||
|
||||
+3
-3
@@ -309,10 +309,10 @@ public:
|
||||
// Overrides
|
||||
|
||||
// Indicate that adaptation should be done
|
||||
virtual bool CanDoLayoutAdaptation(wxDialog* dialog);
|
||||
virtual bool CanDoLayoutAdaptation(wxDialog* dialog) wxOVERRIDE;
|
||||
|
||||
// Do layout adaptation
|
||||
virtual bool DoLayoutAdaptation(wxDialog* dialog);
|
||||
virtual bool DoLayoutAdaptation(wxDialog* dialog) wxOVERRIDE;
|
||||
|
||||
// Implementation
|
||||
|
||||
@@ -381,7 +381,7 @@ public:
|
||||
int GetReturnCode() const
|
||||
{ return GetDialog()->GetReturnCode(); }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxWindowModalDialogEvent (*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxWindowModalDialogEvent (*this); }
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxWindowModalDialogEvent )
|
||||
|
||||
+2
-2
@@ -239,7 +239,7 @@ public:
|
||||
|
||||
virtual bool OnDropText(wxCoord x, wxCoord y, const wxString& text) = 0;
|
||||
|
||||
virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def);
|
||||
virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxDECLARE_NO_COPY_CLASS(wxTextDropTarget);
|
||||
@@ -255,7 +255,7 @@ public:
|
||||
virtual bool OnDropFiles(wxCoord x, wxCoord y,
|
||||
const wxArrayString& filenames) = 0;
|
||||
|
||||
virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def);
|
||||
virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def) wxOVERRIDE;
|
||||
|
||||
private:
|
||||
wxDECLARE_NO_COPY_CLASS(wxFileDropTarget);
|
||||
|
||||
@@ -284,7 +284,7 @@ public:
|
||||
|
||||
protected:
|
||||
// hook the document into event handlers chain here
|
||||
virtual bool TryBefore(wxEvent& event);
|
||||
virtual bool TryBefore(wxEvent& event) wxOVERRIDE;
|
||||
|
||||
wxDocument* m_viewDocument;
|
||||
wxString m_viewTypeName;
|
||||
@@ -548,7 +548,7 @@ protected:
|
||||
#endif // wxUSE_PRINTING_ARCHITECTURE
|
||||
|
||||
// hook the currently active view into event handlers chain here
|
||||
virtual bool TryBefore(wxEvent& event);
|
||||
virtual bool TryBefore(wxEvent& event) wxOVERRIDE;
|
||||
|
||||
// return the command processor for the current document, if any
|
||||
wxCommandProcessor *GetCurrentCommandProcessor() const;
|
||||
@@ -983,11 +983,11 @@ public:
|
||||
wxDocPrintout(wxView *view = NULL, const wxString& title = wxString());
|
||||
|
||||
// implement wxPrintout methods
|
||||
virtual bool OnPrintPage(int page);
|
||||
virtual bool HasPage(int page);
|
||||
virtual bool OnBeginDocument(int startPage, int endPage);
|
||||
virtual bool OnPrintPage(int page) wxOVERRIDE;
|
||||
virtual bool HasPage(int page) wxOVERRIDE;
|
||||
virtual bool OnBeginDocument(int startPage, int endPage) wxOVERRIDE;
|
||||
virtual void GetPageInfo(int *minPage, int *maxPage,
|
||||
int *selPageFrom, int *selPageTo);
|
||||
int *selPageFrom, int *selPageTo) wxOVERRIDE;
|
||||
|
||||
virtual wxView *GetView() { return m_printoutView; }
|
||||
|
||||
|
||||
+63
-63
@@ -223,9 +223,9 @@ public:
|
||||
: m_handler( handler ), m_method( method )
|
||||
{ }
|
||||
|
||||
virtual void operator()(wxEvtHandler *handler, wxEvent& event);
|
||||
virtual void operator()(wxEvtHandler *handler, wxEvent& event) wxOVERRIDE;
|
||||
|
||||
virtual bool IsMatching(const wxEventFunctor& functor) const
|
||||
virtual bool IsMatching(const wxEventFunctor& functor) const wxOVERRIDE
|
||||
{
|
||||
if ( wxTypeId(functor) == wxTypeId(*this) )
|
||||
{
|
||||
@@ -245,10 +245,10 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual wxEvtHandler *GetEvtHandler() const
|
||||
virtual wxEvtHandler *GetEvtHandler() const wxOVERRIDE
|
||||
{ return m_handler; }
|
||||
|
||||
virtual wxEventFunction GetEvtMethod() const
|
||||
virtual wxEventFunction GetEvtMethod() const wxOVERRIDE
|
||||
{ return m_method; }
|
||||
|
||||
private:
|
||||
@@ -459,7 +459,7 @@ public:
|
||||
CheckHandlerArgument(static_cast<EventClass *>(NULL));
|
||||
}
|
||||
|
||||
virtual void operator()(wxEvtHandler *WXUNUSED(handler), wxEvent& event)
|
||||
virtual void operator()(wxEvtHandler *WXUNUSED(handler), wxEvent& event) wxOVERRIDE
|
||||
{
|
||||
// If you get an error here like "must use .* or ->* to call
|
||||
// pointer-to-member function" then you probably tried to call
|
||||
@@ -471,7 +471,7 @@ public:
|
||||
m_handler(static_cast<EventArg&>(event));
|
||||
}
|
||||
|
||||
virtual bool IsMatching(const wxEventFunctor &functor) const
|
||||
virtual bool IsMatching(const wxEventFunctor &functor) const wxOVERRIDE
|
||||
{
|
||||
if ( wxTypeId(functor) != wxTypeId(*this) )
|
||||
return false;
|
||||
@@ -504,7 +504,7 @@ public:
|
||||
: m_handler(handler), m_handlerAddr(&handler)
|
||||
{ }
|
||||
|
||||
virtual void operator()(wxEvtHandler *WXUNUSED(handler), wxEvent& event)
|
||||
virtual void operator()(wxEvtHandler *WXUNUSED(handler), wxEvent& event) wxOVERRIDE
|
||||
{
|
||||
// If you get an error here like "must use '.*' or '->*' to call
|
||||
// pointer-to-member function" then you probably tried to call
|
||||
@@ -516,7 +516,7 @@ public:
|
||||
m_handler(static_cast<EventArg&>(event));
|
||||
}
|
||||
|
||||
virtual bool IsMatching(const wxEventFunctor &functor) const
|
||||
virtual bool IsMatching(const wxEventFunctor &functor) const wxOVERRIDE
|
||||
{
|
||||
if ( wxTypeId(functor) != wxTypeId(*this) )
|
||||
return false;
|
||||
@@ -1261,7 +1261,7 @@ public:
|
||||
void RequestMore(bool needMore = true) { m_requestMore = needMore; }
|
||||
bool MoreRequested() const { return m_requestMore; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxIdleEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxIdleEvent(*this); }
|
||||
|
||||
// Specify how wxWidgets will send idle events: to
|
||||
// all windows, or only to those which specify that they
|
||||
@@ -1299,14 +1299,14 @@ public:
|
||||
SetString(GetString().Clone());
|
||||
}
|
||||
|
||||
virtual wxEvent *Clone() const
|
||||
virtual wxEvent *Clone() const wxOVERRIDE
|
||||
{
|
||||
return new wxThreadEvent(*this);
|
||||
}
|
||||
|
||||
// this is important to avoid that calling wxEventLoopBase::YieldFor thread events
|
||||
// gets processed when this is unwanted:
|
||||
virtual wxEventCategory GetEventCategory() const
|
||||
virtual wxEventCategory GetEventCategory() const wxOVERRIDE
|
||||
{ return wxEVT_CATEGORY_THREAD; }
|
||||
|
||||
private:
|
||||
@@ -1363,12 +1363,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual wxEvent *Clone() const
|
||||
virtual wxEvent *Clone() const wxOVERRIDE
|
||||
{
|
||||
return new wxAsyncMethodCallEvent0(*this);
|
||||
}
|
||||
|
||||
virtual void Execute()
|
||||
virtual void Execute() wxOVERRIDE
|
||||
{
|
||||
(m_object->*m_method)();
|
||||
}
|
||||
@@ -1405,12 +1405,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual wxEvent *Clone() const
|
||||
virtual wxEvent *Clone() const wxOVERRIDE
|
||||
{
|
||||
return new wxAsyncMethodCallEvent1(*this);
|
||||
}
|
||||
|
||||
virtual void Execute()
|
||||
virtual void Execute() wxOVERRIDE
|
||||
{
|
||||
(m_object->*m_method)(m_param1);
|
||||
}
|
||||
@@ -1452,12 +1452,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual wxEvent *Clone() const
|
||||
virtual wxEvent *Clone() const wxOVERRIDE
|
||||
{
|
||||
return new wxAsyncMethodCallEvent2(*this);
|
||||
}
|
||||
|
||||
virtual void Execute()
|
||||
virtual void Execute() wxOVERRIDE
|
||||
{
|
||||
(m_object->*m_method)(m_param1, m_param2);
|
||||
}
|
||||
@@ -1488,12 +1488,12 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual wxEvent *Clone() const
|
||||
virtual wxEvent *Clone() const wxOVERRIDE
|
||||
{
|
||||
return new wxAsyncMethodCallEventFunctor(*this);
|
||||
}
|
||||
|
||||
virtual void Execute()
|
||||
virtual void Execute() wxOVERRIDE
|
||||
{
|
||||
m_fn();
|
||||
}
|
||||
@@ -1566,8 +1566,8 @@ public:
|
||||
// true if the listbox event was a selection.
|
||||
bool IsSelection() const { return (m_extraLong != 0); }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxCommandEvent(*this); }
|
||||
virtual wxEventCategory GetEventCategory() const { return wxEVT_CATEGORY_USER_INPUT; }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxCommandEvent(*this); }
|
||||
virtual wxEventCategory GetEventCategory() const wxOVERRIDE { return wxEVT_CATEGORY_USER_INPUT; }
|
||||
|
||||
protected:
|
||||
void* m_clientData; // Arbitrary client data
|
||||
@@ -1599,7 +1599,7 @@ public:
|
||||
// for implementation code only: is the operation allowed?
|
||||
bool IsAllowed() const { return m_bAllow; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxNotifyEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxNotifyEvent(*this); }
|
||||
|
||||
private:
|
||||
bool m_bAllow;
|
||||
@@ -1634,7 +1634,7 @@ public:
|
||||
void SetOrientation(int orient) { m_extraLong = (long) orient; }
|
||||
void SetPosition(int pos) { m_commandInt = pos; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxScrollEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxScrollEvent(*this); }
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxScrollEvent)
|
||||
@@ -1667,7 +1667,7 @@ public:
|
||||
void SetOrientation(int orient) { m_extraLong = (long) orient; }
|
||||
void SetPosition(int pos) { m_commandInt = pos; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxScrollWinEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxScrollWinEvent(*this); }
|
||||
|
||||
protected:
|
||||
int m_commandInt;
|
||||
@@ -1805,8 +1805,8 @@ public:
|
||||
// Is the system set to do page scrolling?
|
||||
bool IsPageScroll() const { return ((unsigned int)m_linesPerAction == UINT_MAX); }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxMouseEvent(*this); }
|
||||
virtual wxEventCategory GetEventCategory() const { return wxEVT_CATEGORY_USER_INPUT; }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxMouseEvent(*this); }
|
||||
virtual wxEventCategory GetEventCategory() const wxOVERRIDE { return wxEVT_CATEGORY_USER_INPUT; }
|
||||
|
||||
wxMouseEvent& operator=(const wxMouseEvent& event)
|
||||
{
|
||||
@@ -1859,7 +1859,7 @@ public:
|
||||
const wxCursor& GetCursor() const { return m_cursor; }
|
||||
bool HasCursor() const { return m_cursor.IsOk(); }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxSetCursorEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxSetCursorEvent(*this); }
|
||||
|
||||
private:
|
||||
wxCoord m_x, m_y;
|
||||
@@ -1971,8 +1971,8 @@ public:
|
||||
bool IsNextEventAllowed() const { return m_allowNext; }
|
||||
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxKeyEvent(*this); }
|
||||
virtual wxEventCategory GetEventCategory() const { return wxEVT_CATEGORY_USER_INPUT; }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxKeyEvent(*this); }
|
||||
virtual wxEventCategory GetEventCategory() const wxOVERRIDE { return wxEVT_CATEGORY_USER_INPUT; }
|
||||
|
||||
// we do need to copy wxKeyEvent sometimes (in wxTreeCtrl code, for
|
||||
// example)
|
||||
@@ -2080,7 +2080,7 @@ public:
|
||||
wxRect GetRect() const { return m_rect; }
|
||||
void SetRect(const wxRect& rect) { m_rect = rect; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxSizeEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxSizeEvent(*this); }
|
||||
|
||||
public:
|
||||
// For internal usage only. Will be converted to protected members.
|
||||
@@ -2120,7 +2120,7 @@ public:
|
||||
wxRect GetRect() const { return m_rect; }
|
||||
void SetRect(const wxRect& rect) { m_rect = rect; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxMoveEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxMoveEvent(*this); }
|
||||
|
||||
protected:
|
||||
wxPoint m_pos;
|
||||
@@ -2170,7 +2170,7 @@ public:
|
||||
}
|
||||
#endif // debug
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxPaintEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxPaintEvent(*this); }
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxPaintEvent)
|
||||
@@ -2183,7 +2183,7 @@ public:
|
||||
: wxEvent(winid, wxEVT_NC_PAINT)
|
||||
{ }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxNcPaintEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxNcPaintEvent(*this); }
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxNcPaintEvent)
|
||||
@@ -2209,7 +2209,7 @@ public:
|
||||
|
||||
wxDC *GetDC() const { return m_dc; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxEraseEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxEraseEvent(*this); }
|
||||
|
||||
protected:
|
||||
wxDC *m_dc;
|
||||
@@ -2241,7 +2241,7 @@ public:
|
||||
wxWindow *GetWindow() const { return m_win; }
|
||||
void SetWindow(wxWindow *win) { m_win = win; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxFocusEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxFocusEvent(*this); }
|
||||
|
||||
private:
|
||||
wxWindow *m_win;
|
||||
@@ -2259,7 +2259,7 @@ public:
|
||||
|
||||
wxWindow *GetWindow() const { return (wxWindow *)GetEventObject(); }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxChildFocusEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxChildFocusEvent(*this); }
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxChildFocusEvent)
|
||||
@@ -2300,7 +2300,7 @@ public:
|
||||
bool GetActive() const { return m_active; }
|
||||
Reason GetActivationReason() const { return m_activationReason;}
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxActivateEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxActivateEvent(*this); }
|
||||
|
||||
private:
|
||||
bool m_active;
|
||||
@@ -2322,7 +2322,7 @@ public:
|
||||
: wxEvent(Id, wxEVT_INIT_DIALOG)
|
||||
{ }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxInitDialogEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxInitDialogEvent(*this); }
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxInitDialogEvent)
|
||||
@@ -2354,7 +2354,7 @@ public:
|
||||
// only for wxEVT_MENU_OPEN/CLOSE
|
||||
wxMenu* GetMenu() const { return m_menu; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxMenuEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxMenuEvent(*this); }
|
||||
|
||||
private:
|
||||
int m_menuId;
|
||||
@@ -2408,7 +2408,7 @@ public:
|
||||
bool CanVeto() const { return m_canVeto; }
|
||||
bool GetVeto() const { return m_canVeto && m_veto; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxCloseEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxCloseEvent(*this); }
|
||||
|
||||
protected:
|
||||
bool m_loggingOff,
|
||||
@@ -2442,7 +2442,7 @@ public:
|
||||
wxDEPRECATED( bool GetShow() const { return IsShown(); } )
|
||||
#endif
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxShowEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxShowEvent(*this); }
|
||||
|
||||
protected:
|
||||
bool m_show;
|
||||
@@ -2471,7 +2471,7 @@ public:
|
||||
// return true if the frame was iconized, false if restored
|
||||
bool IsIconized() const { return m_iconized; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxIconizeEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxIconizeEvent(*this); }
|
||||
|
||||
protected:
|
||||
bool m_iconized;
|
||||
@@ -2490,7 +2490,7 @@ public:
|
||||
: wxEvent(winid, wxEVT_MAXIMIZE)
|
||||
{ }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxMaximizeEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxMaximizeEvent(*this); }
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxMaximizeEvent)
|
||||
@@ -2589,7 +2589,7 @@ public:
|
||||
{ return (((but == wxJOY_BUTTON_ANY) && (m_buttonState != 0)) ||
|
||||
((m_buttonState & but) == but)); }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxJoystickEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxJoystickEvent(*this); }
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxJoystickEvent)
|
||||
@@ -2639,7 +2639,7 @@ public:
|
||||
int GetNumberOfFiles() const { return m_noFiles; }
|
||||
wxString *GetFiles() const { return m_files; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxDropFilesEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxDropFilesEvent(*this); }
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxDropFilesEvent)
|
||||
@@ -2726,7 +2726,7 @@ public:
|
||||
// Returns the UI update mode
|
||||
static wxUpdateUIMode GetMode() { return sm_updateMode; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxUpdateUIEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxUpdateUIEvent(*this); }
|
||||
|
||||
protected:
|
||||
bool m_checked;
|
||||
@@ -2759,7 +2759,7 @@ public:
|
||||
: wxEvent(0, wxEVT_SYS_COLOUR_CHANGED)
|
||||
{ }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxSysColourChangedEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxSysColourChangedEvent(*this); }
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxSysColourChangedEvent)
|
||||
@@ -2784,7 +2784,7 @@ public:
|
||||
m_gainedCapture(event.m_gainedCapture)
|
||||
{ }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxMouseCaptureChangedEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxMouseCaptureChangedEvent(*this); }
|
||||
|
||||
wxWindow* GetCapturedWindow() const { return m_gainedCapture; }
|
||||
|
||||
@@ -2812,7 +2812,7 @@ public:
|
||||
: wxEvent(event)
|
||||
{}
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxMouseCaptureLostEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxMouseCaptureLostEvent(*this); }
|
||||
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxMouseCaptureLostEvent)
|
||||
};
|
||||
@@ -2830,7 +2830,7 @@ public:
|
||||
: wxEvent(0, wxEVT_DISPLAY_CHANGED)
|
||||
{ }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxDisplayChangedEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxDisplayChangedEvent(*this); }
|
||||
};
|
||||
|
||||
/*
|
||||
@@ -2853,7 +2853,7 @@ public:
|
||||
void SetChangedWindow(wxWindow* win) { m_changedWindow = win; }
|
||||
wxWindow* GetChangedWindow() const { return m_changedWindow; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxPaletteChangedEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxPaletteChangedEvent(*this); }
|
||||
|
||||
protected:
|
||||
wxWindow* m_changedWindow;
|
||||
@@ -2883,7 +2883,7 @@ public:
|
||||
void SetPaletteRealized(bool realized) { m_paletteRealized = realized; }
|
||||
bool GetPaletteRealized() const { return m_paletteRealized; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxQueryNewPaletteEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxQueryNewPaletteEvent(*this); }
|
||||
|
||||
protected:
|
||||
bool m_paletteRealized;
|
||||
@@ -2942,7 +2942,7 @@ public:
|
||||
// Set flags
|
||||
void SetFlags(long flags) { m_flags = flags; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxNavigationKeyEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxNavigationKeyEvent(*this); }
|
||||
|
||||
enum wxNavigationKeyEventFlags
|
||||
{
|
||||
@@ -2976,7 +2976,7 @@ public:
|
||||
|
||||
wxWindow *GetWindow() const { return (wxWindow *)GetEventObject(); }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxWindowCreateEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxWindowCreateEvent(*this); }
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxWindowCreateEvent)
|
||||
@@ -2989,7 +2989,7 @@ public:
|
||||
|
||||
wxWindow *GetWindow() const { return (wxWindow *)GetEventObject(); }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxWindowDestroyEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxWindowDestroyEvent(*this); }
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxWindowDestroyEvent)
|
||||
@@ -3040,7 +3040,7 @@ public:
|
||||
const wxString& GetTarget() const { return m_target; }
|
||||
void SetTarget(const wxString& target) { m_target = target; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxHelpEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxHelpEvent(*this); }
|
||||
|
||||
// optional indication of the event source
|
||||
Origin GetOrigin() const { return m_origin; }
|
||||
@@ -3082,7 +3082,7 @@ public:
|
||||
: wxCommandEvent(event)
|
||||
{ }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxClipboardTextEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxClipboardTextEvent(*this); }
|
||||
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxClipboardTextEvent)
|
||||
@@ -3114,7 +3114,7 @@ public:
|
||||
const wxPoint& GetPosition() const { return m_pos; }
|
||||
void SetPosition(const wxPoint& pos) { m_pos = pos; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxContextMenuEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxContextMenuEvent(*this); }
|
||||
|
||||
protected:
|
||||
wxPoint m_pos;
|
||||
@@ -3775,14 +3775,14 @@ public:
|
||||
}
|
||||
|
||||
// The sink is being destroyed
|
||||
virtual void OnObjectDestroy( )
|
||||
virtual void OnObjectDestroy( ) wxOVERRIDE
|
||||
{
|
||||
if ( m_src )
|
||||
m_src->OnSinkDestroyed( m_sink );
|
||||
delete this;
|
||||
}
|
||||
|
||||
virtual wxEventConnectionRef *ToEventConnection() { return this; }
|
||||
virtual wxEventConnectionRef *ToEventConnection() wxOVERRIDE { return this; }
|
||||
|
||||
void IncRef() { m_refCount++; }
|
||||
void DecRef()
|
||||
@@ -3855,7 +3855,7 @@ public:
|
||||
m_eventsToBlock.push_back(type);
|
||||
}
|
||||
|
||||
virtual bool ProcessEvent(wxEvent& event);
|
||||
virtual bool ProcessEvent(wxEvent& event) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
wxArrayInt m_eventsToBlock;
|
||||
@@ -3986,9 +3986,9 @@ typedef void (wxEvtHandler::*wxClipboardTextEventFunction)(wxClipboardTextEvent&
|
||||
static const wxEventTableEntry sm_eventTableEntries[]; \
|
||||
protected: \
|
||||
static const wxEventTable sm_eventTable; \
|
||||
virtual const wxEventTable* GetEventTable() const; \
|
||||
const wxEventTable* GetEventTable() const wxOVERRIDE; \
|
||||
static wxEventHashTable sm_eventHashTable; \
|
||||
virtual wxEventHashTable& GetEventHashTable() const
|
||||
wxEventHashTable& GetEventHashTable() const wxOVERRIDE
|
||||
|
||||
// N.B.: when building DLL with Borland C++ 5.5 compiler, you must initialize
|
||||
// sm_eventTable before using it in GetEventTable() or the compiler gives
|
||||
|
||||
@@ -238,12 +238,12 @@ public:
|
||||
|
||||
// sets the "should exit" flag and wakes up the loop so that it terminates
|
||||
// soon
|
||||
virtual void ScheduleExit(int rc = 0);
|
||||
virtual void ScheduleExit(int rc = 0) wxOVERRIDE;
|
||||
|
||||
protected:
|
||||
// enters a loop calling OnNextIteration(), Pending() and Dispatch() and
|
||||
// terminating when Exit() is called
|
||||
virtual int DoRun();
|
||||
virtual int DoRun() wxOVERRIDE;
|
||||
|
||||
// may be overridden to perform some action at the start of each new event
|
||||
// loop iteration
|
||||
@@ -377,7 +377,7 @@ public:
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual void OnExit()
|
||||
virtual void OnExit() wxOVERRIDE
|
||||
{
|
||||
delete m_windowDisabler;
|
||||
m_windowDisabler = NULL;
|
||||
|
||||
@@ -156,7 +156,7 @@ public:
|
||||
void SetFindString(const wxString& str) { SetString(str); }
|
||||
void SetReplaceString(const wxString& str) { m_strReplace = str; }
|
||||
|
||||
virtual wxEvent *Clone() const { return new wxFindDialogEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxFindDialogEvent(*this); }
|
||||
|
||||
private:
|
||||
wxString m_strReplace;
|
||||
|
||||
+22
-22
@@ -151,28 +151,28 @@ public:
|
||||
#endif // __UNIX__/!__UNIX__
|
||||
|
||||
// implement inherited pure virtual functions
|
||||
virtual void SetPath(const wxString& strPath);
|
||||
virtual const wxString& GetPath() const;
|
||||
virtual void SetPath(const wxString& strPath) wxOVERRIDE;
|
||||
virtual const wxString& GetPath() const wxOVERRIDE;
|
||||
|
||||
virtual bool GetFirstGroup(wxString& str, long& lIndex) const;
|
||||
virtual bool GetNextGroup (wxString& str, long& lIndex) const;
|
||||
virtual bool GetFirstEntry(wxString& str, long& lIndex) const;
|
||||
virtual bool GetNextEntry (wxString& str, long& lIndex) const;
|
||||
virtual bool GetFirstGroup(wxString& str, long& lIndex) const wxOVERRIDE;
|
||||
virtual bool GetNextGroup (wxString& str, long& lIndex) const wxOVERRIDE;
|
||||
virtual bool GetFirstEntry(wxString& str, long& lIndex) const wxOVERRIDE;
|
||||
virtual bool GetNextEntry (wxString& str, long& lIndex) const wxOVERRIDE;
|
||||
|
||||
virtual size_t GetNumberOfEntries(bool bRecursive = false) const;
|
||||
virtual size_t GetNumberOfGroups(bool bRecursive = false) const;
|
||||
virtual size_t GetNumberOfEntries(bool bRecursive = false) const wxOVERRIDE;
|
||||
virtual size_t GetNumberOfGroups(bool bRecursive = false) const wxOVERRIDE;
|
||||
|
||||
virtual bool HasGroup(const wxString& strName) const;
|
||||
virtual bool HasEntry(const wxString& strName) const;
|
||||
virtual bool HasGroup(const wxString& strName) const wxOVERRIDE;
|
||||
virtual bool HasEntry(const wxString& strName) const wxOVERRIDE;
|
||||
|
||||
virtual bool Flush(bool bCurrentOnly = false);
|
||||
virtual bool Flush(bool bCurrentOnly = false) wxOVERRIDE;
|
||||
|
||||
virtual bool RenameEntry(const wxString& oldName, const wxString& newName);
|
||||
virtual bool RenameGroup(const wxString& oldName, const wxString& newName);
|
||||
virtual bool RenameEntry(const wxString& oldName, const wxString& newName) wxOVERRIDE;
|
||||
virtual bool RenameGroup(const wxString& oldName, const wxString& newName) wxOVERRIDE;
|
||||
|
||||
virtual bool DeleteEntry(const wxString& key, bool bGroupIfEmptyAlso = true);
|
||||
virtual bool DeleteGroup(const wxString& szKey);
|
||||
virtual bool DeleteAll();
|
||||
virtual bool DeleteEntry(const wxString& key, bool bGroupIfEmptyAlso = true) wxOVERRIDE;
|
||||
virtual bool DeleteGroup(const wxString& szKey) wxOVERRIDE;
|
||||
virtual bool DeleteAll() wxOVERRIDE;
|
||||
|
||||
// additional, wxFileConfig-specific, functionality
|
||||
#if wxUSE_STREAMS
|
||||
@@ -191,16 +191,16 @@ public:
|
||||
bool LineListIsEmpty();
|
||||
|
||||
protected:
|
||||
virtual bool DoReadString(const wxString& key, wxString *pStr) const;
|
||||
virtual bool DoReadLong(const wxString& key, long *pl) const;
|
||||
virtual bool DoReadString(const wxString& key, wxString *pStr) const wxOVERRIDE;
|
||||
virtual bool DoReadLong(const wxString& key, long *pl) const wxOVERRIDE;
|
||||
#if wxUSE_BASE64
|
||||
virtual bool DoReadBinary(const wxString& key, wxMemoryBuffer* buf) const;
|
||||
virtual bool DoReadBinary(const wxString& key, wxMemoryBuffer* buf) const wxOVERRIDE;
|
||||
#endif // wxUSE_BASE64
|
||||
|
||||
virtual bool DoWriteString(const wxString& key, const wxString& szValue);
|
||||
virtual bool DoWriteLong(const wxString& key, long lValue);
|
||||
virtual bool DoWriteString(const wxString& key, const wxString& szValue) wxOVERRIDE;
|
||||
virtual bool DoWriteLong(const wxString& key, long lValue) wxOVERRIDE;
|
||||
#if wxUSE_BASE64
|
||||
virtual bool DoWriteBinary(const wxString& key, const wxMemoryBuffer& buf);
|
||||
virtual bool DoWriteBinary(const wxString& key, const wxMemoryBuffer& buf) wxOVERRIDE;
|
||||
#endif // wxUSE_BASE64
|
||||
|
||||
private:
|
||||
|
||||
@@ -98,7 +98,7 @@ public:
|
||||
}
|
||||
|
||||
// no need for the copy constructor as the default one will be fine.
|
||||
virtual wxEvent *Clone() const { return new wxFileCtrlEvent( *this ); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxFileCtrlEvent( *this ); }
|
||||
|
||||
void SetFiles( const wxArrayString &files ) { m_files = files; }
|
||||
void SetDirectory( const wxString &directory ) { m_directory = directory; }
|
||||
|
||||
+15
-15
@@ -50,7 +50,7 @@ public:
|
||||
void SetPath(const wxString &p) { m_path = p; }
|
||||
|
||||
// default copy ctor, assignment operator and dtor are ok
|
||||
virtual wxEvent *Clone() const { return new wxFileDirPickerEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxFileDirPickerEvent(*this); }
|
||||
|
||||
private:
|
||||
wxString m_path;
|
||||
@@ -176,8 +176,8 @@ public: // public API
|
||||
|
||||
public: // internal functions
|
||||
|
||||
void UpdatePickerFromTextCtrl();
|
||||
void UpdateTextCtrlFromPicker();
|
||||
void UpdatePickerFromTextCtrl() wxOVERRIDE;
|
||||
void UpdateTextCtrlFromPicker() wxOVERRIDE;
|
||||
|
||||
// event handler for our picker
|
||||
void OnFileDirChange(wxFileDirPickerEvent &);
|
||||
@@ -267,15 +267,15 @@ public:
|
||||
public: // overrides
|
||||
|
||||
// return the text control value in canonical form
|
||||
wxString GetTextCtrlValue() const;
|
||||
wxString GetTextCtrlValue() const wxOVERRIDE;
|
||||
|
||||
bool IsCwdToUpdate() const
|
||||
bool IsCwdToUpdate() const wxOVERRIDE
|
||||
{ return HasFlag(wxFLP_CHANGE_DIR); }
|
||||
|
||||
wxEventType GetEventType() const
|
||||
wxEventType GetEventType() const wxOVERRIDE
|
||||
{ return wxEVT_FILEPICKER_CHANGED; }
|
||||
|
||||
virtual void DoConnect( wxControl *sender, wxFileDirPickerCtrlBase *eventSink )
|
||||
virtual void DoConnect( wxControl *sender, wxFileDirPickerCtrlBase *eventSink ) wxOVERRIDE
|
||||
{
|
||||
sender->Connect( wxEVT_FILEPICKER_CHANGED,
|
||||
wxFileDirPickerEventHandler( wxFileDirPickerCtrlBase::OnFileDirChange ),
|
||||
@@ -288,7 +288,7 @@ protected:
|
||||
wxFileDirPickerWidgetBase *CreatePicker(wxWindow *parent,
|
||||
const wxString& path,
|
||||
const wxString& message,
|
||||
const wxString& wildcard)
|
||||
const wxString& wildcard) wxOVERRIDE
|
||||
{
|
||||
return new wxFilePickerWidget(parent, wxID_ANY,
|
||||
wxGetTranslation(wxFilePickerWidgetLabel),
|
||||
@@ -298,7 +298,7 @@ protected:
|
||||
}
|
||||
|
||||
// extracts the style for our picker from wxFileDirPickerCtrlBase's style
|
||||
long GetPickerStyle(long style) const
|
||||
long GetPickerStyle(long style) const wxOVERRIDE
|
||||
{
|
||||
return style & (wxFLP_OPEN |
|
||||
wxFLP_SAVE |
|
||||
@@ -367,15 +367,15 @@ public:
|
||||
|
||||
public: // overrides
|
||||
|
||||
wxString GetTextCtrlValue() const;
|
||||
wxString GetTextCtrlValue() const wxOVERRIDE;
|
||||
|
||||
bool IsCwdToUpdate() const
|
||||
bool IsCwdToUpdate() const wxOVERRIDE
|
||||
{ return HasFlag(wxDIRP_CHANGE_DIR); }
|
||||
|
||||
wxEventType GetEventType() const
|
||||
wxEventType GetEventType() const wxOVERRIDE
|
||||
{ return wxEVT_DIRPICKER_CHANGED; }
|
||||
|
||||
virtual void DoConnect( wxControl *sender, wxFileDirPickerCtrlBase *eventSink )
|
||||
virtual void DoConnect( wxControl *sender, wxFileDirPickerCtrlBase *eventSink ) wxOVERRIDE
|
||||
{
|
||||
sender->Connect( wxEVT_DIRPICKER_CHANGED,
|
||||
wxFileDirPickerEventHandler( wxFileDirPickerCtrlBase::OnFileDirChange ),
|
||||
@@ -388,7 +388,7 @@ protected:
|
||||
wxFileDirPickerWidgetBase *CreatePicker(wxWindow *parent,
|
||||
const wxString& path,
|
||||
const wxString& message,
|
||||
const wxString& WXUNUSED(wildcard))
|
||||
const wxString& WXUNUSED(wildcard)) wxOVERRIDE
|
||||
{
|
||||
return new wxDirPickerWidget(parent, wxID_ANY,
|
||||
wxGetTranslation(wxDirPickerWidgetLabel),
|
||||
@@ -398,7 +398,7 @@ protected:
|
||||
}
|
||||
|
||||
// extracts the style for our picker from wxFileDirPickerCtrlBase's style
|
||||
long GetPickerStyle(long style) const
|
||||
long GetPickerStyle(long style) const wxOVERRIDE
|
||||
{
|
||||
return style & (wxDIRP_DIR_MUST_EXIST |
|
||||
wxDIRP_CHANGE_DIR |
|
||||
|
||||
@@ -277,10 +277,10 @@ special characters :
|
||||
class WXDLLIMPEXP_BASE wxLocalFSHandler : public wxFileSystemHandler
|
||||
{
|
||||
public:
|
||||
virtual bool CanOpen(const wxString& location);
|
||||
virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location);
|
||||
virtual wxString FindFirst(const wxString& spec, int flags = 0);
|
||||
virtual wxString FindNext();
|
||||
virtual bool CanOpen(const wxString& location) wxOVERRIDE;
|
||||
virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location) wxOVERRIDE;
|
||||
virtual wxString FindFirst(const wxString& spec, int flags = 0) wxOVERRIDE;
|
||||
virtual wxString FindNext() wxOVERRIDE;
|
||||
|
||||
// wxLocalFSHandler will prefix all filenames with 'root' before accessing
|
||||
// files on disk. This effectively makes 'root' the top-level directory
|
||||
|
||||
@@ -157,8 +157,8 @@ public: // public API
|
||||
|
||||
public: // internal functions
|
||||
|
||||
void UpdatePickerFromTextCtrl();
|
||||
void UpdateTextCtrlFromPicker();
|
||||
void UpdatePickerFromTextCtrl() wxOVERRIDE;
|
||||
void UpdateTextCtrlFromPicker() wxOVERRIDE;
|
||||
|
||||
// event handler for our picker
|
||||
void OnFontChange(wxFontPickerEvent &);
|
||||
@@ -170,7 +170,7 @@ public: // internal functions
|
||||
protected:
|
||||
|
||||
// extracts the style for our picker from wxFontPickerCtrl's style
|
||||
long GetPickerStyle(long style) const
|
||||
long GetPickerStyle(long style) const wxOVERRIDE
|
||||
{ return (style & (wxFNTP_FONTDESC_AS_LABEL|wxFNTP_USEFONT_FOR_LABEL)); }
|
||||
|
||||
// the maximum pointsize allowed to the user
|
||||
@@ -205,7 +205,7 @@ public:
|
||||
void SetFont(const wxFont &c) { m_font = c; }
|
||||
|
||||
// default copy ctor, assignment operator and dtor are ok
|
||||
virtual wxEvent *Clone() const { return new wxFontPickerEvent(*this); }
|
||||
virtual wxEvent *Clone() const wxOVERRIDE { return new wxFontPickerEvent(*this); }
|
||||
|
||||
private:
|
||||
wxFont m_font;
|
||||
|
||||
+6
-6
@@ -71,7 +71,7 @@ public:
|
||||
|
||||
// get the origin of the client area (which may be different from (0, 0)
|
||||
// if the frame has a toolbar) in client coordinates
|
||||
virtual wxPoint GetClientAreaOrigin() const;
|
||||
virtual wxPoint GetClientAreaOrigin() const wxOVERRIDE;
|
||||
|
||||
|
||||
// menu bar functions
|
||||
@@ -164,19 +164,19 @@ public:
|
||||
#endif // wxUSE_MENUS
|
||||
|
||||
// do the UI update processing for this window
|
||||
virtual void UpdateWindowUI(long flags = wxUPDATE_UI_NONE);
|
||||
virtual void UpdateWindowUI(long flags = wxUPDATE_UI_NONE) wxOVERRIDE;
|
||||
|
||||
// Implement internal behaviour (menu updating on some platforms)
|
||||
virtual void OnInternalIdle();
|
||||
virtual void OnInternalIdle() wxOVERRIDE;
|
||||
|
||||
#if wxUSE_MENUS || wxUSE_TOOLBAR
|
||||
// show help text for the currently selected menu or toolbar item
|
||||
// (typically in the status bar) or hide it and restore the status bar text
|
||||
// originally shown before the menu was opened if show == false
|
||||
virtual void DoGiveHelp(const wxString& text, bool show);
|
||||
virtual void DoGiveHelp(const wxString& text, bool show) wxOVERRIDE;
|
||||
#endif
|
||||
|
||||
virtual bool IsClientAreaChild(const wxWindow *child) const
|
||||
virtual bool IsClientAreaChild(const wxWindow *child) const wxOVERRIDE
|
||||
{
|
||||
return !IsOneOfBars(child) && wxTopLevelWindow::IsClientAreaChild(child);
|
||||
}
|
||||
@@ -190,7 +190,7 @@ protected:
|
||||
void DeleteAllBars();
|
||||
|
||||
// test whether this window makes part of the frame
|
||||
virtual bool IsOneOfBars(const wxWindow *win) const;
|
||||
virtual bool IsOneOfBars(const wxWindow *win) const wxOVERRIDE;
|
||||
|
||||
#if wxUSE_MENUS
|
||||
// override to update menu bar position when the frame size changes
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user