Mercurial > mercurial > hgweb_lesearcher.cgi
comparison include/preview.h @ 0:615a15029602 default tip
first commit.
author | pyon@macmini |
---|---|
date | Sun, 10 Nov 2019 08:39:41 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:615a15029602 |
---|---|
1 /* Filename : preview.h | |
2 Last Change: 2019-11-08 金 14:18:50. | |
3 by Takayuki Mutoh | |
4 */ | |
5 #pragma once | |
6 | |
7 #include <wx/frame.h> | |
8 #include <wx/dataview.h> | |
9 #include <wx/button.h> | |
10 #include <wx/scrolwin.h> | |
11 #include <wx/choice.h> | |
12 #include <wx/spinctrl.h> | |
13 #include <wx/slider.h> | |
14 #include <wx/statbmp.h> | |
15 #include <wx/gbsizer.h> | |
16 | |
17 class PreviewFrame : public wxFrame | |
18 { | |
19 private: | |
20 | |
21 protected: | |
22 enum | |
23 { | |
24 ID_PRV_DATE = 1000, | |
25 ID_PRV_PRIV, | |
26 ID_PRV_NEXT, | |
27 ID_PRV_ZOOM, | |
28 ID_PRV_MASK, | |
29 ID_PRV_PRINT | |
30 }; | |
31 | |
32 wxScrolledWindow* m_scrolledWindowCanvas; | |
33 wxChoice* m_choiceDate; | |
34 wxButton* m_buttonPriv; | |
35 wxButton* m_buttonNext; | |
36 wxSlider* m_sliderZoom; | |
37 wxChoice* m_choiceMask; | |
38 wxChoice* m_choicePage; | |
39 wxSpinCtrl* m_spinCtrlPZoom; | |
40 wxButton* m_buttonPrint; | |
41 | |
42 // Virtual event handlers, overide them in your derived class | |
43 virtual void OnPriv( wxCommandEvent& event ) { event.Skip(); } | |
44 virtual void OnNext( wxCommandEvent& event ) { event.Skip(); } | |
45 virtual void OnScroll( wxScrollEvent& event ) { event.Skip(); } | |
46 virtual void OnMaskChoice( wxCommandEvent& event ) { event.Skip(); } | |
47 virtual void OnPageChoice( wxCommandEvent& event ) { event.Skip(); } | |
48 virtual void OnPrint( wxCommandEvent& event ) { event.Skip(); } | |
49 | |
50 public: | |
51 PreviewFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = wxT("プレビュー"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 500,700 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL ); | |
52 ~PreviewFrame(); | |
53 }; | |
54 |