X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e12c92c2f7829e0d4666c0464e6c0d5b622768cc..4e15d1caa03346c126015019c1fdf093033ef40b:/src/msw/data.cpp diff --git a/src/msw/data.cpp b/src/msw/data.cpp index 94b3342d73..9170ca4612 100644 --- a/src/msw/data.cpp +++ b/src/msw/data.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: data.cpp +// Name: src/msw/data.cpp // Purpose: Various data // Author: Julian Smart // Modified by: @@ -9,10 +9,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "data.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -20,130 +16,3 @@ #pragma hdrstop #endif -#ifndef WX_PRECOMP -#include "wx/wx.h" -#include "wx/treectrl.h" -#endif - -#include "wx/prntbase.h" - -#define _MAXPATHLEN 500 - -// 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; -wxBitmapList *wxTheBitmapList = NULL; -wxColourDatabase *wxTheColourDatabase = NULL; - -// Stock objects -wxFont *wxNORMAL_FONT; -wxFont *wxSMALL_FONT; -wxFont *wxITALIC_FONT; -wxFont *wxSWISS_FONT; - -wxPen *wxRED_PEN; -wxPen *wxCYAN_PEN; -wxPen *wxGREEN_PEN; -wxPen *wxBLACK_PEN; -wxPen *wxWHITE_PEN; -wxPen *wxTRANSPARENT_PEN; -wxPen *wxBLACK_DASHED_PEN; -wxPen *wxGREY_PEN; -wxPen *wxMEDIUM_GREY_PEN; -wxPen *wxLIGHT_GREY_PEN; - -wxBrush *wxBLUE_BRUSH; -wxBrush *wxGREEN_BRUSH; -wxBrush *wxWHITE_BRUSH; -wxBrush *wxBLACK_BRUSH; -wxBrush *wxTRANSPARENT_BRUSH; -wxBrush *wxCYAN_BRUSH; -wxBrush *wxRED_BRUSH; -wxBrush *wxGREY_BRUSH; -wxBrush *wxMEDIUM_GREY_BRUSH; -wxBrush *wxLIGHT_GREY_BRUSH; - -wxColour *wxBLACK; -wxColour *wxWHITE; -wxColour *wxRED; -wxColour *wxBLUE; -wxColour *wxGREEN; -wxColour *wxCYAN; -wxColour *wxLIGHT_GREY; - -wxCursor *wxSTANDARD_CURSOR = NULL; -wxCursor *wxHOURGLASS_CURSOR = NULL; -wxCursor *wxCROSS_CURSOR = 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 -WXDLLEXPORT_DATA(const wxChar *) wxControlNameStr = wxT("control"); -WXDLLEXPORT_DATA(const wxChar *) wxButtonNameStr = wxT("button"); -WXDLLEXPORT_DATA(const wxChar *) wxCanvasNameStr = wxT("canvas"); -WXDLLEXPORT_DATA(const wxChar *) wxCheckBoxNameStr = wxT("check"); -WXDLLEXPORT_DATA(const wxChar *) wxChoiceNameStr = wxT("choice"); -WXDLLEXPORT_DATA(const wxChar *) wxComboBoxNameStr = wxT("comboBox"); -WXDLLEXPORT_DATA(const wxChar *) wxDialogNameStr = wxT("dialog"); -WXDLLEXPORT_DATA(const wxChar *) wxFrameNameStr = wxT("frame"); -WXDLLEXPORT_DATA(const wxChar *) wxGaugeNameStr = wxT("gauge"); -WXDLLEXPORT_DATA(const wxChar *) wxStaticBoxNameStr = wxT("groupBox"); -WXDLLEXPORT_DATA(const wxChar *) wxListBoxNameStr = wxT("listBox"); -WXDLLEXPORT_DATA(const wxChar *) wxStaticTextNameStr = wxT("message"); -WXDLLEXPORT_DATA(const wxChar *) wxStaticBitmapNameStr = wxT("message"); -WXDLLEXPORT_DATA(const wxChar *) wxMultiTextNameStr = wxT("multitext"); -WXDLLEXPORT_DATA(const wxChar *) wxPanelNameStr = wxT("panel"); -WXDLLEXPORT_DATA(const wxChar *) wxRadioBoxNameStr = wxT("radioBox"); -WXDLLEXPORT_DATA(const wxChar *) wxRadioButtonNameStr = wxT("radioButton"); -WXDLLEXPORT_DATA(const wxChar *) wxBitmapRadioButtonNameStr = wxT("radioButton"); -WXDLLEXPORT_DATA(const wxChar *) wxScrollBarNameStr = wxT("scrollBar"); -WXDLLEXPORT_DATA(const wxChar *) wxSliderNameStr = wxT("slider"); -WXDLLEXPORT_DATA(const wxChar *) wxStaticNameStr = wxT("static"); -WXDLLEXPORT_DATA(const wxChar *) wxTextCtrlWindowNameStr = wxT("textWindow"); -WXDLLEXPORT_DATA(const wxChar *) wxTextCtrlNameStr = wxT("text"); -WXDLLEXPORT_DATA(const wxChar *) wxVirtListBoxNameStr = wxT("virtListBox"); -WXDLLEXPORT_DATA(const wxChar *) wxButtonBarNameStr = wxT("buttonbar"); -WXDLLEXPORT_DATA(const wxChar *) wxEnhDialogNameStr = wxT("Shell"); -WXDLLEXPORT_DATA(const wxChar *) wxToolBarNameStr = wxT("toolbar"); -WXDLLEXPORT_DATA(const wxChar *) wxStatusLineNameStr = wxT("status_line"); -WXDLLEXPORT_DATA(const wxChar *) wxGetTextFromUserPromptStr = wxT("Input Text"); -WXDLLEXPORT_DATA(const wxChar *) wxMessageBoxCaptionStr = wxT("Message"); -WXDLLEXPORT_DATA(const wxChar *) wxFileSelectorPromptStr = wxT("Select a file"); -WXDLLEXPORT_DATA(const wxChar *) wxFileSelectorDefaultWildcardStr = wxT("*.*"); -WXDLLEXPORT_DATA(const wxChar *) wxTreeCtrlNameStr = wxT("treeCtrl"); -WXDLLEXPORT_DATA(const wxChar *) wxDirDialogNameStr = wxT("wxDirCtrl"); -WXDLLEXPORT_DATA(const wxChar *) wxDirDialogDefaultFolderStr = wxT("/"); - -#ifdef __WXMSW__ -WXDLLEXPORT_DATA(const wxChar *) wxUserResourceStr = wxT("TEXT"); -#endif - - -const wxSize wxDefaultSize(-1, -1); -const wxPoint wxDefaultPosition(-1, -1);