Applied patch [ 832096 ] Final separation for GUI and console for Open Watcom

(Watcom compiler doesn't like ctor implementation in headers)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2004-01-11 15:33:01 +00:00
parent 3ef37e7f4e
commit 1169a91932
115 changed files with 1086 additions and 274 deletions

View File

@@ -19,7 +19,7 @@
class WXDLLEXPORT wxBitmapButton : public wxBitmapButtonBase
{
public:
wxBitmapButton() { }
wxBitmapButton();
wxBitmapButton(wxWindow *parent,
wxWindowID id,
@@ -28,10 +28,7 @@ public:
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr)
{
Create(parent, id, bitmap, pos, size, style, validator, name);
}
const wxString& name = wxButtonNameStr);
bool Create(wxWindow *parent,
wxWindowID id,

View File

@@ -36,7 +36,7 @@ class WXDLLEXPORT wxInputHandler;
class WXDLLEXPORT wxButton : public wxButtonBase
{
public:
wxButton() { Init(); }
wxButton();
wxButton(wxWindow *parent,
wxWindowID id,
const wxBitmap& bitmap,
@@ -45,12 +45,7 @@ public:
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr)
{
Init();
Create(parent, id, bitmap, label, pos, size, style, validator, name);
}
const wxString& name = wxButtonNameStr);
wxButton(wxWindow *parent,
wxWindowID id,
@@ -59,12 +54,7 @@ public:
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxButtonNameStr)
{
Init();
Create(parent, id, label, pos, size, style, validator, name);
}
const wxString& name = wxButtonNameStr);
bool Create(wxWindow *parent,
wxWindowID id,

View File

@@ -59,7 +59,7 @@ public:
};
// constructors
wxCheckBox() { Init(); }
wxCheckBox();
wxCheckBox(wxWindow *parent,
wxWindowID id,
@@ -68,12 +68,7 @@ public:
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxCheckBoxNameStr)
{
Init();
Create(parent, id, label, pos, size, style, validator, name);
}
const wxString& name = wxCheckBoxNameStr);
bool Create(wxWindow *parent,
wxWindowID id,

View File

@@ -30,7 +30,7 @@ class WXDLLEXPORT wxCheckListBox : public wxCheckListBoxBase
{
public:
// ctors
wxCheckListBox() { Init(); }
wxCheckListBox();
wxCheckListBox(wxWindow *parent,
wxWindowID id,
@@ -40,12 +40,7 @@ public:
const wxString *choices = NULL,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxListBoxNameStr)
{
Init();
Create(parent, id, pos, size, nStrings, choices, style, validator, name);
}
const wxString& name = wxListBoxNameStr);
bool Create(wxWindow *parent,
wxWindowID id,

View File

@@ -23,17 +23,14 @@
class WXDLLEXPORT wxChoice : public wxComboBox
{
public:
wxChoice() {}
wxChoice();
wxChoice(wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = (const wxString *) NULL,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxChoiceNameStr)
{
Create(parent, id, pos, size, n, choices, style, validator, name);
}
const wxString& name = wxChoiceNameStr);
bool Create(wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition,

View File

@@ -99,10 +99,7 @@ class WXDLLEXPORT wxComboControl : public wxControl
{
public:
// construction
wxComboControl()
{
Init();
}
wxComboControl();
wxComboControl(wxWindow *parent,
wxWindowID id,
@@ -111,12 +108,7 @@ public:
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr)
{
Init();
(void)Create(parent, id, value, pos, size, style, validator, name);
}
const wxString& name = wxComboBoxNameStr);
bool Create(wxWindow *parent,
wxWindowID id,
@@ -213,7 +205,7 @@ class WXDLLEXPORT wxComboBox : public wxComboControl, public wxComboBoxBase
{
public:
// ctors and such
wxComboBox() { Init(); }
wxComboBox();
wxComboBox(wxWindow *parent,
wxWindowID id,
@@ -224,13 +216,7 @@ public:
const wxString *choices = (const wxString *) NULL,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxComboBoxNameStr)
{
Init();
(void)Create(parent, id, value, pos, size, n, choices,
style, validator, name);
}
const wxString& name = wxComboBoxNameStr);
bool Create(wxWindow *parent,
wxWindowID id,

View File

@@ -45,19 +45,14 @@ typedef wxString wxControlAction;
class WXDLLEXPORT wxControl : public wxControlBase, public wxInputConsumer
{
public:
wxControl() { Init(); }
wxControl();
wxControl(wxWindow *parent,
wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxControlNameStr)
{
Init();
Create(parent, id, pos, size, style, validator, name);
}
const wxString& name = wxControlNameStr);
bool Create(wxWindow *parent,
wxWindowID id,

View File

@@ -23,7 +23,7 @@ class WXDLLEXPORT wxEventLoop;
class WXDLLEXPORT wxDialog : public wxDialogBase
{
public:
wxDialog() { Init(); }
wxDialog();
// Constructor with no modal flag - the new convention.
wxDialog(wxWindow *parent, wxWindowID id,
@@ -31,11 +31,7 @@ public:
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_DIALOG_STYLE,
const wxString& name = wxDialogNameStr)
{
Init();
Create(parent, id, title, pos, size, style, name);
}
const wxString& name = wxDialogNameStr);
bool Create(wxWindow *parent, wxWindowID id,
const wxString& title,

View File

@@ -23,17 +23,14 @@
class WXDLLEXPORT wxFrame : public wxFrameBase
{
public:
wxFrame() {}
wxFrame();
wxFrame(wxWindow *parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr)
{
Create(parent, id, title, pos, size, style, name);
}
const wxString& name = wxFrameNameStr);
bool Create(wxWindow *parent,
wxWindowID id,

View File

@@ -42,7 +42,7 @@ typedef wxString wxControlAction;
class WXDLLEXPORT wxInputConsumer
{
public:
wxInputConsumer() { m_inputHandler = NULL; }
wxInputConsumer();
// get the input handler
wxInputHandler *GetInputHandler() const { return m_inputHandler; }

View File

@@ -56,7 +56,7 @@ class WXDLLEXPORT wxListBox : public wxListBoxBase, public wxScrollHelper
{
public:
// ctors and such
wxListBox() { Init(); }
wxListBox();
wxListBox(wxWindow *parent,
wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
@@ -64,12 +64,7 @@ public:
int n = 0, const wxString choices[] = (const wxString *) NULL,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxListBoxNameStr )
{
Init();
Create(parent, id, pos, size, n, choices, style, validator, name);
}
const wxString& name = wxListBoxNameStr );
virtual ~wxListBox();

View File

@@ -39,19 +39,14 @@ public:
// ctors and such
// --------------
wxNotebook() { Init(); }
wxNotebook();
wxNotebook(wxWindow *parent,
wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxString& name = wxNOTEBOOK_NAME)
{
Init();
(void)Create(parent, id, pos, size, style, name);
}
const wxString& name = wxNOTEBOOK_NAME);
// quasi ctor
bool Create(wxWindow *parent,

View File

@@ -32,7 +32,7 @@ class WXDLLEXPORT wxRadioBox : public wxStaticBox,
{
public:
// wxRadioBox construction
wxRadioBox() { Init(); }
wxRadioBox();
wxRadioBox(wxWindow *parent,
wxWindowID id,
@@ -43,13 +43,7 @@ public:
int majorDim = 0,
long style = wxRA_SPECIFY_COLS,
const wxValidator& val = wxDefaultValidator,
const wxString& name = wxRadioBoxNameStr)
{
Init();
(void)Create(parent, id, title, pos, size, n, choices,
majorDim, style, val, name);
}
const wxString& name = wxRadioBoxNameStr);
bool Create(wxWindow *parent,
wxWindowID id,

View File

@@ -26,7 +26,7 @@ class WXDLLEXPORT wxRadioButton : public wxCheckBox
{
public:
// constructors
wxRadioButton() { Init(); }
wxRadioButton();
wxRadioButton(wxWindow *parent,
wxWindowID id,
@@ -35,12 +35,7 @@ public:
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxRadioButtonNameStr)
{
Init();
Create(parent, id, label, pos, size, style, validator, name);
}
const wxString& name = wxRadioButtonNameStr);
bool Create(wxWindow *parent,
wxWindowID id,

View File

@@ -101,7 +101,7 @@ public:
// creation
// --------
wxTextCtrl() { Init(); }
wxTextCtrl();
wxTextCtrl(wxWindow *parent,
wxWindowID id,
@@ -110,12 +110,7 @@ public:
const wxSize& size = wxDefaultSize,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxTextCtrlNameStr)
{
Init();
Create(parent, id, value, pos, size, style, validator, name);
}
const wxString& name = wxTextCtrlNameStr);
bool Create(wxWindow *parent,
wxWindowID id,

View File

@@ -39,18 +39,13 @@ class WXDLLEXPORT wxToolBar : public wxToolBarBase
{
public:
// construction/destruction
wxToolBar() { Init(); }
wxToolBar();
wxToolBar(wxWindow *parent,
wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxString& name = wxToolBarNameStr)
{
Init();
Create(parent, id, pos, size, style, name);
}
const wxString& name = wxToolBarNameStr);
bool Create( wxWindow *parent,
wxWindowID id,

View File

@@ -97,19 +97,14 @@ class WXDLLEXPORT wxTopLevelWindow : public wxTopLevelWindowNative,
{
public:
// construction
wxTopLevelWindow() { Init(); }
wxTopLevelWindow();
wxTopLevelWindow(wxWindow *parent,
wxWindowID id,
const wxString& title,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxDEFAULT_FRAME_STYLE,
const wxString& name = wxFrameNameStr)
{
Init();
Create(parent, id, title, pos, size, style, name);
}
const wxString& name = wxFrameNameStr);
bool Create(wxWindow *parent,
wxWindowID id,

View File

@@ -55,16 +55,14 @@ public:
// ctors and create functions
// ---------------------------
wxWindow() { Init(); }
wxWindow();
wxWindow(wxWindow *parent,
wxWindowID id,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
const wxString& name = wxPanelNameStr)
: wxWindowNative(parent, id, pos, size, style | wxCLIP_CHILDREN, name)
{ Init(); }
const wxString& name = wxPanelNameStr);
bool Create(wxWindow *parent,
wxWindowID id,