0
|
1 // Filename : main.h
|
19
|
2 // Last Change: 03-Dec-2014.
|
0
|
3 //
|
|
4 #include "wx/wx.h"
|
|
5 #include "wx/config.h"
|
|
6 #include "wx/fileconf.h"
|
|
7
|
|
8 // private classes
|
|
9 // Define a new application type, each program should derive a class from wxApp
|
|
10 class MyApp : public wxApp
|
|
11 {
|
|
12 DECLARE_CLASS( MyApp )
|
|
13 public:
|
|
14 MyApp();
|
|
15 ~MyApp();
|
|
16
|
|
17 virtual bool OnInit();
|
|
18 virtual int OnExit();
|
|
19 void InitSetting();
|
|
20 void SaveSetting();
|
|
21 void InitLog();
|
|
22 void WriteLog( wxString msg );
|
|
23
|
|
24 wxFileConfig *config;
|
|
25 wxString conf_file;
|
|
26 wxString log_file;
|
|
27 wxRect rect;
|
19
|
28 long mode;
|
0
|
29 };
|
|
30
|
|
31 enum {
|
|
32 ID_MAIN = wxID_HIGHEST + 1,
|
|
33 };
|
|
34
|
|
35 DECLARE_APP(MyApp)
|
|
36
|