Remove all lines containing cvs/svn "$Id$" keyword.
[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 // Licence: wxWindows licence
6 /////////////////////////////////////////////////////////////////////////////
7
8 #ifndef _GUIFRAME_H_
9 #define _GUIFRAME_H_
10
11 #include "wx/animate.h"
12 #include "wx/bmpcbox.h"
13 #include "wx/calctrl.h"
14 #include "wx/clrpicker.h"
15 #include "wx/collpane.h"
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
29 #include "customcombo.h"
30
31
32 class GUIFrame : public wxFrame
33 {
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,
44 idMenuCapAll
45 };
46
47 wxMenuBar* mbar;
48 wxMenu* fileMenu;
49 wxMenu* captureMenu;
50 wxMenu* helpMenu;
51
52 wxStatusBar* statusBar;
53
54 wxNotebook* m_notebook1;
55
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;
73
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
85 wxPanel* m_panel3;
86 wxTextCtrl* m_textCtrl1;
87 wxTextCtrl* m_textCtrl2;
88 wxRichTextCtrl* m_richText1;
89
90 wxPanel* m_panel4;
91 wxColourPickerCtrl* m_colourPicker1;
92 wxFontPickerCtrl* m_fontPicker1;
93 wxFilePickerCtrl* m_filePicker1;
94 wxCalendarCtrl* m_calendar1;
95 wxDatePickerCtrl* m_datePicker1;
96 wxGenericDirCtrl* m_genericDirCtrl1;
97 wxDirPickerCtrl* m_dirPicker1;
98
99 wxPanel* m_panel5;
100 wxChoice* m_choice1;
101 wxComboBox* m_comboBox1;
102 wxBitmapComboBox * m_bmpComboBox1;
103 PenStyleComboBox * m_ownerDrawnComboBox1;
104 wxComboCtrl * m_comboCtrl1;
105 wxComboCtrl * m_comboCtrl2;
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(); }
112 virtual void OnCaptureAllControls( wxCommandEvent& event ){ event.Skip(); }
113 virtual void OnAbout( wxCommandEvent& event ){ event.Skip(); }
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();
122 };
123
124 #endif //_GUIFRAME_H_