11
|
1 // Filename : mngdb.h
|
16
|
2 // Last Change: 2019-07-15 Mon 06:54:37.
|
11
|
3 //
|
|
4
|
16
|
5 #pragma once
|
11
|
6
|
|
7 #include <wx/gdicmn.h>
|
|
8 #include <wx/font.h>
|
|
9 #include <wx/colour.h>
|
|
10 #include <wx/settings.h>
|
|
11 #include <wx/button.h>
|
|
12 #include <wx/sizer.h>
|
|
13 #include <wx/stattext.h>
|
|
14 #include <wx/datectrl.h>
|
|
15 #include <wx/dateevt.h>
|
|
16 #include <wx/filepicker.h>
|
|
17 #include <wx/statline.h>
|
|
18 #include <wx/msgdlg.h>
|
|
19
|
|
20 class ManageDBFrame : public wxFrame
|
|
21 {
|
|
22 DECLARE_EVENT_TABLE()
|
|
23 private:
|
|
24 wxString m_server;
|
|
25
|
|
26 protected:
|
|
27 wxStaticText* m_staticTextDate;
|
|
28 wxDatePickerCtrl* m_datePicker;
|
|
29 wxStaticText* m_staticTextHhs;
|
|
30 wxFilePickerCtrl* m_filePickerHhs;
|
|
31 wxStaticText* m_staticTextCcn;
|
|
32 wxFilePickerCtrl* m_filePickerCcn;
|
|
33 wxStaticLine* m_staticline;
|
|
34 wxButton* m_buttonBuild;
|
|
35 wxButton* m_buttonUpld;
|
14
|
36 wxButton* m_buttonIdx;
|
11
|
37 wxButton* m_buttonExit;
|
|
38
|
|
39 public:
|
|
40 ManageDBFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxCAPTION|wxTAB_TRAVERSAL );
|
|
41 ~ManageDBFrame();
|
|
42
|
|
43 void OnBuild( wxCommandEvent& event );
|
|
44 void OnUpload( wxCommandEvent& event );
|
14
|
45 void OnIndex( wxCommandEvent& event );
|
11
|
46 void OnExit( wxCommandEvent& event );
|
|
47
|
16
|
48 void CreateControls( void );
|
13
|
49 void SetDBdir( wxString dir );
|
|
50 void SetServer( wxString server ) { m_server = server; };
|
11
|
51 void Upload( wxString file );
|
|
52 };
|
|
53
|