Tyro/src/TyroApp.cpp

35 lines
696 B
C++

/***************************************************************
* Name: TyroApp.cpp
* Purpose: Code for Application Class
* Author: Timothy J Warren (tim@timshomepage.net)
* Created: 2015-03-30
* Copyright: Timothy J Warren (https://timshomepage.net)
* License:
**************************************************************/
#ifdef WX_PRECOMP
#include "wx_pch.h"
#endif
#include "TyroApp.h"
#include "Main.h"
IMPLEMENT_APP(TyroApp);
bool TyroApp::OnInit()
{
MainFrame* frame = new MainFrame(0L, _("Tyro"));
frame->CenterOnScreen();
frame->Show(true);
SetTopWindow(frame);
return true;
}
int TyroApp::OnExit(wxCommandEvent &WXUNUSED(event))
{
close(true);
return 1;
}