derivdlg.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //-----------------------------------------------------------------------------
  2. // Name: derivdlg.h
  3. // Purpose: XML resources sample: A derived dialog
  4. // Author: Robert O'Connor (rob@medicalmnemonics.com), Vaclav Slavik
  5. // Copyright: (c) Robert O'Connor and Vaclav Slavik
  6. // Licence: wxWindows licence
  7. //-----------------------------------------------------------------------------
  8. //-----------------------------------------------------------------------------
  9. // Begin single inclusion of this .h file condition
  10. //-----------------------------------------------------------------------------
  11. #ifndef _DERIVDLG_H_
  12. #define _DERIVDLG_H_
  13. //-----------------------------------------------------------------------------
  14. // Headers
  15. //-----------------------------------------------------------------------------
  16. #include "wx/dialog.h"
  17. //-----------------------------------------------------------------------------
  18. // Class definition: PreferencesDialog
  19. //-----------------------------------------------------------------------------
  20. // A derived dialog.
  21. class PreferencesDialog : public wxDialog
  22. {
  23. public:
  24. // Constructor.
  25. /*
  26. \param parent The parent window. Simple constructor.
  27. */
  28. PreferencesDialog( wxWindow* parent );
  29. // Destructor.
  30. ~PreferencesDialog(){};
  31. private:
  32. // Stuff to do when "My Button" gets clicked
  33. void OnMyButtonClicked( wxCommandEvent &event );
  34. // Stuff to do when a "My Checkbox" gets updated
  35. // (drawn, or it changes its value)
  36. void OnUpdateUIMyCheckbox( wxUpdateUIEvent &event );
  37. // Override base class functions of a wxDialog.
  38. void OnOK( wxCommandEvent &event );
  39. // Any class wishing to process wxWidgets events must use this macro
  40. wxDECLARE_EVENT_TABLE();
  41. };
  42. //-----------------------------------------------------------------------------
  43. // End single inclusion of this .h file condition
  44. //-----------------------------------------------------------------------------
  45. #endif //_DERIVDLG_H_