X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7dd62924826c2015d9c2563ce0e9443e73dbddc1..994bc575d8a9d0efb440efaaa36b9a4c8f157f8f:/src/gtk1/data.cpp diff --git a/src/gtk1/data.cpp b/src/gtk1/data.cpp index 4ac9238294..4979216dae 100644 --- a/src/gtk1/data.cpp +++ b/src/gtk1/data.cpp @@ -7,7 +7,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// - #ifdef __GNUG__ // #pragma implementation #endif @@ -16,23 +15,16 @@ #include "wx/object.h" #include "wx/window.h" #include "wx/dc.h" + +#if wxUSE_ACCEL #include "wx/accel.h" +#endif + #include "wx/dcps.h" #include "wx/icon.h" #define _MAXPATHLEN 500 -/* Used for X resources */ -#include -#include -#include - -wxResourceCache *wxTheResourceCache = (wxResourceCache *) NULL; -XrmDatabase wxResourceDatabase; - -/* Useful buffer, initialized in wxCommonInit */ -wxChar *wxBuffer = (wxChar *) NULL; - /* Windows List */ wxWindowList wxTopLevelWindows; @@ -49,6 +41,9 @@ bool g_blockEventsOnDrag = FALSE; /* Don't allow mouse event propagation during scroll */ bool g_blockEventsOnScroll = FALSE; +/* Don't allow window closing if there are open dialogs */ +int g_openDialogs = 0; + /* TRUE when the message queue is empty. this gets set to FALSE by all event callbacks before anything else is done */ bool g_isIdle = FALSE; @@ -56,12 +51,6 @@ bool g_isIdle = FALSE; /* Message Strings for Internationalization */ char **wx_msg_str = (char**)NULL; -/* Custom OS version, as optionally placed in wx.ini/.wxrc - * Currently this can be Win95, Windows, Win32s, WinNT. - * For some systems, you can't tell until run-time what services you - * have. See wxGetOsVersion, which uses this string if present. */ -char *wxOsVersion = (char *) NULL; - /* For printing several pages */ int wxPageNumber; @@ -136,6 +125,7 @@ wxColour wxNullColour; wxPalette wxNullPalette; /* Default window names */ +const wxChar *wxControlNameStr = wxT("control"); const wxChar *wxButtonNameStr = wxT("button"); const wxChar *wxCanvasNameStr = wxT("canvas"); const wxChar *wxCheckBoxNameStr = wxT("check"); @@ -167,10 +157,9 @@ const wxChar *wxGetTextFromUserPromptStr = wxT("Input Text"); const wxChar *wxMessageBoxCaptionStr = wxT("Message"); const wxChar *wxFileSelectorPromptStr = wxT("Select a file"); const wxChar *wxFileSelectorDefaultWildcardStr = wxT("*"); -const wxChar *wxInternalErrorStr = wxT("wxWindows Internal Error"); -const wxChar *wxFatalErrorStr = wxT("wxWindows Fatal Error"); const wxChar *wxDirDialogNameStr = wxT("wxDirCtrl"); const wxChar *wxDirDialogDefaultFolderStr = wxT("/"); +const wxChar *wxTreeCtrlNameStr = wxT("wxTreeCtrl"); /* See wx/utils.h */ const wxChar *wxFloatToStringStr = wxT("%.2f");