Tyro/src/TyroApp.cpp
2015-04-09 11:45:19 -04:00

33 lines
670 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:
**************************************************************/
#include "common.h"
#include "TyroApp.h"
#include "widgets/MainFrame.h"
IMPLEMENT_APP(TyroApp);
bool TyroApp::OnInit()
{
MainFrame* frame = new MainFrame(0L, _("Tyro"));
frame->Layout();
frame->CenterOnScreen();
frame->Show(true);
SetTopWindow(frame);
return true;
}
int TyroApp::OnExit()
{
close(true);
return 1;
}