Mercurial > mercurial > hgweb_kaigo.hg.cgi
comparison horori/eraline/include/geraline.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 : geraline.h | |
2 // Last Change: 2020-08-12 15:35:35. | |
3 // | |
4 #pragma once | |
5 | |
6 #include <wx/frame.h> | |
7 #include <wx/gbsizer.h> | |
8 #include <wx/sizer.h> | |
9 #include <wx/button.h> | |
10 #include <wx/filepicker.h> | |
11 #include <wx/statbmp.h> | |
12 #include <wx/stattext.h> | |
13 #include <wx/textctrl.h> | |
14 #include <wx/grid.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> | |
20 | |
21 class EralineFrame : public wxFrame | |
22 { | |
23 private: | |
24 wxString m_file; | |
25 wxImage m_image; | |
26 int m_x0, m_y0, m_x1, m_y1; | |
27 | |
28 protected: | |
29 wxStaticText* m_staticTextInDir; | |
30 wxStaticText* m_staticTextList; | |
31 wxStaticText* m_staticTextThumb; | |
32 wxStaticBitmap* m_bitmapLogo; | |
33 wxDirPickerCtrl* m_dirPickerInDir; | |
34 wxDataViewListCtrl* m_dataViewListCtrl; | |
35 wxDataViewColumn* m_dataViewListColumnName; | |
36 wxDataViewColumn* m_dataViewListColumnSize; | |
37 wxDataViewColumn* m_dataViewListColumnTime; | |
38 wxStaticBitmap* m_bitmapThumb; | |
39 wxStaticText* m_staticTextZoom; | |
40 wxScrolledWindow* m_scrolledWindow; | |
41 wxStaticBitmap* m_bitmapZoom; | |
42 wxStaticText* m_staticTextDot; | |
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; | |
54 | |
55 // Virtual event handlers, overide them in your derived class | |
56 virtual void OnSize(wxSizeEvent& event); | |
57 virtual void OnItemSelected(wxDataViewEvent& event); | |
58 virtual void OnInDirChanged(wxFileDirPickerEvent& event); | |
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); | |
69 | |
70 public: | |
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); | |
72 ~EralineFrame(); | |
73 | |
74 void CreateControls(); | |
75 void LoadFile(); | |
76 void ViewDot(); | |
77 }; | |
78 |