| 
58
 | 
     1 // Filename   : geraline.h
 | 
| 
59
 | 
     2 // Last Change: 2020-08-12  15:35:35.
 | 
| 
58
 | 
     3 //
 | 
| 
 | 
     4 #pragma once
 | 
| 
 | 
     5 
 | 
| 
59
 | 
     6 #include <wx/frame.h>
 | 
| 
 | 
     7 #include <wx/gbsizer.h>
 | 
| 
 | 
     8 #include <wx/sizer.h>
 | 
| 
58
 | 
     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>
 | 
| 
59
 | 
    14 #include <wx/grid.h>
 | 
| 
58
 | 
    15 #include <wx/spinctrl.h>
 | 
| 
59
 | 
    16 #include <wx/scrolwin.h>
 | 
| 
 | 
    17 #include <wx/dataview.h>
 | 
| 
 | 
    18 #include <wx/bitmap.h>
 | 
| 
 | 
    19 #include <wx/image.h>
 | 
| 
58
 | 
    20 
 | 
| 
 | 
    21 class EralineFrame : public wxFrame
 | 
| 
 | 
    22 {
 | 
| 
 | 
    23 	private:
 | 
| 
59
 | 
    24 		wxString m_file;
 | 
| 
 | 
    25 		wxImage  m_image;
 | 
| 
 | 
    26 		int m_x0, m_y0, m_x1, m_y1;
 | 
| 
58
 | 
    27 
 | 
| 
 | 
    28 	protected:
 | 
| 
59
 | 
    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;
 | 
| 
58
 | 
    54 
 | 
| 
 | 
    55 		// Virtual event handlers, overide them in your derived class
 | 
| 
59
 | 
    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);
 | 
| 
58
 | 
    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 
 | 
| 
59
 | 
    74 		void CreateControls();
 | 
| 
 | 
    75 		void LoadFile();
 | 
| 
 | 
    76 		void ViewDot();
 | 
| 
58
 | 
    77 };
 | 
| 
 | 
    78 
 |