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