comparison include/mainframe.h @ 0:2f5584f0d127

first commit.
author pyon@macmini
date Sat, 08 Jun 2019 16:21:40 +0900
parents
children f40a65687079
comparison
equal deleted inserted replaced
-1:000000000000 0:2f5584f0d127
1 // Filename : mainframe.h
2 // Last Change: 2019-06-07 Fri 22:20:40.
3 //
4 #pragma once
5
6 #include <wx/artprov.h>
7 #include <wx/bitmap.h>
8 #include <wx/button.h>
9 #include <wx/collpane.h>
10 #include <wx/colour.h>
11 #include <wx/combobox.h>
12 #include <wx/datectrl.h>
13 #include <wx/dateevt.h>
14 #include <wx/dataview.h>
15 #include <wx/filepicker.h>
16 #include <wx/font.h>
17 #include <wx/frame.h>
18 #include <wx/gbsizer.h>
19 #include <wx/gdicmn.h>
20 #include <wx/gauge.h>
21 #include <wx/html/htmlwin.h>
22 #include <wx/html/htmprint.h>
23 #include <wx/icon.h>
24 #include <wx/image.h>
25 #include <wx/menu.h>
26 #include <wx/settings.h>
27 #include <wx/sizer.h>
28 #include <wx/slider.h>
29 #include <wx/spinctrl.h>
30 #include <wx/statbmp.h>
31 #include <wx/statbox.h>
32 #include <wx/statline.h>
33 #include <wx/stattext.h>
34 #include <wx/string.h>
35 #include <wx/textctrl.h>
36 #include <wx/xrc/xmlres.h>
37
38 #include "util.h"
39 #include "custom.h"
40
41 class MainFrame : public wxFrame
42 {
43 DECLARE_EVENT_TABLE()
44 private:
45 FileList *m_filelist;
46 wxString m_testpattern = "image/testpattern.jpg";
47
48 protected:
49 wxMenuBar* m_menubar;
50 wxMenu* m_menuFile;
51
52 wxStaticText *m_staticTextSpl, *m_staticTextOpn1, *m_staticTextOpn2;
53 wxStaticText *m_staticTextX, *m_staticTextY, *m_staticTextW, *m_staticTextH;
54 LookWindow *m_lookWindow1, *m_lookWindow2, *m_lookWindow3;
55 wxSpinCtrl *m_spinCtrlX1, *m_spinCtrlY1, *m_spinCtrlW1, *m_spinCtrlH1;
56 wxSpinCtrl *m_spinCtrlX2, *m_spinCtrlY2, *m_spinCtrlW2, *m_spinCtrlH2;
57 wxSpinCtrl *m_spinCtrlX3, *m_spinCtrlY3, *m_spinCtrlW3, *m_spinCtrlH3;
58 wxSpinCtrl *m_spinCtrlX4, *m_spinCtrlY4, *m_spinCtrlW4, *m_spinCtrlH4;
59 wxButton *m_buttonReset1, *m_buttonReset2, *m_buttonReset3, *m_buttonReset4;
60
61 wxButton* m_buttonMerge;
62 wxButton* m_buttonPrint;
63
64 wxStaticText* m_staticTextDate;
65 wxDatePickerCtrl* m_datePicker;
66 wxStaticText* m_staticTextCcn;
67 wxComboBox* m_comboBox;
68 wxStaticText* m_staticTextDrive;
69 //wxComboBox* m_comboBoxDrive2; // check list box
70 wxButton* m_buttonMkdir;
71
72 wxStaticLine* m_staticline;
73 wxCheckBox* m_checkBox;
74 wxButton* m_button30; // ?
75 wxButton* m_buttonFMove;
76
77 wxStaticText* m_staticTextNo;
78 wxStaticBitmap* m_bitmapNo;
79 wxTextCtrl* m_textCtrlNo;
80
81 wxStaticText* m_staticTextName;
82 wxStaticBitmap* m_bitmapName;
83 wxTextCtrl* m_textCtrlName;
84
85 wxGauge* m_gauge;
86 wxButton* m_buttonMove;
87
88 wxDataViewListCtrl* m_dataViewListCtrl;
89 wxDataViewColumn* m_dataViewListColumnNo;
90 wxDataViewColumn* m_dataViewListColumnHno;
91 wxDataViewColumn* m_dataViewListColumnName;
92 wxDataViewColumn* m_dataViewListColumnN;
93 wxDataViewColumn* m_dataViewListColumnDrv1;
94 wxDataViewColumn* m_dataViewListColumnDrv2;
95 wxDataViewColumn* m_dataViewListColumnDrv3;
96 wxDataViewColumn* m_dataViewListColumnEtc;
97
98 wxButton* m_buttonWork;
99 wxButton* m_buttonScan;
100
101 wxStaticText* m_staticTextWork;
102 wxDirPickerCtrl* m_dirPicker;
103 wxButton* m_buttonSelectAll;
104 wxButton* m_buttonDel;
105 wxSlider* m_slider;
106 wxButton* m_buttonUpdate;
107 //* m_customControl;
108
109 wxCollapsiblePane* m_collapsiblePane;
110 wxTextCtrl* m_textCtrlMsg;
111
112 public:
113 MainFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 800,600 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL );
114 ~MainFrame();
115
116 void OnReset1( wxCommandEvent& event );
117 void OnReset2( wxCommandEvent& event );
118 void OnReset3( wxCommandEvent& event );
119 void OnReset4( wxCommandEvent& event );
120
121 void OnSpinX1( wxSpinEvent& event );
122 void OnSpinX2( wxSpinEvent& event );
123 void OnSpinX3( wxSpinEvent& event );
124 void OnSpinX4( wxSpinEvent& event );
125
126 void OnSpinY1( wxSpinEvent& event );
127 void OnSpinY2( wxSpinEvent& event );
128 void OnSpinY3( wxSpinEvent& event );
129 void OnSpinY4( wxSpinEvent& event );
130
131 void OnSpinW1( wxSpinEvent& event );
132 void OnSpinW2( wxSpinEvent& event );
133 void OnSpinW3( wxSpinEvent& event );
134 void OnSpinW4( wxSpinEvent& event );
135
136 void OnSpinH1( wxSpinEvent& event );
137 void OnSpinH2( wxSpinEvent& event );
138 void OnSpinH3( wxSpinEvent& event );
139 void OnSpinH4( wxSpinEvent& event );
140
141 void OnMakeDir( wxCommandEvent& event );
142 void OnPrint( wxCommandEvent& event );
143 void OnMove( wxCommandEvent& event );
144
145 void OnClose( wxCloseEvent& event );
146
147 void CreateControls( void );
148 void SetCanvas( void );
149 void LookMarksheet( wxString file );
150 void DoMask( wxString file, wxRect rect );
151 };
152