]>
Commit | Line | Data |
---|---|---|
f978831f BP |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: guiframe.h | |
3 | // Purpose: Defines the window containing all controls. | |
4 | // Author: Utensil Candel (UtensilCandel@@gmail.com) | |
5 | // RCS-ID: $Id$ | |
6 | // Licence: wxWindows license | |
7 | ///////////////////////////////////////////////////////////////////////////// | |
0d5eda9c | 8 | |
f978831f BP |
9 | #ifndef _GUIFRAME_H_ |
10 | #define _GUIFRAME_H_ | |
0d5eda9c | 11 | |
0d5eda9c | 12 | #include "wx/animate.h" |
f978831f BP |
13 | #include "wx/bmpcbox.h" |
14 | #include "wx/calctrl.h" | |
15 | #include "wx/clrpicker.h" | |
0d5eda9c | 16 | #include "wx/collpane.h" |
f978831f BP |
17 | #include "wx/datectrl.h" |
18 | #include "wx/dirctrl.h" | |
19 | #include "wx/filepicker.h" | |
20 | #include "wx/fontpicker.h" | |
21 | #include "wx/hyperlink.h" | |
22 | #include "wx/listctrl.h" | |
23 | #include "wx/notebook.h" | |
24 | #include "wx/richtext/richtextctrl.h" | |
25 | #include "wx/spinbutt.h" | |
26 | #include "wx/spinctrl.h" | |
27 | #include "wx/tglbtn.h" | |
28 | #include "wx/treectrl.h" | |
29 | ||
0d5eda9c | 30 | #include "customcombo.h" |
0d5eda9c | 31 | |
0d5eda9c | 32 | |
4bae10bd | 33 | class GUIFrame : public wxFrame |
0d5eda9c | 34 | { |
f978831f BP |
35 | public: |
36 | ||
37 | GUIFrame( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("wxWidgets Control Screenshot Generator"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_FRAME_STYLE|wxTAB_TRAVERSAL ); | |
38 | ~GUIFrame(); | |
39 | ||
40 | protected: | |
41 | ||
42 | enum | |
43 | { | |
44 | idMenuCapFullScreen = 1000, | |
45 | idMenuCapRect, | |
46 | idMenuEndCapRect, | |
47 | idMenuCapAll, | |
48 | }; | |
49 | ||
50 | wxMenuBar* mbar; | |
51 | wxMenu* fileMenu; | |
52 | wxMenu* captureMenu; | |
53 | wxMenuItem* m_menuCapRect; | |
54 | wxMenuItem* m_menuEndCapRect; | |
55 | wxMenu* helpMenu; | |
56 | wxNotebook* m_notebook1; | |
57 | wxPanel* m_panel1; | |
58 | wxButton* m_button1; | |
59 | wxStaticText* m_staticText1; | |
60 | wxCheckBox* m_checkBox1; | |
61 | wxCheckBox* m_checkBox2; | |
62 | wxRadioButton* m_radioBtn1; | |
63 | wxRadioButton* m_radioBtn2; | |
64 | wxBitmapButton* m_bpButton1; | |
65 | wxStaticBitmap* m_bitmap1; | |
66 | wxGauge* m_gauge1; | |
67 | wxSlider* m_slider1; | |
68 | wxToggleButton* m_toggleBtn1; | |
69 | wxToggleButton* m_toggleBtn2; | |
70 | wxHyperlinkCtrl* m_hyperlink1; | |
71 | wxSpinCtrl* m_spinCtrl1; | |
72 | wxSpinButton* m_spinBtn1; | |
73 | wxScrollBar* m_scrollBar1; | |
74 | wxPanel* m_panel2; | |
75 | wxCheckListBox* m_checkList1; | |
76 | wxListBox* m_listBox1; | |
77 | wxRadioBox* m_radioBox1; | |
78 | wxStaticBox * m_staticBox1; | |
79 | wxTreeCtrl* m_treeCtrl1; | |
80 | wxListCtrl* m_listCtrl1; | |
81 | wxAnimationCtrl * m_animationCtrl1; | |
82 | wxCollapsiblePane *m_collPane1; | |
83 | wxCollapsiblePane *m_collPane2; | |
84 | wxPanel* m_panel3; | |
85 | wxTextCtrl* m_textCtrl1; | |
86 | ||
87 | wxTextCtrl* m_textCtrl2; | |
88 | wxRichTextCtrl* m_richText1; | |
89 | wxPanel* m_panel4; | |
90 | wxColourPickerCtrl* m_colourPicker1; | |
91 | wxFontPickerCtrl* m_fontPicker1; | |
92 | wxFilePickerCtrl* m_filePicker1; | |
93 | ||
94 | wxCalendarCtrl* m_calendar1; | |
95 | wxDatePickerCtrl* m_datePicker1; | |
96 | wxGenericDirCtrl* m_genericDirCtrl1; | |
97 | wxDirPickerCtrl* m_dirPicker1; | |
98 | wxPanel* m_panel5; | |
99 | wxChoice* m_choice1; | |
100 | wxComboBox* m_comboBox1; | |
101 | ||
102 | wxBitmapComboBox * m_bmpComboBox1; | |
103 | PenStyleComboBox * m_ownerDrawnComboBox1; | |
104 | ||
105 | wxComboCtrl * m_comboCtrl1; | |
106 | wxComboCtrl * m_comboCtrl2; | |
107 | wxStatusBar* statusBar; | |
108 | ||
109 | // Virtual event handlers, overide them in your derived class | |
110 | virtual void OnClose( wxCloseEvent& event ){ event.Skip(); } | |
111 | virtual void OnSeeScreenshots( wxCommandEvent& event ){ event.Skip(); } | |
112 | virtual void OnQuit( wxCommandEvent& event ){ event.Skip(); } | |
113 | virtual void OnCaptureFullScreen( wxCommandEvent& event ){ event.Skip(); } | |
114 | virtual void OnCaptureRect( wxCommandEvent& event ){ event.Skip(); } | |
115 | virtual void OnEndCaptureRect( wxCommandEvent& event ){ event.Skip(); } | |
116 | virtual void OnCaptureAllControls( wxCommandEvent& event ){ event.Skip(); } | |
117 | virtual void OnAbout( wxCommandEvent& event ){ event.Skip(); } | |
118 | virtual void OnNotebookPageChanged( wxNotebookEvent& event ){ event.Skip(); } | |
119 | virtual void OnNotebookPageChanging( wxNotebookEvent& event ){ event.Skip(); } | |
0d5eda9c FM |
120 | }; |
121 | ||
f978831f | 122 | #endif //_GUIFRAME_H_ |