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