]>
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) | |
526954c5 | 5 | // Licence: wxWindows licence |
f978831f | 6 | ///////////////////////////////////////////////////////////////////////////// |
0d5eda9c | 7 | |
f978831f BP |
8 | #ifndef _GUIFRAME_H_ |
9 | #define _GUIFRAME_H_ | |
0d5eda9c | 10 | |
0d5eda9c | 11 | #include "wx/animate.h" |
f978831f BP |
12 | #include "wx/bmpcbox.h" |
13 | #include "wx/calctrl.h" | |
14 | #include "wx/clrpicker.h" | |
0d5eda9c | 15 | #include "wx/collpane.h" |
f978831f BP |
16 | #include "wx/datectrl.h" |
17 | #include "wx/dirctrl.h" | |
18 | #include "wx/filepicker.h" | |
19 | #include "wx/fontpicker.h" | |
20 | #include "wx/hyperlink.h" | |
21 | #include "wx/listctrl.h" | |
22 | #include "wx/notebook.h" | |
23 | #include "wx/richtext/richtextctrl.h" | |
24 | #include "wx/spinbutt.h" | |
25 | #include "wx/spinctrl.h" | |
26 | #include "wx/tglbtn.h" | |
27 | #include "wx/treectrl.h" | |
28 | ||
0d5eda9c | 29 | #include "customcombo.h" |
0d5eda9c | 30 | |
0d5eda9c | 31 | |
51d48751 | 32 | class GUIFrame : public wxFrame |
0d5eda9c | 33 | { |
f978831f BP |
34 | public: |
35 | ||
36 | 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 ); | |
37 | ~GUIFrame(); | |
38 | ||
39 | protected: | |
40 | ||
41 | enum | |
42 | { | |
43 | idMenuCapFullScreen = 1000, | |
ecba92ec | 44 | idMenuCapAll |
f978831f BP |
45 | }; |
46 | ||
47 | wxMenuBar* mbar; | |
48 | wxMenu* fileMenu; | |
49 | wxMenu* captureMenu; | |
f978831f | 50 | wxMenu* helpMenu; |
51d48751 FM |
51 | |
52 | wxStatusBar* statusBar; | |
53 | ||
f978831f | 54 | wxNotebook* m_notebook1; |
51d48751 | 55 | |
f978831f BP |
56 | wxPanel* m_panel1; |
57 | wxButton* m_button1; | |
58 | wxStaticText* m_staticText1; | |
59 | wxCheckBox* m_checkBox1; | |
60 | wxCheckBox* m_checkBox2; | |
61 | wxRadioButton* m_radioBtn1; | |
62 | wxRadioButton* m_radioBtn2; | |
63 | wxBitmapButton* m_bpButton1; | |
64 | wxStaticBitmap* m_bitmap1; | |
65 | wxGauge* m_gauge1; | |
66 | wxSlider* m_slider1; | |
67 | wxToggleButton* m_toggleBtn1; | |
68 | wxToggleButton* m_toggleBtn2; | |
69 | wxHyperlinkCtrl* m_hyperlink1; | |
70 | wxSpinCtrl* m_spinCtrl1; | |
71 | wxSpinButton* m_spinBtn1; | |
72 | wxScrollBar* m_scrollBar1; | |
51d48751 | 73 | |
f978831f BP |
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; | |
51d48751 | 84 | |
f978831f BP |
85 | wxPanel* m_panel3; |
86 | wxTextCtrl* m_textCtrl1; | |
f978831f BP |
87 | wxTextCtrl* m_textCtrl2; |
88 | wxRichTextCtrl* m_richText1; | |
51d48751 | 89 | |
f978831f BP |
90 | wxPanel* m_panel4; |
91 | wxColourPickerCtrl* m_colourPicker1; | |
92 | wxFontPickerCtrl* m_fontPicker1; | |
93 | wxFilePickerCtrl* m_filePicker1; | |
f978831f BP |
94 | wxCalendarCtrl* m_calendar1; |
95 | wxDatePickerCtrl* m_datePicker1; | |
96 | wxGenericDirCtrl* m_genericDirCtrl1; | |
97 | wxDirPickerCtrl* m_dirPicker1; | |
51d48751 | 98 | |
f978831f BP |
99 | wxPanel* m_panel5; |
100 | wxChoice* m_choice1; | |
101 | wxComboBox* m_comboBox1; | |
f978831f BP |
102 | wxBitmapComboBox * m_bmpComboBox1; |
103 | PenStyleComboBox * m_ownerDrawnComboBox1; | |
f978831f BP |
104 | wxComboCtrl * m_comboCtrl1; |
105 | wxComboCtrl * m_comboCtrl2; | |
f978831f BP |
106 | |
107 | // Virtual event handlers, overide them in your derived class | |
108 | virtual void OnClose( wxCloseEvent& event ){ event.Skip(); } | |
109 | virtual void OnSeeScreenshots( wxCommandEvent& event ){ event.Skip(); } | |
110 | virtual void OnQuit( wxCommandEvent& event ){ event.Skip(); } | |
111 | virtual void OnCaptureFullScreen( wxCommandEvent& event ){ event.Skip(); } | |
f978831f BP |
112 | virtual void OnCaptureAllControls( wxCommandEvent& event ){ event.Skip(); } |
113 | virtual void OnAbout( wxCommandEvent& event ){ event.Skip(); } | |
51d48751 FM |
114 | |
115 | private: | |
116 | void AddMenuBar(); | |
117 | void AddPanel_1(); | |
118 | void AddPanel_2(); | |
119 | void AddPanel_3(); | |
120 | void AddPanel_4(); | |
121 | void AddPanel_5(); | |
0d5eda9c FM |
122 | }; |
123 | ||
f978831f | 124 | #endif //_GUIFRAME_H_ |