home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2233.zip / wxOS2-2_3_3.zip / wxWindows-2.3.3 / contrib / include / wx / fl / cbcustom.h < prev    next >
C/C++ Source or Header  |  2002-09-08  |  2KB  |  55 lines

  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name:        cbcustom.h
  3. // Purpose:     cbSimpleCustomizationPlugin class declaration
  4. // Author:      Aleksandras Gluchovas
  5. // Modified by:
  6. // Created:     28/10/98
  7. // RCS-ID:      $Id: cbcustom.h,v 1.4 2002/09/07 12:10:19 GD Exp $
  8. // Copyright:   (c) Aleksandras Gluchovas
  9. // Licence:     wxWindows licence
  10. /////////////////////////////////////////////////////////////////////////////
  11.  
  12. #ifndef __CBCUSTOM_G__
  13. #define __CBCUSTOM_G__
  14.  
  15. #if defined(__GNUG__) && !defined(__APPLE__)
  16.     #pragma interface "cbcustom.h"
  17. #endif
  18.  
  19. #include "wx/fl/controlbar.h"
  20.  
  21. /*
  22. This class enables customization of a bar, popping up a
  23. menu and handling basic customization such as floating
  24. and horizontal/vertical alignment of the bar.
  25. */
  26.  
  27. class cbSimpleCustomizationPlugin : public cbPluginBase
  28. {
  29. public:
  30.     DECLARE_DYNAMIC_CLASS( cbSimpleCustomizationPlugin )
  31.  
  32.     int mCustMenuItemId;
  33. public:
  34.  
  35.         // Default constructor.
  36.     cbSimpleCustomizationPlugin(void);
  37.  
  38.         // Constructor, taking parent pane and a pane mask flag.
  39.     cbSimpleCustomizationPlugin( wxFrameLayout* pPanel, int paneMask = wxALL_PANES );
  40.  
  41.         // Plugin event handler for cbCustomizeBarEvent.
  42.     void OnCustomizeBar( cbCustomizeBarEvent& event );
  43.  
  44.         // Plugin event handler for cbCustomizeLayoutEvent.
  45.     void OnCustomizeLayout( cbCustomizeLayoutEvent& event );
  46.  
  47.         // Menu event handler.
  48.     void OnMenuItemSelected( wxCommandEvent& event );
  49.  
  50.     DECLARE_EVENT_TABLE()
  51. };
  52.  
  53. #endif /* __CBCUSTOM_G__ */
  54.  
  55.