From e7445ff8ee26e39fab1e35455e1bef954bdf636f Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Fri, 26 May 2006 16:12:31 +0000 Subject: [PATCH] move some data definitions to more appropriate places git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/dc.h | 2 -- include/wx/gdicmn.h | 3 --- include/wx/generic/dcpsg.h | 5 ++++- include/wx/mac/carbon/dc.h | 3 --- include/wx/mac/classic/dc.h | 2 -- include/wx/os2/private.h | 1 - include/wx/window.h | 1 + src/common/appcmn.cpp | 1 + src/common/choiccmn.cpp | 2 ++ src/common/ctrlcmn.cpp | 2 ++ src/common/datacmn.cpp | 44 ++----------------------------------- src/common/datavcmn.cpp | 6 ++--- src/common/dcbase.cpp | 2 ++ src/common/gaugecmn.cpp | 4 +++- src/common/gdicmn.cpp | 43 +++++++++++++++++------------------- src/common/wincmn.cpp | 9 ++++---- src/generic/dcpsg.cpp | 2 ++ src/generic/textdlgg.cpp | 5 ++++- src/gtk/data.cpp | 3 --- src/gtk/mdi.cpp | 2 -- src/gtk/toplevel.cpp | 2 -- src/gtk/window.cpp | 1 - src/gtk1/mdi.cpp | 2 -- src/gtk1/toplevel.cpp | 2 -- src/gtk1/window.cpp | 1 - src/mac/carbon/app.cpp | 2 -- src/mac/carbon/dialog.cpp | 2 -- src/mac/carbon/frame.cpp | 1 - src/mac/carbon/window.cpp | 2 -- src/mac/classic/dialog.cpp | 2 -- src/mac/classic/frame.cpp | 1 - src/mac/classic/window.cpp | 1 - src/motif/app.cpp | 1 - src/motif/dialog.cpp | 1 - src/motif/frame.cpp | 1 - src/msw/app.cpp | 2 -- src/os2/app.cpp | 3 +-- src/os2/frame.cpp | 2 -- src/palmos/app.cpp | 2 -- src/x11/app.cpp | 2 -- 40 files changed, 51 insertions(+), 124 deletions(-) diff --git a/include/wx/dc.h b/include/wx/dc.h index 84cd83b9b4..a6423af998 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -93,8 +93,6 @@ protected: // global variables // --------------------------------------------------------------------------- -extern WXDLLEXPORT_DATA(int) wxPageNumber; - // --------------------------------------------------------------------------- // wxDC is the device context - object on which any drawing is done // --------------------------------------------------------------------------- diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index b1e5d72c18..3b7a206cb0 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -676,9 +676,6 @@ extern WXDLLEXPORT_DATA(const wxChar) wxPanelNameStr[]; extern WXDLLEXPORT_DATA(const wxSize) wxDefaultSize; extern WXDLLEXPORT_DATA(const wxPoint) wxDefaultPosition; -// The list of objects which should be deleted -extern WXDLLEXPORT_DATA(wxList) wxPendingDelete; - // --------------------------------------------------------------------------- // global functions // --------------------------------------------------------------------------- diff --git a/include/wx/generic/dcpsg.h b/include/wx/generic/dcpsg.h index ddd9888e68..7d9ea915f3 100644 --- a/include/wx/generic/dcpsg.h +++ b/include/wx/generic/dcpsg.h @@ -11,16 +11,19 @@ #ifndef _WX_DCPSG_H_ #define _WX_DCPSG_H_ -#include "wx/dc.h" +#include "wx/defs.h" #if wxUSE_PRINTING_ARCHITECTURE #if wxUSE_POSTSCRIPT +#include "wx/dc.h" #include "wx/dialog.h" #include "wx/module.h" #include "wx/cmndata.h" +extern WXDLLIMPEXP_DATA_CORE(int) wxPageNumber; + //----------------------------------------------------------------------------- // classes //----------------------------------------------------------------------------- diff --git a/include/wx/mac/carbon/dc.h b/include/wx/mac/carbon/dc.h index 2513c7c989..6080697290 100644 --- a/include/wx/mac/carbon/dc.h +++ b/include/wx/mac/carbon/dc.h @@ -34,9 +34,6 @@ #endif -extern int wxPageNumber; - - class wxMacPortStateHelper; class WXDLLEXPORT wxGraphicPath diff --git a/include/wx/mac/classic/dc.h b/include/wx/mac/classic/dc.h index a5bc3226a9..a14d40e6a8 100644 --- a/include/wx/mac/classic/dc.h +++ b/include/wx/mac/classic/dc.h @@ -37,8 +37,6 @@ // global variables //----------------------------------------------------------------------------- -extern int wxPageNumber; - class wxMacPortStateHelper ; //----------------------------------------------------------------------------- // wxDC diff --git a/include/wx/os2/private.h b/include/wx/os2/private.h index 6c7b1b1a4a..6a3e7123a2 100644 --- a/include/wx/os2/private.h +++ b/include/wx/os2/private.h @@ -111,7 +111,6 @@ WXDLLEXPORT_DATA(extern const wxChar) wxBitmapRadioButtonNameStr[]; WXDLLEXPORT_DATA(extern const wxChar) wxScrollBarNameStr[]; WXDLLEXPORT_DATA(extern const wxChar) wxSliderNameStr[]; WXDLLEXPORT_DATA(extern const wxChar) wxTextCtrlNameStr[]; -WXDLLEXPORT_DATA(extern const wxChar) wxEnhDialogNameStr[]; WXDLLEXPORT_DATA(extern const wxChar) wxToolBarNameStr[]; WXDLLEXPORT_DATA(extern const wxChar) wxStatusLineNameStr[]; WXDLLEXPORT_DATA(extern const wxChar) wxGetTextFromUserPromptStr[]; diff --git a/include/wx/window.h b/include/wx/window.h index 9f38ecb22d..abdd96aa05 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -113,6 +113,7 @@ WX_DECLARE_LIST_3(wxWindow, wxWindowBase, wxWindowList, wxWindowListNode, class // ---------------------------------------------------------------------------- extern WXDLLEXPORT_DATA(wxWindowList) wxTopLevelWindows; +extern WXDLLIMPEXP_DATA_CORE(wxList) wxPendingDelete; // ---------------------------------------------------------------------------- // wxWindowBase is the base class for all GUI controls/widgets, this is the public diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index 3316cced79..d37a9be4ac 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -55,6 +55,7 @@ #include "wx/build.h" WX_CHECK_BUILD_OPTIONS("wxCore") +WXDLLIMPEXP_DATA_CORE(wxList) wxPendingDelete; // ---------------------------------------------------------------------------- // wxEventLoopPtr diff --git a/src/common/choiccmn.cpp b/src/common/choiccmn.cpp index 6a1d9e7cd4..cf053fb611 100644 --- a/src/common/choiccmn.cpp +++ b/src/common/choiccmn.cpp @@ -30,6 +30,8 @@ #include "wx/choice.h" #endif +WXDLLIMPEXP_DATA_CORE(const wxChar) wxChoiceNameStr[] = wxT("choice"); + // ============================================================================ // implementation // ============================================================================ diff --git a/src/common/ctrlcmn.cpp b/src/common/ctrlcmn.cpp index beae40cb11..a0af638bcb 100644 --- a/src/common/ctrlcmn.cpp +++ b/src/common/ctrlcmn.cpp @@ -38,6 +38,8 @@ #include "wx/statbmp.h" #endif // wxUSE_STATBMP +WXDLLIMPEXP_DATA_CORE(const wxChar) wxControlNameStr[] = wxT("control"); + // ============================================================================ // implementation // ============================================================================ diff --git a/src/common/datacmn.cpp b/src/common/datacmn.cpp index 1f157aae68..bb7935b58b 100644 --- a/src/common/datacmn.cpp +++ b/src/common/datacmn.cpp @@ -25,56 +25,25 @@ #endif #ifndef WX_PRECOMP - #include "wx/wx.h" - #include "wx/treectrl.h" #endif // WX_PRECOMP +#include "wx/accel.h" + // ============================================================================ // implementation // ============================================================================ -// Useful buffer, initialized in wxCommonInit -wxChar *wxBuffer = NULL; - -// Windows List -wxWindowList wxTopLevelWindows; - -// List of windows pending deletion -wxList WXDLLEXPORT wxPendingDelete; - -int wxPageNumber; - -// GDI Object Lists -wxFontList *wxTheFontList = NULL; -wxPenList *wxThePenList = NULL; -wxBrushList *wxTheBrushList = NULL; -wxColourDatabase *wxTheColourDatabase = NULL; - // 'Null' objects #if wxUSE_ACCEL wxAcceleratorTable wxNullAcceleratorTable; #endif // wxUSE_ACCEL -wxBitmap wxNullBitmap; -wxIcon wxNullIcon; -wxCursor wxNullCursor; -wxPen wxNullPen; -wxBrush wxNullBrush; -#if wxUSE_PALETTE -wxPalette wxNullPalette; -#endif // wxUSE_PALETTE -wxFont wxNullFont; -wxColour wxNullColour; - // Default window names -extern WXDLLEXPORT_DATA(const wxChar) wxControlNameStr[] = wxT("control"); extern WXDLLEXPORT_DATA(const wxChar) wxButtonNameStr[] = wxT("button"); extern WXDLLEXPORT_DATA(const wxChar) wxCheckBoxNameStr[] = wxT("check"); -extern WXDLLEXPORT_DATA(const wxChar) wxChoiceNameStr[] = wxT("choice"); extern WXDLLEXPORT_DATA(const wxChar) wxComboBoxNameStr[] = wxT("comboBox"); extern WXDLLEXPORT_DATA(const wxChar) wxDialogNameStr[] = wxT("dialog"); extern WXDLLEXPORT_DATA(const wxChar) wxFrameNameStr[] = wxT("frame"); -extern WXDLLEXPORT_DATA(const wxChar) wxGaugeNameStr[] = wxT("gauge"); extern WXDLLEXPORT_DATA(const wxChar) wxStaticBoxNameStr[] = wxT("groupBox"); extern WXDLLEXPORT_DATA(const wxChar) wxListBoxNameStr[] = wxT("listBox"); extern WXDLLEXPORT_DATA(const wxChar) wxListCtrlNameStr[] = wxT("listCtrl"); @@ -90,13 +59,9 @@ extern WXDLLEXPORT_DATA(const wxChar) wxSliderNameStr[] = wxT("slider"); extern WXDLLEXPORT_DATA(const wxChar) wxStatusLineNameStr[] = wxT("status_line"); extern WXDLLEXPORT_DATA(const wxChar) wxTextCtrlNameStr[] = wxT("text"); extern WXDLLEXPORT_DATA(const wxChar) wxTreeCtrlNameStr[] = wxT("treeCtrl"); -extern WXDLLEXPORT_DATA(const wxChar) wxEnhDialogNameStr[] = wxT("Shell"); extern WXDLLEXPORT_DATA(const wxChar) wxToolBarNameStr[] = wxT("toolbar"); -extern WXDLLEXPORT_DATA(const wxChar) wxDataViewCtrlNameStr[] = wxT("dataviewCtrl"); // Default messages -extern WXDLLEXPORT_DATA(const wxChar) wxGetTextFromUserPromptStr[] = wxT("Input Text"); -extern WXDLLEXPORT_DATA(const wxChar) wxGetPasswordFromUserPromptStr[] = wxT("Enter Password"); extern WXDLLEXPORT_DATA(const wxChar) wxMessageBoxCaptionStr[] = wxT("Message"); extern WXDLLEXPORT_DATA(const wxChar) wxFileSelectorPromptStr[] = wxT("Select a file"); @@ -114,8 +79,3 @@ extern WXDLLEXPORT_DATA(const wxChar) wxDirDialogDefaultFolderStr[] = wxT("/"); #if defined(__WXMSW__) || defined(__OS2__) WXDLLEXPORT_DATA(const wxChar *) wxUserResourceStr = wxT("TEXT"); #endif - - -const wxSize wxDefaultSize(wxDefaultCoord, wxDefaultCoord); -const wxPoint wxDefaultPosition(wxDefaultCoord, wxDefaultCoord); - diff --git a/src/common/datavcmn.cpp b/src/common/datavcmn.cpp index 4b924ef900..87d0a54f73 100644 --- a/src/common/datavcmn.cpp +++ b/src/common/datavcmn.cpp @@ -17,13 +17,13 @@ #if wxUSE_DATAVIEWCTRL +#include "wx/dataview.h" + #ifndef WX_PRECOMP - #include "wx/object.h" #include "wx/log.h" #endif -#include "wx/image.h" -#include "wx/dataview.h" +WXDLLIMPEXP_DATA_ADV(const wxChar) wxDataViewCtrlNameStr[] = wxT("dataviewCtrl"); // --------------------------------------------------------- // wxDataViewModel diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index baeb1c5ee8..f637c952d3 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -29,6 +29,8 @@ // bool wxDCBase::sm_cacheing = false; +IMPLEMENT_ABSTRACT_CLASS(wxDCBase, wxObject) + // ============================================================================ // implementation // ============================================================================ diff --git a/src/common/gaugecmn.cpp b/src/common/gaugecmn.cpp index 9a5b31881c..453337e805 100644 --- a/src/common/gaugecmn.cpp +++ b/src/common/gaugecmn.cpp @@ -27,9 +27,11 @@ #ifndef WX_PRECOMP #endif //WX_PRECOMP +#if wxUSE_GAUGE + #include "wx/gauge.h" -#if wxUSE_GAUGE +WXDLLIMPEXP_DATA_CORE(const wxChar) wxGaugeNameStr[] = wxT("gauge"); // ============================================================================ // implementation diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp index 161eb134d1..6d3faf11f7 100644 --- a/src/common/gdicmn.cpp +++ b/src/common/gdicmn.cpp @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __VMS -#define XtDisplay XTDISPLAY -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -24,10 +20,6 @@ #ifndef WX_PRECOMP #include "wx/log.h" - #include "wx/event.h" - #include "wx/app.h" - #include "wx/utils.h" - #include "wx/dc.h" #include "wx/pen.h" #include "wx/brush.h" #include "wx/palette.h" @@ -36,25 +28,32 @@ #include "wx/settings.h" #endif +#include "wx/colour.h" #include "wx/bitmap.h" #include "wx/font.h" #include "wx/hashmap.h" -#include - -#ifdef __WXMOTIF__ -#ifdef __VMS__ -#pragma message disable nosimpint -#endif -#include -#ifdef __VMS__ -#pragma message enable nosimpint -#endif +WXDLLIMPEXP_DATA_CORE(wxBrushList*) wxTheBrushList; +WXDLLIMPEXP_DATA_CORE(wxFontList*) wxTheFontList; +WXDLLIMPEXP_DATA_CORE(wxPenList*) wxThePenList; + +WXDLLIMPEXP_DATA_CORE(wxColourDatabase*) wxTheColourDatabase; + +WXDLLIMPEXP_DATA_CORE(wxBitmap) wxNullBitmap; +WXDLLIMPEXP_DATA_CORE(wxBrush) wxNullBrush; +WXDLLIMPEXP_DATA_CORE(wxColour) wxNullColour; +WXDLLIMPEXP_DATA_CORE(wxCursor) wxNullCursor; +WXDLLIMPEXP_DATA_CORE(wxFont) wxNullFont; +WXDLLIMPEXP_DATA_CORE(wxIcon) wxNullIcon; +WXDLLIMPEXP_DATA_CORE(wxPen) wxNullPen; +#if wxUSE_PALETTE +WXDLLIMPEXP_DATA_CORE(wxPalette) wxNullPalette; #endif -#ifdef __WXX11__ -#include "X11/Xlib.h" -#endif +WX_DECLARE_STRING_HASH_MAP(wxColour*, wxStringToColourHashMap); + +const wxSize wxDefaultSize(wxDefaultCoord, wxDefaultCoord); +const wxPoint wxDefaultPosition(wxDefaultCoord, wxDefaultCoord); #if wxUSE_EXTENDED_RTTI @@ -86,8 +85,6 @@ wxCUSTOM_TYPE_INFO(wxSize, wxToStringConverter , wxFromStringConverter - #else - #include - #endif + #include extern const unsigned int gtk_major_version; extern const unsigned int gtk_minor_version; extern const unsigned int gtk_micro_version; #endif +// Windows List +WXDLLIMPEXP_DATA_CORE(wxWindowList) wxTopLevelWindows; + // ---------------------------------------------------------------------------- // static data // ---------------------------------------------------------------------------- diff --git a/src/generic/dcpsg.cpp b/src/generic/dcpsg.cpp index 62c685559c..f57daec342 100644 --- a/src/generic/dcpsg.cpp +++ b/src/generic/dcpsg.cpp @@ -35,6 +35,8 @@ #include "wx/math.h" #include "wx/stdpaths.h" +WXDLLIMPEXP_DATA_CORE(int) wxPageNumber; + #ifdef __WXMSW__ #ifdef DrawText diff --git a/src/generic/textdlgg.cpp b/src/generic/textdlgg.cpp index 2a9f132a23..6c659fd660 100644 --- a/src/generic/textdlgg.cpp +++ b/src/generic/textdlgg.cpp @@ -26,6 +26,8 @@ #if wxUSE_TEXTDLG +#include "wx/generic/textdlgg.h" + #ifndef WX_PRECOMP #include "wx/utils.h" #include "wx/dialog.h" @@ -40,7 +42,8 @@ #include "wx/statline.h" #endif -#include "wx/generic/textdlgg.h" +WXDLLIMPEXP_DATA_CORE(const wxChar) wxGetTextFromUserPromptStr[] = wxT("Input Text"); +WXDLLIMPEXP_DATA_CORE(const wxChar) wxGetPasswordFromUserPromptStr[] = wxT("Enter Password"); // ---------------------------------------------------------------------------- // constants diff --git a/src/gtk/data.cpp b/src/gtk/data.cpp index c4396ae97a..2918e4747e 100644 --- a/src/gtk/data.cpp +++ b/src/gtk/data.cpp @@ -11,9 +11,6 @@ #include "wx/wxprec.h" #ifndef WX_PRECOMP - #include "wx/object.h" - #include "wx/window.h" - #include "wx/dc.h" #include "wx/cursor.h" #endif diff --git a/src/gtk/mdi.cpp b/src/gtk/mdi.cpp index f88a1fdba0..33378f7785 100644 --- a/src/gtk/mdi.cpp +++ b/src/gtk/mdi.cpp @@ -38,8 +38,6 @@ const int wxMENU_HEIGHT = 27; // globals //----------------------------------------------------------------------------- -extern wxList wxPendingDelete; - //----------------------------------------------------------------------------- // "switch_page" //----------------------------------------------------------------------------- diff --git a/src/gtk/toplevel.cpp b/src/gtk/toplevel.cpp index 1a0350bcd7..b425e1c119 100644 --- a/src/gtk/toplevel.cpp +++ b/src/gtk/toplevel.cpp @@ -54,8 +54,6 @@ // data // ---------------------------------------------------------------------------- -extern wxList wxPendingDelete; - extern int g_openDialogs; extern wxWindowGTK *g_delayedFocus; diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 4079dc8145..9330829817 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -221,7 +221,6 @@ extern GtkContainerClass *pizza_parent_class; // data //----------------------------------------------------------------------------- -extern wxList wxPendingDelete; extern bool g_blockEventsOnDrag; extern bool g_blockEventsOnScroll; extern wxCursor g_globalCursor; diff --git a/src/gtk1/mdi.cpp b/src/gtk1/mdi.cpp index 0b03d0d304..47b3493b95 100644 --- a/src/gtk1/mdi.cpp +++ b/src/gtk1/mdi.cpp @@ -45,8 +45,6 @@ extern bool g_isIdle; // globals //----------------------------------------------------------------------------- -extern wxList wxPendingDelete; - //----------------------------------------------------------------------------- // "switch_page" //----------------------------------------------------------------------------- diff --git a/src/gtk1/toplevel.cpp b/src/gtk1/toplevel.cpp index 81d12e46dc..fa58734334 100644 --- a/src/gtk1/toplevel.cpp +++ b/src/gtk1/toplevel.cpp @@ -61,8 +61,6 @@ extern bool g_isIdle; // data // ---------------------------------------------------------------------------- -extern wxList wxPendingDelete; - extern int g_openDialogs; extern wxWindowGTK *g_delayedFocus; diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index f92f405c9f..fdc9421a8d 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -203,7 +203,6 @@ // data //----------------------------------------------------------------------------- -extern wxList wxPendingDelete; extern bool g_blockEventsOnDrag; extern bool g_blockEventsOnScroll; extern wxCursor g_globalCursor; diff --git a/src/mac/carbon/app.cpp b/src/mac/carbon/app.cpp index a7aeda3221..68eb7808f6 100644 --- a/src/mac/carbon/app.cpp +++ b/src/mac/carbon/app.cpp @@ -67,8 +67,6 @@ # include #endif -extern wxList wxPendingDelete; - #if wxUSE_THREADS extern size_t g_numberOfThreads; #endif diff --git a/src/mac/carbon/dialog.cpp b/src/mac/carbon/dialog.cpp index ee4ded5dba..0a478ad303 100644 --- a/src/mac/carbon/dialog.cpp +++ b/src/mac/carbon/dialog.cpp @@ -27,8 +27,6 @@ // for modal dialogs wxList wxModalDialogs; -extern wxList wxPendingDelete; - IMPLEMENT_DYNAMIC_CLASS(wxDialog, wxTopLevelWindow) BEGIN_EVENT_TABLE(wxDialog, wxDialogBase) diff --git a/src/mac/carbon/frame.cpp b/src/mac/carbon/frame.cpp index d9868a8728..00e588c945 100644 --- a/src/mac/carbon/frame.cpp +++ b/src/mac/carbon/frame.cpp @@ -28,7 +28,6 @@ #include "wx/mac/uma.h" extern wxWindowList wxModelessWindows; -//extern wxList wxPendingDelete; BEGIN_EVENT_TABLE(wxFrame, wxFrameBase) EVT_ACTIVATE(wxFrame::OnActivate) diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 409bdd8d96..dbf267960f 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -68,8 +68,6 @@ #include -extern wxList wxPendingDelete; - #ifdef __WXUNIVERSAL__ IMPLEMENT_ABSTRACT_CLASS(wxWindowMac, wxWindowBase) #else diff --git a/src/mac/classic/dialog.cpp b/src/mac/classic/dialog.cpp index f4f2a537fc..198acc1f4c 100644 --- a/src/mac/classic/dialog.cpp +++ b/src/mac/classic/dialog.cpp @@ -25,8 +25,6 @@ // Lists to keep track of windows, so we can disable/enable them // for modal dialogs wxList wxModalDialogs; -//wxList wxModelessWindows; // Frames and modeless dialogs -extern wxList wxPendingDelete; IMPLEMENT_DYNAMIC_CLASS(wxDialog, wxTopLevelWindow) diff --git a/src/mac/classic/frame.cpp b/src/mac/classic/frame.cpp index 42e12a8a11..d97a3909e5 100644 --- a/src/mac/classic/frame.cpp +++ b/src/mac/classic/frame.cpp @@ -28,7 +28,6 @@ #include "wx/mac/uma.h" extern wxWindowList wxModelessWindows; -extern wxList wxPendingDelete; BEGIN_EVENT_TABLE(wxFrame, wxFrameBase) EVT_ACTIVATE(wxFrame::OnActivate) diff --git a/src/mac/classic/window.cpp b/src/mac/classic/window.cpp index 96cd1cbbb5..32504a03ab 100644 --- a/src/mac/classic/window.cpp +++ b/src/mac/classic/window.cpp @@ -60,7 +60,6 @@ #include -extern wxList wxPendingDelete; wxWindowMac* gFocusWindow = NULL ; #ifdef __WXUNIVERSAL__ diff --git a/src/motif/app.cpp b/src/motif/app.cpp index 278ceb911d..0f86cbcbaf 100644 --- a/src/motif/app.cpp +++ b/src/motif/app.cpp @@ -67,7 +67,6 @@ static void wxTLWidgetDestroyCallback(Widget w, XtPointer clientData, XtPointer ptr); static WXWidget wxCreateTopLevelWidget( WXDisplay* display ); -extern wxList wxPendingDelete; extern bool wxAddIdleCallback(); wxHashTable *wxWidgetHashTable = NULL; diff --git a/src/motif/dialog.cpp b/src/motif/dialog.cpp index f7950934e3..2536d0e5e0 100644 --- a/src/motif/dialog.cpp +++ b/src/motif/dialog.cpp @@ -66,7 +66,6 @@ // for modal dialogs wxList wxModalDialogs; extern wxList wxModelessWindows; // Frames and modeless dialogs -extern wxList wxPendingDelete; #define wxUSE_INVISIBLE_RESIZE 1 diff --git a/src/motif/frame.cpp b/src/motif/frame.cpp index bb28dc5223..6029bd7a32 100644 --- a/src/motif/frame.cpp +++ b/src/motif/frame.cpp @@ -88,7 +88,6 @@ static void wxFrameMapProc(Widget frameShell, XtPointer clientData, // ---------------------------------------------------------------------------- extern wxList wxModelessWindows; -extern wxList wxPendingDelete; // ---------------------------------------------------------------------------- // wxWin macros diff --git a/src/msw/app.cpp b/src/msw/app.cpp index 854e0edced..6a18714bf7 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -109,8 +109,6 @@ // global variables // --------------------------------------------------------------------------- -extern wxList WXDLLEXPORT wxPendingDelete; - #if !defined(__WXMICROWIN__) && !defined(__WXWINCE__) extern void wxSetKeyboardHook(bool doIt); #endif diff --git a/src/os2/app.cpp b/src/os2/app.cpp index fe9f2d83d0..491f4800c2 100644 --- a/src/os2/app.cpp +++ b/src/os2/app.cpp @@ -81,8 +81,7 @@ extern "C" int _System bsdselect(int, // global variables // --------------------------------------------------------------------------- -extern wxChar* wxBuffer; -extern wxList WXDLLEXPORT wxPendingDelete; +WXDLLEXPORT_DATA(wxChar*) wxBuffer; extern wxCursor* g_globalCursor; HAB vHabmain = NULLHANDLE; diff --git a/src/os2/frame.cpp b/src/os2/frame.cpp index d04ed2f8f8..c909d19d16 100644 --- a/src/os2/frame.cpp +++ b/src/os2/frame.cpp @@ -48,8 +48,6 @@ // globals // ---------------------------------------------------------------------------- -extern wxList WXDLLEXPORT wxPendingDelete; - #if wxUSE_MENUS_NATIVE extern wxMenu *wxCurrentPopupMenu; #endif diff --git a/src/palmos/app.cpp b/src/palmos/app.cpp index 3361595e65..b96a01e117 100644 --- a/src/palmos/app.cpp +++ b/src/palmos/app.cpp @@ -63,8 +63,6 @@ // global variables // --------------------------------------------------------------------------- -extern wxList WXDLLEXPORT wxPendingDelete; - // NB: all "NoRedraw" classes must have the same names as the "normal" classes // with NR suffix - wxWindow::MSWCreate() supposes this const wxChar *wxCanvasClassName = wxT("wxWindowClass"); diff --git a/src/x11/app.cpp b/src/x11/app.cpp index a63e55214f..afe3bb92a7 100644 --- a/src/x11/app.cpp +++ b/src/x11/app.cpp @@ -46,8 +46,6 @@ // global data //------------------------------------------------------------------------ -extern wxList wxPendingDelete; - wxWindowHash *wxWidgetHashTable = NULL; wxWindowHash *wxClientWidgetHashTable = NULL; -- 2.45.2