0
|
1 // Filename : main.h
|
7
|
2 // Last Change: 2018-10-25 –Ø 17:24:41.
|
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;
|
7
|
20 wxString m_serveraddr;
|
|
21 int m_serverport;
|
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();
|
6
|
35 void RemoveFile( wxString pattern );
|
0
|
36 };
|
|
37
|
2
|
38 DECLARE_APP( MyApp )
|
0
|
39
|