]>
git.saurik.com Git - wxWidgets.git/blob - contrib/samples/xrc/derivdlg.h
   1 //----------------------------------------------------------------------------- 
   3 // Purpose:     XML resources sample: A derived dialog 
   4 // Author:      Robert O'Connor (rob@medicalmnemonics.com), Vaclav Slavik 
   6 // Copyright:   (c) Robert O'Connor and Vaclav Slavik 
   7 // Licence:     wxWindows licence 
   8 //----------------------------------------------------------------------------- 
  10 //----------------------------------------------------------------------------- 
  11 // Begin single inclusion of this .h file condition 
  12 //----------------------------------------------------------------------------- 
  17 //----------------------------------------------------------------------------- 
  19 //----------------------------------------------------------------------------- 
  21 #if defined(__GNUG__) && !defined(__APPLE__) 
  22     #pragma interface "derivdlg.h" 
  25 //----------------------------------------------------------------------------- 
  27 //----------------------------------------------------------------------------- 
  29 #include "wx/dialog.h" 
  31 //----------------------------------------------------------------------------- 
  32 // Class definition: PreferencesDialog 
  33 //----------------------------------------------------------------------------- 
  36 class PreferencesDialog 
: public wxDialog
 
  43        \param parent The parent window. Simple constructor. 
  45     PreferencesDialog( wxWindow
* parent 
); 
  52     // Stuff to do when "My Button" gets clicked 
  53     void OnMyButtonClicked( wxCommandEvent 
&event 
); 
  55     // Stuff to do when a "My Checkbox" gets updated  
  56     // (drawn, or it changes its value) 
  57     void OuUpdateUIMyCheckbox( wxUpdateUIEvent 
&event 
); 
  59     // Override base class functions of a wxDialog. 
  60     void OnOK( wxCommandEvent 
&event 
); 
  62     // Any class wishing to process wxWindows events must use this macro 
  67 //----------------------------------------------------------------------------- 
  68 // End single inclusion of this .h file condition 
  69 //-----------------------------------------------------------------------------