Back to index

plt-scheme  4.2.1
GlobalData.h
Go to the documentation of this file.
00001 /*                                                      -*- C++ -*-
00002  *
00003  * Purpose: global data for an application (UNSHARED)
00004  *
00005  * Authors: Markus Holzem and Julian Smart
00006  *
00007  * Copyright: (C) 2004-2009 PLT Scheme Inc.
00008  * Copyright: (C) 1995, AIAI, University of Edinburgh (Julian)
00009  * Copyright: (C) 1995, GNU (Markus)
00010  *
00011  * This program is free software; you can redistribute it and/or modify
00012  * it under the terms of the GNU General Public License as published by
00013  * the Free Software Foundation; either version 2 of the License, or
00014  * (at your option) any later version.
00015  *
00016  * This program is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU General Public License
00022  * along with this program; if not, write to the Free Software
00023  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00024  * 02110-1301 USA.
00025  */
00026 
00027 #ifndef GlobalData_h
00028 #define GlobalData_h
00029 
00030 #ifdef __GNUG__
00031 #pragma interface
00032 #endif
00033 
00034 class wxApp;
00035 class wxBrush;
00036 class wxBrushList;
00037 class wxColour;
00038 class wxColourDatabase;
00039 class wxColourMap;
00040 class wxCursor;
00041 class wxFont;
00042 class wxFontList;
00043 class wxList;
00044 class wxChildList;
00045 class wxPen;
00046 class wxPenList;
00047 class wxPrintPaperDatabase;
00048 class wxPrintSetupData;
00049 class wxTypeTree;
00050 class wxWindow;
00051 
00052 //-- Application --------------------------------------------------------------
00053 
00054 extern wxApp* wxTheApp;
00055 
00056 extern char* wxAPP_CLASS;
00057 extern char* wxAPP_NAME;
00058 extern Bool  wxAPP_DEBUGOUTPUT;
00059 
00060 extern wxColourMap* wxAPP_COLOURMAP;
00061 
00062 #if defined (Uses_XtIntrinsic) || defined (Uses_XtIntrinsicP)
00063 extern Widget wxGetAppToplevel(void);
00064 extern void wxPutAppToplevel(Widget);
00065 # define wxAPP_TOPLEVEL (wxGetAppToplevel())
00066 extern XtAppContext wxAPP_CONTEXT;
00067 #endif
00068 
00069 #if defined (Uses_XtIntrinsic) || defined (Uses_XtIntrinsicP) || defined (Uses_XLib)
00070 extern Display*      wxAPP_DISPLAY;
00071 extern Screen*       wxAPP_SCREEN;
00072 extern Window   wxAPP_ROOT;
00073 #endif
00074 
00075 //-- DialogBox ----------------------------------------------------------------
00076 
00077 wxWindow *wxGetModalWindow(wxObject*);
00078 void wxPushModalWindow(wxObject*,wxWindow *);
00079 void wxPopModalWindow(wxObject*,wxWindow *);
00080 
00081 //-- Frame --------------------------------------------------------------------
00082 
00083 extern wxChildList *wxGetTopLevelWindowsList(wxObject*);
00084 #define wxTopLevelFrames(w) (wxGetTopLevelWindowsList(w))
00085 
00086 extern void *wxGetContextForFrame();
00087 
00088 //-- GDI collections ----------------------------------------------------------
00089 
00090 extern wxColourDatabase* wxTheColourDatabase;
00091 extern wxPenList*     wxThePenList;
00092 extern wxBrushList*   wxTheBrushList;
00093 extern wxFontList*    wxTheFontList;
00094 
00095 //-- misc ---------------------------------------------------------------------
00096 
00097 extern char* wxBuffer;
00098 
00099 //-- Printing -----------------------------------------------------------------
00100 
00101 extern wxPrintPaperDatabase* wxThePrintPaperDatabase;
00102 
00103 //-- Resources ----------------------------------------------------------------
00104 
00105 #if defined (Uses_XtIntrinsic) || defined (Uses_XtIntrinsicP) || defined (Uses_XLib)
00106 extern XrmDatabase wxResourceDatabase;
00107 #endif
00108 extern wxList *wxResourceCache;
00109 
00110 //-- simple language support---------------------------------------------------
00111 
00112 extern char **wx_msg_str;
00113 
00114 //-- stock objects ------------------------------------------------------------
00115 
00116 extern wxFont* wxNORMAL_FONT;
00117 extern wxFont* wxSMALL_FONT;
00118 extern wxFont* wxITALIC_FONT;
00119 extern wxFont* wxSWISS_FONT;
00120 extern wxFont* wxSYSTEM_FONT;
00121                      
00122 extern wxPen* wxRED_PEN;
00123 extern wxPen* wxCYAN_PEN;
00124 extern wxPen* wxGREEN_PEN;
00125 extern wxPen* wxBLACK_PEN;
00126 extern wxPen* wxWHITE_PEN;
00127 extern wxPen* wxTRANSPARENT_PEN;
00128 extern wxPen* wxBLACK_DASHED_PEN;
00129 extern wxPen* wxGREY_PEN;
00130 extern wxPen* wxMEDIUM_GREY_PEN;
00131 extern wxPen* wxLIGHT_GREY_PEN;
00132                      
00133 extern wxBrush* wxBLUE_BRUSH;
00134 extern wxBrush* wxGREEN_BRUSH;
00135 extern wxBrush* wxWHITE_BRUSH;
00136 extern wxBrush* wxBLACK_BRUSH;
00137 extern wxBrush* wxGREY_BRUSH;
00138 extern wxBrush* wxMEDIUM_GREY_BRUSH;
00139 extern wxBrush* wxLIGHT_GREY_BRUSH;
00140 extern wxBrush* wxTRANSPARENT_BRUSH;
00141 extern wxBrush* wxCYAN_BRUSH;
00142 extern wxBrush* wxRED_BRUSH;
00143                      
00144 extern wxColour* wxBLACK;
00145 extern wxColour* wxWHITE;
00146 extern wxColour* wxGREY;
00147 extern wxColour* wxBUTTON_COLOR;
00148 extern wxColour* wxRED;
00149 extern wxColour* wxBLUE;
00150 extern wxColour* wxGREEN;
00151 extern wxColour* wxCYAN;
00152 extern wxColour* wxLIGHT_GREY;
00153 extern wxColour* wxCTL_HILITE;
00154 
00155 extern unsigned long wxWHITE_PIXEL;
00156 extern unsigned long wxBLACK_PIXEL;
00157 extern unsigned long wxGREY_PIXEL;
00158 extern unsigned long wxBUTTON_PIXEL;
00159 extern unsigned long wxDARK_GREY_PIXEL;
00160 extern unsigned long wxCTL_HIGHLIGHT_PIXEL;
00161 
00162 extern wxCursor* wxSTANDARD_CURSOR;
00163 extern wxCursor* wxHOURGLASS_CURSOR;
00164 extern wxCursor* wxCROSS_CURSOR;
00165 extern wxCursor* wxIBEAM_CURSOR;
00166 extern wxCursor* wxBLANK_CURSOR;
00167 
00168 //-- Types --------------------------------------------------------------------
00169 
00170 extern wxTypeTree *wxAllTypes;
00171 
00172 #endif // GlobalData_h