X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3622daa901777a33969d8bc04e2d62dee14d164..a5e0e655cb829a0112e1eecdf9ce4bede79cae80:/src/gtk1/data.cpp diff --git a/src/gtk1/data.cpp b/src/gtk1/data.cpp index 826d9102c7..a03c6f6f1f 100644 --- a/src/gtk1/data.cpp +++ b/src/gtk1/data.cpp @@ -13,7 +13,12 @@ // #pragma implementation #endif -#include "wx/wx.h" +#include "wx/defs.h" +#include "wx/object.h" +#include "wx/window.h" +#include "wx/dc.h" +#include "wx/accel.h" +#include "wx/postscrp.h" #define _MAXPATHLEN 500 @@ -23,11 +28,11 @@ #include #include -wxResourceCache *wxTheResourceCache = NULL; +wxResourceCache *wxTheResourceCache = (wxResourceCache *) NULL; XrmDatabase wxResourceDatabase; // Useful buffer, initialized in wxCommonInit -char *wxBuffer = NULL; +char *wxBuffer = (char *) NULL; // Windows List wxList wxTopLevelWindows; @@ -37,7 +42,7 @@ wxList wxPendingDelete; // Current cursor, in order to hang on to // cursor handle when setting the cursor globally -wxCursor *g_globalCursor = NULL; +wxCursor *g_globalCursor = (wxCursor *) NULL; // Don't allow event propagation during drag bool g_blockEventsOnDrag = FALSE; @@ -49,18 +54,18 @@ char **wx_msg_str = (char**)NULL; // 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 = NULL; +char *wxOsVersion = (char *) NULL; // For printing several pages int wxPageNumber; -wxPrintPaperDatabase* wxThePrintPaperDatabase = NULL; +wxPrintPaperDatabase* wxThePrintPaperDatabase = (wxPrintPaperDatabase *) NULL; // GDI Object Lists -wxBrushList *wxTheBrushList = NULL; -wxPenList *wxThePenList = NULL; -wxFontList *wxTheFontList = NULL; -wxColourDatabase *wxTheColourDatabase = NULL; -wxBitmapList *wxTheBitmapList = NULL; +wxBrushList *wxTheBrushList = (wxBrushList *) NULL; +wxPenList *wxThePenList = (wxPenList *) NULL; +wxFontList *wxTheFontList = (wxFontList *) NULL; +wxColourDatabase *wxTheColourDatabase = (wxColourDatabase *) NULL; +wxBitmapList *wxTheBitmapList = (wxBitmapList *) NULL; // X only font names @@ -103,19 +108,20 @@ wxColour *wxGREEN; wxColour *wxCYAN; wxColour *wxLIGHT_GREY; -wxCursor *wxSTANDARD_CURSOR = NULL; -wxCursor *wxHOURGLASS_CURSOR = NULL; -wxCursor *wxCROSS_CURSOR = NULL; +wxCursor *wxSTANDARD_CURSOR = (wxCursor *) NULL; +wxCursor *wxHOURGLASS_CURSOR = (wxCursor *) NULL; +wxCursor *wxCROSS_CURSOR = (wxCursor *) NULL; // 'Null' objects -wxBitmap wxNullBitmap; -wxIcon wxNullIcon; -wxCursor wxNullCursor; -wxPen wxNullPen; -wxBrush wxNullBrush; -wxFont wxNullFont; -wxColour wxNullColour; -wxPalette wxNullPalette; +wxAcceleratorTable wxNullAcceleratorTable; +wxBitmap wxNullBitmap; +wxIcon wxNullIcon; +wxCursor wxNullCursor; +wxPen wxNullPen; +wxBrush wxNullBrush; +wxFont wxNullFont; +wxColour wxNullColour; +wxPalette wxNullPalette; // Default window names const char *wxButtonNameStr = "button"; @@ -170,8 +176,9 @@ const char *wxUserResourceStr = "TEXT"; */ // Hand-coded IMPLEMENT... macro for wxObject (define static data) -wxClassInfo wxObject::classwxObject("wxObject", NULL, NULL, sizeof(wxObject), NULL); -wxClassInfo *wxClassInfo::first = NULL; +wxClassInfo wxObject::classwxObject((char *) "wxObject", (char *) NULL, (char *) NULL, (int ) sizeof(wxObject), (wxObjectConstructorFn) NULL); +wxClassInfo *wxClassInfo::first = (wxClassInfo *) NULL; +wxHashTable wxClassInfo::classTable(wxKEY_STRING); #include "wx/button.h" #include "wx/bmpbuttn.h" @@ -393,6 +400,50 @@ IMPLEMENT_DYNAMIC_CLASS(wxToolBar95, wxToolBarBase) #endif +#include "wx/sckaddr.h" + +IMPLEMENT_DYNAMIC_CLASS(wxIPV4address, wxSockAddress) +#ifdef ENABLE_IPV6 +IMPLEMENT_DYNAMIC_CLASS(wxIPV6address, wxSockAddress) +#endif +#ifndef __UNIX__ +IMPLEMENT_DYNAMIC_CLASS(wxUNIXaddress, wxSockAddress) +#endif + +#include "wx/socket.h" + +IMPLEMENT_CLASS(wxSocketBase, wxEvtHandler) +IMPLEMENT_CLASS(wxSocketClient, wxSocketBase) +IMPLEMENT_CLASS(wxSocketServer, wxSocketBase) +IMPLEMENT_CLASS(wxSocketHandler, wxObject) +IMPLEMENT_DYNAMIC_CLASS(wxSocketEvent, wxEvent) + +#include "wx/url.h" + +IMPLEMENT_CLASS(wxProtoInfo, wxObject) +IMPLEMENT_CLASS(wxURL, wxObject) + +#include "wx/protocol/http.h" + +IMPLEMENT_DYNAMIC_CLASS(wxHTTP, wxProtocol) +IMPLEMENT_PROTOCOL(wxHTTP, "http", "80", TRUE) + +#include "wx/protocol/ftp.h" + +IMPLEMENT_DYNAMIC_CLASS(wxFTP, wxProtocol) +IMPLEMENT_PROTOCOL(wxFTP, "ftp", "21", TRUE) + +#include "wx/protocol/sckfile.h" + +IMPLEMENT_DYNAMIC_CLASS(wxFileProto, wxProtocol) +IMPLEMENT_PROTOCOL(wxFileProto, "file", NULL, FALSE) + +#include "wx/sckipc.h" + +IMPLEMENT_DYNAMIC_CLASS(wxTCPServer, wxServerBase) +IMPLEMENT_DYNAMIC_CLASS(wxTCPClient, wxClientBase) +IMPLEMENT_DYNAMIC_CLASS(wxTCPConnection, wxConnectionBase) + #include "wx/statusbr.h" IMPLEMENT_DYNAMIC_CLASS(wxStatusBar, wxWindow) @@ -550,7 +601,14 @@ const wxEventTable *wxEvtHandler::GetEventTable() const { return &wxEvtHandler:: const wxEventTable wxEvtHandler::sm_eventTable = { NULL, &wxEvtHandler::sm_eventTableEntries[0] }; -const wxEventTableEntry wxEvtHandler::sm_eventTableEntries[] = { { 0, 0, 0, NULL } }; +const wxEventTableEntry wxEvtHandler::sm_eventTableEntries[] = { { 0, 0, 0, +#ifdef __SGI_CC__ + 0L +#else + NULL +#endif + } +}; BEGIN_EVENT_TABLE(wxFrame, wxWindow) EVT_SIZE(wxFrame::OnSize)