0
|
1 // Filename : main.h
|
9
|
2 // Last Change: 2018-10-31 13:21:30.
|
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>
|
|
10 #include <wx/wfstream.h>
|
0
|
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;
|
9
|
20 int splash = 150;
|
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();
|
9
|
36 void SplashScreen( int ms );
|
6
|
37 void RemoveFile( wxString pattern );
|
0
|
38 };
|
|
39
|
2
|
40 DECLARE_APP( MyApp )
|
0
|
41
|