]>
git.saurik.com Git - wxWidgets.git/blob - src/mgl/app.cpp
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com)
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
11 #pragma implementation "app.h"
15 #include "wx/settings.h"
16 #include "wx/module.h"
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
24 wxApp
*wxTheApp
= (wxApp
*) NULL
;
25 wxAppInitializerFunction
wxAppBase::m_appInitFn
= (wxAppInitializerFunction
) NULL
;
27 // FIXME_MGL - whole file
32 bool g_mainThreadLocked
= FALSE
;
39 //-----------------------------------------------------------------------------
41 //-----------------------------------------------------------------------------
48 //-----------------------------------------------------------------------------
50 //-----------------------------------------------------------------------------
56 //-----------------------------------------------------------------------------
58 //-----------------------------------------------------------------------------
60 IMPLEMENT_DYNAMIC_CLASS(wxApp
,wxEvtHandler
)
62 BEGIN_EVENT_TABLE(wxApp
, wxEvtHandler
)
63 EVT_IDLE(wxApp::OnIdle
)
67 int wxEntry( int argc
, char *argv
[] )
73 // FIXME_MGL - this is temporary solution, will be removed
74 // once I have wxApp up and running
75 bool wxMGL_Initialize()
77 wxBuffer
= new wxChar
[BUFSIZ
+ 512];
79 wxClassInfo::InitializeClasses();
80 wxSystemSettings::Init();
81 wxTheColourDatabase
= new wxColourDatabase( wxKEY_STRING
);
82 wxTheColourDatabase
->Initialize();
83 wxInitializeStockLists();
84 wxInitializeStockObjects();
85 wxModule::RegisterModules();
86 if (!wxModule::InitializeModules()) return FALSE
;