0
|
1 // Filename : main.h
|
16
|
2 // Last Change: 2019-07-08 ŒŽ 08:45:17.
|
0
|
3 //
|
16
|
4 #pragma once
|
|
5
|
0
|
6 #include <wx/wx.h>
|
|
7 #include <wx/config.h>
|
|
8 #include <wx/fileconf.h>
|
3
|
9 #include <wx/splash.h>
|
5
|
10 #include <wx/fs_zip.h>
|
|
11 #include <wx/filesys.h>
|
0
|
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;
|
15
|
21 int m_splash = 150;
|
|
22 wxString m_unlock_key;
|
7
|
23 wxString m_serveraddr;
|
|
24 int m_serverport;
|
13
|
25 wxString m_dbdir;
|
15
|
26 bool m_qdlhhs;
|
1
|
27 bool develop;
|
0
|
28
|
|
29 public:
|
|
30 wxRect rect;
|
15
|
31 int pzoom;
|
0
|
32
|
|
33 MyApp();
|
|
34 ~MyApp();
|
|
35
|
|
36 virtual bool OnInit();
|
|
37 virtual int OnExit();
|
|
38
|
|
39 void InitSetting();
|
|
40 void SaveSetting();
|
11
|
41 wxString GetVersion();
|
9
|
42 void SplashScreen( int ms );
|
6
|
43 void RemoveFile( wxString pattern );
|
0
|
44 };
|
|
45
|
2
|
46 DECLARE_APP( MyApp )
|
0
|
47
|