Mercurial > mercurial > hgweb_golang.cgi
comparison src/kaigo/horori/eraline/include/geraline.h @ 59:48e46bfe97fa
kaigo: pre-release eraline.
author | pyon@macmini |
---|---|
date | Wed, 12 Aug 2020 19:57:58 +0900 |
parents | 62ae9daac43a |
children |
comparison
equal
deleted
inserted
replaced
58:62ae9daac43a | 59:48e46bfe97fa |
---|---|
1 // Filename : geraline.h | 1 // Filename : geraline.h |
2 // Last Change: 2020-08-06 15:45:27. | 2 // Last Change: 2020-08-12 15:35:35. |
3 // | 3 // |
4 #pragma once | 4 #pragma once |
5 | 5 |
6 #include <wx/frame.h> | |
7 #include <wx/gbsizer.h> | |
8 #include <wx/sizer.h> | |
6 #include <wx/button.h> | 9 #include <wx/button.h> |
7 #include <wx/bitmap.h> | |
8 #include <wx/filepicker.h> | 10 #include <wx/filepicker.h> |
9 #include <wx/image.h> | |
10 #include <wx/statbmp.h> | 11 #include <wx/statbmp.h> |
11 #include <wx/gbsizer.h> | |
12 #include <wx/stattext.h> | 12 #include <wx/stattext.h> |
13 #include <wx/textctrl.h> | 13 #include <wx/textctrl.h> |
14 #include <wx/sizer.h> | 14 #include <wx/grid.h> |
15 #include <wx/frame.h> | |
16 #include <wx/spinctrl.h> | 15 #include <wx/spinctrl.h> |
16 #include <wx/scrolwin.h> | |
17 #include <wx/dataview.h> | |
18 #include <wx/bitmap.h> | |
19 #include <wx/image.h> | |
17 | 20 |
18 class EralineFrame : public wxFrame | 21 class EralineFrame : public wxFrame |
19 { | 22 { |
20 private: | 23 private: |
24 wxString m_file; | |
25 wxImage m_image; | |
26 int m_x0, m_y0, m_x1, m_y1; | |
21 | 27 |
22 protected: | 28 protected: |
23 wxStaticBitmap* m_bitmapZoom; | 29 wxStaticText* m_staticTextInDir; |
24 wxStaticText* m_staticTextInDir; | 30 wxStaticText* m_staticTextList; |
25 wxDirPickerCtrl* m_dirPickerInDir; | 31 wxStaticText* m_staticTextThumb; |
26 wxStaticText* m_staticTextOutDir; | 32 wxStaticBitmap* m_bitmapLogo; |
27 wxDirPickerCtrl* m_dirPickerOutDir; | 33 wxDirPickerCtrl* m_dirPickerInDir; |
28 wxStaticText* m_staticTextY; | 34 wxDataViewListCtrl* m_dataViewListCtrl; |
29 wxSpinCtrl* m_spinCtrlY; | 35 wxDataViewColumn* m_dataViewListColumnName; |
30 wxStaticText* m_staticTextH; | 36 wxDataViewColumn* m_dataViewListColumnSize; |
31 wxSpinCtrl* m_spinCtrlH; | 37 wxDataViewColumn* m_dataViewListColumnTime; |
32 wxButton* m_buttonErase; | 38 wxStaticBitmap* m_bitmapThumb; |
33 wxStaticText* m_staticTextFile; | 39 wxStaticText* m_staticTextZoom; |
34 wxTextCtrl* m_textCtrlFile; | 40 wxScrolledWindow* m_scrolledWindow; |
35 wxStaticBitmap* m_bitmapThumb; | 41 wxStaticBitmap* m_bitmapZoom; |
36 wxButton* m_buttonPrev; | 42 wxStaticText* m_staticTextDot; |
37 wxButton* m_buttonNext; | 43 wxStaticText* m_staticTextY; |
44 wxStaticText* m_staticTextH; | |
45 wxStaticText* m_staticTextOutDir; | |
46 wxStaticText* m_staticTextMsg; | |
47 wxGrid* m_gridView; | |
48 wxSpinCtrl* m_spinCtrlY; | |
49 wxSpinCtrl* m_spinCtrlH; | |
50 wxDirPickerCtrl* m_dirPickerOutDir; | |
51 wxTextCtrl* m_textCtrlMsg; | |
52 wxTextCtrl* m_textCtrlRGB; | |
53 wxButton* m_buttonErase; | |
38 | 54 |
39 // Virtual event handlers, overide them in your derived class | 55 // Virtual event handlers, overide them in your derived class |
40 virtual void OnErase(wxCommandEvent& event) { event.Skip(); } | 56 virtual void OnSize(wxSizeEvent& event); |
41 virtual void OnDClick(wxMouseEvent& event) { event.Skip(); } | 57 virtual void OnItemSelected(wxDataViewEvent& event); |
42 virtual void OnPrev(wxCommandEvent& event) { event.Skip(); } | 58 virtual void OnInDirChanged(wxFileDirPickerEvent& event); |
43 virtual void OnNext(wxCommandEvent& event) { event.Skip(); } | 59 virtual void OnThumbDClicked(wxMouseEvent& event); |
60 virtual void OnZoomDClicked(wxMouseEvent& event); | |
61 virtual void OnRangeSelect(wxGridRangeSelectEvent& event); | |
62 /* | |
63 virtual void OnSpinY(wxSpinEvent& event ) { event.Skip(); } | |
64 virtual void OnSpinYText(wxCommandEvent& event); | |
65 virtual void OnSpinH(wxSpinEvent& event ); | |
66 virtual void OnSpinHText(wxCommandEvent& event); | |
67 */ | |
68 virtual void OnErase(wxCommandEvent& event); | |
44 | 69 |
45 public: | 70 public: |
46 EralineFrame(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(800,800), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL); | 71 EralineFrame(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxEmptyString, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(800,800), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL); |
47 ~EralineFrame(); | 72 ~EralineFrame(); |
48 | 73 |
74 void CreateControls(); | |
75 void LoadFile(); | |
76 void ViewDot(); | |
49 }; | 77 }; |
50 | 78 |