campo-sirio/xvaga/xvapp.cpp
guy edc01493f2 Patch level : 2.2
Files correlati     : stampe e ricerche
Ricompilazione Demo : [ ]
Commento            :
Riportate correzioni della 2.1 sulla creazione dei font di stampa
Aggiunte espresisoni regolari potenziate


git-svn-id: svn://10.65.10.50/trunk@13447 c028cbd2-c16b-5b4b-a496-9718f37d4682
2005-10-24 15:21:30 +00:00

61 lines
938 B
C++
Executable File

#include "../xvaga/wxinc.h"
extern int xvt_main(int argc, char** argv);
class TMainApp : public wxApp
{
wxLocale m_Locale;
protected:
virtual bool OnInit();
#if wxCHECK_VERSION(2,6,1)
bool m_bInited;
virtual void OnIdle(wxIdleEvent& event);
DECLARE_EVENT_TABLE()
#endif
DECLARE_DYNAMIC_CLASS(TMainApp);
};
IMPLEMENT_DYNAMIC_CLASS(TMainApp, wxApp)
DECLARE_APP(TMainApp)
IMPLEMENT_APP(TMainApp)
#if wxCHECK_VERSION(2,6,1)
BEGIN_EVENT_TABLE(TMainApp, wxApp)
EVT_IDLE(TMainApp::OnIdle)
END_EVENT_TABLE()
void TMainApp::OnIdle(wxIdleEvent& event)
{
if (!m_bInited)
{
m_bInited = true;
xvt_main(argc, argv);
}
}
#endif
bool TMainApp::OnInit()
{
m_Locale.Init(wxLocale::GetSystemLanguage()); // wxLANGUAGE_ITALIAN
#ifdef __WXDEBUG__
// wxLog::SetTraceMask(wxTraceMessages);
#endif
#if wxCHECK_VERSION(2,6,1)
m_bInited = false;
return true;
#else
xvt_main(argc, argv);
return false;
#endif
}