re-renamed DoCreate() to XmDoCreateTLW() to avoid virtual function hiding in other classes with their own DoCreate() and re-removed DoDestroy()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35692 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-09-25 20:29:58 +00:00
parent 48f625bc2c
commit 02bcd285fa
6 changed files with 6 additions and 31 deletions

View File

@@ -75,7 +75,7 @@ public:
void OnCloseWindow(wxCloseEvent& event);
private:
virtual bool DoCreate(wxWindow* parent,
virtual bool XmDoCreateTLW(wxWindow* parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
@@ -95,11 +95,6 @@ protected:
virtual void DoSetClientSize(int width, int height);
#if wxCHECK_VERSION(2,7,0)
#error "Remove DoDestroy(), it was only kept for binary backwards compatibility"
#endif
virtual void DoDestroy();
private:
DECLARE_EVENT_TABLE()

View File

@@ -113,7 +113,7 @@ private:
virtual void DoSetClientSize(int width, int height);
private:
virtual bool DoCreate(wxWindow* parent,
virtual bool XmDoCreateTLW(wxWindow* parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
@@ -122,11 +122,6 @@ private:
const wxString& name);
#if wxCHECK_VERSION(2,7,0)
#error "Remove DoDestroy(), it was only kept for binary backwards compatibility"
#endif
virtual void DoDestroy();
DECLARE_EVENT_TABLE()
DECLARE_DYNAMIC_CLASS(wxFrame)

View File

@@ -68,14 +68,8 @@ protected:
virtual void DoGetPosition(int* x, int* y) const;
private:
#if wxCHECK_VERSION(2,7,0)
// DoDestroy() is not used anywhere else, DoCreate() should also be renamed
// in src/motif/dialog.cpp, frame.cpp and toplevel.cp
#error "Remove DoDestroy() and rename DoCreate() to XmDoCreateTLW(), they were only kept for binary backwards compatibility"
#endif
// really create the Motif widget for TLW
virtual bool DoCreate(wxWindow* parent,
virtual bool XmDoCreateTLW(wxWindow* parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos,
@@ -83,7 +77,6 @@ private:
long style,
const wxString& name) = 0;
virtual void DoDestroy() { }
wxString m_title;
};