Mercurial > mercurial > hgweb_iklist.hg.cgi
comparison include/iklist.h @ 2:c0f76f8e67fa draft v1.0
ver 1.0.0 release (add 2 items, time-limit@2022-09-30. & bug fix.)
| author | pyon <pyon@macmini> |
|---|---|
| date | Sat, 28 Aug 2021 09:56:40 +0900 |
| parents | 520044113ef0 |
| children |
comparison
equal
deleted
inserted
replaced
| 1:13e80a745ef0 | 2:c0f76f8e67fa |
|---|---|
| 1 // Filename : iklist.h | 1 // Filename : iklist.h |
| 2 // Last Change: 2021-08-20 ‹à 11:51:36. | 2 // Last Change: 2021-08-27 ‹à 13:03:14. |
| 3 // | 3 // |
| 4 #pragma once | 4 #pragma once |
| 5 | 5 |
| 6 #include <wx/artprov.h> | 6 #include <wx/artprov.h> |
| 7 #include <wx/xrc/xmlres.h> | 7 #include <wx/xrc/xmlres.h> |
| 19 #include <wx/button.h> | 19 #include <wx/button.h> |
| 20 #include <wx/sizer.h> | 20 #include <wx/sizer.h> |
| 21 #include <wx/choice.h> | 21 #include <wx/choice.h> |
| 22 #include <wx/dataview.h> | 22 #include <wx/dataview.h> |
| 23 #include <wx/frame.h> | 23 #include <wx/frame.h> |
| 24 #include <wx/statusbr.h> | |
| 24 #include <wx/arrstr.h> | 25 #include <wx/arrstr.h> |
| 25 | 26 |
| 26 class MainFrame : public wxFrame | 27 class MainFrame : public wxFrame |
| 27 { | 28 { |
| 28 private: | 29 private: |
| 29 wxArrayString m_data; | 30 wxArrayString m_data; |
| 30 wxString m_pswd; | 31 wxString m_pswd, m_gpswd; |
| 32 wxString m_version; | |
| 33 bool m_inarea; | |
| 31 | 34 |
| 32 protected: | 35 protected: |
| 33 wxStaticText* m_staticTextWord; | 36 wxStaticText* m_staticTextWord; |
| 34 wxSearchCtrl* m_searchCtrl; | 37 wxSearchCtrl* m_searchCtrl; |
| 35 wxTextCtrl* m_textCtrl; | 38 wxTextCtrl* m_textCtrl; |
| 42 wxDataViewListCtrl* m_dataViewListCtrl; | 45 wxDataViewListCtrl* m_dataViewListCtrl; |
| 43 wxDataViewColumn* m_dataViewListColumnID; | 46 wxDataViewColumn* m_dataViewListColumnID; |
| 44 wxDataViewColumn* m_dataViewListColumnName; | 47 wxDataViewColumn* m_dataViewListColumnName; |
| 45 wxDataViewColumn* m_dataViewListColumnCity; | 48 wxDataViewColumn* m_dataViewListColumnCity; |
| 46 wxDataViewColumn* m_dataViewListColumnKind; | 49 wxDataViewColumn* m_dataViewListColumnKind; |
| 50 wxStatusBar* m_statusBar; | |
| 47 | 51 |
| 48 // Virtual event handlers, overide them in your derived class | 52 // Virtual event handlers, overide them in your derived class |
| 49 virtual void OnCancel(wxCommandEvent& event); | 53 virtual void OnCancel(wxCommandEvent& event); |
| 50 virtual void OnSearch(wxCommandEvent& event); | 54 virtual void OnSearch(wxCommandEvent& event); |
| 55 virtual void OnText(wxCommandEvent& event); | |
| 51 virtual void OnTextEnter(wxCommandEvent& event); | 56 virtual void OnTextEnter(wxCommandEvent& event); |
| 52 virtual void OnClick(wxCommandEvent& event); | 57 virtual void OnClick(wxCommandEvent& event); |
| 53 virtual void OnCityChoice(wxCommandEvent& event); | 58 virtual void OnCityChoice(wxCommandEvent& event); |
| 54 virtual void OnKindChoice(wxCommandEvent& event); | 59 virtual void OnKindChoice(wxCommandEvent& event); |
| 55 virtual void OnListItemActivated(wxDataViewEvent& event); | 60 virtual void OnListItemActivated(wxDataViewEvent& event); |
| 59 ~MainFrame(); | 64 ~MainFrame(); |
| 60 | 65 |
| 61 void CreateControls(); | 66 void CreateControls(); |
| 62 void LoadConfig(); | 67 void LoadConfig(); |
| 63 void CheckPassword(); | 68 void CheckPassword(); |
| 69 wxArrayString GetChoiceArray(int n); | |
| 64 void SetList(); | 70 void SetList(); |
| 65 wxString MakePDF(wxString index); | 71 wxString MakePDF(wxString index); |
| 66 wxString SearchFile(wxString dir, wxString index); | 72 wxString SearchFile(wxString dir, wxString index); |
| 67 }; | 73 }; |
| 68 | 74 |
