OS/2 PM specific fixes for validators and fonts

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster 1999-11-08 05:18:15 +00:00
parent aa33452c94
commit 57c4d796c5
21 changed files with 255 additions and 24 deletions

View File

@ -41,7 +41,13 @@ protected:
const wxPoint& pos, const wxPoint& pos,
const wxSize& size, const wxSize& size,
long style, long style,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator,
# else
const wxValidator& validator, const wxValidator& validator,
# endif
#endif
const wxString& name); const wxString& name);
// inherit colour and font settings from the parent window // inherit colour and font settings from the parent window

View File

@ -53,7 +53,7 @@ struct WXDLLEXPORT wxNativeEncodingInfo
{ {
wxString facename; // may be empty meaning "any" wxString facename; // may be empty meaning "any"
#if defined(__WXMSW__) #if defined(__WXMSW__) || defined(__WXPM__)
wxNativeEncodingInfo() { charset = 0; /* ANSI_CHARSET */ } wxNativeEncodingInfo() { charset = 0; /* ANSI_CHARSET */ }
int charset; int charset;

View File

@ -380,7 +380,13 @@ class WXDLLEXPORT wxListTextCtrl: public wxTextCtrl
bool *accept, wxString *res, wxListMainWindow *owner, bool *accept, wxString *res, wxListMainWindow *owner,
const wxString &value = "", const wxString &value = "",
const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
int style = 0, const wxValidator* validator = wxDefaultValidator,
# else
int style = 0, const wxValidator& validator = wxDefaultValidator, int style = 0, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString &name = "wxListTextCtrlText" ); const wxString &name = "wxListTextCtrlText" );
void OnChar( wxKeyEvent &event ); void OnChar( wxKeyEvent &event );
void OnKillFocus( wxFocusEvent &event ); void OnKillFocus( wxFocusEvent &event );
@ -507,7 +513,13 @@ class WXDLLEXPORT wxListCtrl: public wxControl
wxListCtrl(); wxListCtrl();
wxListCtrl( wxWindow *parent, wxWindowID id = -1, wxListCtrl( wxWindow *parent, wxWindowID id = -1,
const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
long style = wxLC_ICON, const wxValidator* validator = wxDefaultValidator,
# else
long style = wxLC_ICON, const wxValidator& validator = wxDefaultValidator, long style = wxLC_ICON, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString &name = "listctrl" ) const wxString &name = "listctrl" )
{ {
Create(parent, id, pos, size, style, validator, name); Create(parent, id, pos, size, style, validator, name);
@ -515,7 +527,13 @@ class WXDLLEXPORT wxListCtrl: public wxControl
~wxListCtrl(); ~wxListCtrl();
bool Create( wxWindow *parent, wxWindowID id = -1, bool Create( wxWindow *parent, wxWindowID id = -1,
const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
long style = wxLC_ICON, const wxValidator* validator = wxDefaultValidator,
# else
long style = wxLC_ICON, const wxValidator& validator = wxDefaultValidator, long style = wxLC_ICON, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString &name = "listctrl" ); const wxString &name = "listctrl" );
void OnSize( wxSizeEvent &event ); void OnSize( wxSizeEvent &event );
bool GetColumn( int col, wxListItem& item ) const; bool GetColumn( int col, wxListItem& item ) const;

View File

@ -181,7 +181,13 @@ class WXDLLEXPORT wxTreeTextCtrl: public wxTextCtrl
bool *accept, wxString *res, wxTreeCtrl *owner, bool *accept, wxString *res, wxTreeCtrl *owner,
const wxString &value = wxEmptyString, const wxString &value = wxEmptyString,
const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize, const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
int style = 0, const wxValidator* validator = wxDefaultValidator,
# else
int style = 0, const wxValidator& validator = wxDefaultValidator, int style = 0, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString &name = wxTextCtrlNameStr ); const wxString &name = wxTextCtrlNameStr );
void OnChar( wxKeyEvent &event ); void OnChar( wxKeyEvent &event );
void OnKillFocus( wxFocusEvent &event ); void OnKillFocus( wxFocusEvent &event );
@ -204,7 +210,13 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT, long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator *validator = wxDefaultValidator,
# else
const wxValidator &validator = wxDefaultValidator, const wxValidator &validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxTreeCtrlNameStr) const wxString& name = wxTreeCtrlNameStr)
{ {
Create(parent, id, pos, size, style, validator, name); Create(parent, id, pos, size, style, validator, name);
@ -216,7 +228,13 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT, long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator *validator = wxDefaultValidator,
# else
const wxValidator &validator = wxDefaultValidator, const wxValidator &validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxTreeCtrlNameStr); const wxString& name = wxTreeCtrlNameStr);
// accessors // accessors

View File

@ -26,7 +26,13 @@ class WXDLLEXPORT wxBitmapButton: public wxButton
inline wxBitmapButton(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap, inline wxBitmapButton(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW, const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxButtonNameStr) const wxString& name = wxButtonNameStr)
{ {
Create(parent, id, bitmap, pos, size, style, validator, name); Create(parent, id, bitmap, pos, size, style, validator, name);
@ -35,7 +41,13 @@ class WXDLLEXPORT wxBitmapButton: public wxButton
bool Create(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap, bool Create(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW, const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxButtonNameStr); const wxString& name = wxButtonNameStr);
virtual void SetLabel(const wxBitmap& bitmap) virtual void SetLabel(const wxBitmap& bitmap)

View File

@ -25,7 +25,13 @@ class WXDLLEXPORT wxButton: public wxControl
inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label, inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxButtonNameStr) const wxString& name = wxButtonNameStr)
{ {
Create(parent, id, label, pos, size, style, validator, name); Create(parent, id, label, pos, size, style, validator, name);
@ -34,7 +40,13 @@ class WXDLLEXPORT wxButton: public wxControl
bool Create(wxWindow *parent, wxWindowID id, const wxString& label, bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxButtonNameStr); const wxString& name = wxButtonNameStr);
virtual ~wxButton(); virtual ~wxButton();

View File

@ -27,7 +27,13 @@ class WXDLLEXPORT wxCheckBox: public wxControl
inline wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label, inline wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxCheckBoxNameStr) const wxString& name = wxCheckBoxNameStr)
{ {
Create(parent, id, label, pos, size, style, validator, name); Create(parent, id, label, pos, size, style, validator, name);
@ -36,7 +42,13 @@ class WXDLLEXPORT wxCheckBox: public wxControl
bool Create(wxWindow *parent, wxWindowID id, const wxString& label, bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxCheckBoxNameStr); const wxString& name = wxCheckBoxNameStr);
virtual void SetValue(bool); virtual void SetValue(bool);
@ -64,7 +76,13 @@ class WXDLLEXPORT wxBitmapCheckBox: public wxCheckBox
inline wxBitmapCheckBox(wxWindow *parent, wxWindowID id, const wxBitmap *label, inline wxBitmapCheckBox(wxWindow *parent, wxWindowID id, const wxBitmap *label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxCheckBoxNameStr) const wxString& name = wxCheckBoxNameStr)
{ {
Create(parent, id, label, pos, size, style, validator, name); Create(parent, id, label, pos, size, style, validator, name);
@ -73,7 +91,13 @@ class WXDLLEXPORT wxBitmapCheckBox: public wxCheckBox
bool Create(wxWindow *parent, wxWindowID id, const wxBitmap *bitmap, bool Create(wxWindow *parent, wxWindowID id, const wxBitmap *bitmap,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxCheckBoxNameStr); const wxString& name = wxCheckBoxNameStr);
virtual void SetLabel(const wxBitmap& bitmap); virtual void SetLabel(const wxBitmap& bitmap);

View File

@ -31,7 +31,13 @@ public:
int nStrings = 0, int nStrings = 0,
const wxString choices[] = NULL, const wxString choices[] = NULL,
long style = 0, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxListBoxNameStr); const wxString& name = wxListBoxNameStr);
// override base class virtuals // override base class virtuals

View File

@ -28,7 +28,13 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL, int n = 0, const wxString choices[] = NULL,
long style = 0, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxChoiceNameStr) const wxString& name = wxChoiceNameStr)
{ {
Create(parent, id, pos, size, n, choices, style, validator, name); Create(parent, id, pos, size, n, choices, style, validator, name);
@ -39,7 +45,13 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL, int n = 0, const wxString choices[] = NULL,
long style = 0, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxChoiceNameStr); const wxString& name = wxChoiceNameStr);
// Implement base class virtuals // Implement base class virtuals

View File

@ -33,7 +33,13 @@ class WXDLLEXPORT wxComboBox: public wxChoice
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL, int n = 0, const wxString choices[] = NULL,
long style = 0, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxComboBoxNameStr) const wxString& name = wxComboBoxNameStr)
{ {
Create(parent, id, value, pos, size, n, choices, style, validator, name); Create(parent, id, value, pos, size, n, choices, style, validator, name);
@ -45,7 +51,13 @@ class WXDLLEXPORT wxComboBox: public wxChoice
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL, int n = 0, const wxString choices[] = NULL,
long style = 0, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxComboBoxNameStr); const wxString& name = wxComboBoxNameStr);
// List functions: see wxChoice // List functions: see wxChoice

View File

@ -27,7 +27,13 @@ class WXDLLEXPORT wxGauge: public wxControl
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxGA_HORIZONTAL, long style = wxGA_HORIZONTAL,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxGaugeNameStr) const wxString& name = wxGaugeNameStr)
{ {
Create(parent, id, range, pos, size, style, validator, name); Create(parent, id, range, pos, size, style, validator, name);
@ -38,7 +44,13 @@ class WXDLLEXPORT wxGauge: public wxControl
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxGA_HORIZONTAL, long style = wxGA_HORIZONTAL,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxGaugeNameStr); const wxString& name = wxGaugeNameStr);
void SetShadowWidth(int w); void SetShadowWidth(int w);

View File

@ -42,7 +42,13 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL, int n = 0, const wxString choices[] = NULL,
long style = 0, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxListBoxNameStr) const wxString& name = wxListBoxNameStr)
{ {
Create(parent, id, pos, size, n, choices, style, validator, name); Create(parent, id, pos, size, n, choices, style, validator, name);
@ -53,7 +59,13 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL, int n = 0, const wxString choices[] = NULL,
long style = 0, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxListBoxNameStr); const wxString& name = wxListBoxNameStr);
virtual ~wxListBox(); virtual ~wxListBox();

View File

@ -29,7 +29,13 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL, int n = 0, const wxString choices[] = NULL,
int majorDim = 0, long style = wxRA_HORIZONTAL, int majorDim = 0, long style = wxRA_HORIZONTAL,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr)
# else
const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr) const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr)
# endif
#endif
{ {
Create(parent, id, title, pos, size, n, choices, majorDim, style, val, name); Create(parent, id, title, pos, size, n, choices, majorDim, style, val, name);
} }
@ -40,7 +46,13 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL, int n = 0, const wxString choices[] = NULL,
int majorDim = 0, long style = wxRA_HORIZONTAL, int majorDim = 0, long style = wxRA_HORIZONTAL,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr);
# else
const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr); const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr);
# endif
#endif
virtual bool OS2Command(WXUINT param, WXWORD id); virtual bool OS2Command(WXUINT param, WXWORD id);
virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor, virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,

View File

@ -26,7 +26,13 @@ class WXDLLEXPORT wxRadioButton: public wxControl
const wxString& label, const wxString& label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxRadioButtonNameStr) const wxString& name = wxRadioButtonNameStr)
{ {
Create(parent, id, label, pos, size, style, validator, name); Create(parent, id, label, pos, size, style, validator, name);
@ -36,7 +42,13 @@ class WXDLLEXPORT wxRadioButton: public wxControl
const wxString& label, const wxString& label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxRadioButtonNameStr); const wxString& name = wxRadioButtonNameStr);
virtual void SetLabel(const wxString& label); virtual void SetLabel(const wxString& label);
@ -63,7 +75,13 @@ class WXDLLEXPORT wxBitmapRadioButton: public wxRadioButton
const wxBitmap *label, const wxBitmap *label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxBitmapRadioButtonNameStr) const wxString& name = wxBitmapRadioButtonNameStr)
{ {
Create(parent, id, label, pos, size, style, validator, name); Create(parent, id, label, pos, size, style, validator, name);
@ -73,7 +91,13 @@ class WXDLLEXPORT wxBitmapRadioButton: public wxRadioButton
const wxBitmap *label, const wxBitmap *label,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0, const wxSize& size = wxDefaultSize, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxBitmapRadioButtonNameStr); const wxString& name = wxBitmapRadioButtonNameStr);
virtual void SetLabel(const wxBitmap *label); virtual void SetLabel(const wxBitmap *label);

View File

@ -29,7 +29,13 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxSB_HORIZONTAL, long style = wxSB_HORIZONTAL,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxScrollBarNameStr) const wxString& name = wxScrollBarNameStr)
{ {
Create(parent, id, pos, size, style, validator, name); Create(parent, id, pos, size, style, validator, name);
@ -38,7 +44,13 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxSB_HORIZONTAL, long style = wxSB_HORIZONTAL,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxScrollBarNameStr); const wxString& name = wxScrollBarNameStr);
int GetThumbPosition() const ; int GetThumbPosition() const ;

View File

@ -166,8 +166,16 @@
// Set this to 0 if your compiler can't cope // Set this to 0 if your compiler can't cope
// with omission of prototype parameters. // with omission of prototype parameters.
#define wxUSE_ODBC 0 #define wxUSE_ODBC 0
// Define 1 to use ODBC classes // Define 1 to use ODBC classes
#define wxODBC_FWD_ONLY_CURSORS 1
// Some databases/ODBC drivers only allow forward scrolling cursors.
// Unless you specifically want to use backward scrolling
// cursors, and you know that all of the databases/ODBC drivers
// that you will use these odbc classes with allow backward
// scrolling cursors, this setting should remain set to 1
// for maximum database/driver compatibilty
#define wxUSE_IOSTREAMH 1 #define wxUSE_IOSTREAMH 1
// VC++ 4.2 and above allows <iostream> and <iostream.h> // VC++ 4.2 and above allows <iostream> and <iostream.h>

View File

@ -29,7 +29,13 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxSL_HORIZONTAL, long style = wxSL_HORIZONTAL,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxSliderNameStr) const wxString& name = wxSliderNameStr)
{ {
Create(parent, id, value, minValue, maxValue, pos, size, style, validator, name); Create(parent, id, value, minValue, maxValue, pos, size, style, validator, name);
@ -42,7 +48,13 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = wxSL_HORIZONTAL, long style = wxSL_HORIZONTAL,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxSliderNameStr); const wxString& name = wxSliderNameStr);
virtual int GetValue() const ; virtual int GetValue() const ;

View File

@ -24,7 +24,13 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxTextCtrlNameStr) const wxString& name = wxTextCtrlNameStr)
{ {
Create(parent, id, value, pos, size, style, validator, name); Create(parent, id, value, pos, size, style, validator, name);
@ -35,7 +41,13 @@ public:
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
#if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif
const wxString& name = wxTextCtrlNameStr); const wxString& name = wxTextCtrlNameStr);
// implement base class pure virtuals // implement base class pure virtuals

View File

@ -134,11 +134,9 @@ private:
// in order to avoid any overhead under !MSW make all wxCriticalSection class // in order to avoid any overhead under !MSW make all wxCriticalSection class
// functions inline - but this can't be done under MSW // functions inline - but this can't be done under MSW
#if defined(__WXMSW__) #if defined(__WXMSW__) || defined(__WXPM__)
class WXDLLEXPORT wxCriticalSectionInternal; class WXDLLEXPORT wxCriticalSectionInternal;
#define WXCRITICAL_INLINE #define WXCRITICAL_INLINE
#elif defined(__WXPM__)
#define WXCRITICAL_INLINE
#else // !MSW && !PM #else // !MSW && !PM
#define WXCRITICAL_INLINE inline #define WXCRITICAL_INLINE inline
#endif // MSW/!MSW #endif // MSW/!MSW
@ -162,7 +160,7 @@ private:
wxCriticalSection(const wxCriticalSection&); wxCriticalSection(const wxCriticalSection&);
wxCriticalSection& operator=(const wxCriticalSection&); wxCriticalSection& operator=(const wxCriticalSection&);
#if defined(__WXMSW__) #if defined(__WXMSW__) || defined(__WXPM__)
wxCriticalSectionInternal *m_critsect; wxCriticalSectionInternal *m_critsect;
#else // !MSW #else // !MSW
wxMutex m_mutex; wxMutex m_mutex;
@ -409,9 +407,6 @@ public:
// returns TRUE if the main thread has GUI lock // returns TRUE if the main thread has GUI lock
extern bool WXDLLEXPORT wxGuiOwnedByMainThread(); extern bool WXDLLEXPORT wxGuiOwnedByMainThread();
inline wxCriticalSection::wxCriticalSection() { }
inline wxCriticalSection::~wxCriticalSection() { }
#else // !MSW && !PM #else // !MSW && !PM
// implement wxCriticalSection using mutexes // implement wxCriticalSection using mutexes
inline wxCriticalSection::wxCriticalSection() { } inline wxCriticalSection::wxCriticalSection() { }

View File

@ -82,7 +82,11 @@ private:
DECLARE_DYNAMIC_CLASS(wxValidator) DECLARE_DYNAMIC_CLASS(wxValidator)
}; };
#if defined(__VISAGECPP__)
WXDLLEXPORT_DATA(extern const wxValidator*) wxDefaultValidator;
#else
WXDLLEXPORT_DATA(extern const wxValidator) wxDefaultValidator; WXDLLEXPORT_DATA(extern const wxValidator) wxDefaultValidator;
#endif
#endif // wxUSE_VALIDATORS #endif // wxUSE_VALIDATORS

View File

@ -122,7 +122,11 @@ public:
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
#if wxUSE_VALIDATORS #if wxUSE_VALIDATORS
# if defined(__VISAGECPP__)
const wxValidator* validator = wxDefaultValidator,
# else
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
# endif
#endif // wxUSE_VALIDATORS #endif // wxUSE_VALIDATORS
const wxString& name = wxPanelNameStr); const wxString& name = wxPanelNameStr);
@ -376,7 +380,11 @@ public:
#if wxUSE_VALIDATORS #if wxUSE_VALIDATORS
// a window may have an associated validator which is used to control // a window may have an associated validator which is used to control
// user input // user input
# if defined(__VISAGECPP__)
virtual void SetValidator( const wxValidator *validator );
# else
virtual void SetValidator( const wxValidator &validator ); virtual void SetValidator( const wxValidator &validator );
# endif
virtual wxValidator *GetValidator() { return m_windowValidator; } virtual wxValidator *GetValidator() { return m_windowValidator; }
#endif // wxUSE_VALIDATORS #endif // wxUSE_VALIDATORS