undisable many warnings for VC++ in defs.h and fixed several thousands of them in the sources
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -74,10 +74,13 @@ protected:
|
|||||||
// the margins around the bitmap
|
// the margins around the bitmap
|
||||||
int m_marginX,
|
int m_marginX,
|
||||||
m_marginY;
|
m_marginY;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Prevent Virtual function hiding warnings
|
// Prevent Virtual function hiding warnings
|
||||||
void SetLabel(const wxString& rsLabel)
|
void SetLabel(const wxString& rsLabel)
|
||||||
{ wxWindowBase::SetLabel(rsLabel); }
|
{ wxWindowBase::SetLabel(rsLabel); }
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxBitmapButtonBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(__WXUNIVERSAL__)
|
#if defined(__WXUNIVERSAL__)
|
||||||
|
@@ -28,6 +28,9 @@ class WXDLLEXPORT wxInfoFrame : public wxFrame
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxInfoFrame(wxWindow *parent, const wxString& message);
|
wxInfoFrame(wxWindow *parent, const wxString& message);
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxInfoFrame)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -48,6 +48,8 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxButtonNameStr;
|
|||||||
class WXDLLEXPORT wxButtonBase : public wxControl
|
class WXDLLEXPORT wxButtonBase : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
wxButtonBase() { }
|
||||||
|
|
||||||
// show the image in the button in addition to the label
|
// show the image in the button in addition to the label
|
||||||
virtual void SetImageLabel(const wxBitmap& WXUNUSED(bitmap)) { }
|
virtual void SetImageLabel(const wxBitmap& WXUNUSED(bitmap)) { }
|
||||||
|
|
||||||
@@ -60,6 +62,8 @@ public:
|
|||||||
|
|
||||||
// returns the default button size for this platform
|
// returns the default button size for this platform
|
||||||
static wxSize GetDefaultSize();
|
static wxSize GetDefaultSize();
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxButtonBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(__WXUNIVERSAL__)
|
#if defined(__WXUNIVERSAL__)
|
||||||
|
@@ -178,7 +178,7 @@ private:
|
|||||||
wxDateTime m_date;
|
wxDateTime m_date;
|
||||||
wxDateTime::WeekDay m_wday;
|
wxDateTime::WeekDay m_wday;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxCalendarEvent)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxCalendarEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -27,11 +27,16 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxCheckBoxNameStr;
|
|||||||
class WXDLLEXPORT wxCheckBoxBase : public wxControl
|
class WXDLLEXPORT wxCheckBoxBase : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
wxCheckBoxBase() { }
|
||||||
|
|
||||||
// set/get the checked status of the listbox
|
// set/get the checked status of the listbox
|
||||||
virtual void SetValue(bool value) = 0;
|
virtual void SetValue(bool value) = 0;
|
||||||
virtual bool GetValue() const = 0;
|
virtual bool GetValue() const = 0;
|
||||||
|
|
||||||
bool IsChecked() const { return GetValue(); }
|
bool IsChecked() const { return GetValue(); }
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxCheckBoxBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(__WXUNIVERSAL__)
|
#if defined(__WXUNIVERSAL__)
|
||||||
|
@@ -23,9 +23,13 @@
|
|||||||
class WXDLLEXPORT wxCheckListBoxBase : public wxListBox
|
class WXDLLEXPORT wxCheckListBoxBase : public wxListBox
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
wxCheckListBoxBase() { }
|
||||||
|
|
||||||
// check list box specific methods
|
// check list box specific methods
|
||||||
virtual bool IsChecked(size_t item) const = 0;
|
virtual bool IsChecked(size_t item) const = 0;
|
||||||
virtual void Check(size_t item, bool check = TRUE) = 0;
|
virtual void Check(size_t item, bool check = TRUE) = 0;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxCheckListBoxBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(__WXUNIVERSAL__)
|
#if defined(__WXUNIVERSAL__)
|
||||||
|
@@ -37,9 +37,11 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxChoiceNameStr;
|
|||||||
class WXDLLEXPORT wxChoiceBase : public wxControlWithItems
|
class WXDLLEXPORT wxChoiceBase : public wxControlWithItems
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// all generic methods are in wxControlWithItems
|
wxChoiceBase() { }
|
||||||
virtual ~wxChoiceBase();
|
virtual ~wxChoiceBase();
|
||||||
|
|
||||||
|
// all generic methods are in wxControlWithItems
|
||||||
|
|
||||||
// single selection logic
|
// single selection logic
|
||||||
virtual void SetSelection(int n) = 0;
|
virtual void SetSelection(int n) = 0;
|
||||||
virtual bool SetStringSelection(const wxString& s);
|
virtual bool SetStringSelection(const wxString& s);
|
||||||
@@ -54,6 +56,9 @@ public:
|
|||||||
|
|
||||||
// emulate selecting the item event.GetInt()
|
// emulate selecting the item event.GetInt()
|
||||||
void Command(wxCommandEvent& event);
|
void Command(wxCommandEvent& event);
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxChoiceBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -35,6 +35,8 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxControlNameStr;
|
|||||||
class WXDLLEXPORT wxControlBase : public wxWindow
|
class WXDLLEXPORT wxControlBase : public wxWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
wxControlBase() { }
|
||||||
|
|
||||||
virtual ~wxControlBase();
|
virtual ~wxControlBase();
|
||||||
|
|
||||||
// Create() function adds the validator parameter
|
// Create() function adds the validator parameter
|
||||||
@@ -68,6 +70,8 @@ protected:
|
|||||||
|
|
||||||
// initialize the common fields of wxCommandEvent
|
// initialize the common fields of wxCommandEvent
|
||||||
void InitCommandEvent(wxCommandEvent& event) const;
|
void InitCommandEvent(wxCommandEvent& event) const;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxControlBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -79,7 +79,7 @@ public:
|
|||||||
void OnContextHelp(wxCommandEvent& event);
|
void OnContextHelp(wxCommandEvent& event);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_CLASS(wxContextHelpButton)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxContextHelpButton)
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -161,6 +161,9 @@ public:
|
|||||||
{
|
{
|
||||||
return wxItemContainer::GetClientObject(n);
|
return wxItemContainer::GetClientObject(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxControlWithItems);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_CONTROLS
|
#endif // wxUSE_CONTROLS
|
||||||
|
@@ -241,6 +241,8 @@ public:
|
|||||||
private:
|
private:
|
||||||
// the one and only format we support
|
// the one and only format we support
|
||||||
wxDataFormat m_format;
|
wxDataFormat m_format;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxDataObjectSimple)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -294,6 +296,8 @@ private:
|
|||||||
// the index of the preferred one (0 initially, so by default the first
|
// the index of the preferred one (0 initially, so by default the first
|
||||||
// one is the preferred)
|
// one is the preferred)
|
||||||
size_t m_preferred;
|
size_t m_preferred;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxDataObjectComposite)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@@ -341,6 +345,8 @@ private:
|
|||||||
{ return(wxDataObjectSimple::GetDataHere(format, pBuf)); }
|
{ return(wxDataObjectSimple::GetDataHere(format, pBuf)); }
|
||||||
bool SetData(const wxDataFormat& format, size_t nLen, const void* pBuf)
|
bool SetData(const wxDataFormat& format, size_t nLen, const void* pBuf)
|
||||||
{ return(wxDataObjectSimple::SetData(format, nLen, pBuf)); }
|
{ return(wxDataObjectSimple::SetData(format, nLen, pBuf)); }
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxTextDataObject)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -364,6 +370,8 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxBitmap m_bitmap;
|
wxBitmap m_bitmap;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxBitmapDataObjectBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -395,6 +403,8 @@ private:
|
|||||||
{ return(wxDataObjectSimple::GetDataSize(format)); }
|
{ return(wxDataObjectSimple::GetDataSize(format)); }
|
||||||
bool GetDataHere(const wxDataFormat& format, void* pBuf) const
|
bool GetDataHere(const wxDataFormat& format, void* pBuf) const
|
||||||
{ return(wxDataObjectSimple::GetDataHere(format, pBuf)); }
|
{ return(wxDataObjectSimple::GetDataHere(format, pBuf)); }
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxFileDataObjectBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -1490,8 +1490,9 @@ inline bool wxDateTime::SetToLastWeekDay(WeekDay weekday,
|
|||||||
return SetToWeekDay(weekday, -1, month, year);
|
return SetToWeekDay(weekday, -1, month, year);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline wxDateTime wxDateTime::GetWeekDayInSameWeek(WeekDay weekday,
|
inline wxDateTime
|
||||||
WeekFlags flags) const
|
wxDateTime::GetWeekDayInSameWeek(WeekDay weekday,
|
||||||
|
WeekFlags WXUNUSED(flags)) const
|
||||||
{
|
{
|
||||||
MODIFY_AND_RETURN( SetToWeekDayInSameWeek(weekday) );
|
MODIFY_AND_RETURN( SetToWeekDayInSameWeek(weekday) );
|
||||||
}
|
}
|
||||||
|
@@ -790,6 +790,8 @@ private:
|
|||||||
wxDC& m_dc;
|
wxDC& m_dc;
|
||||||
|
|
||||||
wxColour m_colFgOld;
|
wxColour m_colFgOld;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxDCTextColourChanger)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -809,6 +811,8 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
wxDC& m_dc;
|
wxDC& m_dc;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxDCClipper)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -98,6 +98,8 @@ public:
|
|||||||
// default copy ctor ok.
|
// default copy ctor ok.
|
||||||
|
|
||||||
~wxBufferedPaintDC();
|
~wxBufferedPaintDC();
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxBufferedPaintDC)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -278,6 +278,8 @@ private:
|
|||||||
wxMirrorDC& m_dc;
|
wxMirrorDC& m_dc;
|
||||||
|
|
||||||
bool m_mirror;
|
bool m_mirror;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxMirrorDC)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _WX_DCMIRROR_H_
|
#endif // _WX_DCMIRROR_H_
|
||||||
|
@@ -54,13 +54,10 @@
|
|||||||
|
|
||||||
// suppress some Visual C++ warnings
|
// suppress some Visual C++ warnings
|
||||||
#ifdef __VISUALC__
|
#ifdef __VISUALC__
|
||||||
|
// the only "real" warning here is 4244 but there arej ust too many of them
|
||||||
|
// in our code... one day someone should go and fix them but until then...
|
||||||
# pragma warning(disable:4201) // nonstandard extension used: nameless struct/union
|
# pragma warning(disable:4201) // nonstandard extension used: nameless struct/union
|
||||||
# pragma warning(disable:4244) // conversion from double to float
|
# pragma warning(disable:4244) // conversion from double to float
|
||||||
# pragma warning(disable:4100) // unreferenced formal parameter
|
|
||||||
# pragma warning(disable:4511) // copy ctor couldn't be generated
|
|
||||||
# pragma warning(disable:4512) // operator=() couldn't be generated
|
|
||||||
# pragma warning(disable:4699) // using precompiled header
|
|
||||||
# pragma warning(disable:4134) // conversion between pointers to members of same class
|
|
||||||
# pragma warning(disable:4710) // function not inlined
|
# pragma warning(disable:4710) // function not inlined
|
||||||
# pragma warning(disable:4097) // typedef used as class
|
# pragma warning(disable:4097) // typedef used as class
|
||||||
#ifndef WIN32
|
#ifndef WIN32
|
||||||
|
@@ -50,6 +50,7 @@ protected:
|
|||||||
// the return code from modal dialog
|
// the return code from modal dialog
|
||||||
int m_returnCode;
|
int m_returnCode;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxDialogBase)
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
WX_DECLARE_CONTROL_CONTAINER();
|
WX_DECLARE_CONTROL_CONTAINER();
|
||||||
};
|
};
|
||||||
|
@@ -231,6 +231,9 @@ public:
|
|||||||
virtual bool OnDropText(wxCoord x, wxCoord y, const wxString& text) = 0;
|
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);
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxTextDropTarget)
|
||||||
};
|
};
|
||||||
|
|
||||||
// A drop target which accepts files (dragged from File Manager or Explorer)
|
// A drop target which accepts files (dragged from File Manager or Explorer)
|
||||||
@@ -244,6 +247,9 @@ public:
|
|||||||
const wxArrayString& filenames) = 0;
|
const wxArrayString& filenames) = 0;
|
||||||
|
|
||||||
virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def);
|
virtual wxDragResult OnData(wxCoord x, wxCoord y, wxDragResult def);
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxFileDropTarget)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_DRAG_AND_DROP
|
#endif // wxUSE_DRAG_AND_DROP
|
||||||
|
@@ -459,6 +459,8 @@ public:
|
|||||||
private:
|
private:
|
||||||
wxEvent& m_event;
|
wxEvent& m_event;
|
||||||
int m_propagationLevelOld;
|
int m_propagationLevelOld;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxPropagationDisabler)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -482,6 +484,8 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
wxEvent& m_event;
|
wxEvent& m_event;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxPropagateOnce)
|
||||||
};
|
};
|
||||||
|
|
||||||
#if wxUSE_GUI
|
#if wxUSE_GUI
|
||||||
@@ -508,9 +512,6 @@ private:
|
|||||||
|
|
||||||
class WXDLLIMPEXP_CORE wxCommandEvent : public wxEvent
|
class WXDLLIMPEXP_CORE wxCommandEvent : public wxEvent
|
||||||
{
|
{
|
||||||
private:
|
|
||||||
wxCommandEvent& operator=(const wxCommandEvent& event);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxCommandEvent(wxEventType commandType = wxEVT_NULL, int winid = 0);
|
wxCommandEvent(wxEventType commandType = wxEVT_NULL, int winid = 0);
|
||||||
|
|
||||||
@@ -564,7 +565,7 @@ public:
|
|||||||
wxClientData* m_clientObject; // Arbitrary client object
|
wxClientData* m_clientObject; // Arbitrary client object
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxCommandEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxCommandEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// this class adds a possibility to react (from the user) code to a control
|
// this class adds a possibility to react (from the user) code to a control
|
||||||
@@ -595,7 +596,7 @@ private:
|
|||||||
bool m_bAllow;
|
bool m_bAllow;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxNotifyEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxNotifyEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Scroll event class, derived form wxCommandEvent. wxScrollEvents are
|
// Scroll event class, derived form wxCommandEvent. wxScrollEvents are
|
||||||
@@ -626,7 +627,7 @@ public:
|
|||||||
virtual wxEvent *Clone() const { return new wxScrollEvent(*this); }
|
virtual wxEvent *Clone() const { return new wxScrollEvent(*this); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxScrollEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxScrollEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ScrollWin event class, derived fom wxEvent. wxScrollWinEvents
|
// ScrollWin event class, derived fom wxEvent. wxScrollWinEvents
|
||||||
@@ -663,7 +664,7 @@ public:
|
|||||||
long m_extraLong;
|
long m_extraLong;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxScrollWinEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxScrollWinEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Mouse event class
|
// Mouse event class
|
||||||
@@ -904,7 +905,7 @@ private:
|
|||||||
wxCursor m_cursor;
|
wxCursor m_cursor;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxSetCursorEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxSetCursorEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Keyboard input event class
|
// Keyboard input event class
|
||||||
@@ -1051,7 +1052,7 @@ public:
|
|||||||
wxRect m_rect; // Used for wxEVT_SIZING
|
wxRect m_rect; // Used for wxEVT_SIZING
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxSizeEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxSizeEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Move event class
|
// Move event class
|
||||||
@@ -1088,7 +1089,7 @@ public:
|
|||||||
wxRect m_rect;
|
wxRect m_rect;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxMoveEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxMoveEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Paint event class
|
// Paint event class
|
||||||
@@ -1125,7 +1126,7 @@ public:
|
|||||||
virtual wxEvent *Clone() const { return new wxPaintEvent(*this); }
|
virtual wxEvent *Clone() const { return new wxPaintEvent(*this); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxPaintEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxPaintEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
class WXDLLIMPEXP_CORE wxNcPaintEvent : public wxEvent
|
class WXDLLIMPEXP_CORE wxNcPaintEvent : public wxEvent
|
||||||
@@ -1138,7 +1139,7 @@ public:
|
|||||||
virtual wxEvent *Clone() const { return new wxNcPaintEvent(*this); }
|
virtual wxEvent *Clone() const { return new wxNcPaintEvent(*this); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxNcPaintEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxNcPaintEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Erase background event class
|
// Erase background event class
|
||||||
@@ -1148,9 +1149,6 @@ private:
|
|||||||
|
|
||||||
class WXDLLIMPEXP_CORE wxEraseEvent : public wxEvent
|
class WXDLLIMPEXP_CORE wxEraseEvent : public wxEvent
|
||||||
{
|
{
|
||||||
private:
|
|
||||||
wxEraseEvent& operator=(const wxEraseEvent& event);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxEraseEvent(int Id = 0, wxDC *dc = (wxDC *) NULL)
|
wxEraseEvent(int Id = 0, wxDC *dc = (wxDC *) NULL)
|
||||||
: wxEvent(Id, wxEVT_ERASE_BACKGROUND),
|
: wxEvent(Id, wxEVT_ERASE_BACKGROUND),
|
||||||
@@ -1169,7 +1167,7 @@ public:
|
|||||||
wxDC *m_dc;
|
wxDC *m_dc;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxEraseEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxEraseEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Focus event class
|
// Focus event class
|
||||||
@@ -1180,9 +1178,6 @@ private:
|
|||||||
|
|
||||||
class WXDLLIMPEXP_CORE wxFocusEvent : public wxEvent
|
class WXDLLIMPEXP_CORE wxFocusEvent : public wxEvent
|
||||||
{
|
{
|
||||||
private:
|
|
||||||
wxFocusEvent& operator=(const wxFocusEvent& event);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxFocusEvent(wxEventType type = wxEVT_NULL, int winid = 0)
|
wxFocusEvent(wxEventType type = wxEVT_NULL, int winid = 0)
|
||||||
: wxEvent(winid, type)
|
: wxEvent(winid, type)
|
||||||
@@ -1204,7 +1199,7 @@ private:
|
|||||||
wxWindow *m_win;
|
wxWindow *m_win;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxFocusEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxFocusEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// wxChildFocusEvent notifies the parent that a child has got the focus: unlike
|
// wxChildFocusEvent notifies the parent that a child has got the focus: unlike
|
||||||
@@ -1219,7 +1214,7 @@ public:
|
|||||||
virtual wxEvent *Clone() const { return new wxChildFocusEvent(*this); }
|
virtual wxEvent *Clone() const { return new wxChildFocusEvent(*this); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxChildFocusEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxChildFocusEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Activate event class
|
// Activate event class
|
||||||
@@ -1246,7 +1241,7 @@ private:
|
|||||||
bool m_active;
|
bool m_active;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxActivateEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxActivateEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// InitDialog event class
|
// InitDialog event class
|
||||||
@@ -1264,7 +1259,7 @@ public:
|
|||||||
virtual wxEvent *Clone() const { return new wxInitDialogEvent(*this); }
|
virtual wxEvent *Clone() const { return new wxInitDialogEvent(*this); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxInitDialogEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxInitDialogEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Miscellaneous menu event class
|
// Miscellaneous menu event class
|
||||||
@@ -1279,7 +1274,7 @@ class WXDLLIMPEXP_CORE wxMenuEvent : public wxEvent
|
|||||||
public:
|
public:
|
||||||
wxMenuEvent(wxEventType type = wxEVT_NULL, int winid = 0, wxMenu* menu = NULL)
|
wxMenuEvent(wxEventType type = wxEVT_NULL, int winid = 0, wxMenu* menu = NULL)
|
||||||
: wxEvent(winid, type)
|
: wxEvent(winid, type)
|
||||||
{ m_menuId = winid; m_menu = NULL; }
|
{ m_menuId = winid; m_menu = menu; }
|
||||||
wxMenuEvent(const wxMenuEvent & event)
|
wxMenuEvent(const wxMenuEvent & event)
|
||||||
: wxEvent(event)
|
: wxEvent(event)
|
||||||
{ m_menuId = event.m_menuId; m_menu = event.m_menu; }
|
{ m_menuId = event.m_menuId; m_menu = event.m_menu; }
|
||||||
@@ -1299,7 +1294,7 @@ private:
|
|||||||
int m_menuId;
|
int m_menuId;
|
||||||
wxMenu* m_menu;
|
wxMenu* m_menu;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxMenuEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxMenuEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Window close or session close event class
|
// Window close or session close event class
|
||||||
@@ -1368,7 +1363,7 @@ protected:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxCloseEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxCloseEvent)
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1395,7 +1390,7 @@ protected:
|
|||||||
bool m_show;
|
bool m_show;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxShowEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxShowEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1421,7 +1416,7 @@ protected:
|
|||||||
bool m_iconized;
|
bool m_iconized;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxIconizeEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxIconizeEvent)
|
||||||
};
|
};
|
||||||
/*
|
/*
|
||||||
wxEVT_MAXIMIZE
|
wxEVT_MAXIMIZE
|
||||||
@@ -1437,7 +1432,7 @@ public:
|
|||||||
virtual wxEvent *Clone() const { return new wxMaximizeEvent(*this); }
|
virtual wxEvent *Clone() const { return new wxMaximizeEvent(*this); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxMaximizeEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxMaximizeEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Joystick event class
|
// Joystick event class
|
||||||
@@ -1535,7 +1530,7 @@ public:
|
|||||||
virtual wxEvent *Clone() const { return new wxJoystickEvent(*this); }
|
virtual wxEvent *Clone() const { return new wxJoystickEvent(*this); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxJoystickEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxJoystickEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Drop files event class
|
// Drop files event class
|
||||||
@@ -1545,9 +1540,6 @@ private:
|
|||||||
|
|
||||||
class WXDLLIMPEXP_CORE wxDropFilesEvent : public wxEvent
|
class WXDLLIMPEXP_CORE wxDropFilesEvent : public wxEvent
|
||||||
{
|
{
|
||||||
private:
|
|
||||||
wxDropFilesEvent& operator=(const wxDropFilesEvent& event);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
int m_noFiles;
|
int m_noFiles;
|
||||||
wxPoint m_pos;
|
wxPoint m_pos;
|
||||||
@@ -1588,7 +1580,7 @@ public:
|
|||||||
virtual wxEvent *Clone() const { return new wxDropFilesEvent(*this); }
|
virtual wxEvent *Clone() const { return new wxDropFilesEvent(*this); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxDropFilesEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxDropFilesEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Update UI event
|
// Update UI event
|
||||||
@@ -1681,7 +1673,7 @@ protected:
|
|||||||
static wxUpdateUIMode sm_updateMode;
|
static wxUpdateUIMode sm_updateMode;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxUpdateUIEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxUpdateUIEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1699,7 +1691,7 @@ public:
|
|||||||
virtual wxEvent *Clone() const { return new wxSysColourChangedEvent(*this); }
|
virtual wxEvent *Clone() const { return new wxSysColourChangedEvent(*this); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxSysColourChangedEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxSysColourChangedEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1710,9 +1702,6 @@ private:
|
|||||||
|
|
||||||
class WXDLLIMPEXP_CORE wxMouseCaptureChangedEvent : public wxEvent
|
class WXDLLIMPEXP_CORE wxMouseCaptureChangedEvent : public wxEvent
|
||||||
{
|
{
|
||||||
private:
|
|
||||||
wxMouseCaptureChangedEvent operator=(const wxMouseCaptureChangedEvent& event);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxMouseCaptureChangedEvent(wxWindowID winid = 0, wxWindow* gainedCapture = NULL)
|
wxMouseCaptureChangedEvent(wxWindowID winid = 0, wxWindow* gainedCapture = NULL)
|
||||||
: wxEvent(winid, wxEVT_MOUSE_CAPTURE_CHANGED),
|
: wxEvent(winid, wxEVT_MOUSE_CAPTURE_CHANGED),
|
||||||
@@ -1730,7 +1719,8 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
wxWindow* m_gainedCapture;
|
wxWindow* m_gainedCapture;
|
||||||
DECLARE_DYNAMIC_CLASS(wxMouseCaptureChangedEvent)
|
|
||||||
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxMouseCaptureChangedEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1739,7 +1729,7 @@ private:
|
|||||||
class WXDLLIMPEXP_CORE wxDisplayChangedEvent : public wxEvent
|
class WXDLLIMPEXP_CORE wxDisplayChangedEvent : public wxEvent
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxDisplayChangedEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxDisplayChangedEvent)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxDisplayChangedEvent()
|
wxDisplayChangedEvent()
|
||||||
@@ -1755,9 +1745,6 @@ public:
|
|||||||
|
|
||||||
class WXDLLIMPEXP_CORE wxPaletteChangedEvent : public wxEvent
|
class WXDLLIMPEXP_CORE wxPaletteChangedEvent : public wxEvent
|
||||||
{
|
{
|
||||||
private:
|
|
||||||
wxPaletteChangedEvent& operator=(const wxPaletteChangedEvent& event);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxPaletteChangedEvent(wxWindowID winid = 0)
|
wxPaletteChangedEvent(wxWindowID winid = 0)
|
||||||
: wxEvent(winid, wxEVT_PALETTE_CHANGED),
|
: wxEvent(winid, wxEVT_PALETTE_CHANGED),
|
||||||
@@ -1778,7 +1765,7 @@ protected:
|
|||||||
wxWindow* m_changedWindow;
|
wxWindow* m_changedWindow;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxPaletteChangedEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxPaletteChangedEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1808,7 +1795,7 @@ protected:
|
|||||||
bool m_paletteRealized;
|
bool m_paletteRealized;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxQueryNewPaletteEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxQueryNewPaletteEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1818,9 +1805,6 @@ private:
|
|||||||
// NB: don't derive from command event to avoid being propagated to the parent
|
// NB: don't derive from command event to avoid being propagated to the parent
|
||||||
class WXDLLIMPEXP_CORE wxNavigationKeyEvent : public wxEvent
|
class WXDLLIMPEXP_CORE wxNavigationKeyEvent : public wxEvent
|
||||||
{
|
{
|
||||||
private:
|
|
||||||
wxNavigationKeyEvent& operator=(const wxNavigationKeyEvent& event);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxNavigationKeyEvent()
|
wxNavigationKeyEvent()
|
||||||
: wxEvent(0, wxEVT_NAVIGATION_KEY),
|
: wxEvent(0, wxEVT_NAVIGATION_KEY),
|
||||||
@@ -1874,7 +1858,7 @@ private:
|
|||||||
wxWindow *m_focus;
|
wxWindow *m_focus;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxNavigationKeyEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxNavigationKeyEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Window creation/destruction events: the first is sent as soon as window is
|
// Window creation/destruction events: the first is sent as soon as window is
|
||||||
@@ -1897,7 +1881,7 @@ public:
|
|||||||
virtual wxEvent *Clone() const { return new wxWindowCreateEvent(*this); }
|
virtual wxEvent *Clone() const { return new wxWindowCreateEvent(*this); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxWindowCreateEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxWindowCreateEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
class WXDLLIMPEXP_CORE wxWindowDestroyEvent : public wxCommandEvent
|
class WXDLLIMPEXP_CORE wxWindowDestroyEvent : public wxCommandEvent
|
||||||
@@ -1910,7 +1894,7 @@ public:
|
|||||||
virtual wxEvent *Clone() const { return new wxWindowDestroyEvent(*this); }
|
virtual wxEvent *Clone() const { return new wxWindowDestroyEvent(*this); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxWindowDestroyEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxWindowDestroyEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// A help event is sent when the user clicks on a window in context-help mode.
|
// A help event is sent when the user clicks on a window in context-help mode.
|
||||||
@@ -1955,7 +1939,7 @@ protected:
|
|||||||
wxString m_link;
|
wxString m_link;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxHelpEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxHelpEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// A Context event is sent when the user right clicks on a window or
|
// A Context event is sent when the user right clicks on a window or
|
||||||
@@ -1990,7 +1974,7 @@ protected:
|
|||||||
wxPoint m_pos;
|
wxPoint m_pos;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxContextMenuEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxContextMenuEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Idle event
|
// Idle event
|
||||||
@@ -2045,7 +2029,7 @@ protected:
|
|||||||
static wxIdleMode sm_idleMode;
|
static wxIdleMode sm_idleMode;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxIdleEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxIdleEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_GUI
|
#endif // wxUSE_GUI
|
||||||
@@ -2138,6 +2122,9 @@ struct WXDLLIMPEXP_BASE wxEventTableEntry : public wxEventTableEntryBase
|
|||||||
// objects will have been initialized (including the event type constants)
|
// objects will have been initialized (including the event type constants)
|
||||||
// and so it will have the correct value when it is needed
|
// and so it will have the correct value when it is needed
|
||||||
const int& m_eventType;
|
const int& m_eventType;
|
||||||
|
|
||||||
|
private:
|
||||||
|
wxEventTableEntry& operator=(const wxEventTableEntry&);
|
||||||
};
|
};
|
||||||
|
|
||||||
class WXDLLIMPEXP_BASE wxEvtHandler;
|
class WXDLLIMPEXP_BASE wxEvtHandler;
|
||||||
@@ -2161,6 +2148,8 @@ struct WXDLLIMPEXP_BASE wxDynamicEventTableEntry : public wxEventTableEntryBase
|
|||||||
// EventFunction is always a member of the EventHandler receiving the
|
// EventFunction is always a member of the EventHandler receiving the
|
||||||
// message
|
// message
|
||||||
wxEvtHandler* m_eventSink;
|
wxEvtHandler* m_eventSink;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxDynamicEventTableEntry)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // !WXWIN_COMPATIBILITY_EVENT_TYPES
|
#endif // !WXWIN_COMPATIBILITY_EVENT_TYPES
|
||||||
@@ -2223,6 +2212,8 @@ protected:
|
|||||||
|
|
||||||
size_t m_size;
|
size_t m_size;
|
||||||
EventTypeTablePointer *m_eventTypeTable;
|
EventTypeTablePointer *m_eventTypeTable;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxEventHashTable)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -2389,8 +2380,7 @@ protected:
|
|||||||
virtual void *DoGetClientData() const;
|
virtual void *DoGetClientData() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_NO_COPY_CLASS(wxEvtHandler)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxEvtHandler)
|
||||||
DECLARE_DYNAMIC_CLASS(wxEvtHandler)
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Post a message to the given eventhandler which will be processed during the
|
// Post a message to the given eventhandler which will be processed during the
|
||||||
|
@@ -163,7 +163,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
wxString m_strReplace;
|
wxString m_strReplace;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxFindDialogEvent)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxFindDialogEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
BEGIN_DECLARE_EVENT_TYPES()
|
BEGIN_DECLARE_EVENT_TYPES()
|
||||||
|
@@ -57,6 +57,8 @@ protected:
|
|||||||
{ if ( data ) m_fontData = *data; }
|
{ if ( data ) m_fontData = *data; }
|
||||||
|
|
||||||
wxFontData m_fontData;
|
wxFontData m_fontData;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxFontDialogBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -31,6 +31,7 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr;
|
|||||||
class WXDLLEXPORT wxGaugeBase : public wxControl
|
class WXDLLEXPORT wxGaugeBase : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
wxGaugeBase() { }
|
||||||
virtual ~wxGaugeBase();
|
virtual ~wxGaugeBase();
|
||||||
|
|
||||||
bool Create(wxWindow *parent,
|
bool Create(wxWindow *parent,
|
||||||
@@ -67,6 +68,8 @@ protected:
|
|||||||
|
|
||||||
// the current position
|
// the current position
|
||||||
int m_gaugePos;
|
int m_gaugePos;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxGaugeBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(__WXUNIVERSAL__)
|
#if defined(__WXUNIVERSAL__)
|
||||||
|
@@ -131,7 +131,7 @@ protected:
|
|||||||
wxString m_stringSelection;
|
wxString m_stringSelection;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxSingleChoiceDialog)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxSingleChoiceDialog)
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -173,7 +173,7 @@ protected:
|
|||||||
wxArrayInt m_selections;
|
wxArrayInt m_selections;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxMultiChoiceDialog)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxMultiChoiceDialog)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -430,6 +430,8 @@ protected:
|
|||||||
private:
|
private:
|
||||||
size_t m_maxChars; // max number of chars allowed
|
size_t m_maxChars; // max number of chars allowed
|
||||||
wxString m_startValue;
|
wxString m_startValue;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxGridCellTextEditor)
|
||||||
};
|
};
|
||||||
|
|
||||||
// the editor for numeric (long) data
|
// the editor for numeric (long) data
|
||||||
@@ -475,6 +477,8 @@ private:
|
|||||||
m_max;
|
m_max;
|
||||||
|
|
||||||
long m_valueOld;
|
long m_valueOld;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxGridCellNumberEditor)
|
||||||
};
|
};
|
||||||
|
|
||||||
// the editor for floating point numbers (double) data
|
// the editor for floating point numbers (double) data
|
||||||
@@ -508,6 +512,8 @@ private:
|
|||||||
int m_width,
|
int m_width,
|
||||||
m_precision;
|
m_precision;
|
||||||
double m_valueOld;
|
double m_valueOld;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxGridCellFloatEditor)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_TEXTCTRL
|
#endif // wxUSE_TEXTCTRL
|
||||||
@@ -518,6 +524,8 @@ private:
|
|||||||
class WXDLLEXPORT wxGridCellBoolEditor : public wxGridCellEditor
|
class WXDLLEXPORT wxGridCellBoolEditor : public wxGridCellEditor
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
wxGridCellBoolEditor() { }
|
||||||
|
|
||||||
virtual void Create(wxWindow* parent,
|
virtual void Create(wxWindow* parent,
|
||||||
wxWindowID id,
|
wxWindowID id,
|
||||||
wxEvtHandler* evtHandler);
|
wxEvtHandler* evtHandler);
|
||||||
@@ -543,6 +551,8 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_startValue;
|
bool m_startValue;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxGridCellBoolEditor)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_CHECKBOX
|
#endif // wxUSE_CHECKBOX
|
||||||
@@ -586,6 +596,8 @@ protected:
|
|||||||
wxString m_startValue;
|
wxString m_startValue;
|
||||||
wxArrayString m_choices;
|
wxArrayString m_choices;
|
||||||
bool m_allowOthers;
|
bool m_allowOthers;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxGridCellChoiceEditor)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_COMBOBOX
|
#endif // wxUSE_COMBOBOX
|
||||||
@@ -974,7 +986,7 @@ private:
|
|||||||
wxArrayString m_rowLabels;
|
wxArrayString m_rowLabels;
|
||||||
wxArrayString m_colLabels;
|
wxArrayString m_colLabels;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS( wxGridStringTable )
|
DECLARE_DYNAMIC_CLASS_NO_COPY( wxGridStringTable )
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -1937,7 +1949,7 @@ protected:
|
|||||||
bool m_shift;
|
bool m_shift;
|
||||||
bool m_alt;
|
bool m_alt;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxGridEvent)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxGridEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
class WXDLLEXPORT wxGridSizeEvent : public wxNotifyEvent
|
class WXDLLEXPORT wxGridSizeEvent : public wxNotifyEvent
|
||||||
@@ -1969,7 +1981,7 @@ protected:
|
|||||||
bool m_shift;
|
bool m_shift;
|
||||||
bool m_alt;
|
bool m_alt;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxGridSizeEvent)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxGridSizeEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -2016,7 +2028,7 @@ protected:
|
|||||||
bool m_shift;
|
bool m_shift;
|
||||||
bool m_alt;
|
bool m_alt;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxGridRangeSelectEvent)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxGridRangeSelectEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -110,6 +110,8 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
long int m_startint;
|
long int m_startint;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxGridCellEnumEditor)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_COMBOBOX
|
#endif // wxUSE_COMBOBOX
|
||||||
@@ -124,6 +126,8 @@ public:
|
|||||||
|
|
||||||
virtual wxGridCellEditor *Clone() const
|
virtual wxGridCellEditor *Clone() const
|
||||||
{ return new wxGridCellAutoWrapStringEditor; }
|
{ return new wxGridCellAutoWrapStringEditor; }
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxGridCellAutoWrapStringEditor)
|
||||||
};
|
};
|
||||||
|
|
||||||
class WXDLLEXPORT wxGridCellAutoWrapStringRenderer : public wxGridCellStringRenderer
|
class WXDLLEXPORT wxGridCellAutoWrapStringRenderer : public wxGridCellStringRenderer
|
||||||
|
@@ -93,7 +93,7 @@ protected:
|
|||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxPanel)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxPanel)
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -94,7 +94,7 @@ protected:
|
|||||||
#endif // __WXMSW__
|
#endif // __WXMSW__
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_ABSTRACT_CLASS(wxGenericScrolledWindow)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxGenericScrolledWindow)
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -350,7 +350,7 @@ private:
|
|||||||
} pt; // position of double click for DCLICK event
|
} pt; // position of double click for DCLICK event
|
||||||
} m_data;
|
} m_data;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxSplitterEvent)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxSplitterEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef void (wxEvtHandler::*wxSplitterEventFunction)(wxSplitterEvent&);
|
typedef void (wxEvtHandler::*wxSplitterEventFunction)(wxSplitterEvent&);
|
||||||
|
@@ -584,6 +584,8 @@ private:
|
|||||||
((listclass *)m_hashTable[slot])->Append(value, data); \
|
((listclass *)m_hashTable[slot])->Append(value, data); \
|
||||||
m_count++; \
|
m_count++; \
|
||||||
} \
|
} \
|
||||||
|
\
|
||||||
|
DECLARE_NO_COPY_CLASS(hashclass) \
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -348,6 +348,8 @@ protected:
|
|||||||
|
|
||||||
wxString m_Word;
|
wxString m_Word;
|
||||||
bool m_allowLinebreak;
|
bool m_allowLinebreak;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxHtmlWordCell)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -482,6 +484,8 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
wxColour m_Colour;
|
wxColour m_Colour;
|
||||||
unsigned m_Flags;
|
unsigned m_Flags;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxHtmlColourCell)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -503,6 +507,8 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxFont m_Font;
|
wxFont m_Font;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxHtmlFontCell)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -51,6 +51,7 @@ I STRONGLY recommend reading and understanding these macros!!
|
|||||||
|
|
||||||
|
|
||||||
#define TAG_HANDLER_END(name) \
|
#define TAG_HANDLER_END(name) \
|
||||||
|
DECLARE_NO_COPY_CLASS(HTML_Handler_##name) \
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -394,7 +394,7 @@ public:
|
|||||||
wxListItem m_item;
|
wxListItem m_item;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxListEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxListEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -43,10 +43,11 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxListBoxNameStr;
|
|||||||
class WXDLLEXPORT wxListBoxBase : public wxControlWithItems
|
class WXDLLEXPORT wxListBoxBase : public wxControlWithItems
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// all generic methods are in wxControlWithItems, except for the following
|
wxListBoxBase() { }
|
||||||
// ones which are not yet implemented by wxChoice/wxCombobox
|
|
||||||
virtual ~wxListBoxBase();
|
virtual ~wxListBoxBase();
|
||||||
|
|
||||||
|
// all generic methods are in wxControlWithItems, except for the following
|
||||||
|
// ones which are not yet implemented by wxChoice/wxCombobox
|
||||||
void Insert(const wxString& item, int pos)
|
void Insert(const wxString& item, int pos)
|
||||||
{ DoInsert(item, pos); }
|
{ DoInsert(item, pos); }
|
||||||
void Insert(const wxString& item, int pos, void *clientData)
|
void Insert(const wxString& item, int pos, void *clientData)
|
||||||
@@ -117,6 +118,8 @@ protected:
|
|||||||
virtual void DoSetItems(const wxArrayString& items, void **clientData) = 0;
|
virtual void DoSetItems(const wxArrayString& items, void **clientData) = 0;
|
||||||
|
|
||||||
virtual void DoSetFirstItem(int n) = 0;
|
virtual void DoSetFirstItem(int n) = 0;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxListBoxBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -97,7 +97,7 @@ public:
|
|||||||
void ClearColumnImage(int col) { SetColumnImage(col, -1); }
|
void ClearColumnImage(int col) { SetColumnImage(col, -1); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxListView)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxListView)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_LISTCTRL
|
#endif // wxUSE_LISTCTRL
|
||||||
|
@@ -381,6 +381,9 @@ class WXDLLIMPEXP_BASE wxLogPassThrough : public wxLogChain
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxLogPassThrough();
|
wxLogPassThrough();
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxLogPassThrough)
|
||||||
};
|
};
|
||||||
|
|
||||||
#if wxUSE_GUI
|
#if wxUSE_GUI
|
||||||
|
@@ -47,6 +47,8 @@ public:
|
|||||||
0) // don't use any files
|
0) // don't use any files
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxMemoryConfig)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_CONFIG
|
#endif // wxUSE_CONFIG
|
||||||
|
@@ -43,6 +43,9 @@ protected:
|
|||||||
virtual bool OnWrite(wxTextFileType WXUNUSED(typeNew),
|
virtual bool OnWrite(wxTextFileType WXUNUSED(typeNew),
|
||||||
wxMBConv& WXUNUSED(conv) = wxConvUTF8)
|
wxMBConv& WXUNUSED(conv) = wxConvUTF8)
|
||||||
{ return TRUE; }
|
{ return TRUE; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxMemoryText)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_TEXTBUFFER
|
#endif // wxUSE_TEXTBUFFER
|
||||||
|
@@ -102,6 +102,7 @@ protected:
|
|||||||
bool m_keepGoing;
|
bool m_keepGoing;
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
DECLARE_NO_COPY_CLASS(wxApp)
|
||||||
};
|
};
|
||||||
|
|
||||||
int WXDLLEXPORT wxEntry(WXHINSTANCE hInstance, WXHINSTANCE hPrevInstance,
|
int WXDLLEXPORT wxEntry(WXHINSTANCE hInstance, WXHINSTANCE hPrevInstance,
|
||||||
|
@@ -59,7 +59,7 @@ public:
|
|||||||
virtual void DrawButtonDisable( WXHDC dc, int left, int top, int right, int bottom, bool with_marg );
|
virtual void DrawButtonDisable( WXHDC dc, int left, int top, int right, int bottom, bool with_marg );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxBitmapButton)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxBitmapButton)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -81,7 +81,7 @@ protected:
|
|||||||
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const ;
|
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const ;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxButton)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxButton)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -59,6 +59,8 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_hasCaret;
|
bool m_hasCaret;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxCaret)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _WX_CARET_H_
|
#endif // _WX_CARET_H_
|
||||||
|
@@ -54,7 +54,7 @@ protected:
|
|||||||
virtual wxSize DoGetBestSize() const;
|
virtual wxSize DoGetBestSize() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxCheckBox)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxCheckBox)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -78,7 +78,7 @@ private:
|
|||||||
size_t m_nItemHeight; // height of checklistbox items (the same for all)
|
size_t m_nItemHeight; // height of checklistbox items (the same for all)
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
DECLARE_DYNAMIC_CLASS(wxCheckListBox)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxCheckListBox)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //_CHECKLST_H
|
#endif //_CHECKLST_H
|
||||||
|
@@ -22,8 +22,6 @@
|
|||||||
|
|
||||||
class WXDLLEXPORT wxChoice : public wxChoiceBase
|
class WXDLLEXPORT wxChoice : public wxChoiceBase
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxChoice)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// ctors
|
// ctors
|
||||||
wxChoice() { }
|
wxChoice() { }
|
||||||
@@ -85,6 +83,8 @@ protected:
|
|||||||
|
|
||||||
// free all memory we have (used by Clear() and dtor)
|
// free all memory we have (used by Clear() and dtor)
|
||||||
void Free();
|
void Free();
|
||||||
|
|
||||||
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxChoice)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _WX_CHOICE_H_
|
#endif // _WX_CHOICE_H_
|
||||||
|
@@ -54,7 +54,7 @@ protected:
|
|||||||
|
|
||||||
wxPoint m_pos;
|
wxPoint m_pos;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxColourDialog)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxColourDialog)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -26,8 +26,6 @@
|
|||||||
|
|
||||||
class WXDLLEXPORT wxComboBox: public wxChoice
|
class WXDLLEXPORT wxComboBox: public wxChoice
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxComboBox)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxComboBox() { }
|
wxComboBox() { }
|
||||||
|
|
||||||
@@ -81,6 +79,9 @@ public:
|
|||||||
WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
||||||
|
|
||||||
WXHWND GetEditHWND() const;
|
WXHWND GetEditHWND() const;
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxComboBox)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_COMBOBOX
|
#endif // wxUSE_COMBOBOX
|
||||||
|
@@ -22,12 +22,12 @@
|
|||||||
class WXDLLEXPORT wxControl : public wxControlBase
|
class WXDLLEXPORT wxControl : public wxControlBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
wxControl();
|
wxControl();
|
||||||
wxControl(wxWindow *parent, wxWindowID id,
|
wxControl(wxWindow *parent, wxWindowID id,
|
||||||
const wxPoint& pos = wxDefaultPosition,
|
const wxPoint& pos = wxDefaultPosition,
|
||||||
const wxSize& size = wxDefaultSize, long style = 0,
|
const wxSize& size = wxDefaultSize, long style = 0,
|
||||||
const wxValidator& validator = wxDefaultValidator,
|
const wxValidator& validator = wxDefaultValidator,
|
||||||
const wxString& name = wxControlNameStr)
|
const wxString& name = wxControlNameStr)
|
||||||
{
|
{
|
||||||
Create(parent, id, pos, size, style, validator, name);
|
Create(parent, id, pos, size, style, validator, name);
|
||||||
}
|
}
|
||||||
@@ -119,7 +119,7 @@ protected:
|
|||||||
wxArrayLong m_subControls;
|
wxArrayLong m_subControls;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_ABSTRACT_CLASS(wxControl)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxControl)
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -254,6 +254,9 @@ class WXDLLEXPORT wxDCTemp : public wxDC
|
|||||||
public:
|
public:
|
||||||
wxDCTemp(WXHDC hdc) { SetHDC(hdc); }
|
wxDCTemp(WXHDC hdc) { SetHDC(hdc); }
|
||||||
virtual ~wxDCTemp() { SetHDC((WXHDC)NULL); }
|
virtual ~wxDCTemp() { SetHDC((WXHDC)NULL); }
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxDCTemp)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -53,7 +53,7 @@ protected:
|
|||||||
virtual void DoGetSize(int *width, int *height) const;
|
virtual void DoGetSize(int *width, int *height) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxWindowDC)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxWindowDC)
|
||||||
};
|
};
|
||||||
|
|
||||||
class WXDLLEXPORT wxClientDC : public wxWindowDC
|
class WXDLLEXPORT wxClientDC : public wxWindowDC
|
||||||
@@ -74,7 +74,7 @@ protected:
|
|||||||
virtual void DoGetSize(int *width, int *height) const;
|
virtual void DoGetSize(int *width, int *height) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxClientDC)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxClientDC)
|
||||||
};
|
};
|
||||||
|
|
||||||
class WXDLLEXPORT wxPaintDC : public wxClientDC
|
class WXDLLEXPORT wxPaintDC : public wxClientDC
|
||||||
@@ -97,7 +97,7 @@ protected:
|
|||||||
wxPaintDCInfo *FindInCache(size_t *index = NULL) const;
|
wxPaintDCInfo *FindInCache(size_t *index = NULL) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxPaintDC)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxPaintDC)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -38,7 +38,7 @@ protected:
|
|||||||
void Init();
|
void Init();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxMemoryDC)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxMemoryDC)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -52,7 +52,7 @@ protected:
|
|||||||
wxPrintData m_printData;
|
wxPrintData m_printData;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_CLASS(wxPrinterDC)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxPrinterDC)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Gets an HDC for the default printer configuration
|
// Gets an HDC for the default printer configuration
|
||||||
|
@@ -33,7 +33,7 @@ protected:
|
|||||||
virtual void DoGetSize(int *width, int *height) const;
|
virtual void DoGetSize(int *width, int *height) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxScreenDC)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxScreenDC)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -42,7 +42,7 @@ protected:
|
|||||||
wxString m_path;
|
wxString m_path;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxDirDialog)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxDirDialog)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -36,7 +36,7 @@ public:
|
|||||||
: wxFontDialogBase(parent, data) { Create(parent, data); }
|
: wxFontDialogBase(parent, data) { Create(parent, data); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
DECLARE_DYNAMIC_CLASS(wxFontDialog)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxFontDialog)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -154,7 +154,7 @@ private:
|
|||||||
bool m_wasMinimized;
|
bool m_wasMinimized;
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
DECLARE_DYNAMIC_CLASS(wxFrame)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxFrame)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -25,8 +25,6 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxGaugeNameStr;
|
|||||||
// Group box
|
// Group box
|
||||||
class WXDLLEXPORT wxGauge95 : public wxControl
|
class WXDLLEXPORT wxGauge95 : public wxControl
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxGauge95)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxGauge95(void) { m_rangeMax = 0; m_gaugePos = 0; }
|
wxGauge95(void) { m_rangeMax = 0; m_gaugePos = 0; }
|
||||||
|
|
||||||
@@ -75,6 +73,9 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
int m_rangeMax;
|
int m_rangeMax;
|
||||||
int m_gaugePos;
|
int m_gaugePos;
|
||||||
|
|
||||||
|
|
||||||
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxGauge95)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_GAUGE
|
#endif // wxUSE_GAUGE
|
||||||
|
@@ -129,7 +129,7 @@ protected:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxListBox)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxListBox)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_LISTBOX
|
#endif // wxUSE_LISTBOX
|
||||||
|
@@ -189,7 +189,7 @@ private:
|
|||||||
bool m_needsResize; // flag which tells us to artificially resize the frame
|
bool m_needsResize; // flag which tells us to artificially resize the frame
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
DECLARE_DYNAMIC_CLASS(wxMDIChildFrame)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxMDIChildFrame)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
@@ -224,7 +224,7 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
DECLARE_DYNAMIC_CLASS(wxMDIClientWindow)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxMDIClientWindow)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -116,7 +116,7 @@ private:
|
|||||||
wxAcceleratorArray m_accels;
|
wxAcceleratorArray m_accels;
|
||||||
#endif // wxUSE_ACCEL
|
#endif // wxUSE_ACCEL
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxMenu)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxMenu)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -206,7 +206,7 @@ protected:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxMenuBar)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxMenuBar)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _WX_MENU_H_
|
#endif // _WX_MENU_H_
|
||||||
|
@@ -90,7 +90,7 @@ private:
|
|||||||
// does this item start a radio group?
|
// does this item start a radio group?
|
||||||
bool m_isRadioGroupStart;
|
bool m_isRadioGroupStart;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxMenuItem)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxMenuItem)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //_MENUITEM_H
|
#endif //_MENUITEM_H
|
||||||
|
@@ -153,7 +153,7 @@ protected:
|
|||||||
int m_nSelection;
|
int m_nSelection;
|
||||||
|
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxNotebook)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxNotebook)
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -64,6 +64,9 @@ public:
|
|||||||
virtual size_t GetDataSize() const;
|
virtual size_t GetDataSize() const;
|
||||||
virtual bool GetDataHere(void *buf) const;
|
virtual bool GetDataHere(void *buf) const;
|
||||||
virtual bool SetData(size_t len, const void *buf);
|
virtual bool SetData(size_t len, const void *buf);
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxBitmapDataObject2)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -73,11 +76,16 @@ public:
|
|||||||
class WXDLLEXPORT wxFileDataObject : public wxFileDataObjectBase
|
class WXDLLEXPORT wxFileDataObject : public wxFileDataObjectBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
wxFileDataObject() { }
|
||||||
|
|
||||||
// implement base class pure virtuals
|
// implement base class pure virtuals
|
||||||
virtual bool SetData(size_t len, const void *buf);
|
virtual bool SetData(size_t len, const void *buf);
|
||||||
virtual size_t GetDataSize() const;
|
virtual size_t GetDataSize() const;
|
||||||
virtual bool GetDataHere(void *pData) const;
|
virtual bool GetDataHere(void *pData) const;
|
||||||
virtual void AddFile(const wxString& file);
|
virtual void AddFile(const wxString& file);
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxFileDataObject)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -42,7 +42,7 @@ protected:
|
|||||||
// get the HWND to be used as parent of this window with CreateWindow()
|
// get the HWND to be used as parent of this window with CreateWindow()
|
||||||
virtual WXHWND MSWGetParent() const;
|
virtual WXHWND MSWGetParent() const;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxPopupWindow)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxPopupWindow)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _WX_MSW_POPUPWIN_H_
|
#endif // _WX_MSW_POPUPWIN_H_
|
||||||
|
@@ -49,8 +49,6 @@ private:
|
|||||||
|
|
||||||
class WXDLLEXPORT wxWindowsPrintPreview : public wxPrintPreviewBase
|
class WXDLLEXPORT wxWindowsPrintPreview : public wxPrintPreviewBase
|
||||||
{
|
{
|
||||||
DECLARE_CLASS(wxWindowsPrintPreview)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxWindowsPrintPreview(wxPrintout *printout,
|
wxWindowsPrintPreview(wxPrintout *printout,
|
||||||
wxPrintout *printoutForPrinting = NULL,
|
wxPrintout *printoutForPrinting = NULL,
|
||||||
@@ -62,6 +60,9 @@ public:
|
|||||||
|
|
||||||
virtual bool Print(bool interactive);
|
virtual bool Print(bool interactive);
|
||||||
virtual void DetermineScaling();
|
virtual void DetermineScaling();
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxWindowsPrintPreview)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -66,7 +66,7 @@ private:
|
|||||||
// see the comments in SetFocus()
|
// see the comments in SetFocus()
|
||||||
bool m_focusJustSet;
|
bool m_focusJustSet;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxRadioButton)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxRadioButton)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -19,8 +19,6 @@
|
|||||||
// Scrollbar item
|
// Scrollbar item
|
||||||
class WXDLLEXPORT wxScrollBar: public wxScrollBarBase
|
class WXDLLEXPORT wxScrollBar: public wxScrollBarBase
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxScrollBar)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
wxScrollBar() { m_pageSize = 0; m_viewSize = 0; m_objectSize = 0; }
|
wxScrollBar() { m_pageSize = 0; m_viewSize = 0; m_objectSize = 0; }
|
||||||
~wxScrollBar();
|
~wxScrollBar();
|
||||||
@@ -81,6 +79,7 @@ protected:
|
|||||||
int m_objectSize;
|
int m_objectSize;
|
||||||
|
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxScrollBar)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -101,7 +101,7 @@ protected:
|
|||||||
int width, int height,
|
int width, int height,
|
||||||
int sizeFlags = wxSIZE_AUTO);
|
int sizeFlags = wxSIZE_AUTO);
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxSlider95)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxSlider95)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -63,7 +63,7 @@ protected:
|
|||||||
virtual wxSize DoGetBestSize() const;
|
virtual wxSize DoGetBestSize() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxSpinButton)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxSpinButton)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -51,7 +51,7 @@ protected:
|
|||||||
virtual wxSize DoGetBestSize() const;
|
virtual wxSize DoGetBestSize() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxStaticBox)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticBox)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -66,7 +66,7 @@ protected:
|
|||||||
void DoMoveWindow(int x, int y, int width, int height);
|
void DoMoveWindow(int x, int y, int width, int height);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxStatusBar95);
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxStatusBar95);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_NATIVE_STATUSBAR
|
#endif // wxUSE_NATIVE_STATUSBAR
|
||||||
|
@@ -21,8 +21,6 @@
|
|||||||
|
|
||||||
class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
|
class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxStaticLine)
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// constructors and pseudo-constructors
|
// constructors and pseudo-constructors
|
||||||
wxStaticLine() { }
|
wxStaticLine() { }
|
||||||
@@ -50,6 +48,8 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
// usually overridden base class virtuals
|
// usually overridden base class virtuals
|
||||||
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
|
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
|
||||||
|
|
||||||
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticLine)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _WX_MSW_STATLINE_H_
|
#endif // _WX_MSW_STATLINE_H_
|
||||||
|
@@ -52,7 +52,7 @@ protected:
|
|||||||
virtual wxSize DoGetBestSize() const;
|
virtual wxSize DoGetBestSize() const;
|
||||||
virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const;
|
virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle = NULL) const;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxStaticText)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxStaticText)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -26,7 +26,7 @@ WX_DECLARE_EXPORTED_LIST(wxTaskBarIcon, wxTaskBarIconList);
|
|||||||
|
|
||||||
class WXDLLEXPORT wxTaskBarIcon: public wxTaskBarIconBase
|
class WXDLLEXPORT wxTaskBarIcon: public wxTaskBarIconBase
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxTaskBarIcon)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
|
||||||
public:
|
public:
|
||||||
wxTaskBarIcon(void);
|
wxTaskBarIcon(void);
|
||||||
virtual ~wxTaskBarIcon(void);
|
virtual ~wxTaskBarIcon(void);
|
||||||
|
@@ -251,7 +251,7 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
DECLARE_DYNAMIC_CLASS(wxTextCtrl)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxTextCtrl)
|
||||||
|
|
||||||
wxMenu* m_privateContextMenu;
|
wxMenu* m_privateContextMenu;
|
||||||
|
|
||||||
|
@@ -37,7 +37,7 @@ protected:
|
|||||||
long m_id;
|
long m_id;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_ABSTRACT_CLASS(wxTimer)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxTimer)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -159,7 +159,8 @@ public:
|
|||||||
|
|
||||||
// hit test, returns which tab is hit and, optionally, where (icon, label)
|
// hit test, returns which tab is hit and, optionally, where (icon, label)
|
||||||
// (not implemented on all platforms)
|
// (not implemented on all platforms)
|
||||||
virtual int HitTest(const wxPoint& pt, long *flags = NULL) const
|
virtual int HitTest(const wxPoint& WXUNUSED(pt),
|
||||||
|
long * WXUNUSED(flags) = NULL) const
|
||||||
{
|
{
|
||||||
return wxNOT_FOUND;
|
return wxNOT_FOUND;
|
||||||
}
|
}
|
||||||
@@ -218,7 +219,7 @@ private:
|
|||||||
int m_nSel, // currently selected page
|
int m_nSel, // currently selected page
|
||||||
m_nOldSel; // previously selected page
|
m_nOldSel; // previously selected page
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxNotebookEvent)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxNotebookEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -145,6 +145,15 @@ WXDLLIMPEXP_BASE wxObject *wxCreateDynamicObject(const wxChar *name);
|
|||||||
virtual wxClassInfo *GetClassInfo() const \
|
virtual wxClassInfo *GetClassInfo() const \
|
||||||
{ return &name::sm_class##name; }
|
{ return &name::sm_class##name; }
|
||||||
|
|
||||||
|
#define DECLARE_DYNAMIC_CLASS_NO_ASSIGN(name) \
|
||||||
|
private: \
|
||||||
|
name& operator=(const name&); \
|
||||||
|
DECLARE_DYNAMIC_CLASS(name)
|
||||||
|
|
||||||
|
#define DECLARE_DYNAMIC_CLASS_NO_COPY(name) \
|
||||||
|
DECLARE_NO_COPY_CLASS(name) \
|
||||||
|
DECLARE_DYNAMIC_CLASS(name)
|
||||||
|
|
||||||
#define DECLARE_ABSTRACT_CLASS(name) DECLARE_DYNAMIC_CLASS(name)
|
#define DECLARE_ABSTRACT_CLASS(name) DECLARE_DYNAMIC_CLASS(name)
|
||||||
#define DECLARE_CLASS(name) DECLARE_DYNAMIC_CLASS(name)
|
#define DECLARE_CLASS(name) DECLARE_DYNAMIC_CLASS(name)
|
||||||
|
|
||||||
|
@@ -45,6 +45,8 @@ public:
|
|||||||
// the point must be given in screen coordinates!
|
// the point must be given in screen coordinates!
|
||||||
virtual void Position(const wxPoint& ptOrigin,
|
virtual void Position(const wxPoint& ptOrigin,
|
||||||
const wxSize& size);
|
const wxSize& size);
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxPopupWindowBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -407,6 +407,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
|
DECLARE_NO_COPY_CLASS(wxPrintAbortDialog)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_PRINTING_ARCHITECTURE
|
#endif // wxUSE_PRINTING_ARCHITECTURE
|
||||||
|
@@ -163,7 +163,7 @@ public:
|
|||||||
int m_pid,
|
int m_pid,
|
||||||
m_exitcode;
|
m_exitcode;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxProcessEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxProcessEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef void (wxEvtHandler::*wxProcessEventFunction)(wxProcessEvent&);
|
typedef void (wxEvtHandler::*wxProcessEventFunction)(wxProcessEvent&);
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
#include "wx/url.h"
|
#include "wx/url.h"
|
||||||
|
|
||||||
class WXDLLIMPEXP_BASE wxFileProto: public wxProtocol {
|
class WXDLLIMPEXP_BASE wxFileProto: public wxProtocol {
|
||||||
DECLARE_DYNAMIC_CLASS(wxFileProto)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxFileProto)
|
||||||
DECLARE_PROTOCOL(wxFileProto)
|
DECLARE_PROTOCOL(wxFileProto)
|
||||||
protected:
|
protected:
|
||||||
wxProtocolError m_error;
|
wxProtocolError m_error;
|
||||||
|
@@ -156,7 +156,7 @@ protected:
|
|||||||
friend class wxInputFTPStream;
|
friend class wxInputFTPStream;
|
||||||
friend class wxOutputFTPStream;
|
friend class wxOutputFTPStream;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxFTP)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxFTP)
|
||||||
DECLARE_PROTOCOL(wxFTP)
|
DECLARE_PROTOCOL(wxFTP)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -82,7 +82,7 @@ public:
|
|||||||
virtual void SetPassword(const wxString& WXUNUSED(passwd) ) {}
|
virtual void SetPassword(const wxString& WXUNUSED(passwd) ) {}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_ABSTRACT_CLASS(wxProtocol)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxProtocol)
|
||||||
};
|
};
|
||||||
|
|
||||||
#if wxUSE_SOCKETS
|
#if wxUSE_SOCKETS
|
||||||
|
@@ -150,6 +150,8 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
wxRendererNative& m_rendererNative;
|
wxRendererNative& m_rendererNative;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxDelegateRendererNative)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _WX_RENDERER_H_
|
#endif // _WX_RENDERER_H_
|
||||||
|
@@ -65,6 +65,8 @@ class WXDLLIMPEXP_BASE wxSocketStream : public wxSocketInputStream,
|
|||||||
public:
|
public:
|
||||||
wxSocketStream(wxSocketBase& s);
|
wxSocketStream(wxSocketBase& s);
|
||||||
~wxSocketStream();
|
~wxSocketStream();
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxSocketStream)
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@@ -14,6 +14,8 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxScrollBarNameStr;
|
|||||||
class WXDLLEXPORT wxScrollBarBase : public wxControl
|
class WXDLLEXPORT wxScrollBarBase : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
wxScrollBarBase() { }
|
||||||
|
|
||||||
// scrollbar construction
|
// scrollbar construction
|
||||||
bool Create(wxWindow *parent,
|
bool Create(wxWindow *parent,
|
||||||
wxWindowID id,
|
wxWindowID id,
|
||||||
@@ -36,6 +38,9 @@ public:
|
|||||||
virtual void SetScrollbar(int position, int thumbSize,
|
virtual void SetScrollbar(int position, int thumbSize,
|
||||||
int range, int pageSize,
|
int range, int pageSize,
|
||||||
bool refresh = TRUE) = 0;
|
bool refresh = TRUE) = 0;
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxScrollBarBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(__WXUNIVERSAL__)
|
#if defined(__WXUNIVERSAL__)
|
||||||
|
@@ -229,7 +229,7 @@ protected:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_CLASS(wxScrolledWindow)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxScrolledWindow)
|
||||||
};
|
};
|
||||||
|
|
||||||
#define wxSCROLLED_WINDOW_IS_GENERIC 1
|
#define wxSCROLLED_WINDOW_IS_GENERIC 1
|
||||||
@@ -238,4 +238,3 @@ protected:
|
|||||||
#endif
|
#endif
|
||||||
// _WX_SCROLWIN_H_BASE_
|
// _WX_SCROLWIN_H_BASE_
|
||||||
|
|
||||||
// vi:sts=4:sw=4:et
|
|
||||||
|
@@ -42,6 +42,7 @@ public:
|
|||||||
const wxValidator& validator = wxDefaultValidator,
|
const wxValidator& validator = wxDefaultValidator,
|
||||||
const wxString& name = wxSliderNameStr);
|
const wxString& name = wxSliderNameStr);
|
||||||
*/
|
*/
|
||||||
|
wxSliderBase() { }
|
||||||
|
|
||||||
// get/set the current slider value (should be in range)
|
// get/set the current slider value (should be in range)
|
||||||
virtual int GetValue() const = 0;
|
virtual int GetValue() const = 0;
|
||||||
@@ -76,6 +77,9 @@ public:
|
|||||||
virtual int GetSelEnd() const { return GetMin(); }
|
virtual int GetSelEnd() const { return GetMin(); }
|
||||||
virtual int GetSelStart() const { return GetMax(); }
|
virtual int GetSelStart() const { return GetMax(); }
|
||||||
virtual void SetSelection(int WXUNUSED(min), int WXUNUSED(max)) { }
|
virtual void SetSelection(int WXUNUSED(min), int WXUNUSED(max)) { }
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxSliderBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -361,7 +361,7 @@ public:
|
|||||||
wxSocketNotify m_event;
|
wxSocketNotify m_event;
|
||||||
void *m_clientData;
|
void *m_clientData;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxSocketEvent)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxSocketEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@@ -68,6 +68,8 @@ protected:
|
|||||||
// the range value
|
// the range value
|
||||||
int m_min;
|
int m_min;
|
||||||
int m_max;
|
int m_max;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxSpinButtonBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -107,7 +109,7 @@ public:
|
|||||||
void SetPosition(int pos) { m_commandInt = pos; }
|
void SetPosition(int pos) { m_commandInt = pos; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxSpinEvent)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxSpinEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef void (wxEvtHandler::*wxSpinEventFunction)(wxSpinEvent&);
|
typedef void (wxEvtHandler::*wxSpinEventFunction)(wxSpinEvent&);
|
||||||
|
@@ -31,7 +31,8 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBitmapNameStr;
|
|||||||
// a control showing an icon or a bitmap
|
// a control showing an icon or a bitmap
|
||||||
class WXDLLEXPORT wxStaticBitmapBase : public wxControl
|
class WXDLLEXPORT wxStaticBitmapBase : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
wxStaticBitmapBase() { }
|
||||||
virtual ~wxStaticBitmapBase();
|
virtual ~wxStaticBitmapBase();
|
||||||
|
|
||||||
// our interface
|
// our interface
|
||||||
@@ -44,6 +45,8 @@ class WXDLLEXPORT wxStaticBitmapBase : public wxControl
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual wxSize DoGetBestClientSize() const;
|
virtual wxSize DoGetBestClientSize() const;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxStaticBitmapBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(__WXUNIVERSAL__)
|
#if defined(__WXUNIVERSAL__)
|
||||||
|
@@ -14,8 +14,13 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxStaticBoxNameStr;
|
|||||||
class WXDLLEXPORT wxStaticBoxBase : public wxControl
|
class WXDLLEXPORT wxStaticBoxBase : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
wxStaticBoxBase() { }
|
||||||
|
|
||||||
// overriden base class virtuals
|
// overriden base class virtuals
|
||||||
virtual bool AcceptsFocus() const { return FALSE; }
|
virtual bool AcceptsFocus() const { return FALSE; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxStaticBoxBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(__WXUNIVERSAL__)
|
#if defined(__WXUNIVERSAL__)
|
||||||
|
@@ -72,6 +72,8 @@ protected:
|
|||||||
{
|
{
|
||||||
return AdjustSize(wxDefaultSize);
|
return AdjustSize(wxDefaultSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxStaticLineBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -10,8 +10,13 @@ WXDLLEXPORT_DATA(extern const wxChar*) wxStaticTextNameStr;
|
|||||||
class WXDLLEXPORT wxStaticTextBase : public wxControl
|
class WXDLLEXPORT wxStaticTextBase : public wxControl
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// overriden base class virtuals
|
wxStaticTextBase() { }
|
||||||
|
|
||||||
|
// overriden base cirtuals
|
||||||
virtual bool AcceptsFocus() const { return FALSE; }
|
virtual bool AcceptsFocus() const { return FALSE; }
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxStaticTextBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(__WXUNIVERSAL__)
|
#if defined(__WXUNIVERSAL__)
|
||||||
|
@@ -232,6 +232,8 @@ protected:
|
|||||||
size_t m_wbackcur;
|
size_t m_wbackcur;
|
||||||
|
|
||||||
friend class wxStreamBuffer;
|
friend class wxStreamBuffer;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxInputStream)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -264,6 +266,8 @@ protected:
|
|||||||
virtual size_t OnSysWrite(const void *buffer, size_t bufsize);
|
virtual size_t OnSysWrite(const void *buffer, size_t bufsize);
|
||||||
|
|
||||||
friend class wxStreamBuffer;
|
friend class wxStreamBuffer;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxOutputStream)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@@ -288,6 +292,8 @@ protected:
|
|||||||
virtual off_t OnSysTell() const;
|
virtual off_t OnSysTell() const;
|
||||||
|
|
||||||
size_t m_currentPos;
|
size_t m_currentPos;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxCountingOutputStream)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
|
@@ -13,6 +13,11 @@
|
|||||||
|
|
||||||
class WXDLLEXPORT wxTaskBarIconBase : public wxEvtHandler
|
class WXDLLEXPORT wxTaskBarIconBase : public wxEvtHandler
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
|
wxTaskBarIconBase() { }
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxTaskBarIconBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -40,6 +45,9 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
virtual wxEvent *Clone() const { return new wxTaskBarIconEvent(*this); }
|
virtual wxEvent *Clone() const { return new wxTaskBarIconEvent(*this); }
|
||||||
|
|
||||||
|
private:
|
||||||
|
DECLARE_NO_COPY_CLASS(wxTaskBarIconEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
BEGIN_DECLARE_EVENT_TYPES()
|
BEGIN_DECLARE_EVENT_TYPES()
|
||||||
|
@@ -606,7 +606,7 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_EVENT_TABLE()
|
DECLARE_EVENT_TABLE()
|
||||||
DECLARE_CLASS(wxToolBarBase)
|
DECLARE_NO_COPY_CLASS(wxToolBarBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
// Helper function for creating the image for disabled buttons
|
// Helper function for creating the image for disabled buttons
|
||||||
|
@@ -349,6 +349,8 @@ protected:
|
|||||||
|
|
||||||
// the text style which will be used for any new text added to the control
|
// the text style which will be used for any new text added to the control
|
||||||
wxTextAttr m_defaultStyle;
|
wxTextAttr m_defaultStyle;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxTextCtrlBase)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -415,7 +417,7 @@ protected:
|
|||||||
m_end;
|
m_end;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_DYNAMIC_CLASS(wxTextUrlEvent)
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxTextUrlEvent)
|
||||||
|
|
||||||
public:
|
public:
|
||||||
// for wxWin RTTI only, don't use
|
// for wxWin RTTI only, don't use
|
||||||
|
@@ -47,7 +47,10 @@ protected:
|
|||||||
virtual bool OnWrite(wxTextFileType typeNew, wxMBConv& conv);
|
virtual bool OnWrite(wxTextFileType typeNew, wxMBConv& conv);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
wxFile m_file;
|
wxFile m_file;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxTextFile)
|
||||||
};
|
};
|
||||||
|
|
||||||
#else // !wxUSE_TEXTFILE
|
#else // !wxUSE_TEXTFILE
|
||||||
|
@@ -156,6 +156,8 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
wxTimer& m_timer;
|
wxTimer& m_timer;
|
||||||
|
|
||||||
|
DECLARE_NO_COPY_CLASS(wxTimerRunner)
|
||||||
};
|
};
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -181,7 +183,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
int m_interval;
|
int m_interval;
|
||||||
|
|
||||||
DECLARE_DYNAMIC_CLASS(wxTimerEvent)
|
DECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxTimerEvent)
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef void (wxEvtHandler::*wxTimerEventFunction)(wxTimerEvent&);
|
typedef void (wxEvtHandler::*wxTimerEventFunction)(wxTimerEvent&);
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user