comparison horori/merger/include/merger.h @ 0:aaaa401818a1 draft

first commit.
author pyon <pyon@macmini>
date Mon, 24 May 2021 21:32:58 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:aaaa401818a1
1 // Filename : merger.h
2 // Last Change: 2020-04-23 –Ø 08:17:25.
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 wxGauge* m_gauge;
56
57 wxStaticText* m_staticTextSpl;
58 LookWindow* m_lookwinSpl;
59
60 wxStaticText* m_staticTextOpn1;
61 LookWindow* m_lookwinOpn1;
62
63 wxStaticText* m_staticTextOpn2;
64 LookWindow* m_lookwinOpn2;
65
66 wxButton* m_buttonAclS;
67 wxButton* m_buttonSet;
68
69 wxStaticText* m_staticTextMask;
70 wxDataViewListCtrl* m_dataViewListCtrlParam;
71 wxDataViewColumn* m_dataViewListColumnNo;
72 wxDataViewColumn* m_dataViewListColumnHno;
73 wxDataViewColumn* m_dataViewListColumnName;
74 wxDataViewColumn* m_dataViewListColumnX1;
75 wxDataViewColumn* m_dataViewListColumnY1;
76 wxDataViewColumn* m_dataViewListColumnW1;
77 wxDataViewColumn* m_dataViewListColumnH1;
78 wxDataViewColumn* m_dataViewListColumnX2;
79 wxDataViewColumn* m_dataViewListColumnY2;
80 wxDataViewColumn* m_dataViewListColumnW2;
81 wxDataViewColumn* m_dataViewListColumnH2;
82 wxDataViewColumn* m_dataViewListColumnX3;
83 wxDataViewColumn* m_dataViewListColumnY3;
84 wxDataViewColumn* m_dataViewListColumnW3;
85 wxDataViewColumn* m_dataViewListColumnH3;
86 wxDataViewColumn* m_dataViewListColumnX4;
87 wxDataViewColumn* m_dataViewListColumnY4;
88 wxDataViewColumn* m_dataViewListColumnW4;
89 wxDataViewColumn* m_dataViewListColumnH4;
90 wxDataViewColumn* m_dataViewListColumnTime;
91
92 wxButton* m_buttonWrite;
93 wxButton* m_buttonPrint;
94 wxButton* m_buttonPrintAll;
95
96 // Virtual event handlers, overide them in your derived class
97 virtual void OnFileChanged(wxFileDirPickerEvent& event);
98 virtual void OnMaskLocSet(wxCommandEvent& event);
99 virtual void OnSelectData(wxDataViewEvent& event);
100 virtual void OnWrite(wxCommandEvent& event);
101 virtual void OnPrint(wxCommandEvent& event);
102 virtual void OnPrintAll(wxCommandEvent& event);
103 virtual void OnAclS(wxCommandEvent& event);
104
105 void CreateControls();
106 void InitializeControlsValue();
107 void SetAccelerator();
108 void LoadDefaultParams();
109 void MaskLocSet();
110 void ShowImages();
111 void SaveParams();
112 void DoRealMask(wxString file, wxString maskfile, wxRect mask1, wxRect mask2);
113 void GetItemMaskLoc(int r, wxRect* mask1, wxRect* mask2, wxRect* mask3, wxRect* mask4);
114
115 public:
116 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);
117 ~MergeFrame();
118 };
119