0
|
1 // Filename : main.cpp
|
|
2 // Last Change: 2015-08-26 Wed 19:51:32.
|
|
3 //
|
|
4 #include "main.h"
|
|
5 #include "mainframe.h"
|
|
6
|
|
7 IMPLEMENT_APP(MyApp)
|
|
8
|
|
9 IMPLEMENT_CLASS( MyApp, wxApp )
|
|
10
|
|
11 MyApp::MyApp()
|
|
12 {
|
|
13 }
|
|
14
|
|
15 MyApp::~MyApp()
|
|
16 {
|
|
17 }
|
|
18
|
|
19 bool MyApp::OnInit()
|
|
20 {
|
|
21 if ( !wxApp::OnInit() ) return false;
|
|
22
|
|
23 MainFrame *mainframe = new MainFrame( NULL, wxID_ANY, wxT("QlipBoard"), wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE );
|
|
24 mainframe->Show( true );
|
|
25
|
|
26 return true;
|
|
27 }
|
|
28
|
|
29 int MyApp::OnExit()
|
|
30 {
|
|
31 return 0;
|
|
32 }
|
|
33
|