]> git.saurik.com Git - wxWidgets.git/blob - utils/screenshotgen/src/guiframe.h
Don't use a destroy event handler to disconnect the native control's delegate as...
[wxWidgets.git] / utils / screenshotgen / src / guiframe.h
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 /////////////////////////////////////////////////////////////////////////////
8
9 #ifndef _GUIFRAME_H_
10 #define _GUIFRAME_H_
11
12 #include "wx/animate.h"
13 #include "wx/bmpcbox.h"
14 #include "wx/calctrl.h"
15 #include "wx/clrpicker.h"
16 #include "wx/collpane.h"
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
30 #include "customcombo.h"
31
32
33 class GUIFrame : public wxFrame
34 {
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 idMenuCapAll
46 };
47
48 wxMenuBar* mbar;
49 wxMenu* fileMenu;
50 wxMenu* captureMenu;
51 wxMenu* helpMenu;
52
53 wxStatusBar* statusBar;
54
55 wxNotebook* m_notebook1;
56
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
75 wxPanel* m_panel2;
76 wxCheckListBox* m_checkList1;
77 wxListBox* m_listBox1;
78 wxRadioBox* m_radioBox1;
79 wxStaticBox * m_staticBox1;
80 wxTreeCtrl* m_treeCtrl1;
81 wxListCtrl* m_listCtrl1;
82 wxAnimationCtrl * m_animationCtrl1;
83 wxCollapsiblePane *m_collPane1;
84 wxCollapsiblePane *m_collPane2;
85
86 wxPanel* m_panel3;
87 wxTextCtrl* m_textCtrl1;
88 wxTextCtrl* m_textCtrl2;
89 wxRichTextCtrl* m_richText1;
90
91 wxPanel* m_panel4;
92 wxColourPickerCtrl* m_colourPicker1;
93 wxFontPickerCtrl* m_fontPicker1;
94 wxFilePickerCtrl* m_filePicker1;
95 wxCalendarCtrl* m_calendar1;
96 wxDatePickerCtrl* m_datePicker1;
97 wxGenericDirCtrl* m_genericDirCtrl1;
98 wxDirPickerCtrl* m_dirPicker1;
99
100 wxPanel* m_panel5;
101 wxChoice* m_choice1;
102 wxComboBox* m_comboBox1;
103 wxBitmapComboBox * m_bmpComboBox1;
104 PenStyleComboBox * m_ownerDrawnComboBox1;
105 wxComboCtrl * m_comboCtrl1;
106 wxComboCtrl * m_comboCtrl2;
107
108 // Virtual event handlers, overide them in your derived class
109 virtual void OnClose( wxCloseEvent& event ){ event.Skip(); }
110 virtual void OnSeeScreenshots( wxCommandEvent& event ){ event.Skip(); }
111 virtual void OnQuit( wxCommandEvent& event ){ event.Skip(); }
112 virtual void OnCaptureFullScreen( wxCommandEvent& event ){ event.Skip(); }
113 virtual void OnCaptureAllControls( wxCommandEvent& event ){ event.Skip(); }
114 virtual void OnAbout( wxCommandEvent& event ){ event.Skip(); }
115
116 private:
117 void AddMenuBar();
118 void AddPanel_1();
119 void AddPanel_2();
120 void AddPanel_3();
121 void AddPanel_4();
122 void AddPanel_5();
123 };
124
125 #endif //_GUIFRAME_H_