0
|
1 // Filename : main.h
|
13
|
2 // Last Change: 2018-11-14 11:32:46.
|
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;
|
13
|
23 wxString m_dbdir;
|
1
|
24 bool develop;
|
0
|
25
|
|
26 public:
|
|
27 wxRect rect;
|
|
28
|
|
29 MyApp();
|
|
30 ~MyApp();
|
|
31
|
|
32 virtual bool OnInit();
|
|
33 virtual int OnExit();
|
|
34
|
|
35 void InitSetting();
|
|
36 void SaveSetting();
|
11
|
37 wxString GetVersion();
|
9
|
38 void SplashScreen( int ms );
|
6
|
39 void RemoveFile( wxString pattern );
|
0
|
40 };
|
|
41
|
2
|
42 DECLARE_APP( MyApp )
|
0
|
43
|