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