1 /*************************************************************** 2 * Name: wxSmithDemoMain.h 3 * Purpose: Defines Application Frame 4 * Author: Gary Harris (garyjharris@sourceforge.net) 5 * Created: 2010-06-01 6 * Copyright: Gary Harris (http://cryogen.66ghz.com/) 7 * License: 8 **************************************************************/ 9 10 #ifndef WXSMITHDEMOMAIN_H 11 #define WXSMITHDEMOMAIN_H 12 13 //(*Headers(wxSmithDemoFrame) 14 #include <wx/listctrl.h> 15 #include <wx/srchctrl.h> 16 #include <wx/fdrepdlg.h> 17 #include <wx/fontdlg.h> 18 #include <wx/notebook.h> 19 #include <wx/sizer.h> 20 #include <wx/stattext.h> 21 #include <wx/richtext/richtextformatdlg.h> 22 #include <wx/printdlg.h> 23 #include <wx/cshelp.h> 24 #include <wx/menu.h> 25 #include <wx/htmllbox.h> 26 #include <wx/filepicker.h> 27 #include "wximages/wxSmithDemoMain_ImageList1.xpm" 28 #include <wx/listbox.h> 29 #include <wx/bitmap.h> 30 #include <wx/textdlg.h> 31 #include <wx/richtext/richtextstyles.h> 32 #include <wx/html/htmprint.h> 33 #include <wx/treebook.h> 34 #include <wx/panel.h> 35 #include <wx/progdlg.h> 36 #include <wx/mediactrl.h> 37 #include <wx/bmpcbox.h> 38 #include <wx/richtext/richtextctrl.h> 39 #include <wx/dialup.h> 40 #include <wx/imaglist.h> 41 #include <wx/statbmp.h> 42 #include <wx/button.h> 43 #include "wximages/wxSmithDemoMain_Image1_XPM.xpm" 44 #include <wx/richtext/richtextstyledlg.h> 45 #include <wx/image.h> 46 #include <wx/animate.h> 47 #include <wx/frame.h> 48 #include <wx/fontpicker.h> 49 #include <wx/clrpicker.h> 50 #include <wx/statusbr.h> 51 //*) 52 53 #include <wx/msgdlg.h> 54 55 class wxSmithDemoFrame: public wxFrame 56 { 57 public: 58 59 wxSmithDemoFrame(wxWindow* parent,wxWindowID id = -1); 60 virtual ~wxSmithDemoFrame(); 61 62 private: 63 64 //(*Handlers(wxSmithDemoFrame) 65 void OnQuit(wxCommandEvent& event); 66 void OnAbout(wxCommandEvent& event); 67 void OnDialUpManager1Connected(wxDialUpEvent& event); 68 void OnDialUpManager1Disconnected(wxDialUpEvent& event); 69 void OnMenuItemCheckNetworkStatus(wxCommandEvent& event); 70 void OnBitmapComboBox1Selected(wxCommandEvent& event); 71 void OnBitmapComboBox1TextEnter(wxCommandEvent& event); 72 void OnSimpleHtmlListBox1Select(wxCommandEvent& event); 73 void OnSimpleHtmlListBox1CellClicked(wxHtmlCellEvent& event); 74 void OnSimpleHtmlListBox1CellHover(wxHtmlCellEvent& event); 75 void OnSimpleHtmlListBox1LinkClicked(wxHtmlLinkEvent& event); 76 void OnSearchCtrl1SearchClicked(wxCommandEvent& event); 77 void OnSearchCtrl1CancelClicked(wxCommandEvent& event); 78 void OnSearchCtrl1TextEnter(wxCommandEvent& event); 79 void OnSearchCtrl1Text(wxCommandEvent& event); 80 void OnHtmlEasyPrint(wxCommandEvent& event); 81 void OnHtmlEasyPageSetup(wxCommandEvent& event); 82 void OnRichTextCtrl1Text(wxCommandEvent& event); 83 void OnRichTextCtrl1TextEnter(wxCommandEvent& event); 84 void OnRichTextCtrl1TextUrl(wxTextUrlEvent& event); 85 void OnMenuItemFindReplaceDlgSelected(wxCommandEvent& event); 86 void OnMenuItemFontDlgSelected(wxCommandEvent& event); 87 void OnMenuItemMessageDlgSelected(wxCommandEvent& event); 88 void OnMenuItemPageSetupDlgSelected(wxCommandEvent& event); 89 void OnMenuItemPasswordEntryDialogSelected(wxCommandEvent& event); 90 void OnMenuItemPrintDlgSelected(wxCommandEvent& event); 91 void OnMenuItemProgressDlgSelected(wxCommandEvent& event); 92 void OnMenuItemRichTextFormattingDlgSelected(wxCommandEvent& event); 93 void OnMenuItemRichTextStyleOrganiserDlgSelected(wxCommandEvent& event); 94 void OnMenuItemTextEntryDlgSelected(wxCommandEvent& event); 95 void OnFindReplaceDialog1Close(wxFindDialogEvent& event); 96 void OnFindReplaceDialog1FindNext(wxFindDialogEvent& event); 97 void OnButton1Click(wxCommandEvent& event); 98 void OnButton14Click(wxCommandEvent& event); 99 void OnButtonPlayAnimationClick(wxCommandEvent& event); 100 void OnButtonStopAnimationClick(wxCommandEvent& event); 101 void OnListView1ItemSelect(wxListEvent& event); 102 void OnPanel8LeftDown(wxMouseEvent& event); 103 void OnMediaCtrl1Play(wxMediaEvent& event); 104 void OnMediaCtrl1Pause(wxMediaEvent& event); 105 void OnMediaCtrl1Stop(wxMediaEvent& event); 106 void OnMediaCtrl1Finished(wxMediaEvent& event); 107 void OnFindReplaceDialog1Find(wxFindDialogEvent& event); 108 void OnNotebook1PageChanged(wxNotebookEvent& event); 109 //*) 110 111 //(*Identifiers(wxSmithDemoFrame) 112 static const long ID_ANIMATIONCTRL1; 113 static const long ID_BUTTON1; 114 static const long ID_BUTTON2; 115 static const long ID_PANEL7; 116 static const long ID_SIMPLEHTMLLISTBOX1; 117 static const long ID_LISTVIEW1; 118 static const long ID_BITMAPCOMBOBOX1; 119 static const long ID_STATICBITMAP1; 120 static const long ID_SEARCHCTRL; 121 static const long ID_PANEL4; 122 static const long ID_MEDIACTRL1; 123 static const long ID_PANEL8; 124 static const long ID_COLOURPICKERCTRL1; 125 static const long ID_COLOURPICKERCTRL2; 126 static const long ID_COLOURPICKERCTRL3; 127 static const long ID_FILEPICKERCTRL1; 128 static const long ID_DIRPICKERCTRL1; 129 static const long ID_FONTPICKERCTRL1; 130 static const long ID_PANEL2; 131 static const long ID_RICHTEXTCTRL1; 132 static const long ID_PANEL3; 133 static const long ID_STATICTEXT1; 134 static const long ID_PANEL12; 135 static const long ID_STATICTEXT5; 136 static const long ID_PANEL13; 137 static const long ID_STATICTEXT6; 138 static const long ID_PANEL14; 139 static const long ID_TREEBOOK1; 140 static const long ID_PANEL11; 141 static const long ID_RICHTEXTSTYLELISTCTRL1; 142 static const long ID_RICHTEXTSTYLECOMBOCTRL1; 143 static const long ID_RICHTEXTSTYLELISTBOX1; 144 static const long ID_PANEL5; 145 static const long ID_NOTEBOOK1; 146 static const long ID_LISTBOX1; 147 static const long ID_PANEL1; 148 static const long ID_DIALUPMANAGER1; 149 static const long ID_MESSAGEDIALOG1; 150 static const long ID_PASSWORDENTRYDIALOG1; 151 static const long ID_PROGRESSDIALOG1; 152 static const long ID_RICHTEXTFORMATTINGDIALOG1; 153 static const long ID_RICHTEXTSTYLEORGANISERDIALOG1; 154 static const long ID_TEXTENTRYDIALOG1; 155 static const long idMenuQuit; 156 static const long idFindReplaceDlg; 157 static const long idFontDlg; 158 static const long idMessageDlg; 159 static const long idPageSetupDlg; 160 static const long idPasswordEntryDialog; 161 static const long idPrintDlg; 162 static const long idProgressDlg; 163 static const long idRichTextFormattingDlg; 164 static const long idRichTextStyleOrganiserDlg; 165 static const long idTextEntryDlg; 166 static const long idCheckNetworkStatus; 167 static const long idHtmlEasyPrint; 168 static const long idHtmlEasyPageSetup; 169 static const long idMenuAbout; 170 static const long ID_STATUSBAR1; 171 //*) 172 static const long ID_PANEL99; 173 174 //(*Declarations(wxSmithDemoFrame) 175 wxDirPickerCtrl* DirPickerCtrl1; 176 wxMenuItem* MenuItemPageSetupDlg; 177 wxRichTextStyleComboCtrl* RichTextStyleComboCtrl1; 178 wxBitmapComboBox* BitmapComboBox1; 179 wxMenuItem* MenuItemFontDlg; 180 wxPanel* Panel5; 181 wxBitmap *Image1_BMP; 182 wxFontPickerCtrl* FontPickerCtrl1; 183 wxMenuItem* MenuItemRichTextStyleOrganiserDlg; 184 wxNotebook* Notebook1; 185 wxRichTextStyleSheet *richTextStyleSheet_1; 186 wxPrintDialog* PrintDialog1; 187 wxMediaCtrl* MediaCtrl1; 188 wxMenuItem* MenuItemTextEntryDlg; 189 wxFilePickerCtrl* FilePickerCtrl1; 190 wxMenuItem* MenuItemFindReplaceDlg; 191 wxMenuItem* MenuItem5; 192 wxPanel* Panel4; 193 wxRichTextCtrl* RichTextCtrl1; 194 wxFindReplaceDialog* FindReplaceDialog1; 195 wxDialUpManager* DialUpManager1; 196 wxMenu* Menu3; 197 wxStaticText* StaticText6; 198 wxRichTextStyleListCtrl* RichTextStyleListCtrl1; 199 wxStaticBitmap* StaticBitmap1; 200 wxMenuItem* MenuItemProgressDlg; 201 wxMenuItem* MenuItem4; 202 wxPanel* Panel11; 203 wxPageSetupDialogData *pageSetupDialogData_1; 204 wxFindReplaceData findReplaceData_1; 205 wxImageList* ImageList1; 206 wxPanel* Panel8; 207 wxButton* ButtonStopAnimation; 208 wxPanel* Panel1; 209 wxStaticText* StaticText1; 210 wxMenuItem* MenuItemPrintDlg; 211 wxColourPickerCtrl* ColourPickerCtrl1; 212 wxFontDialog* FontDialog1; 213 wxPasswordEntryDialog* PasswordEntryDialog1; 214 wxPanel* Panel3; 215 wxMenuItem* MenuItemPasswordEntryDialog; 216 wxColourPickerCtrl* ColourPickerCtrl3; 217 wxListBox* ListBoxLog; 218 wxHtmlEasyPrinting* HtmlEasyPrinting1; 219 wxMenuItem* MenuItem3; 220 wxMenuItem* MenuItemMessageDlg; 221 wxPrintDialogData *printDialogData_1; 222 wxStaticText* StaticText5; 223 wxPanel* Panel7; 224 wxContextHelpButton* ContextHelpButton1; 225 wxStatusBar* StatusBar1; 226 wxListView* ListView1; 227 wxColourPickerCtrl* ColourPickerCtrl2; 228 wxTreebook* Treebook1; 229 wxTextEntryDialog* TextEntryDialog1; 230 wxPageSetupDialog* PageSetupDialog1; 231 wxRichTextStyleListBox* RichTextStyleListBox1; 232 wxAnimationCtrl* AnimationCtrl1; 233 wxPanel* Panel14; 234 wxProgressDialog* ProgressDialog1; 235 wxPanel* Panel2; 236 wxSimpleHtmlListBox* SimpleHtmlListBox1; 237 wxMessageDialog* MessageDialog1; 238 wxRichTextFormattingDialog* RichTextFormattingDialog1; 239 wxRichTextStyleOrganiserDialog* RichTextStyleOrganiserDialog1; 240 wxPanel* Panel12; 241 wxMenuItem* MenuItemRichTextFormattingDlg; 242 wxImage *Image1; 243 wxMenu* Menu5; 244 wxMenu* Menu4; 245 wxSearchCtrl* SearchCtrl1; 246 wxPanel* Panel13; 247 wxButton* ButtonPlayAnimation; 248 //*) 249 250 void LogString(wxString s); 251 void CreateStyles(); 252 253 void WriteInitialText(); 254 void Init(); 255 void InitWithListItems(); 256 void InitGridBag(); 257 void InitTreebook(); 258 259 DECLARE_EVENT_TABLE() 260 }; 261 262 #endif // WXSMITHDEMOMAIN_H 263