0
|
1 // Filename : iklist.h
|
|
2 // Last Change: 2021-08-20 ‹à 11:51:36.
|
|
3 //
|
|
4 #pragma once
|
|
5
|
|
6 #include <wx/artprov.h>
|
|
7 #include <wx/xrc/xmlres.h>
|
|
8 #include <wx/string.h>
|
|
9 #include <wx/stattext.h>
|
|
10 #include <wx/gdicmn.h>
|
|
11 #include <wx/font.h>
|
|
12 #include <wx/colour.h>
|
|
13 #include <wx/settings.h>
|
|
14 #include <wx/srchctrl.h>
|
|
15 #include <wx/textctrl.h>
|
|
16 #include <wx/bitmap.h>
|
|
17 #include <wx/image.h>
|
|
18 #include <wx/icon.h>
|
|
19 #include <wx/button.h>
|
|
20 #include <wx/sizer.h>
|
|
21 #include <wx/choice.h>
|
|
22 #include <wx/dataview.h>
|
|
23 #include <wx/frame.h>
|
|
24 #include <wx/arrstr.h>
|
|
25
|
|
26 class MainFrame : public wxFrame
|
|
27 {
|
|
28 private:
|
|
29 wxArrayString m_data;
|
|
30 wxString m_pswd;
|
|
31
|
|
32 protected:
|
|
33 wxStaticText* m_staticTextWord;
|
|
34 wxSearchCtrl* m_searchCtrl;
|
|
35 wxTextCtrl* m_textCtrl;
|
|
36 wxButton* m_button;
|
|
37 wxStaticText* m_staticTextFilter;
|
|
38 wxStaticText* m_staticTextCity;
|
|
39 wxChoice* m_choiceCity;
|
|
40 wxStaticText* m_staticTextKind;
|
|
41 wxChoice* m_choiceKind;
|
|
42 wxDataViewListCtrl* m_dataViewListCtrl;
|
|
43 wxDataViewColumn* m_dataViewListColumnID;
|
|
44 wxDataViewColumn* m_dataViewListColumnName;
|
|
45 wxDataViewColumn* m_dataViewListColumnCity;
|
|
46 wxDataViewColumn* m_dataViewListColumnKind;
|
|
47
|
|
48 // Virtual event handlers, overide them in your derived class
|
|
49 virtual void OnCancel(wxCommandEvent& event);
|
|
50 virtual void OnSearch(wxCommandEvent& event);
|
|
51 virtual void OnTextEnter(wxCommandEvent& event);
|
|
52 virtual void OnClick(wxCommandEvent& event);
|
|
53 virtual void OnCityChoice(wxCommandEvent& event);
|
|
54 virtual void OnKindChoice(wxCommandEvent& event);
|
|
55 virtual void OnListItemActivated(wxDataViewEvent& event);
|
|
56
|
|
57 public:
|
|
58 MainFrame(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL);
|
|
59 ~MainFrame();
|
|
60
|
|
61 void CreateControls();
|
|
62 void LoadConfig();
|
|
63 void CheckPassword();
|
|
64 void SetList();
|
|
65 wxString MakePDF(wxString index);
|
|
66 wxString SearchFile(wxString dir, wxString index);
|
|
67 };
|
|
68
|