0
|
1 // Filename : main.h
|
|
2 // Last Change: 2018-09-17 Mon 21:57:32.
|
|
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;
|
|
20
|
|
21 public:
|
|
22 wxRect rect;
|
|
23
|
|
24 MyApp();
|
|
25 ~MyApp();
|
|
26
|
|
27 virtual bool OnInit();
|
|
28 virtual int OnExit();
|
|
29
|
|
30 void InitSetting();
|
|
31 void SaveSetting();
|
|
32 void GetData();
|
|
33 void DeleteData();
|
|
34 };
|
|
35
|
|
36 DECLARE_APP(MyApp)
|
|
37
|