2015-03-30 14:50:10 -04:00
|
|
|
/***************************************************************
|
2015-03-31 22:52:12 -04:00
|
|
|
* Name: TyroApp.cpp
|
2015-03-30 14:50:10 -04:00
|
|
|
* Purpose: Code for Application Class
|
2015-03-31 22:52:12 -04:00
|
|
|
* Author: Timothy J Warren (tim@timshomepage.net)
|
2015-03-30 14:50:10 -04:00
|
|
|
* Created: 2015-03-30
|
|
|
|
* Copyright: Timothy J Warren (https://timshomepage.net)
|
|
|
|
* License:
|
|
|
|
**************************************************************/
|
|
|
|
|
2015-04-02 18:00:50 -04:00
|
|
|
#include "common.h"
|
2015-03-30 14:50:10 -04:00
|
|
|
#include "TyroApp.h"
|
2015-04-01 10:11:56 -04:00
|
|
|
#include "Main.h"
|
2015-03-30 14:50:10 -04:00
|
|
|
|
|
|
|
IMPLEMENT_APP(TyroApp);
|
|
|
|
|
|
|
|
bool TyroApp::OnInit()
|
|
|
|
{
|
2015-04-02 11:01:21 -04:00
|
|
|
MainFrame* frame = new MainFrame(0L, _("Tyro"));
|
2015-03-30 14:50:10 -04:00
|
|
|
|
2015-03-31 22:52:12 -04:00
|
|
|
frame->CenterOnScreen();
|
|
|
|
frame->Show(true);
|
|
|
|
SetTopWindow(frame);
|
2015-03-30 14:50:10 -04:00
|
|
|
|
2015-03-31 22:52:12 -04:00
|
|
|
return true;
|
2015-03-30 14:50:10 -04:00
|
|
|
}
|
2015-03-30 16:01:24 -04:00
|
|
|
|
2015-04-02 18:00:50 -04:00
|
|
|
int TyroApp::OnExit()
|
2015-03-30 16:01:24 -04:00
|
|
|
{
|
2015-03-31 22:52:12 -04:00
|
|
|
close(true);
|
|
|
|
return 1;
|
2015-03-30 16:01:24 -04:00
|
|
|
}
|