Mercurial > mercurial > hgweb_golang.cgi
comparison src/kaigo/horori/merger/include/merger.h @ 45:20b42e2deae1
add alloc, (new)mover, merger & (new)searcher.
| author | pyon@macmini |
|---|---|
| date | Thu, 16 Apr 2020 20:59:35 +0900 |
| parents | |
| children | 8384ca56f1b4 |
comparison
equal
deleted
inserted
replaced
| 44:b50f2a581cf8 | 45:20b42e2deae1 |
|---|---|
| 1 // Filename : merger.h | |
| 2 // Last Change: 2020-04-16 –Ø 11:32:33. | |
| 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/filepicker.h> | |
| 15 #include <wx/bitmap.h> | |
| 16 #include <wx/image.h> | |
| 17 #include <wx/icon.h> | |
| 18 #include <wx/button.h> | |
| 19 #include <wx/sizer.h> | |
| 20 #include <wx/frame.h> | |
| 21 #include <wx/dataview.h> | |
| 22 #include <wx/statbmp.h> | |
| 23 #include <wx/textctrl.h> | |
| 24 #include <wx/listctrl.h> | |
| 25 #include <wx/datectrl.h> | |
| 26 #include <wx/dateevt.h> | |
| 27 #include <wx/choice.h> | |
| 28 #include <wx/gbsizer.h> | |
| 29 | |
| 30 #include "lookwin.h" | |
| 31 | |
| 32 class MergeFrame : public wxFrame | |
| 33 { | |
| 34 private: | |
| 35 wxString m_workdir; | |
| 36 wxString m_csv; | |
| 37 int m_zoom; | |
| 38 | |
| 39 wxRect m_rectSplLWin; | |
| 40 wxRect m_rectOpn1LWin; | |
| 41 wxRect m_rectOpn2LWin; | |
| 42 | |
| 43 wxRect m_rectSplMask; | |
| 44 wxRect m_rectOpn1Mask; | |
| 45 wxRect m_rectOpn2Mask; | |
| 46 wxRect m_rectOpn3Mask; | |
| 47 | |
| 48 protected: | |
| 49 enum { | |
| 50 ID_NEXT = 1000, | |
| 51 }; | |
| 52 | |
| 53 wxStaticText* m_staticTextCSV; | |
| 54 wxFilePickerCtrl* m_filePicker; | |
| 55 | |
| 56 wxStaticText* m_staticTextSpl; | |
| 57 LookWindow* m_lookwinSpl; | |
| 58 | |
| 59 wxStaticText* m_staticTextOpn1; | |
| 60 LookWindow* m_lookwinOpn1; | |
| 61 | |
| 62 wxStaticText* m_staticTextOpn2; | |
| 63 LookWindow* m_lookwinOpn2; | |
| 64 | |
| 65 wxButton* m_buttonAclS; | |
| 66 wxButton* m_buttonSet; | |
| 67 | |
| 68 wxStaticText* m_staticTextMask; | |
| 69 wxDataViewListCtrl* m_dataViewListCtrlParam; | |
| 70 wxDataViewColumn* m_dataViewListColumnNo; | |
| 71 wxDataViewColumn* m_dataViewListColumnHno; | |
| 72 wxDataViewColumn* m_dataViewListColumnName; | |
| 73 wxDataViewColumn* m_dataViewListColumnX1; | |
| 74 wxDataViewColumn* m_dataViewListColumnY1; | |
| 75 wxDataViewColumn* m_dataViewListColumnW1; | |
| 76 wxDataViewColumn* m_dataViewListColumnH1; | |
| 77 wxDataViewColumn* m_dataViewListColumnX2; | |
| 78 wxDataViewColumn* m_dataViewListColumnY2; | |
| 79 wxDataViewColumn* m_dataViewListColumnW2; | |
| 80 wxDataViewColumn* m_dataViewListColumnH2; | |
| 81 wxDataViewColumn* m_dataViewListColumnX3; | |
| 82 wxDataViewColumn* m_dataViewListColumnY3; | |
| 83 wxDataViewColumn* m_dataViewListColumnW3; | |
| 84 wxDataViewColumn* m_dataViewListColumnH3; | |
| 85 wxDataViewColumn* m_dataViewListColumnX4; | |
| 86 wxDataViewColumn* m_dataViewListColumnY4; | |
| 87 wxDataViewColumn* m_dataViewListColumnW4; | |
| 88 wxDataViewColumn* m_dataViewListColumnH4; | |
| 89 wxDataViewColumn* m_dataViewListColumnTime; | |
| 90 | |
| 91 wxButton* m_buttonWrite; | |
| 92 wxButton* m_buttonPrint; | |
| 93 wxButton* m_buttonPrintAll; | |
| 94 | |
| 95 // Virtual event handlers, overide them in your derived class | |
| 96 virtual void OnFileChanged(wxFileDirPickerEvent& event); | |
| 97 virtual void OnMaskLocSet(wxCommandEvent& event); | |
| 98 virtual void OnSelectData(wxDataViewEvent& event); | |
| 99 virtual void OnWrite(wxCommandEvent& event); | |
| 100 virtual void OnPrint(wxCommandEvent& event); | |
| 101 virtual void OnPrintAll(wxCommandEvent& event); | |
| 102 virtual void OnAclS(wxCommandEvent& event); | |
| 103 | |
| 104 void CreateControls(); | |
| 105 void InitializeControlsValue(); | |
| 106 void SetAccelerator(); | |
| 107 void LoadDefaultParams(); | |
| 108 void MaskLocSet(); | |
| 109 void ShowImages(); | |
| 110 void SaveParams(); | |
| 111 void DoRealMask(wxString file, wxString maskfile, wxRect mask1, wxRect mask2); | |
| 112 void GetItemMaskLoc(int r, wxRect* mask1, wxRect* mask2, wxRect* mask3, wxRect* mask4); | |
| 113 | |
| 114 public: | |
| 115 MergeFrame(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(1400,1240), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL); | |
| 116 ~MergeFrame(); | |
| 117 }; | |
| 118 |
