]>
git.saurik.com Git - wxWidgets.git/blob - src/mgl/app.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2001 Vaclav Slavik
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #pragma implementation "app.h"
15 #include "wx/settings.h"
16 #include "wx/module.h"
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
25 MGLDevCtx
*g_displayDC
= NULL
;
29 wxApp
*wxTheApp
= (wxApp
*) NULL
;
30 wxAppInitializerFunction
wxAppBase::m_appInitFn
= (wxAppInitializerFunction
) NULL
;
32 // FIXME_MGL - whole file
37 bool g_mainThreadLocked
= FALSE
;
44 //-----------------------------------------------------------------------------
46 //-----------------------------------------------------------------------------
53 //-----------------------------------------------------------------------------
55 //-----------------------------------------------------------------------------
61 //-----------------------------------------------------------------------------
63 //-----------------------------------------------------------------------------
65 IMPLEMENT_DYNAMIC_CLASS(wxApp
,wxEvtHandler
)
67 BEGIN_EVENT_TABLE(wxApp
, wxEvtHandler
)
68 EVT_IDLE(wxApp::OnIdle
)
72 int wxEntry( int argc
, char *argv
[] )
78 // FIXME_MGL - this is temporary solution, will be removed
79 // once I have wxApp up and running
80 bool wxMGL_Initialize()
82 wxBuffer
= new wxChar
[BUFSIZ
+ 512];
84 wxClassInfo::InitializeClasses();
85 wxSystemSettings::Init();
86 wxTheColourDatabase
= new wxColourDatabase( wxKEY_STRING
);
87 wxTheColourDatabase
->Initialize();
88 wxInitializeStockLists();
89 wxInitializeStockObjects();
90 wxModule::RegisterModules();
91 if (!wxModule::InitializeModules()) return FALSE
;