annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
1 // Filename : iklist.h
2
c0f76f8e67fa ver 1.0.0 release (add 2 items, time-limit@2022-09-30. & bug fix.)
pyon <pyon@macmini>
parents: 0
diff changeset
2 // Last Change: 2021-08-27 ‹à 13:03:14.
0
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
3 //
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
4 #pragma once
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
5
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
6 #include <wx/artprov.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
7 #include <wx/xrc/xmlres.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
8 #include <wx/string.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
9 #include <wx/stattext.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
10 #include <wx/gdicmn.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
11 #include <wx/font.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
12 #include <wx/colour.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
13 #include <wx/settings.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
14 #include <wx/srchctrl.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
15 #include <wx/textctrl.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
16 #include <wx/bitmap.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
17 #include <wx/image.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
18 #include <wx/icon.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
19 #include <wx/button.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
20 #include <wx/sizer.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
21 #include <wx/choice.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
22 #include <wx/dataview.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
23 #include <wx/frame.h>
2
c0f76f8e67fa ver 1.0.0 release (add 2 items, time-limit@2022-09-30. & bug fix.)
pyon <pyon@macmini>
parents: 0
diff changeset
24 #include <wx/statusbr.h>
0
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
25 #include <wx/arrstr.h>
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
26
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
27 class MainFrame : public wxFrame
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
28 {
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
29 private:
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
30 wxArrayString m_data;
2
c0f76f8e67fa ver 1.0.0 release (add 2 items, time-limit@2022-09-30. & bug fix.)
pyon <pyon@macmini>
parents: 0
diff changeset
31 wxString m_pswd, m_gpswd;
c0f76f8e67fa ver 1.0.0 release (add 2 items, time-limit@2022-09-30. & bug fix.)
pyon <pyon@macmini>
parents: 0
diff changeset
32 wxString m_version;
c0f76f8e67fa ver 1.0.0 release (add 2 items, time-limit@2022-09-30. & bug fix.)
pyon <pyon@macmini>
parents: 0
diff changeset
33 bool m_inarea;
0
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
34
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
35 protected:
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
36 wxStaticText* m_staticTextWord;
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
37 wxSearchCtrl* m_searchCtrl;
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
38 wxTextCtrl* m_textCtrl;
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
39 wxButton* m_button;
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
40 wxStaticText* m_staticTextFilter;
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
41 wxStaticText* m_staticTextCity;
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
42 wxChoice* m_choiceCity;
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
43 wxStaticText* m_staticTextKind;
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
44 wxChoice* m_choiceKind;
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
45 wxDataViewListCtrl* m_dataViewListCtrl;
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
46 wxDataViewColumn* m_dataViewListColumnID;
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
47 wxDataViewColumn* m_dataViewListColumnName;
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
48 wxDataViewColumn* m_dataViewListColumnCity;
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
49 wxDataViewColumn* m_dataViewListColumnKind;
2
c0f76f8e67fa ver 1.0.0 release (add 2 items, time-limit@2022-09-30. & bug fix.)
pyon <pyon@macmini>
parents: 0
diff changeset
50 wxStatusBar* m_statusBar;
0
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
51
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
52 // Virtual event handlers, overide them in your derived class
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
53 virtual void OnCancel(wxCommandEvent& event);
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
54 virtual void OnSearch(wxCommandEvent& event);
2
c0f76f8e67fa ver 1.0.0 release (add 2 items, time-limit@2022-09-30. & bug fix.)
pyon <pyon@macmini>
parents: 0
diff changeset
55 virtual void OnText(wxCommandEvent& event);
0
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
56 virtual void OnTextEnter(wxCommandEvent& event);
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
57 virtual void OnClick(wxCommandEvent& event);
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
58 virtual void OnCityChoice(wxCommandEvent& event);
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
59 virtual void OnKindChoice(wxCommandEvent& event);
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
60 virtual void OnListItemActivated(wxDataViewEvent& event);
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
61
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
62 public:
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
63 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);
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
64 ~MainFrame();
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
65
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
66 void CreateControls();
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
67 void LoadConfig();
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
68 void CheckPassword();
2
c0f76f8e67fa ver 1.0.0 release (add 2 items, time-limit@2022-09-30. & bug fix.)
pyon <pyon@macmini>
parents: 0
diff changeset
69 wxArrayString GetChoiceArray(int n);
0
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
70 void SetList();
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
71 wxString MakePDF(wxString index);
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
72 wxString SearchFile(wxString dir, wxString index);
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
73 };
520044113ef0 beta release.
pyon <pyon@macmini>
parents:
diff changeset
74