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