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