-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.h
45 lines (36 loc) · 961 Bytes
/
main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef MAIN_H
#define MAIN_H
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif // __BORLANDC__
// for all others, include the necessary headers (this file is usually all you
// need because it includes almost all "standard" wxWidgets headers)
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif // WX_PRECOMP
#include <wx/app.h>
#include <wx/cmdline.h>
class MainApp : public wxAppConsole
{
protected:
/**
* @brief parse the command line here
* @return true on success, false otherwise
*/
bool DoParseCommandLine( wxCmdLineParser &parser);
public:
MainApp();
virtual ~MainApp();
/**
* @brief intialize the application
*/
virtual bool OnInit();
/**
* @brief perform cleanup before exiting
*/
virtual int OnExit();
};
DECLARE_APP( MainApp )
#endif // MAIN_H