forked from 0ad/0ad
39 lines
646 B
C++
Executable File
39 lines
646 B
C++
Executable File
// $Id: wxapp.cpp,v 1.3 2004/06/19 12:56:09 philip Exp $
|
|
|
|
#include "stdafx.h"
|
|
|
|
#include "wx/app.h"
|
|
|
|
#include "wxframe.h"
|
|
#include "wxconfig.h"
|
|
|
|
#include "version.h"
|
|
|
|
class FontBuilderApp : public wxApp
|
|
{
|
|
public:
|
|
virtual bool OnInit();
|
|
virtual int OnExit();
|
|
};
|
|
|
|
|
|
IMPLEMENT_APP(FontBuilderApp)
|
|
|
|
bool FontBuilderApp::OnInit()
|
|
{
|
|
ConfigInit();
|
|
|
|
MainFrame *frame = new MainFrame(wxString::Format(wxT("Font Builder %s"), (const wchar_t*)version), wxDefaultPosition, wxSize(640,480));
|
|
frame->SetIcon(wxIcon(wxT("IDI_ICON1")));
|
|
frame->Show(true);
|
|
SetTopWindow(frame);
|
|
|
|
return true;
|
|
}
|
|
|
|
int FontBuilderApp::OnExit()
|
|
{
|
|
ConfigDestroy();
|
|
return 0;
|
|
}
|