don't use annoying and unneeded in C++ casts of NULL to "T *" in all other files neither

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-01-19 13:55:27 +00:00
parent c23b255ab4
commit d3b9f782ef
297 changed files with 1003 additions and 1003 deletions

View File

@@ -162,9 +162,9 @@ public:
long WXUNUSED(style) = 1, long WXUNUSED(style) = 1,
wxWindowID WXUNUSED(winid) = 1, wxWindowID WXUNUSED(winid) = 1,
const wxString& WXUNUSED(name) = wxEmptyString) const wxString& WXUNUSED(name) = wxEmptyString)
{ return (wxStatusBar*)NULL; } { return NULL; }
virtual wxStatusBar *GetStatusBar() const { return (wxStatusBar*)NULL; } virtual wxStatusBar *GetStatusBar() const { return NULL; }
virtual void SetStatusText( const wxString &WXUNUSED(text), int WXUNUSED(number)=0 ) {} virtual void SetStatusText( const wxString &WXUNUSED(text), int WXUNUSED(number)=0 ) {}
virtual void SetStatusWidths( int WXUNUSED(n), const int WXUNUSED(widths_field)[] ) {} virtual void SetStatusWidths( int WXUNUSED(n), const int WXUNUSED(widths_field)[] ) {}
#endif #endif
@@ -174,8 +174,8 @@ public:
virtual wxToolBar* CreateToolBar(long WXUNUSED(style), virtual wxToolBar* CreateToolBar(long WXUNUSED(style),
wxWindowID WXUNUSED(winid), wxWindowID WXUNUSED(winid),
const wxString& WXUNUSED(name)) const wxString& WXUNUSED(name))
{ return (wxToolBar*)NULL; } { return NULL; }
virtual wxToolBar *GetToolBar() const { return (wxToolBar*)NULL; } virtual wxToolBar *GetToolBar() const { return NULL; }
#endif #endif

View File

@@ -174,7 +174,7 @@ public:
virtual wxBitmap GetSubBitmap(const wxRect& rect) const = 0; virtual wxBitmap GetSubBitmap(const wxRect& rect) const = 0;
virtual bool SaveFile(const wxString &name, wxBitmapType type, virtual bool SaveFile(const wxString &name, wxBitmapType type,
const wxPalette *palette = (wxPalette *)NULL) const = 0; const wxPalette *palette = NULL) const = 0;
virtual bool LoadFile(const wxString &name, wxBitmapType type) = 0; virtual bool LoadFile(const wxString &name, wxBitmapType type) = 0;
/* /*

View File

@@ -167,7 +167,7 @@ protected:
// the common initialization // the common initialization
void Init() void Init()
{ {
m_window = (wxWindowBase *)NULL; m_window = NULL;
m_x = m_y = 0; m_x = m_y = 0;
m_width = m_height = 0; m_width = m_height = 0;
m_countVisible = 0; m_countVisible = 0;

View File

@@ -167,7 +167,7 @@ typedef void (wxEvtHandler::*wxClipboardEventFunction)(wxClipboardEvent&);
class WXDLLIMPEXP_CORE wxClipboardLocker class WXDLLIMPEXP_CORE wxClipboardLocker
{ {
public: public:
wxClipboardLocker(wxClipboard *clipboard = (wxClipboard *)NULL) wxClipboardLocker(wxClipboard *clipboard = NULL)
{ {
m_clipboard = clipboard ? clipboard : wxTheClipboard; m_clipboard = clipboard ? clipboard : wxTheClipboard;
if ( m_clipboard ) if ( m_clipboard )

View File

@@ -36,7 +36,7 @@ public:
virtual bool SetData(size_t len, const void *buf); virtual bool SetData(size_t len, const void *buf);
protected: protected:
void Init() { m_pngData = (void *)NULL; m_pngSize = 0; } void Init() { m_pngData = NULL; m_pngSize = 0; }
void Clear() { free(m_pngData); } void Clear() { free(m_pngData); }
void ClearAll() { Clear(); Init(); } void ClearAll() { Clear(); Init(); }

View File

@@ -31,12 +31,12 @@ public:
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
// initialization // initialization
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
wxMenuItemCocoa(wxMenu *parentMenu = (wxMenu *)NULL, wxMenuItemCocoa(wxMenu *parentMenu = NULL,
int id = wxID_SEPARATOR, int id = wxID_SEPARATOR,
const wxString& name = wxEmptyString, const wxString& name = wxEmptyString,
const wxString& help = wxEmptyString, const wxString& help = wxEmptyString,
wxItemKind kind = wxITEM_NORMAL, wxItemKind kind = wxITEM_NORMAL,
wxMenu *subMenu = (wxMenu *)NULL); wxMenu *subMenu = NULL);
virtual ~wxMenuItemCocoa(); virtual ~wxMenuItemCocoa();
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------

View File

@@ -33,7 +33,7 @@
class WXDLLIMPEXP_FWD_CORE wxColourData; class WXDLLIMPEXP_FWD_CORE wxColourData;
// get the colour from user and return it // get the colour from user and return it
WXDLLIMPEXP_CORE wxColour wxGetColourFromUser(wxWindow *parent = (wxWindow *)NULL, WXDLLIMPEXP_CORE wxColour wxGetColourFromUser(wxWindow *parent = NULL,
const wxColour& colInit = wxNullColour, const wxColour& colInit = wxNullColour,
const wxString& caption = wxEmptyString, const wxString& caption = wxEmptyString,
wxColourData *data = NULL); wxColourData *data = NULL);

View File

@@ -651,7 +651,7 @@ class WXDLLIMPEXP_CORE wxComboPopup
public: public:
wxComboPopup() wxComboPopup()
{ {
m_combo = (wxComboCtrlBase*) NULL; m_combo = NULL;
m_iFlags = 0; m_iFlags = 0;
} }

View File

@@ -217,7 +217,7 @@ class WXDLLIMPEXP_CORE wxHelpControllerHelpProvider : public wxSimpleHelpProvide
public: public:
// Note that it doesn't own the help controller. The help controller // Note that it doesn't own the help controller. The help controller
// should be deleted separately. // should be deleted separately.
wxHelpControllerHelpProvider(wxHelpControllerBase* hc = (wxHelpControllerBase*) NULL); wxHelpControllerHelpProvider(wxHelpControllerBase* hc = NULL);
// implement wxHelpProvider methods // implement wxHelpProvider methods

View File

@@ -1270,7 +1270,7 @@ public:
inline wxLongLong GetValue() const; inline wxLongLong GetValue() const;
// a helper function to get the current time_t // a helper function to get the current time_t
static time_t GetTimeNow() { return time((time_t *)NULL); } static time_t GetTimeNow() { return time(NULL); }
// another one to get the current time broken down // another one to get the current time broken down
static struct tm *GetTmNow() static struct tm *GetTmNow()

View File

@@ -51,7 +51,7 @@ public:
virtual wxBitmap GetSubBitmap(const wxRect& rect) const; virtual wxBitmap GetSubBitmap(const wxRect& rect) const;
virtual bool SaveFile(const wxString &name, wxBitmapType type, virtual bool SaveFile(const wxString &name, wxBitmapType type,
const wxPalette *palette = (wxPalette *) NULL) const; const wxPalette *palette = NULL) const;
virtual bool LoadFile(const wxString &name, wxBitmapType type = wxBITMAP_DEFAULT_TYPE); virtual bool LoadFile(const wxString &name, wxBitmapType type = wxBITMAP_DEFAULT_TYPE);
#if wxUSE_PALETTE #if wxUSE_PALETTE

View File

@@ -83,8 +83,8 @@ public:
virtual int GetCharWidth() const; virtual int GetCharWidth() const;
virtual void GetTextExtent(const wxString& string, virtual void GetTextExtent(const wxString& string,
int *x, int *y, int *x, int *y,
int *descent = (int *) NULL, int *descent = NULL,
int *externalLeading = (int *) NULL, int *externalLeading = NULL,
const wxFont *theFont = (const wxFont *) NULL) const wxFont *theFont = (const wxFont *) NULL)
const; const;

View File

@@ -63,7 +63,7 @@ public:
: m_cursorCopy(cursorCopy), : m_cursorCopy(cursorCopy),
m_cursorMove(cursorMove), m_cursorMove(cursorMove),
m_cursorStop(cursorStop) m_cursorStop(cursorStop)
{ m_data = (wxDataObject *)NULL; } { m_data = NULL; }
virtual ~wxDropSourceBase() { } virtual ~wxDropSourceBase() { }
// set the data which is transfered by drag and drop // set the data which is transfered by drag and drop
@@ -135,7 +135,7 @@ public:
// ctor takes a pointer to heap-allocated wxDataObject which will be owned // ctor takes a pointer to heap-allocated wxDataObject which will be owned
// by wxDropTarget and deleted by it automatically. If you don't give it // by wxDropTarget and deleted by it automatically. If you don't give it
// here, you can use SetDataObject() later. // here, you can use SetDataObject() later.
wxDropTargetBase(wxDataObject *dataObject = (wxDataObject*)NULL) wxDropTargetBase(wxDataObject *dataObject = NULL)
{ m_dataObject = dataObject; m_defaultAction = wxDragNone; } { m_dataObject = dataObject; m_defaultAction = wxDragNone; }
// dtor deletes our data object // dtor deletes our data object
virtual ~wxDropTargetBase() virtual ~wxDropTargetBase()

View File

@@ -84,7 +84,7 @@ public:
inline wxView *GetView(void) const { return m_childView; } inline wxView *GetView(void) const { return m_childView; }
inline void SetDocument(wxDocument *doc) { m_childDocument = doc; } inline void SetDocument(wxDocument *doc) { m_childDocument = doc; }
inline void SetView(wxView *view) { m_childView = view; } inline void SetView(wxView *view) { m_childView = view; }
bool Destroy() { m_childView = (wxView *)NULL; return wxMDIChildFrame::Destroy(); } bool Destroy() { m_childView = NULL; return wxMDIChildFrame::Destroy(); }
protected: protected:
void Init(); void Init();

View File

@@ -561,7 +561,7 @@ wxDEPRECATED( WXDLLIMPEXP_BASE void wxStripExtension(wxString& buffer) );
// DEPRECATED: construct a wxFileName, use ClearExt() and then GetFullPath() // DEPRECATED: construct a wxFileName, use ClearExt() and then GetFullPath()
// Get a temporary filename // Get a temporary filename
wxDEPRECATED_BUT_USED_INTERNALLY( WXDLLIMPEXP_BASE wxChar* wxGetTempFileName(const wxString& prefix, wxChar *buf = (wxChar *) NULL) ); wxDEPRECATED_BUT_USED_INTERNALLY( WXDLLIMPEXP_BASE wxChar* wxGetTempFileName(const wxString& prefix, wxChar *buf = NULL) );
wxDEPRECATED_BUT_USED_INTERNALLY( WXDLLIMPEXP_BASE bool wxGetTempFileName(const wxString& prefix, wxString& buf) ); wxDEPRECATED_BUT_USED_INTERNALLY( WXDLLIMPEXP_BASE bool wxGetTempFileName(const wxString& prefix, wxString& buf) );
// Expand file name (~/ and ${OPENWINHOME}/ stuff) // Expand file name (~/ and ${OPENWINHOME}/ stuff)
@@ -623,7 +623,7 @@ WXDLLIMPEXP_BASE bool wxRenameFile(const wxString& file1, const wxString& file2,
// copies into buf. // copies into buf.
// IMPORTANT NOTE getcwd is know not to work under some releases // IMPORTANT NOTE getcwd is know not to work under some releases
// of Win32s 1.3, according to MS release notes! // of Win32s 1.3, according to MS release notes!
wxDEPRECATED( WXDLLIMPEXP_BASE wxChar* wxGetWorkingDirectory(wxChar *buf = (wxChar *) NULL, int sz = 1000) ); wxDEPRECATED( WXDLLIMPEXP_BASE wxChar* wxGetWorkingDirectory(wxChar *buf = NULL, int sz = 1000) );
// new and preferred version of wxGetWorkingDirectory // new and preferred version of wxGetWorkingDirectory
// NB: can't have the same name because of overloading ambiguity // NB: can't have the same name because of overloading ambiguity
#endif // WXWIN_COMPATIBILITY_2_6 #endif // WXWIN_COMPATIBILITY_2_6

View File

@@ -108,7 +108,7 @@ inline bool wxFontDialogBase::Create(wxWindow *parent, const wxFontData *data)
// get the font from user and return it, returns wxNullFont if the dialog was // get the font from user and return it, returns wxNullFont if the dialog was
// cancelled // cancelled
WXDLLIMPEXP_CORE wxFont wxGetFontFromUser(wxWindow *parent = (wxWindow *)NULL, WXDLLIMPEXP_CORE wxFont wxGetFontFromUser(wxWindow *parent = NULL,
const wxFont& fontInit = wxNullFont, const wxFont& fontInit = wxNullFont,
const wxString& caption = wxEmptyString); const wxString& caption = wxEmptyString);

View File

@@ -34,10 +34,10 @@ class WXDLLIMPEXP_CORE wxGenericColourDialog : public wxDialog
public: public:
wxGenericColourDialog(); wxGenericColourDialog();
wxGenericColourDialog(wxWindow *parent, wxGenericColourDialog(wxWindow *parent,
wxColourData *data = (wxColourData *) NULL); wxColourData *data = NULL);
virtual ~wxGenericColourDialog(); virtual ~wxGenericColourDialog();
bool Create(wxWindow *parent, wxColourData *data = (wxColourData *) NULL); bool Create(wxWindow *parent, wxColourData *data = NULL);
wxColourData &GetColourData() { return m_colourData; } wxColourData &GetColourData() { return m_colourData; }

View File

@@ -193,7 +193,7 @@ public:
// Begin drag. hotspot is the location of the drag position relative to the upper-left // Begin drag. hotspot is the location of the drag position relative to the upper-left
// corner of the image. // corner of the image.
bool BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen = false, wxRect* rect = (wxRect*) NULL); bool BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen = false, wxRect* rect = NULL);
// Begin drag. hotspot is the location of the drag position relative to the upper-left // Begin drag. hotspot is the location of the drag position relative to the upper-left
// corner of the image. This is full screen only. fullScreenRect gives the // corner of the image. This is full screen only. fullScreenRect gives the

View File

@@ -69,7 +69,7 @@ public:
wxPoint *WXUNUSED(pos) = NULL, wxPoint *WXUNUSED(pos) = NULL,
bool *WXUNUSED(newFrameEachTime) = NULL) bool *WXUNUSED(newFrameEachTime) = NULL)
{ {
return (wxFrame*) NULL; // does nothing by default return NULL; // does nothing by default
} }
protected: protected:

View File

@@ -213,15 +213,15 @@ public:
#if wxUSE_MDI_ARCHITECTURE #if wxUSE_MDI_ARCHITECTURE
// The MDI client window is sized to whatever's left over. // The MDI client window is sized to whatever's left over.
bool LayoutMDIFrame(wxMDIParentFrame* frame, wxRect* rect = (wxRect*) NULL); bool LayoutMDIFrame(wxMDIParentFrame* frame, wxRect* rect = NULL);
#endif // wxUSE_MDI_ARCHITECTURE #endif // wxUSE_MDI_ARCHITECTURE
// mainWindow is sized to whatever's left over. This function for backward // mainWindow is sized to whatever's left over. This function for backward
// compatibility; use LayoutWindow. // compatibility; use LayoutWindow.
bool LayoutFrame(wxFrame* frame, wxWindow* mainWindow = (wxWindow*) NULL); bool LayoutFrame(wxFrame* frame, wxWindow* mainWindow = NULL);
// mainWindow is sized to whatever's left over. // mainWindow is sized to whatever's left over.
bool LayoutWindow(wxWindow* frame, wxWindow* mainWindow = (wxWindow*) NULL); bool LayoutWindow(wxWindow* frame, wxWindow* mainWindow = NULL);
}; };
#endif #endif

View File

@@ -71,7 +71,7 @@ WXDLLIMPEXP_CORE long
long value = 0, long value = 0,
long min = 0, long min = 0,
long max = 100, long max = 100,
wxWindow *parent = (wxWindow *)NULL, wxWindow *parent = NULL,
const wxPoint& pos = wxDefaultPosition); const wxPoint& pos = wxDefaultPosition);
#endif // wxUSE_NUMBERDLG #endif // wxUSE_NUMBERDLG

View File

@@ -24,7 +24,7 @@
class WXDLLIMPEXP_CORE wxPostScriptPrinter : public wxPrinterBase class WXDLLIMPEXP_CORE wxPostScriptPrinter : public wxPrinterBase
{ {
public: public:
wxPostScriptPrinter(wxPrintDialogData *data = (wxPrintDialogData *) NULL); wxPostScriptPrinter(wxPrintDialogData *data = NULL);
virtual ~wxPostScriptPrinter(); virtual ~wxPostScriptPrinter();
virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true); virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true);
@@ -44,8 +44,8 @@ class WXDLLIMPEXP_CORE wxPostScriptPrintPreview : public wxPrintPreviewBase
{ {
public: public:
wxPostScriptPrintPreview(wxPrintout *printout, wxPostScriptPrintPreview(wxPrintout *printout,
wxPrintout *printoutForPrinting = (wxPrintout *) NULL, wxPrintout *printoutForPrinting = NULL,
wxPrintDialogData *data = (wxPrintDialogData *) NULL); wxPrintDialogData *data = NULL);
wxPostScriptPrintPreview(wxPrintout *printout, wxPostScriptPrintPreview(wxPrintout *printout,
wxPrintout *printoutForPrinting, wxPrintout *printoutForPrinting,
wxPrintData *data); wxPrintData *data);

View File

@@ -141,7 +141,7 @@ class WXDLLIMPEXP_CORE wxGenericPrintDialog : public wxPrintDialogBase
{ {
public: public:
wxGenericPrintDialog(wxWindow *parent, wxGenericPrintDialog(wxWindow *parent,
wxPrintDialogData* data = (wxPrintDialogData*)NULL); wxPrintDialogData* data = NULL);
wxGenericPrintDialog(wxWindow *parent, wxPrintData* data); wxGenericPrintDialog(wxWindow *parent, wxPrintData* data);
virtual ~wxGenericPrintDialog(); virtual ~wxGenericPrintDialog();

View File

@@ -119,7 +119,7 @@ public:
// Removes the specified (or second) window from the view // Removes the specified (or second) window from the view
// Doesn't actually delete the window. // Doesn't actually delete the window.
bool Unsplit(wxWindow *toRemove = (wxWindow *) NULL); bool Unsplit(wxWindow *toRemove = NULL);
// Replaces one of the windows with another one (neither old nor new // Replaces one of the windows with another one (neither old nor new
// parameter should be NULL) // parameter should be NULL)
@@ -316,7 +316,7 @@ class WXDLLIMPEXP_CORE wxSplitterEvent : public wxNotifyEvent
{ {
public: public:
wxSplitterEvent(wxEventType type = wxEVT_NULL, wxSplitterEvent(wxEventType type = wxEVT_NULL,
wxSplitterWindow *splitter = (wxSplitterWindow *)NULL) wxSplitterWindow *splitter = NULL)
: wxNotifyEvent(type) : wxNotifyEvent(type)
{ {
SetEventObject(splitter); SetEventObject(splitter);

View File

@@ -31,7 +31,7 @@ class WXDLLIMPEXP_CORE wxTabControl: public wxObject
{ {
DECLARE_DYNAMIC_CLASS(wxTabControl) DECLARE_DYNAMIC_CLASS(wxTabControl)
public: public:
wxTabControl(wxTabView *v = (wxTabView *) NULL); wxTabControl(wxTabView *v = NULL);
virtual ~wxTabControl(void); virtual ~wxTabControl(void);
virtual void OnDraw(wxDC& dc, bool lastInRow); virtual void OnDraw(wxDC& dc, bool lastInRow);
@@ -108,7 +108,7 @@ public:
inline wxWindow* GetWindow(void) const { return m_window; } inline wxWindow* GetWindow(void) const { return m_window; }
// Automatically positions tabs // Automatically positions tabs
wxTabControl *AddTab(int id, const wxString& label, wxTabControl *existingTab = (wxTabControl *) NULL); wxTabControl *AddTab(int id, const wxString& label, wxTabControl *existingTab = NULL);
// Remove the tab without deleting the window // Remove the tab without deleting the window
bool RemoveTab(int id); bool RemoveTab(int id);

View File

@@ -97,7 +97,7 @@ WXDLLIMPEXP_CORE wxString
wxGetTextFromUser(const wxString& message, wxGetTextFromUser(const wxString& message,
const wxString& caption = wxGetTextFromUserPromptStr, const wxString& caption = wxGetTextFromUserPromptStr,
const wxString& default_value = wxEmptyString, const wxString& default_value = wxEmptyString,
wxWindow *parent = (wxWindow *) NULL, wxWindow *parent = NULL,
wxCoord x = wxDefaultCoord, wxCoord x = wxDefaultCoord,
wxCoord y = wxDefaultCoord, wxCoord y = wxDefaultCoord,
bool centre = true); bool centre = true);
@@ -106,7 +106,7 @@ WXDLLIMPEXP_CORE wxString
wxGetPasswordFromUser(const wxString& message, wxGetPasswordFromUser(const wxString& message,
const wxString& caption = wxGetPasswordFromUserPromptStr, const wxString& caption = wxGetPasswordFromUserPromptStr,
const wxString& default_value = wxEmptyString, const wxString& default_value = wxEmptyString,
wxWindow *parent = (wxWindow *) NULL, wxWindow *parent = NULL,
wxCoord x = wxDefaultCoord, wxCoord x = wxDefaultCoord,
wxCoord y = wxDefaultCoord, wxCoord y = wxDefaultCoord,
bool centre = true); bool centre = true);

View File

@@ -85,7 +85,7 @@ public:
wxBitmap GetSubBitmap( const wxRect& rect ) const; wxBitmap GetSubBitmap( const wxRect& rect ) const;
bool SaveFile(const wxString &name, wxBitmapType type, bool SaveFile(const wxString &name, wxBitmapType type,
const wxPalette *palette = (wxPalette *)NULL) const; const wxPalette *palette = NULL) const;
bool LoadFile(const wxString &name, wxBitmapType type = wxBITMAP_DEFAULT_TYPE); bool LoadFile(const wxString &name, wxBitmapType type = wxBITMAP_DEFAULT_TYPE);
#if wxUSE_PALETTE #if wxUSE_PALETTE

View File

@@ -50,7 +50,7 @@ public:
bool Create( wxWindow *parent, wxWindowID id, bool Create( wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = (wxString *) NULL, int n = 0, const wxString choices[] = NULL,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxChoiceNameStr ); const wxString& name = wxChoiceNameStr );

View File

@@ -20,10 +20,10 @@ class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog
public: public:
wxColourDialog() {} wxColourDialog() {}
wxColourDialog(wxWindow *parent, wxColourDialog(wxWindow *parent,
wxColourData *data = (wxColourData *)NULL); wxColourData *data = NULL);
virtual ~wxColourDialog() {} virtual ~wxColourDialog() {}
bool Create(wxWindow *parent, wxColourData *data = (wxColourData *)NULL); bool Create(wxWindow *parent, wxColourData *data = NULL);
wxColourData &GetColourData() { return m_data; } wxColourData &GetColourData() { return m_data; }

View File

@@ -49,7 +49,7 @@ public:
} }
protected: protected:
void Init() { m_pngData = (void *)NULL; m_pngSize = 0; } void Init() { m_pngData = NULL; m_pngSize = 0; }
void Clear() { free(m_pngData); } void Clear() { free(m_pngData); }
void ClearAll() { Clear(); Init(); } void ClearAll() { Clear(); Init(); }

View File

@@ -70,9 +70,9 @@ public:
double angle); double angle);
virtual void DoGetTextExtent( const wxString &string, virtual void DoGetTextExtent( const wxString &string,
wxCoord *width, wxCoord *height, wxCoord *width, wxCoord *height,
wxCoord *descent = (wxCoord *) NULL, wxCoord *descent = NULL,
wxCoord *externalLeading = (wxCoord *) NULL, wxCoord *externalLeading = NULL,
const wxFont *theFont = (wxFont *) NULL) const; const wxFont *theFont = NULL) const;
virtual bool DoGetPartialTextExtents(const wxString& text, wxArrayInt& widths) const; virtual bool DoGetPartialTextExtents(const wxString& text, wxArrayInt& widths) const;
virtual void DoSetClippingRegion( wxCoord x, wxCoord y, wxCoord width, wxCoord height ); virtual void DoSetClippingRegion( wxCoord x, wxCoord y, wxCoord width, wxCoord height );
virtual void DoSetDeviceClippingRegion( const wxRegion &region ); virtual void DoSetDeviceClippingRegion( const wxRegion &region );

View File

@@ -29,7 +29,7 @@
class WXDLLIMPEXP_CORE wxDropTarget: public wxDropTargetBase class WXDLLIMPEXP_CORE wxDropTarget: public wxDropTargetBase
{ {
public: public:
wxDropTarget(wxDataObject *dataObject = (wxDataObject*) NULL ); wxDropTarget(wxDataObject *dataObject = NULL );
virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def); virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def);
virtual bool OnDrop(wxCoord x, wxCoord y); virtual bool OnDrop(wxCoord x, wxCoord y);
@@ -63,7 +63,7 @@ class WXDLLIMPEXP_CORE wxDropSource: public wxDropSourceBase
{ {
public: public:
// constructor. set data later with SetData() // constructor. set data later with SetData()
wxDropSource( wxWindow *win = (wxWindow *)NULL, wxDropSource( wxWindow *win = NULL,
const wxIcon &copy = wxNullIcon, const wxIcon &copy = wxNullIcon,
const wxIcon &move = wxNullIcon, const wxIcon &move = wxNullIcon,
const wxIcon &none = wxNullIcon); const wxIcon &none = wxNullIcon);

View File

@@ -281,9 +281,9 @@ protected:
wxFAIL_MSG( "not implemented" ); wxFAIL_MSG( "not implemented" );
} }
void DoGetTextExtent(const wxString& string, wxCoord *x, wxCoord *y, void DoGetTextExtent(const wxString& string, wxCoord *x, wxCoord *y,
wxCoord *descent = (wxCoord *) NULL, wxCoord *descent = NULL,
wxCoord *externalLeading = (wxCoord *) NULL, wxCoord *externalLeading = NULL,
const wxFont *theFont = (wxFont *) NULL ) const; const wxFont *theFont = NULL ) const;
void DoGetSize(int* width, int* height) const; void DoGetSize(int* width, int* height) const;
void DoGetSizeMM(int *width, int *height) const; void DoGetSizeMM(int *width, int *height) const;
@@ -325,8 +325,8 @@ class wxGnomePrintPreview : public wxPrintPreviewBase
{ {
public: public:
wxGnomePrintPreview(wxPrintout *printout, wxGnomePrintPreview(wxPrintout *printout,
wxPrintout *printoutForPrinting = (wxPrintout *) NULL, wxPrintout *printoutForPrinting = NULL,
wxPrintDialogData *data = (wxPrintDialogData *) NULL); wxPrintDialogData *data = NULL);
wxGnomePrintPreview(wxPrintout *printout, wxGnomePrintPreview(wxPrintout *printout,
wxPrintout *printoutForPrinting, wxPrintout *printoutForPrinting,
wxPrintData *data); wxPrintData *data);

View File

@@ -19,12 +19,12 @@
class WXDLLIMPEXP_CORE wxMenuItem : public wxMenuItemBase class WXDLLIMPEXP_CORE wxMenuItem : public wxMenuItemBase
{ {
public: public:
wxMenuItem(wxMenu *parentMenu = (wxMenu *)NULL, wxMenuItem(wxMenu *parentMenu = NULL,
int id = wxID_SEPARATOR, int id = wxID_SEPARATOR,
const wxString& text = wxEmptyString, const wxString& text = wxEmptyString,
const wxString& help = wxEmptyString, const wxString& help = wxEmptyString,
wxItemKind kind = wxITEM_NORMAL, wxItemKind kind = wxITEM_NORMAL,
wxMenu *subMenu = (wxMenu *)NULL); wxMenu *subMenu = NULL);
virtual ~wxMenuItem(); virtual ~wxMenuItem();
// implement base class virtuals // implement base class virtuals

View File

@@ -288,9 +288,9 @@ protected:
wxFAIL_MSG( "not implemented" ); wxFAIL_MSG( "not implemented" );
} }
void DoGetTextExtent(const wxString& string, wxCoord *x, wxCoord *y, void DoGetTextExtent(const wxString& string, wxCoord *x, wxCoord *y,
wxCoord *descent = (wxCoord *) NULL, wxCoord *descent = NULL,
wxCoord *externalLeading = (wxCoord *) NULL, wxCoord *externalLeading = NULL,
const wxFont *theFont = (wxFont *) NULL ) const; const wxFont *theFont = NULL ) const;
void DoGetSize(int* width, int* height) const; void DoGetSize(int* width, int* height) const;
void DoGetSizeMM(int *width, int *height) const; void DoGetSizeMM(int *width, int *height) const;
@@ -327,8 +327,8 @@ class WXDLLIMPEXP_CORE wxGtkPrintPreview : public wxPrintPreviewBase
{ {
public: public:
wxGtkPrintPreview(wxPrintout *printout, wxGtkPrintPreview(wxPrintout *printout,
wxPrintout *printoutForPrinting = (wxPrintout *) NULL, wxPrintout *printoutForPrinting = NULL,
wxPrintDialogData *data = (wxPrintDialogData *) NULL); wxPrintDialogData *data = NULL);
wxGtkPrintPreview(wxPrintout *printout, wxGtkPrintPreview(wxPrintout *printout,
wxPrintout *printoutForPrinting, wxPrintout *printoutForPrinting,
wxPrintData *data); wxPrintData *data);

View File

@@ -84,8 +84,8 @@ public:
virtual int GetCharWidth() const; virtual int GetCharWidth() const;
virtual void GetTextExtent(const wxString& string, virtual void GetTextExtent(const wxString& string,
int *x, int *y, int *x, int *y,
int *descent = (int *) NULL, int *descent = NULL,
int *externalLeading = (int *) NULL, int *externalLeading = NULL,
const wxFont *theFont = (const wxFont *) NULL) const wxFont *theFont = (const wxFont *) NULL)
const; const;
@@ -96,7 +96,7 @@ public:
virtual int GetScrollThumb( int orient ) const; virtual int GetScrollThumb( int orient ) const;
virtual int GetScrollRange( int orient ) const; virtual int GetScrollRange( int orient ) const;
virtual void ScrollWindow( int dx, int dy, virtual void ScrollWindow( int dx, int dy,
const wxRect* rect = (wxRect *) NULL ); const wxRect* rect = NULL );
virtual bool ScrollLines(int lines); virtual bool ScrollLines(int lines);
virtual bool ScrollPages(int pages); virtual bool ScrollPages(int pages);

View File

@@ -96,7 +96,7 @@ public:
wxBitmap GetSubBitmap( const wxRect& rect ) const; wxBitmap GetSubBitmap( const wxRect& rect ) const;
bool SaveFile(const wxString &name, wxBitmapType type, bool SaveFile(const wxString &name, wxBitmapType type,
const wxPalette *palette = (wxPalette *)NULL) const; const wxPalette *palette = NULL) const;
bool LoadFile(const wxString &name, wxBitmapType type = wxBITMAP_DEFAULT_TYPE); bool LoadFile(const wxString &name, wxBitmapType type = wxBITMAP_DEFAULT_TYPE);
#if wxUSE_PALETTE #if wxUSE_PALETTE

View File

@@ -29,7 +29,7 @@ public:
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxChoiceNameStr ) const wxString& name = wxChoiceNameStr )
{ {
m_strings = (wxSortedArrayString *)NULL; m_strings = NULL;
Create(parent, id, pos, size, n, choices, style, validator, name); Create(parent, id, pos, size, n, choices, style, validator, name);
} }
@@ -41,7 +41,7 @@ public:
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxChoiceNameStr ) const wxString& name = wxChoiceNameStr )
{ {
m_strings = (wxSortedArrayString *)NULL; m_strings = NULL;
Create(parent, id, pos, size, choices, style, validator, name); Create(parent, id, pos, size, choices, style, validator, name);
} }
@@ -49,7 +49,7 @@ public:
bool Create( wxWindow *parent, wxWindowID id, bool Create( wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = (wxString *) NULL, int n = 0, const wxString choices[] = NULL,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxChoiceNameStr ); const wxString& name = wxChoiceNameStr );

View File

@@ -23,10 +23,10 @@ class WXDLLIMPEXP_CORE wxColourDialog : public wxDialog
public: public:
wxColourDialog() {} wxColourDialog() {}
wxColourDialog(wxWindow *parent, wxColourDialog(wxWindow *parent,
wxColourData *data = (wxColourData *)NULL); wxColourData *data = NULL);
virtual ~wxColourDialog() {} virtual ~wxColourDialog() {}
bool Create(wxWindow *parent, wxColourData *data = (wxColourData *)NULL); bool Create(wxWindow *parent, wxColourData *data = NULL);
wxColourData &GetColourData() { return m_data; } wxColourData &GetColourData() { return m_data; }

View File

@@ -36,7 +36,7 @@ public:
virtual bool SetData(size_t len, const void *buf); virtual bool SetData(size_t len, const void *buf);
protected: protected:
void Init() { m_pngData = (void *)NULL; m_pngSize = 0; } void Init() { m_pngData = NULL; m_pngSize = 0; }
void Clear() { free(m_pngData); } void Clear() { free(m_pngData); }
void ClearAll() { Clear(); Init(); } void ClearAll() { Clear(); Init(); }

View File

@@ -73,9 +73,9 @@ protected:
double angle); double angle);
virtual void DoGetTextExtent( const wxString &string, virtual void DoGetTextExtent( const wxString &string,
wxCoord *width, wxCoord *height, wxCoord *width, wxCoord *height,
wxCoord *descent = (wxCoord *) NULL, wxCoord *descent = NULL,
wxCoord *externalLeading = (wxCoord *) NULL, wxCoord *externalLeading = NULL,
const wxFont *theFont = (wxFont *) NULL) const; const wxFont *theFont = NULL) const;
public: public:
virtual wxCoord GetCharWidth() const; virtual wxCoord GetCharWidth() const;

View File

@@ -48,7 +48,7 @@ class WXDLLIMPEXP_FWD_CORE wxDropSource;
class WXDLLIMPEXP_CORE wxDropTarget: public wxDropTargetBase class WXDLLIMPEXP_CORE wxDropTarget: public wxDropTargetBase
{ {
public: public:
wxDropTarget(wxDataObject *dataObject = (wxDataObject*) NULL ); wxDropTarget(wxDataObject *dataObject = NULL );
virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def); virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def);
virtual bool OnDrop(wxCoord x, wxCoord y); virtual bool OnDrop(wxCoord x, wxCoord y);
@@ -82,7 +82,7 @@ class WXDLLIMPEXP_CORE wxDropSource: public wxDropSourceBase
{ {
public: public:
// constructor. set data later with SetData() // constructor. set data later with SetData()
wxDropSource( wxWindow *win = (wxWindow *)NULL, wxDropSource( wxWindow *win = NULL,
const wxIcon &copy = wxNullIcon, const wxIcon &copy = wxNullIcon,
const wxIcon &move = wxNullIcon, const wxIcon &move = wxNullIcon,
const wxIcon &none = wxNullIcon); const wxIcon &none = wxNullIcon);

View File

@@ -19,12 +19,12 @@
class WXDLLIMPEXP_CORE wxMenuItem : public wxMenuItemBase class WXDLLIMPEXP_CORE wxMenuItem : public wxMenuItemBase
{ {
public: public:
wxMenuItem(wxMenu *parentMenu = (wxMenu *)NULL, wxMenuItem(wxMenu *parentMenu = NULL,
int id = wxID_SEPARATOR, int id = wxID_SEPARATOR,
const wxString& text = wxEmptyString, const wxString& text = wxEmptyString,
const wxString& help = wxEmptyString, const wxString& help = wxEmptyString,
wxItemKind kind = wxITEM_NORMAL, wxItemKind kind = wxITEM_NORMAL,
wxMenu *subMenu = (wxMenu *)NULL); wxMenu *subMenu = NULL);
virtual ~wxMenuItem(); virtual ~wxMenuItem();
// implement base class virtuals // implement base class virtuals
@@ -55,7 +55,7 @@ public:
const wxString& text, const wxString& text,
const wxString& help, const wxString& help,
bool isCheckable, bool isCheckable,
wxMenu *subMenu = (wxMenu *)NULL); wxMenu *subMenu = NULL);
private: private:
// common part of all ctors // common part of all ctors

View File

@@ -26,7 +26,7 @@ class WXDLLIMPEXP_CORE wxScrollBar: public wxScrollBarBase
{ {
public: public:
wxScrollBar() wxScrollBar()
{ m_adjust = (GtkAdjustment *) NULL; m_oldPos = 0.0; } { m_adjust = NULL; m_oldPos = 0.0; }
inline wxScrollBar( wxWindow *parent, wxWindowID id, inline wxScrollBar( wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,

View File

@@ -86,8 +86,8 @@ public:
virtual int GetCharWidth() const; virtual int GetCharWidth() const;
virtual void GetTextExtent(const wxString& string, virtual void GetTextExtent(const wxString& string,
int *x, int *y, int *x, int *y,
int *descent = (int *) NULL, int *descent = NULL,
int *externalLeading = (int *) NULL, int *externalLeading = NULL,
const wxFont *theFont = (const wxFont *) NULL) const wxFont *theFont = (const wxFont *) NULL)
const; const;
@@ -102,7 +102,7 @@ public:
virtual int GetScrollThumb( int orient ) const; virtual int GetScrollThumb( int orient ) const;
virtual int GetScrollRange( int orient ) const; virtual int GetScrollRange( int orient ) const;
virtual void ScrollWindow( int dx, int dy, virtual void ScrollWindow( int dx, int dy,
const wxRect* rect = (wxRect *) NULL ); const wxRect* rect = NULL );
#if wxUSE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
virtual void SetDropTarget( wxDropTarget *dropTarget ); virtual void SetDropTarget( wxDropTarget *dropTarget );

View File

@@ -82,7 +82,7 @@ public:
wxPoint *WXUNUSED(pos) = NULL, wxPoint *WXUNUSED(pos) = NULL,
bool *WXUNUSED(newFrameEachTime) = NULL) bool *WXUNUSED(newFrameEachTime) = NULL)
{ {
return (wxFrame*) NULL; // does nothing by default return NULL; // does nothing by default
} }
virtual bool Quit() = 0; virtual bool Quit() = 0;

View File

@@ -145,7 +145,7 @@ public:
void SetNavigationType(int navType) { m_navType = navType; } void SetNavigationType(int navType) { m_navType = navType; }
int GetNavigationType() { return m_navType; } int GetNavigationType() { return m_navType; }
wxWebKitBeforeLoadEvent( wxWindow* win = (wxWindow*) NULL ); wxWebKitBeforeLoadEvent( wxWindow* win = NULL );
wxEvent *Clone(void) const { return new wxWebKitBeforeLoadEvent(*this); } wxEvent *Clone(void) const { return new wxWebKitBeforeLoadEvent(*this); }
protected: protected:
@@ -164,7 +164,7 @@ public:
wxString GetURL() { return m_url; } wxString GetURL() { return m_url; }
void SetURL(const wxString& url) { m_url = url; } void SetURL(const wxString& url) { m_url = url; }
wxWebKitStateChangedEvent( wxWindow* win = (wxWindow*) NULL ); wxWebKitStateChangedEvent( wxWindow* win = NULL );
wxEvent *Clone(void) const { return new wxWebKitStateChangedEvent(*this); } wxEvent *Clone(void) const { return new wxWebKitStateChangedEvent(*this); }
protected: protected:
@@ -212,21 +212,21 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_WEBKIT_NEW_WINDOW, wxWebKitNew
wxID_ANY, \ wxID_ANY, \
wxID_ANY, \ wxID_ANY, \
wxWebKitStateChangedEventHandler( func ), \ wxWebKitStateChangedEventHandler( func ), \
(wxObject *) NULL ), NULL ),
#define EVT_WEBKIT_BEFORE_LOAD(func) \ #define EVT_WEBKIT_BEFORE_LOAD(func) \
DECLARE_EVENT_TABLE_ENTRY( wxEVT_WEBKIT_BEFORE_LOAD, \ DECLARE_EVENT_TABLE_ENTRY( wxEVT_WEBKIT_BEFORE_LOAD, \
wxID_ANY, \ wxID_ANY, \
wxID_ANY, \ wxID_ANY, \
wxWebKitBeforeLoadEventHandler( func ), \ wxWebKitBeforeLoadEventHandler( func ), \
(wxObject *) NULL ), NULL ),
#define EVT_WEBKIT_NEW_WINDOW(func) \ #define EVT_WEBKIT_NEW_WINDOW(func) \
DECLARE_EVENT_TABLE_ENTRY( wxEVT_WEBKIT_NEW_WINDOW, \ DECLARE_EVENT_TABLE_ENTRY( wxEVT_WEBKIT_NEW_WINDOW, \
wxID_ANY, \ wxID_ANY, \
wxID_ANY, \ wxID_ANY, \
wxWebKitNewWindowEventFunction( func ), \ wxWebKitNewWindowEventFunction( func ), \
(wxObject *) NULL ), NULL ),
#endif // wxUSE_WEBKIT #endif // wxUSE_WEBKIT
#endif #endif

View File

@@ -286,7 +286,7 @@ public:
// Rotates the image about the given point, 'angle' radians. // Rotates the image about the given point, 'angle' radians.
// Returns the rotated image, leaving this image intact. // Returns the rotated image, leaving this image intact.
wxImage Rotate(double angle, const wxPoint & centre_of_rotation, wxImage Rotate(double angle, const wxPoint & centre_of_rotation,
bool interpolating = true, wxPoint * offset_after_rotation = (wxPoint*) NULL) const; bool interpolating = true, wxPoint * offset_after_rotation = NULL) const;
wxImage Rotate90( bool clockwise = true ) const; wxImage Rotate90( bool clockwise = true ) const;
wxImage Mirror( bool horizontally = true ) const; wxImage Mirror( bool horizontally = true ) const;

View File

@@ -378,7 +378,7 @@ class WXDLLIMPEXP_BASE wxLogStderr : public wxLog
{ {
public: public:
// redirect log output to a FILE // redirect log output to a FILE
wxLogStderr(FILE *fp = (FILE *) NULL); wxLogStderr(FILE *fp = NULL);
protected: protected:
// implement sink function // implement sink function

View File

@@ -337,18 +337,18 @@ typedef void (wxEvtHandler::*wxMediaEventFunction)(wxMediaEvent&);
wxEVENT_HANDLER_CAST(wxMediaEventFunction, func) wxEVENT_HANDLER_CAST(wxMediaEventFunction, func)
//Macro for usage with message maps //Macro for usage with message maps
#define EVT_MEDIA_FINISHED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_FINISHED, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ), #define EVT_MEDIA_FINISHED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_FINISHED, winid, wxID_ANY, wxMediaEventHandler(fn), NULL ),
#define EVT_MEDIA_STOP(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_STOP, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ), #define EVT_MEDIA_STOP(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_STOP, winid, wxID_ANY, wxMediaEventHandler(fn), NULL ),
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_LOADED, wxMediaEvent ) wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_LOADED, wxMediaEvent )
#define EVT_MEDIA_LOADED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_LOADED, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ), #define EVT_MEDIA_LOADED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_LOADED, winid, wxID_ANY, wxMediaEventHandler(fn), NULL ),
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_STATECHANGED, wxMediaEvent ) wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_STATECHANGED, wxMediaEvent )
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_PLAY, wxMediaEvent ) wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_PLAY, wxMediaEvent )
wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_PAUSE, wxMediaEvent ) wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_MEDIA, wxEVT_MEDIA_PAUSE, wxMediaEvent )
#define EVT_MEDIA_STATECHANGED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_STATECHANGED, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ), #define EVT_MEDIA_STATECHANGED(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_STATECHANGED, winid, wxID_ANY, wxMediaEventHandler(fn), NULL ),
#define EVT_MEDIA_PLAY(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_PLAY, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ), #define EVT_MEDIA_PLAY(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_PLAY, winid, wxID_ANY, wxMediaEventHandler(fn), NULL ),
#define EVT_MEDIA_PAUSE(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_PAUSE, winid, wxID_ANY, wxMediaEventHandler(fn), (wxObject *) NULL ), #define EVT_MEDIA_PAUSE(winid, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_MEDIA_PAUSE, winid, wxID_ANY, wxMediaEventHandler(fn), NULL ),
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// common backend base class used by many other backends // common backend base class used by many other backends

View File

@@ -267,7 +267,7 @@ public:
// Updates the UI for a menu and all submenus recursively. source is the // Updates the UI for a menu and all submenus recursively. source is the
// object that has the update event handlers defined for it. If NULL, the // object that has the update event handlers defined for it. If NULL, the
// menu or associated window will be used. // menu or associated window will be used.
void UpdateUI(wxEvtHandler* source = (wxEvtHandler*)NULL); void UpdateUI(wxEvtHandler* source = NULL);
// get the menu bar this menu is attached to (may be NULL, always NULL for // get the menu bar this menu is attached to (may be NULL, always NULL for
// popup menus). Traverse up the menu hierarchy to find it. // popup menus). Traverse up the menu hierarchy to find it.

View File

@@ -39,12 +39,12 @@ class WXDLLIMPEXP_CORE wxMenuItemBase : public wxObject
{ {
public: public:
// creation // creation
static wxMenuItem *New(wxMenu *parentMenu = (wxMenu *)NULL, static wxMenuItem *New(wxMenu *parentMenu = NULL,
int itemid = wxID_SEPARATOR, int itemid = wxID_SEPARATOR,
const wxString& text = wxEmptyString, const wxString& text = wxEmptyString,
const wxString& help = wxEmptyString, const wxString& help = wxEmptyString,
wxItemKind kind = wxITEM_NORMAL, wxItemKind kind = wxITEM_NORMAL,
wxMenu *subMenu = (wxMenu *)NULL); wxMenu *subMenu = NULL);
// destruction: wxMenuItem will delete its submenu // destruction: wxMenuItem will delete its submenu
virtual ~wxMenuItemBase(); virtual ~wxMenuItemBase();
@@ -138,7 +138,7 @@ public:
const wxString& text, const wxString& text,
const wxString& help, const wxString& help,
bool isCheckable, bool isCheckable,
wxMenu *subMenu = (wxMenu *)NULL) wxMenu *subMenu = NULL)
{ {
return New(parentMenu, itemid, text, help, return New(parentMenu, itemid, text, help,
isCheckable ? wxITEM_CHECK : wxITEM_NORMAL, subMenu); isCheckable ? wxITEM_CHECK : wxITEM_NORMAL, subMenu);
@@ -155,12 +155,12 @@ protected:
bool m_isEnabled; // is enabled? bool m_isEnabled; // is enabled?
// this ctor is for the derived classes only, we're never created directly // this ctor is for the derived classes only, we're never created directly
wxMenuItemBase(wxMenu *parentMenu = (wxMenu *)NULL, wxMenuItemBase(wxMenu *parentMenu = NULL,
int itemid = wxID_SEPARATOR, int itemid = wxID_SEPARATOR,
const wxString& text = wxEmptyString, const wxString& text = wxEmptyString,
const wxString& help = wxEmptyString, const wxString& help = wxEmptyString,
wxItemKind kind = wxITEM_NORMAL, wxItemKind kind = wxITEM_NORMAL,
wxMenu *subMenu = (wxMenu *)NULL); wxMenu *subMenu = NULL);
private: private:
// and, if we have one ctor, compiler won't generate a default copy one, so // and, if we have one ctor, compiler won't generate a default copy one, so

View File

@@ -47,7 +47,7 @@ public:
virtual wxBitmap GetSubBitmap(const wxRect& rect) const; virtual wxBitmap GetSubBitmap(const wxRect& rect) const;
virtual bool SaveFile(const wxString &name, wxBitmapType type, const wxPalette *palette = (wxPalette *) NULL) const; virtual bool SaveFile(const wxString &name, wxBitmapType type, const wxPalette *palette = NULL) const;
virtual bool LoadFile(const wxString &name, wxBitmapType type = wxBITMAP_DEFAULT_TYPE); virtual bool LoadFile(const wxString &name, wxBitmapType type = wxBITMAP_DEFAULT_TYPE);
virtual wxPalette *GetPalette() const; virtual wxPalette *GetPalette() const;

View File

@@ -76,8 +76,8 @@ public:
virtual int GetCharWidth() const; virtual int GetCharWidth() const;
virtual void GetTextExtent(const wxString& string, virtual void GetTextExtent(const wxString& string,
int *x, int *y, int *x, int *y,
int *descent = (int *) NULL, int *descent = NULL,
int *externalLeading = (int *) NULL, int *externalLeading = NULL,
const wxFont *theFont = (const wxFont *) NULL) const wxFont *theFont = (const wxFont *) NULL)
const; const;

View File

@@ -24,7 +24,7 @@ public:
m_armPixmap = (WXPixmap)NULL; m_armPixmap = (WXPixmap)NULL;
m_insensPixmap = (WXPixmap)NULL; m_insensPixmap = (WXPixmap)NULL;
m_image = (WXImage)NULL; m_image = (WXImage)NULL;
m_display = (WXDisplay*)NULL; m_display = NULL;
SetColoursChanged(); SetColoursChanged();
} }

View File

@@ -24,12 +24,12 @@ class WXDLLIMPEXP_CORE wxMenuItem : public wxMenuItemBase
{ {
public: public:
// ctor & dtor // ctor & dtor
wxMenuItem(wxMenu *parentMenu = (wxMenu *)NULL, wxMenuItem(wxMenu *parentMenu = NULL,
int id = wxID_SEPARATOR, int id = wxID_SEPARATOR,
const wxString& text = wxEmptyString, const wxString& text = wxEmptyString,
const wxString& help = wxEmptyString, const wxString& help = wxEmptyString,
wxItemKind kind = wxITEM_NORMAL, wxItemKind kind = wxITEM_NORMAL,
wxMenu *subMenu = (wxMenu *)NULL); wxMenu *subMenu = NULL);
virtual ~wxMenuItem(); virtual ~wxMenuItem();
// accessors (some more are inherited from wxOwnerDrawn or are below) // accessors (some more are inherited from wxOwnerDrawn or are below)

View File

@@ -73,8 +73,8 @@ public:
virtual int GetCharWidth() const; virtual int GetCharWidth() const;
virtual void GetTextExtent(const wxString& string, virtual void GetTextExtent(const wxString& string,
int *x, int *y, int *x, int *y,
int *descent = (int *) NULL, int *descent = NULL,
int *externalLeading = (int *) NULL, int *externalLeading = NULL,
const wxFont *theFont = (const wxFont *) NULL) const wxFont *theFont = (const wxFont *) NULL)
const; const;
@@ -85,7 +85,7 @@ public:
virtual int GetScrollThumb( int orient ) const; virtual int GetScrollThumb( int orient ) const;
virtual int GetScrollRange( int orient ) const; virtual int GetScrollRange( int orient ) const;
virtual void ScrollWindow( int dx, int dy, virtual void ScrollWindow( int dx, int dy,
const wxRect* rect = (wxRect *) NULL ); const wxRect* rect = NULL );
#if wxUSE_DRAG_AND_DROP #if wxUSE_DRAG_AND_DROP
virtual void SetDropTarget( wxDropTarget *dropTarget ); virtual void SetDropTarget( wxDropTarget *dropTarget );

View File

@@ -214,7 +214,7 @@ public:
// Begin drag. hotspot is the location of the drag position relative to the upper-left // Begin drag. hotspot is the location of the drag position relative to the upper-left
// corner of the image. // corner of the image.
bool BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen = false, wxRect* rect = (wxRect*) NULL); bool BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen = false, wxRect* rect = NULL);
// Begin drag. hotspot is the location of the drag position relative to the upper-left // Begin drag. hotspot is the location of the drag position relative to the upper-left
// corner of the image. This is full screen only. fullScreenRect gives the // corner of the image. This is full screen only. fullScreenRect gives the

View File

@@ -37,7 +37,7 @@ public:
{ Free(); } { Free(); }
// display the picture stored in the metafile on the given DC // display the picture stored in the metafile on the given DC
bool Play(wxDC *dc, wxRect *rectBound = (wxRect *)NULL); bool Play(wxDC *dc, wxRect *rectBound = NULL);
// accessors // accessors
virtual bool IsOk() const { return m_hMF != 0; } virtual bool IsOk() const { return m_hMF != 0; }

View File

@@ -31,12 +31,12 @@ class WXDLLIMPEXP_CORE wxMenuItem : public wxMenuItemBase
{ {
public: public:
// ctor & dtor // ctor & dtor
wxMenuItem(wxMenu *parentMenu = (wxMenu *)NULL, wxMenuItem(wxMenu *parentMenu = NULL,
int id = wxID_SEPARATOR, int id = wxID_SEPARATOR,
const wxString& name = wxEmptyString, const wxString& name = wxEmptyString,
const wxString& help = wxEmptyString, const wxString& help = wxEmptyString,
wxItemKind kind = wxITEM_NORMAL, wxItemKind kind = wxITEM_NORMAL,
wxMenu *subMenu = (wxMenu *)NULL); wxMenu *subMenu = NULL);
virtual ~wxMenuItem(); virtual ~wxMenuItem();
// override base class virtuals // override base class virtuals

View File

@@ -220,7 +220,7 @@ typedef void (wxEvtHandler::*wxActiveXEventFunction)(wxActiveXEvent&);
#define wxActiveXEventHandler(func) \ #define wxActiveXEventHandler(func) \
wxEVENT_HANDLER_CAST( wxActiveXEventFunction, func ) wxEVENT_HANDLER_CAST( wxActiveXEventFunction, func )
#define EVT_ACTIVEX(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_ACTIVEX, id, -1, wxActiveXEventHandler( fn ), (wxObject *) NULL ), #define EVT_ACTIVEX(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_ACTIVEX, id, -1, wxActiveXEventHandler( fn ), NULL ),
#endif // wxUSE_ACTIVEX #endif // wxUSE_ACTIVEX

View File

@@ -64,7 +64,7 @@ public:
const wxVariant& arg5 = wxNullVariant, const wxVariant& arg6 = wxNullVariant); const wxVariant& arg5 = wxNullVariant, const wxVariant& arg6 = wxNullVariant);
// Get/Put property // Get/Put property
wxVariant GetProperty(const wxString& property, int noArgs = 0, wxVariant args[] = (wxVariant*) NULL) const; wxVariant GetProperty(const wxString& property, int noArgs = 0, wxVariant args[] = NULL) const;
wxVariant GetPropertyArray(const wxString& property, int noArgs, const wxVariant **args) const; wxVariant GetPropertyArray(const wxString& property, int noArgs, const wxVariant **args) const;
wxVariant GetProperty(const wxString& property, wxVariant GetProperty(const wxString& property,
const wxVariant& arg1, const wxVariant& arg2 = wxNullVariant, const wxVariant& arg1, const wxVariant& arg2 = wxNullVariant,
@@ -87,7 +87,7 @@ public:
// A way of initialising another wxAutomationObject with a dispatch object, // A way of initialising another wxAutomationObject with a dispatch object,
// without having to deal with nasty IDispatch pointers. // without having to deal with nasty IDispatch pointers.
bool GetObject(wxAutomationObject& obj, const wxString& property, int noArgs = 0, wxVariant args[] = (wxVariant*) NULL) const; bool GetObject(wxAutomationObject& obj, const wxString& property, int noArgs = 0, wxVariant args[] = NULL) const;
bool GetObject(wxAutomationObject& obj, const wxString& property, int noArgs, const wxVariant **args) const; bool GetObject(wxAutomationObject& obj, const wxString& property, int noArgs, const wxVariant **args) const;
public: public:

View File

@@ -91,8 +91,8 @@ public:
virtual int GetCharWidth() const; virtual int GetCharWidth() const;
virtual void GetTextExtent(const wxString& string, virtual void GetTextExtent(const wxString& string,
int *x, int *y, int *x, int *y,
int *descent = (int *) NULL, int *descent = NULL,
int *externalLeading = (int *) NULL, int *externalLeading = NULL,
const wxFont *theFont = (const wxFont *) NULL) const wxFont *theFont = (const wxFont *) NULL)
const; const;
@@ -103,7 +103,7 @@ public:
virtual int GetScrollThumb( int orient ) const; virtual int GetScrollThumb( int orient ) const;
virtual int GetScrollRange( int orient ) const; virtual int GetScrollRange( int orient ) const;
virtual void ScrollWindow( int dx, int dy, virtual void ScrollWindow( int dx, int dy,
const wxRect* rect = (wxRect *) NULL ); const wxRect* rect = NULL );
virtual bool ScrollLines(int lines); virtual bool ScrollLines(int lines);
virtual bool ScrollPages(int pages); virtual bool ScrollPages(int pages);

View File

@@ -184,12 +184,12 @@ public:
void SetQuality(int nQ); void SetQuality(int nQ);
wxPalette* GetPalette() const wxPalette* GetPalette() const
{ return (GetBitmapData() ? (& GetBitmapData()->m_vBitmapPalette) : (wxPalette*) NULL); } { return (GetBitmapData() ? (& GetBitmapData()->m_vBitmapPalette) : NULL); }
void SetPalette(const wxPalette& rPalette); void SetPalette(const wxPalette& rPalette);
inline wxMask* GetMask() const inline wxMask* GetMask() const
{ return (GetBitmapData() ? GetBitmapData()->m_pBitmapMask : (wxMask*) NULL); } { return (GetBitmapData() ? GetBitmapData()->m_pBitmapMask : NULL); }
void SetMask(wxMask* pMask) ; void SetMask(wxMask* pMask) ;
@@ -205,7 +205,7 @@ public:
{ if (GetBitmapData()) GetBitmapData()->m_pSelectedInto = pDc; } { if (GetBitmapData()) GetBitmapData()->m_pSelectedInto = pDc; }
inline wxDC* GetSelectedInto() const inline wxDC* GetSelectedInto() const
{ return (GetBitmapData() ? GetBitmapData()->m_pSelectedInto : (wxDC*) NULL); } { return (GetBitmapData() ? GetBitmapData()->m_pSelectedInto : NULL); }
inline bool IsMono(void) const { return m_bIsMono; } inline bool IsMono(void) const { return m_bIsMono; }

View File

@@ -37,7 +37,7 @@ public:
virtual bool SetData(size_t len, const void *buf); virtual bool SetData(size_t len, const void *buf);
protected: protected:
void Init() { m_pngData = (void *)NULL; m_pngSize = 0; } void Init() { m_pngData = NULL; m_pngSize = 0; }
void Clear() { free(m_pngData); } void Clear() { free(m_pngData); }
void ClearAll() { Clear(); Init(); } void ClearAll() { Clear(); Init(); }

View File

@@ -62,7 +62,7 @@ protected:
class WXDLLIMPEXP_CORE wxDropTarget : public wxDropTargetBase class WXDLLIMPEXP_CORE wxDropTarget : public wxDropTargetBase
{ {
public: public:
wxDropTarget(wxDataObject* pDataObject = (wxDataObject*)NULL); wxDropTarget(wxDataObject* pDataObject = NULL);
virtual ~wxDropTarget(); virtual ~wxDropTarget();
// //

View File

@@ -58,7 +58,7 @@ public:
,const wxString& rsText ,const wxString& rsText
,const wxString& rsHelp ,const wxString& rsHelp
,bool bIsCheckable ,bool bIsCheckable
,wxMenu* pSubMenu = (wxMenu *)NULL ,wxMenu* pSubMenu = NULL
); );
virtual ~wxMenuItem(); virtual ~wxMenuItem();

View File

@@ -448,7 +448,7 @@ public:
// //
// returns NULL for OS/2 in ALL cases // returns NULL for OS/2 in ALL cases
// //
wxTextCtrl* GetEditControl(void) const {return (wxTextCtrl*)NULL;} wxTextCtrl* GetEditControl(void) const {return NULL;}
// //
// End editing and accept or discard the changes to item label // End editing and accept or discard the changes to item label

View File

@@ -101,8 +101,8 @@ public:
virtual void GetTextExtent( const wxString& rString virtual void GetTextExtent( const wxString& rString
,int* pX ,int* pX
,int* pY ,int* pY
,int* pDescent = (int *)NULL ,int* pDescent = NULL
,int* pExternalLeading = (int *)NULL ,int* pExternalLeading = NULL
,const wxFont* pTheFont = (const wxFont *)NULL ,const wxFont* pTheFont = (const wxFont *)NULL
) const; ) const;
#if wxUSE_MENUS_NATIVE #if wxUSE_MENUS_NATIVE
@@ -127,7 +127,7 @@ public:
virtual int GetScrollRange(int nOrient) const; virtual int GetScrollRange(int nOrient) const;
virtual void ScrollWindow( int nDx virtual void ScrollWindow( int nDx
,int nDy ,int nDy
,const wxRect* pRect = (wxRect *)NULL ,const wxRect* pRect = NULL
); );
inline HWND GetScrollBarHorz(void) const {return m_hWndScrollBarHorz;} inline HWND GetScrollBarHorz(void) const {return m_hWndScrollBarHorz;}

View File

@@ -49,7 +49,7 @@ class WXDLLIMPEXP_CORE wxDropTarget: public wxDropTargetBase
{ {
public: public:
wxDropTarget(wxDataObject *dataObject = (wxDataObject*) NULL ); wxDropTarget(wxDataObject *dataObject = NULL );
virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def); virtual wxDragResult OnDragOver(wxCoord x, wxCoord y, wxDragResult def);
virtual bool OnDrop(wxCoord x, wxCoord y); virtual bool OnDrop(wxCoord x, wxCoord y);
@@ -74,7 +74,7 @@ public:
// //
// NB: the "wxWindow *win" parameter is unused and is here only for wxGTK // NB: the "wxWindow *win" parameter is unused and is here only for wxGTK
// compatibility, as well as both icon parameters // compatibility, as well as both icon parameters
wxDropSource( wxWindow *win = (wxWindow *)NULL, wxDropSource( wxWindow *win = NULL,
const wxCursor &cursorCopy = wxNullCursor, const wxCursor &cursorCopy = wxNullCursor,
const wxCursor &cursorMove = wxNullCursor, const wxCursor &cursorMove = wxNullCursor,
const wxCursor &cursorStop = wxNullCursor); const wxCursor &cursorStop = wxNullCursor);

View File

@@ -29,12 +29,12 @@ class WXDLLIMPEXP_CORE wxMenuItem: public wxMenuItemBase
{ {
public: public:
// ctor & dtor // ctor & dtor
wxMenuItem(wxMenu *parentMenu = (wxMenu *)NULL, wxMenuItem(wxMenu *parentMenu = NULL,
int id = wxID_SEPARATOR, int id = wxID_SEPARATOR,
const wxString& name = wxEmptyString, const wxString& name = wxEmptyString,
const wxString& help = wxEmptyString, const wxString& help = wxEmptyString,
wxItemKind kind = wxITEM_NORMAL, wxItemKind kind = wxITEM_NORMAL,
wxMenu *subMenu = (wxMenu *)NULL); wxMenu *subMenu = NULL);
virtual ~wxMenuItem(); virtual ~wxMenuItem();
// override base class virtuals // override base class virtuals

View File

@@ -272,20 +272,20 @@ public:
typedef void (wxEvtHandler::*wxTreeEventFunction)(wxTreeEvent&); typedef void (wxEvtHandler::*wxTreeEventFunction)(wxTreeEvent&);
#define EVT_TREE_BEGIN_DRAG(id, fn) { wxEVT_COMMAND_TREE_BEGIN_DRAG, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, (wxObject *) NULL }, #define EVT_TREE_BEGIN_DRAG(id, fn) { wxEVT_COMMAND_TREE_BEGIN_DRAG, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
#define EVT_TREE_BEGIN_RDRAG(id, fn) { wxEVT_COMMAND_TREE_BEGIN_RDRAG, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, (wxObject *) NULL }, #define EVT_TREE_BEGIN_RDRAG(id, fn) { wxEVT_COMMAND_TREE_BEGIN_RDRAG, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
#define EVT_TREE_BEGIN_LABEL_EDIT(id, fn) { wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, (wxObject *) NULL }, #define EVT_TREE_BEGIN_LABEL_EDIT(id, fn) { wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
#define EVT_TREE_END_LABEL_EDIT(id, fn) { wxEVT_COMMAND_TREE_END_LABEL_EDIT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, (wxObject *) NULL }, #define EVT_TREE_END_LABEL_EDIT(id, fn) { wxEVT_COMMAND_TREE_END_LABEL_EDIT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
#define EVT_TREE_DELETE_ITEM(id, fn) { wxEVT_COMMAND_TREE_DELETE_ITEM, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, (wxObject *) NULL }, #define EVT_TREE_DELETE_ITEM(id, fn) { wxEVT_COMMAND_TREE_DELETE_ITEM, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
#define EVT_TREE_GET_INFO(id, fn) { wxEVT_COMMAND_TREE_GET_INFO, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, (wxObject *) NULL }, #define EVT_TREE_GET_INFO(id, fn) { wxEVT_COMMAND_TREE_GET_INFO, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
#define EVT_TREE_SET_INFO(id, fn) { wxEVT_COMMAND_TREE_SET_INFO, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, (wxObject *) NULL }, #define EVT_TREE_SET_INFO(id, fn) { wxEVT_COMMAND_TREE_SET_INFO, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
#define EVT_TREE_ITEM_EXPANDED(id, fn) { wxEVT_COMMAND_TREE_ITEM_EXPANDED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, (wxObject *) NULL }, #define EVT_TREE_ITEM_EXPANDED(id, fn) { wxEVT_COMMAND_TREE_ITEM_EXPANDED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
#define EVT_TREE_ITEM_EXPANDING(id, fn) { wxEVT_COMMAND_TREE_ITEM_EXPANDING, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, (wxObject *) NULL }, #define EVT_TREE_ITEM_EXPANDING(id, fn) { wxEVT_COMMAND_TREE_ITEM_EXPANDING, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
#define EVT_TREE_ITEM_COLLAPSED(id, fn) { wxEVT_COMMAND_TREE_ITEM_COLLAPSED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, (wxObject *) NULL }, #define EVT_TREE_ITEM_COLLAPSED(id, fn) { wxEVT_COMMAND_TREE_ITEM_COLLAPSED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
#define EVT_TREE_ITEM_COLLAPSING(id, fn) { wxEVT_COMMAND_TREE_ITEM_COLLAPSING, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, (wxObject *) NULL }, #define EVT_TREE_ITEM_COLLAPSING(id, fn) { wxEVT_COMMAND_TREE_ITEM_COLLAPSING, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
#define EVT_TREE_SEL_CHANGED(id, fn) { wxEVT_COMMAND_TREE_SEL_CHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, (wxObject *) NULL }, #define EVT_TREE_SEL_CHANGED(id, fn) { wxEVT_COMMAND_TREE_SEL_CHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
#define EVT_TREE_SEL_CHANGING(id, fn) { wxEVT_COMMAND_TREE_SEL_CHANGING, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, (wxObject *) NULL }, #define EVT_TREE_SEL_CHANGING(id, fn) { wxEVT_COMMAND_TREE_SEL_CHANGING, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
#define EVT_TREE_KEY_DOWN(id, fn) { wxEVT_COMMAND_TREE_KEY_DOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, (wxObject *) NULL }, #define EVT_TREE_KEY_DOWN(id, fn) { wxEVT_COMMAND_TREE_KEY_DOWN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxTreeEventFunction) & fn, NULL },
#endif #endif
// _WX_TREECTRL_H_ // _WX_TREECTRL_H_

View File

@@ -99,7 +99,7 @@ public:
virtual int GetScrollThumb( int orient ) const; virtual int GetScrollThumb( int orient ) const;
virtual int GetScrollRange( int orient ) const; virtual int GetScrollRange( int orient ) const;
virtual void ScrollWindow( int dx, int dy, virtual void ScrollWindow( int dx, int dy,
const wxRect* rect = (wxRect *) NULL ); const wxRect* rect = NULL );
virtual void AlwaysShowScrollbars(bool horz = true, bool vert = true); virtual void AlwaysShowScrollbars(bool horz = true, bool vert = true);
virtual bool IsScrollbarAlwaysShown(int orient) const virtual bool IsScrollbarAlwaysShown(int orient) const
{ {

View File

@@ -203,7 +203,7 @@ public:
// Begin drag. hotspot is the location of the drag position relative to the upper-left // Begin drag. hotspot is the location of the drag position relative to the upper-left
// corner of the image. // corner of the image.
bool BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen = false, wxRect* rect = (wxRect*) NULL); bool BeginDrag(const wxPoint& hotspot, wxWindow* window, bool fullScreen = false, wxRect* rect = NULL);
// Begin drag. hotspot is the location of the drag position relative to the upper-left // Begin drag. hotspot is the location of the drag position relative to the upper-left
// corner of the image. This is full screen only. fullScreenRect gives the // corner of the image. This is full screen only. fullScreenRect gives the

View File

@@ -37,7 +37,7 @@ public:
{ Free(); } { Free(); }
// display the picture stored in the metafile on the given DC // display the picture stored in the metafile on the given DC
bool Play(wxDC *dc, wxRect *rectBound = (wxRect *)NULL); bool Play(wxDC *dc, wxRect *rectBound = NULL);
// accessors // accessors
virtual bool IsOk() const { return m_hMF != 0; } virtual bool IsOk() const { return m_hMF != 0; }

View File

@@ -63,17 +63,17 @@ public:
const wxPalette& palette = wxNullPalette); const wxPalette& palette = wxNullPalette);
wxGLCanvas(wxWindow *parent, wxGLCanvas(wxWindow *parent,
const wxGLContext *shared = (wxGLContext *) NULL, const wxGLContext *shared = NULL,
wxWindowID id = wxID_ANY, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
long style = 0, long style = 0,
const wxString& name = wxGLCanvasName, const wxString& name = wxGLCanvasName,
int *attribList = (int *) NULL, int *attribList = NULL,
const wxPalette& palette = wxNullPalette); const wxPalette& palette = wxNullPalette);
wxGLCanvas(wxWindow *parent, wxGLCanvas(wxWindow *parent,
const wxGLCanvas *shared = (wxGLCanvas *)NULL, const wxGLCanvas *shared = NULL,
wxWindowID id = wxID_ANY, wxWindowID id = wxID_ANY,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
@@ -110,7 +110,7 @@ public:
inline WXHDC GetHDC() const { return m_hDC; } inline WXHDC GetHDC() const { return m_hDC; }
void SetupPixelFormat(int *attribList = (int *) NULL); void SetupPixelFormat(int *attribList = NULL);
void SetupPalette(const wxPalette& palette); void SetupPalette(const wxPalette& palette);

View File

@@ -31,12 +31,12 @@ class WXDLLIMPEXP_CORE wxMenuItem : public wxMenuItemBase
{ {
public: public:
// ctor & dtor // ctor & dtor
wxMenuItem(wxMenu *parentMenu = (wxMenu *)NULL, wxMenuItem(wxMenu *parentMenu = NULL,
int id = wxID_SEPARATOR, int id = wxID_SEPARATOR,
const wxString& name = wxEmptyString, const wxString& name = wxEmptyString,
const wxString& help = wxEmptyString, const wxString& help = wxEmptyString,
wxItemKind kind = wxITEM_NORMAL, wxItemKind kind = wxITEM_NORMAL,
wxMenu *subMenu = (wxMenu *)NULL); wxMenu *subMenu = NULL);
virtual ~wxMenuItem(); virtual ~wxMenuItem();
// override base class virtuals // override base class virtuals
@@ -62,7 +62,7 @@ public:
const wxString& text, const wxString& text,
const wxString& help, const wxString& help,
bool isCheckable, bool isCheckable,
wxMenu *subMenu = (wxMenu *)NULL); wxMenu *subMenu = NULL);
private: private:
// common part of all ctors // common part of all ctors

View File

@@ -111,13 +111,13 @@ public:
wxPenCap GetCap() const { return (M_PENDATA ? M_PENDATA->m_cap : 0); }; wxPenCap GetCap() const { return (M_PENDATA ? M_PENDATA->m_cap : 0); };
int GetDashes(wxDash **ptr) const int GetDashes(wxDash **ptr) const
{ {
*ptr = (M_PENDATA ? (wxDash*)M_PENDATA->m_dash : (wxDash*) NULL); *ptr = (M_PENDATA ? (wxDash*)M_PENDATA->m_dash : NULL);
return (M_PENDATA ? M_PENDATA->m_nbDash : 0); return (M_PENDATA ? M_PENDATA->m_nbDash : 0);
} }
wxDash* GetDash() const { return (M_PENDATA ? (wxDash*)M_PENDATA->m_dash : (wxDash*)NULL); }; wxDash* GetDash() const { return (M_PENDATA ? (wxDash*)M_PENDATA->m_dash : NULL); };
inline int GetDashCount() const { return (M_PENDATA ? M_PENDATA->m_nbDash : 0); }; inline int GetDashCount() const { return (M_PENDATA ? M_PENDATA->m_nbDash : 0); };
inline wxBitmap *GetStipple() const { return (M_PENDATA ? (& M_PENDATA->m_stipple) : (wxBitmap*) NULL); }; inline wxBitmap *GetStipple() const { return (M_PENDATA ? (& M_PENDATA->m_stipple) : NULL); };
// Internal // Internal
bool RealizeResource(); bool RealizeResource();

View File

@@ -81,8 +81,8 @@ public:
virtual int GetCharWidth() const; virtual int GetCharWidth() const;
virtual void GetTextExtent(const wxString& string, virtual void GetTextExtent(const wxString& string,
int *x, int *y, int *x, int *y,
int *descent = (int *) NULL, int *descent = NULL,
int *externalLeading = (int *) NULL, int *externalLeading = NULL,
const wxFont *theFont = (const wxFont *) NULL) const wxFont *theFont = (const wxFont *) NULL)
const; const;
@@ -97,7 +97,7 @@ public:
virtual int GetScrollThumb( int orient ) const; virtual int GetScrollThumb( int orient ) const;
virtual int GetScrollRange( int orient ) const; virtual int GetScrollRange( int orient ) const;
virtual void ScrollWindow( int dx, int dy, virtual void ScrollWindow( int dx, int dy,
const wxRect* rect = (wxRect *) NULL ); const wxRect* rect = NULL );
virtual bool ScrollLines(int lines); virtual bool ScrollLines(int lines);
virtual bool ScrollPages(int pages); virtual bool ScrollPages(int pages);

View File

@@ -169,7 +169,7 @@ private:
class WXDLLIMPEXP_CORE wxPrinterBase: public wxObject class WXDLLIMPEXP_CORE wxPrinterBase: public wxObject
{ {
public: public:
wxPrinterBase(wxPrintDialogData *data = (wxPrintDialogData *) NULL); wxPrinterBase(wxPrintDialogData *data = NULL);
virtual ~wxPrinterBase(); virtual ~wxPrinterBase();
virtual wxWindow *CreateAbortWindow(wxWindow *parent, wxPrintout *printout); virtual wxWindow *CreateAbortWindow(wxWindow *parent, wxPrintout *printout);
@@ -209,7 +209,7 @@ private:
class WXDLLIMPEXP_CORE wxPrinter: public wxPrinterBase class WXDLLIMPEXP_CORE wxPrinter: public wxPrinterBase
{ {
public: public:
wxPrinter(wxPrintDialogData *data = (wxPrintDialogData *) NULL); wxPrinter(wxPrintDialogData *data = NULL);
virtual ~wxPrinter(); virtual ~wxPrinter();
virtual wxWindow *CreateAbortWindow(wxWindow *parent, wxPrintout *printout); virtual wxWindow *CreateAbortWindow(wxWindow *parent, wxPrintout *printout);
@@ -497,8 +497,8 @@ class WXDLLIMPEXP_CORE wxPrintPreviewBase: public wxObject
{ {
public: public:
wxPrintPreviewBase(wxPrintout *printout, wxPrintPreviewBase(wxPrintout *printout,
wxPrintout *printoutForPrinting = (wxPrintout *) NULL, wxPrintout *printoutForPrinting = NULL,
wxPrintDialogData *data = (wxPrintDialogData *) NULL); wxPrintDialogData *data = NULL);
wxPrintPreviewBase(wxPrintout *printout, wxPrintPreviewBase(wxPrintout *printout,
wxPrintout *printoutForPrinting, wxPrintout *printoutForPrinting,
wxPrintData *data); wxPrintData *data);
@@ -608,8 +608,8 @@ class WXDLLIMPEXP_CORE wxPrintPreview: public wxPrintPreviewBase
{ {
public: public:
wxPrintPreview(wxPrintout *printout, wxPrintPreview(wxPrintout *printout,
wxPrintout *printoutForPrinting = (wxPrintout *) NULL, wxPrintout *printoutForPrinting = NULL,
wxPrintDialogData *data = (wxPrintDialogData *) NULL); wxPrintDialogData *data = NULL);
wxPrintPreview(wxPrintout *printout, wxPrintPreview(wxPrintout *printout,
wxPrintout *printoutForPrinting, wxPrintout *printoutForPrinting,
wxPrintData *data); wxPrintData *data);

View File

@@ -55,7 +55,7 @@ public:
// ctors // ctors
wxProcess(wxEvtHandler *parent = (wxEvtHandler *) NULL, int nId = wxID_ANY) wxProcess(wxEvtHandler *parent = NULL, int nId = wxID_ANY)
{ Init(parent, nId, wxPROCESS_DEFAULT); } { Init(parent, nId, wxPROCESS_DEFAULT); }
wxProcess(int flags) { Init(NULL, wxID_ANY, flags); } wxProcess(int flags) { Init(NULL, wxID_ANY, flags); }

View File

@@ -145,7 +145,7 @@ DECLARE_VARIANT_OBJECT_EXPORTED(wxColourPropertyValue, WXDLLIMPEXP_PROPGRID)
#endif #endif
#ifndef SWIG #ifndef SWIG
#define wxPG_EMPTY_CPV (*((wxColourPropertyValue*)NULL)) #define wxPG_EMPTY_CPV (*(NULL))
#define wxPG_NORMAL_FONT (*wxNORMAL_FONT) #define wxPG_NORMAL_FONT (*wxNORMAL_FONT)
#else #else
#define wxPG_EMPTY_CPV wxCPV_wxPG_EMPTY #define wxPG_EMPTY_CPV wxCPV_wxPG_EMPTY

View File

@@ -214,7 +214,7 @@ wxString CLASSNAME::GetName() const \
{ \ { \
return wxS(#EDITOR); \ return wxS(#EDITOR); \
} \ } \
wxPGEditor* wxPGEditor_##EDITOR = (wxPGEditor*) NULL; wxPGEditor* wxPGEditor_##EDITOR = NULL;
// //
@@ -434,7 +434,7 @@ public:
// Editor class registeration macro (mostly for internal use) // Editor class registeration macro (mostly for internal use)
#define wxPGRegisterEditorClass(EDITOR) \ #define wxPGRegisterEditorClass(EDITOR) \
if ( wxPGEditor_##EDITOR == (wxPGEditor*) NULL ) \ if ( wxPGEditor_##EDITOR == NULL ) \
{ \ { \
wxPGEditor_##EDITOR = wxPropertyGrid::RegisterEditorClass( \ wxPGEditor_##EDITOR = wxPropertyGrid::RegisterEditorClass( \
new wxPG##EDITOR##Editor ); \ new wxPG##EDITOR##Editor ); \

View File

@@ -1926,15 +1926,15 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_PROPGRID, wxEVT_PG_DOUBLE_CLICK, wxPropert
#ifndef SWIG #ifndef SWIG
typedef void (wxEvtHandler::*wxPropertyGridEventFunction)(wxPropertyGridEvent&); typedef void (wxEvtHandler::*wxPropertyGridEventFunction)(wxPropertyGridEvent&);
#define EVT_PG_SELECTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_SELECTED, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), (wxObject *) NULL ), #define EVT_PG_SELECTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_SELECTED, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), NULL ),
#define EVT_PG_CHANGING(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_CHANGING, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), (wxObject *) NULL ), #define EVT_PG_CHANGING(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_CHANGING, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), NULL ),
#define EVT_PG_CHANGED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_CHANGED, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), (wxObject *) NULL ), #define EVT_PG_CHANGED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_CHANGED, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), NULL ),
#define EVT_PG_HIGHLIGHTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_HIGHLIGHTED, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), (wxObject *) NULL ), #define EVT_PG_HIGHLIGHTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_HIGHLIGHTED, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), NULL ),
#define EVT_PG_RIGHT_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_RIGHT_CLICK, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), (wxObject *) NULL ), #define EVT_PG_RIGHT_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_RIGHT_CLICK, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), NULL ),
#define EVT_PG_DOUBLE_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_DOUBLE_CLICK, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), (wxObject *) NULL ), #define EVT_PG_DOUBLE_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_DOUBLE_CLICK, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), NULL ),
#define EVT_PG_PAGE_CHANGED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_PAGE_CHANGED, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), (wxObject *) NULL ), #define EVT_PG_PAGE_CHANGED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_PAGE_CHANGED, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), NULL ),
#define EVT_PG_ITEM_COLLAPSED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_ITEM_COLLAPSED, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), (wxObject *) NULL ), #define EVT_PG_ITEM_COLLAPSED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_ITEM_COLLAPSED, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), NULL ),
#define EVT_PG_ITEM_EXPANDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_ITEM_EXPANDED, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), (wxObject *) NULL ), #define EVT_PG_ITEM_EXPANDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PG_ITEM_EXPANDED, id, -1, wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ), NULL ),
#define wxPropertyGridEventHandler(fn) \ #define wxPropertyGridEventHandler(fn) \
wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn ) wxEVENT_HANDLER_CAST( wxPropertyGridEventFunction, fn )

View File

@@ -76,7 +76,7 @@ public:
/** This constructor is required for NULL. */ /** This constructor is required for NULL. */
wxPGPropArgCls( int ) wxPGPropArgCls( int )
{ {
m_ptr.property = (wxPGProperty*) NULL; m_ptr.property = NULL;
m_flags = IsProperty; m_flags = IsProperty;
} }
wxPGProperty* GetPtr( wxPropertyGridInterface* iface ) const; wxPGProperty* GetPtr( wxPropertyGridInterface* iface ) const;

View File

@@ -41,7 +41,7 @@ WX_PG_IMPLEMENT_PROPERTY_CLASS_PLAIN(NAME, T, EDITOR)
// //
// These macros help creating DoGetValidator // These macros help creating DoGetValidator
#define WX_PG_DOGETVALIDATOR_ENTRY() \ #define WX_PG_DOGETVALIDATOR_ENTRY() \
static wxValidator* s_ptr = (wxValidator*) NULL; \ static wxValidator* s_ptr = NULL; \
if ( s_ptr ) return s_ptr; if ( s_ptr ) return s_ptr;
// Common function exit // Common function exit
@@ -850,7 +850,7 @@ WX_PG_IMPLEMENT_ARRAYSTRING_PROPERTY_WITH_VALIDATOR(PROPNAME, \
DELIMCHAR, \ DELIMCHAR, \
CUSTBUTTXT) \ CUSTBUTTXT) \
wxValidator* PROPNAME::DoGetValidator () const \ wxValidator* PROPNAME::DoGetValidator () const \
{ return (wxValidator*) NULL; } { return NULL; }
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
@@ -907,7 +907,7 @@ public:
*/ */
virtual wxValidator* GetTextCtrlValidator() const virtual wxValidator* GetTextCtrlValidator() const
{ {
return (wxValidator*) NULL; return NULL;
} }
// Returns true if array was actually modified // Returns true if array was actually modified

View File

@@ -1905,7 +1905,7 @@ class WXDLLIMPEXP_RICHTEXT wxRichTextBufferDataObject: public wxDataObjectSimple
public: public:
// ctor doesn't copy the pointer, so it shouldn't go away while this object // ctor doesn't copy the pointer, so it shouldn't go away while this object
// is alive // is alive
wxRichTextBufferDataObject(wxRichTextBuffer* richTextBuffer = (wxRichTextBuffer*) NULL); wxRichTextBufferDataObject(wxRichTextBuffer* richTextBuffer = NULL);
virtual ~wxRichTextBufferDataObject(); virtual ~wxRichTextBufferDataObject();
// after a call to this function, the buffer is owned by the caller and it // after a call to this function, the buffer is owned by the caller and it

View File

@@ -4026,34 +4026,34 @@ typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&);
#define wxStyledTextEventHandler( func ) \ #define wxStyledTextEventHandler( func ) \
wxEVENT_HANDLER_CAST( wxStyledTextEventFunction, func ) wxEVENT_HANDLER_CAST( wxStyledTextEventFunction, func )
#define EVT_STC_CHANGE(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHANGE, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_CHANGE(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHANGE, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_STYLENEEDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_STYLENEEDED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_STYLENEEDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_STYLENEEDED, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_CHARADDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHARADDED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_CHARADDED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHARADDED, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_SAVEPOINTREACHED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTREACHED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_SAVEPOINTREACHED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTREACHED, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_SAVEPOINTLEFT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTLEFT, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_SAVEPOINTLEFT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTLEFT, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_ROMODIFYATTEMPT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ROMODIFYATTEMPT, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_ROMODIFYATTEMPT(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ROMODIFYATTEMPT, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_KEY(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_KEY, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_KEY(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_KEY, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_DOUBLECLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DOUBLECLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_DOUBLECLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DOUBLECLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_UPDATEUI(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_UPDATEUI, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_UPDATEUI(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_UPDATEUI, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_MODIFIED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MODIFIED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_MODIFIED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MODIFIED, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_MACRORECORD(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MACRORECORD, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_MACRORECORD(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MACRORECORD, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_MARGINCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MARGINCLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_MARGINCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MARGINCLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_NEEDSHOWN(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_NEEDSHOWN, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_NEEDSHOWN(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_NEEDSHOWN, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_PAINTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_PAINTED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_PAINTED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_PAINTED, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_USERLISTSELECTION(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_USERLISTSELECTION, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_USERLISTSELECTION(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_USERLISTSELECTION, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_URIDROPPED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_URIDROPPED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_URIDROPPED(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_URIDROPPED, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_DWELLSTART(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLSTART, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_DWELLSTART(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLSTART, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_DWELLEND(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLEND, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_DWELLEND(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLEND, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_START_DRAG(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_START_DRAG, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_START_DRAG(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_START_DRAG, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_DRAG_OVER(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DRAG_OVER, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_DRAG_OVER(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DRAG_OVER, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_DO_DROP(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DO_DROP, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_DO_DROP(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DO_DROP, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_ZOOM(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ZOOM, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_ZOOM(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ZOOM, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_HOTSPOT_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_CLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_HOTSPOT_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_CLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_HOTSPOT_DCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_DCLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_HOTSPOT_DCLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_DCLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_CALLTIP_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CALLTIP_CLICK id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_CALLTIP_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CALLTIP_CLICK id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_AUTOCOMP_SELECTION(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_AUTOCOMP_SELECTION id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_AUTOCOMP_SELECTION(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_AUTOCOMP_SELECTION id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_INDICATOR_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_INDICATOR_CLICK id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_INDICATOR_CLICK(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_INDICATOR_CLICK id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#define EVT_STC_INDICATOR_RELEASE(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_INDICATOR_RELEASE id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ), #define EVT_STC_INDICATOR_RELEASE(id, fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_INDICATOR_RELEASE id, wxID_ANY, wxStyledTextEventHandler( fn ), NULL ),
#endif #endif

View File

@@ -60,13 +60,13 @@ public:
// ctors & dtor // ctors & dtor
// ------------ // ------------
wxToolBarToolBase(wxToolBarBase *tbar = (wxToolBarBase *)NULL, wxToolBarToolBase(wxToolBarBase *tbar = NULL,
int toolid = wxID_SEPARATOR, int toolid = wxID_SEPARATOR,
const wxString& label = wxEmptyString, const wxString& label = wxEmptyString,
const wxBitmap& bmpNormal = wxNullBitmap, const wxBitmap& bmpNormal = wxNullBitmap,
const wxBitmap& bmpDisabled = wxNullBitmap, const wxBitmap& bmpDisabled = wxNullBitmap,
wxItemKind kind = wxITEM_NORMAL, wxItemKind kind = wxITEM_NORMAL,
wxObject *clientData = (wxObject *) NULL, wxObject *clientData = NULL,
const wxString& shortHelpString = wxEmptyString, const wxString& shortHelpString = wxEmptyString,
const wxString& longHelpString = wxEmptyString) const wxString& longHelpString = wxEmptyString)
: m_label(label), : m_label(label),
@@ -197,7 +197,7 @@ public:
} }
// add tool to/remove it from a toolbar // add tool to/remove it from a toolbar
virtual void Detach() { m_tbar = (wxToolBarBase *)NULL; } virtual void Detach() { m_tbar = NULL; }
virtual void Attach(wxToolBarBase *tbar) { m_tbar = tbar; } virtual void Attach(wxToolBarBase *tbar) { m_tbar = tbar; }
// these methods are only for tools of wxITEM_DROPDOWN kind (but even such // these methods are only for tools of wxITEM_DROPDOWN kind (but even such

View File

@@ -506,7 +506,7 @@ public:
// does it! // does it!
// //
// will fill the rc pointer with the thread exit code if it's !NULL // will fill the rc pointer with the thread exit code if it's !NULL
wxThreadError Delete(ExitCode *rc = (ExitCode *)NULL); wxThreadError Delete(ExitCode *rc = NULL);
// waits for a joinable thread to finish and returns its exit code // waits for a joinable thread to finish and returns its exit code
// //

View File

@@ -41,7 +41,7 @@ public:
bool Create(wxWindow *parent, wxWindowID id, bool Create(wxWindow *parent, wxWindowID id,
const wxPoint& pos = wxDefaultPosition, const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = (wxString *) NULL, int n = 0, const wxString choices[] = NULL,
long style = 0, long style = 0,
const wxValidator& validator = wxDefaultValidator, const wxValidator& validator = wxDefaultValidator,
const wxString& name = wxChoiceNameStr); const wxString& name = wxChoiceNameStr);

View File

@@ -20,12 +20,12 @@ class WXDLLIMPEXP_CORE wxMenuItem : public wxMenuItemBase
{ {
public: public:
// ctor & dtor // ctor & dtor
wxMenuItem(wxMenu *parentMenu = (wxMenu *)NULL, wxMenuItem(wxMenu *parentMenu = NULL,
int id = wxID_SEPARATOR, int id = wxID_SEPARATOR,
const wxString& name = wxEmptyString, const wxString& name = wxEmptyString,
const wxString& help = wxEmptyString, const wxString& help = wxEmptyString,
wxItemKind kind = wxITEM_NORMAL, wxItemKind kind = wxITEM_NORMAL,
wxMenu *subMenu = (wxMenu *)NULL); wxMenu *subMenu = NULL);
virtual ~wxMenuItem(); virtual ~wxMenuItem();
// override base class virtuals to update the item appearance on screen // override base class virtuals to update the item appearance on screen

View File

@@ -117,7 +117,7 @@ public:
wxBorder border, wxBorder border,
const wxRect& rect, const wxRect& rect,
int flags = 0, int flags = 0,
wxRect *rectIn = (wxRect *)NULL) = 0; wxRect *rectIn = NULL) = 0;
// draw text control border (I hate to have a separate method for this but // draw text control border (I hate to have a separate method for this but
// it is needed to accommodate GTK+) // it is needed to accommodate GTK+)
@@ -125,13 +125,13 @@ public:
wxBorder border, wxBorder border,
const wxRect& rect, const wxRect& rect,
int flags = 0, int flags = 0,
wxRect *rectIn = (wxRect *)NULL) = 0; wxRect *rectIn = NULL) = 0;
// draw push button border and return the rectangle left for the label // draw push button border and return the rectangle left for the label
virtual void DrawButtonBorder(wxDC& dc, virtual void DrawButtonBorder(wxDC& dc,
const wxRect& rect, const wxRect& rect,
int flags = 0, int flags = 0,
wxRect *rectIn = (wxRect *)NULL) = 0; wxRect *rectIn = NULL) = 0;
// draw a horizontal line // draw a horizontal line
virtual void DrawHorizontalLine(wxDC& dc, virtual void DrawHorizontalLine(wxDC& dc,
@@ -534,18 +534,18 @@ public:
wxBorder border, wxBorder border,
const wxRect& rect, const wxRect& rect,
int flags = 0, int flags = 0,
wxRect *rectIn = (wxRect *)NULL) wxRect *rectIn = NULL)
{ m_renderer->DrawBorder(dc, border, rect, flags, rectIn); } { m_renderer->DrawBorder(dc, border, rect, flags, rectIn); }
virtual void DrawTextBorder(wxDC& dc, virtual void DrawTextBorder(wxDC& dc,
wxBorder border, wxBorder border,
const wxRect& rect, const wxRect& rect,
int flags = 0, int flags = 0,
wxRect *rectIn = (wxRect *)NULL) wxRect *rectIn = NULL)
{ m_renderer->DrawTextBorder(dc, border, rect, flags, rectIn); } { m_renderer->DrawTextBorder(dc, border, rect, flags, rectIn); }
virtual void DrawButtonBorder(wxDC& dc, virtual void DrawButtonBorder(wxDC& dc,
const wxRect& rect, const wxRect& rect,
int flags = 0, int flags = 0,
wxRect *rectIn = (wxRect *)NULL) wxRect *rectIn = NULL)
{ m_renderer->DrawButtonBorder(dc, rect, flags, rectIn); } { m_renderer->DrawButtonBorder(dc, rect, flags, rectIn); }
virtual void DrawFrame(wxDC& dc, virtual void DrawFrame(wxDC& dc,
const wxString& label, const wxString& label,

View File

@@ -102,7 +102,7 @@ public:
virtual int GetScrollThumb(int orient) const; virtual int GetScrollThumb(int orient) const;
virtual int GetScrollRange(int orient) const; virtual int GetScrollRange(int orient) const;
virtual void ScrollWindow(int dx, int dy, virtual void ScrollWindow(int dx, int dy,
const wxRect* rect = (wxRect *) NULL); const wxRect* rect = NULL);
// take into account the borders here // take into account the borders here
virtual wxPoint GetClientAreaOrigin() const; virtual wxPoint GetClientAreaOrigin() const;

View File

@@ -29,7 +29,7 @@ wxLoadQueryNearestFont(int pointSize,
bool underlined, bool underlined,
const wxString &facename, const wxString &facename,
wxFontEncoding encoding, wxFontEncoding encoding,
wxString* xFontName = (wxString *)NULL); wxString* xFontName = NULL);
// returns the font specified by the given XLFD // returns the font specified by the given XLFD
extern wxNativeFont wxLoadFont(const wxString& fontSpec); extern wxNativeFont wxLoadFont(const wxString& fontSpec);

View File

@@ -107,8 +107,8 @@ WXDLLIMPEXP_CORE void wxInfoMessageBox(wxWindow* parent);
WXDLLIMPEXP_BASE wxString wxGetOsDescription(); WXDLLIMPEXP_BASE wxString wxGetOsDescription();
// Get OS version // Get OS version
WXDLLIMPEXP_BASE wxOperatingSystemId wxGetOsVersion(int *majorVsn = (int *) NULL, WXDLLIMPEXP_BASE wxOperatingSystemId wxGetOsVersion(int *majorVsn = NULL,
int *minorVsn = (int *) NULL); int *minorVsn = NULL);
// Get platform endianness // Get platform endianness
WXDLLIMPEXP_BASE bool wxIsPlatformLittleEndian(); WXDLLIMPEXP_BASE bool wxIsPlatformLittleEndian();
@@ -587,12 +587,12 @@ WXDLLIMPEXP_CORE wxWindow* wxFindWindowAtPoint(const wxPoint& pt);
// Find the window/widget with the given title or label. // Find the window/widget with the given title or label.
// Pass a parent to begin the search from, or NULL to look through // Pass a parent to begin the search from, or NULL to look through
// all windows. // all windows.
WXDLLIMPEXP_CORE wxWindow* wxFindWindowByLabel(const wxString& title, wxWindow *parent = (wxWindow *) NULL); WXDLLIMPEXP_CORE wxWindow* wxFindWindowByLabel(const wxString& title, wxWindow *parent = NULL);
// NB: this function is obsolete, use wxWindow::FindWindowByName() instead // NB: this function is obsolete, use wxWindow::FindWindowByName() instead
// //
// Find window by name, and if that fails, by label. // Find window by name, and if that fails, by label.
WXDLLIMPEXP_CORE wxWindow* wxFindWindowByName(const wxString& name, wxWindow *parent = (wxWindow *) NULL); WXDLLIMPEXP_CORE wxWindow* wxFindWindowByName(const wxString& name, wxWindow *parent = NULL);
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
// Message/event queue helpers // Message/event queue helpers

View File

@@ -44,7 +44,7 @@ public:
// Another possibility is to always pass a pointer to a new validator // Another possibility is to always pass a pointer to a new validator
// (so the calling code can use a copy constructor of the relevant class). // (so the calling code can use a copy constructor of the relevant class).
virtual wxObject *Clone() const virtual wxObject *Clone() const
{ return (wxValidator *)NULL; } { return NULL; }
bool Copy(const wxValidator& val) bool Copy(const wxValidator& val)
{ m_validatorWindow = val.m_validatorWindow; return true; } { m_validatorWindow = val.m_validatorWindow; return true; }
@@ -87,7 +87,7 @@ extern WXDLLIMPEXP_DATA_CORE(const wxValidator) wxDefaultValidator;
// a wxValidator parameter to avoid using "#if wxUSE_VALIDATORS" // a wxValidator parameter to avoid using "#if wxUSE_VALIDATORS"
// everywhere // everywhere
class WXDLLIMPEXP_FWD_CORE wxValidator; class WXDLLIMPEXP_FWD_CORE wxValidator;
#define wxDefaultValidator (*((wxValidator *)NULL)) #define wxDefaultValidator (*(NULL))
// this macro allows to avoid warnings about unused parameters when // this macro allows to avoid warnings about unused parameters when
// wxUSE_VALIDATORS == 0 // wxUSE_VALIDATORS == 0

View File

@@ -1037,8 +1037,8 @@ public:
// font // font
virtual void GetTextExtent(const wxString& string, virtual void GetTextExtent(const wxString& string,
int *x, int *y, int *x, int *y,
int *descent = (int *) NULL, int *descent = NULL,
int *externalLeading = (int *) NULL, int *externalLeading = NULL,
const wxFont *theFont = (const wxFont *) NULL) const wxFont *theFont = (const wxFont *) NULL)
const = 0; const = 0;
@@ -1141,7 +1141,7 @@ public:
// scroll window to the specified position // scroll window to the specified position
virtual void ScrollWindow( int dx, int dy, virtual void ScrollWindow( int dx, int dy,
const wxRect* rect = (wxRect *) NULL ) = 0; const wxRect* rect = NULL ) = 0;
// scrolls window by line/page: note that not all controls support this // scrolls window by line/page: note that not all controls support this
// //
@@ -1791,7 +1791,7 @@ inline void wxWindowBase::SetInitialBestSize(const wxSize& size)
inline wxWindow *wxWindowBase::GetGrandParent() const inline wxWindow *wxWindowBase::GetGrandParent() const
{ {
return m_parent ? m_parent->GetParent() : (wxWindow *)NULL; return m_parent ? m_parent->GetParent() : NULL;
} }
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------

View File

@@ -126,16 +126,16 @@ public:
// ctor takes the previous and next pages // ctor takes the previous and next pages
wxWizardPageSimple(wxWizard *parent, wxWizardPageSimple(wxWizard *parent,
wxWizardPage *prev = (wxWizardPage *)NULL, wxWizardPage *prev = NULL,
wxWizardPage *next = (wxWizardPage *)NULL, wxWizardPage *next = NULL,
const wxBitmap& bitmap = wxNullBitmap) const wxBitmap& bitmap = wxNullBitmap)
{ {
Create(parent, prev, next, bitmap); Create(parent, prev, next, bitmap);
} }
bool Create(wxWizard *parent = NULL, // let it be default ctor too bool Create(wxWizard *parent = NULL, // let it be default ctor too
wxWizardPage *prev = (wxWizardPage *)NULL, wxWizardPage *prev = NULL,
wxWizardPage *next = (wxWizardPage *)NULL, wxWizardPage *next = NULL,
const wxBitmap& bitmap = wxNullBitmap) const wxBitmap& bitmap = wxNullBitmap)
{ {
m_prev = prev; m_prev = prev;

View File

@@ -105,7 +105,7 @@ public:
wxBitmap GetSubBitmap( const wxRect& rect ) const; wxBitmap GetSubBitmap( const wxRect& rect ) const;
bool SaveFile( const wxString &name, wxBitmapType type, const wxPalette *palette = (wxPalette *) NULL ) const; bool SaveFile( const wxString &name, wxBitmapType type, const wxPalette *palette = NULL ) const;
bool LoadFile( const wxString &name, wxBitmapType type = wxBITMAP_DEFAULT_TYPE ); bool LoadFile( const wxString &name, wxBitmapType type = wxBITMAP_DEFAULT_TYPE );
wxPalette *GetPalette() const; wxPalette *GetPalette() const;

Some files were not shown because too many files have changed in this diff Show More