]>
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 | ||
ab7ce33c | 15 | #if defined(__GNUG__) && !defined(__APPLE__) |
8e08b761 JS |
16 | #pragma interface "cbcustom.h" |
17 | #endif | |
18 | ||
19 | #include "wx/fl/controlbar.h" | |
20 | ||
e598303a JS |
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 | ||
2b5f62a0 | 27 | class WXFL_DECLSPEC cbSimpleCustomizationPlugin : public cbPluginBase |
8e08b761 JS |
28 | { |
29 | public: | |
4cbc57f0 | 30 | DECLARE_DYNAMIC_CLASS( cbSimpleCustomizationPlugin ) |
8e08b761 | 31 | |
4cbc57f0 | 32 | int mCustMenuItemId; |
8e08b761 JS |
33 | public: |
34 | ||
4cbc57f0 JS |
35 | // Default constructor. |
36 | cbSimpleCustomizationPlugin(void); | |
8e08b761 | 37 | |
4cbc57f0 JS |
38 | // Constructor, taking parent pane and a pane mask flag. |
39 | cbSimpleCustomizationPlugin( wxFrameLayout* pPanel, int paneMask = wxALL_PANES ); | |
8e08b761 | 40 | |
4cbc57f0 JS |
41 | // Plugin event handler for cbCustomizeBarEvent. |
42 | void OnCustomizeBar( cbCustomizeBarEvent& event ); | |
8e08b761 | 43 | |
4cbc57f0 JS |
44 | // Plugin event handler for cbCustomizeLayoutEvent. |
45 | void OnCustomizeLayout( cbCustomizeLayoutEvent& event ); | |
8e08b761 | 46 | |
4cbc57f0 JS |
47 | // Menu event handler. |
48 | void OnMenuItemSelected( wxCommandEvent& event ); | |
8e08b761 | 49 | |
4cbc57f0 | 50 | DECLARE_EVENT_TABLE() |
8e08b761 JS |
51 | }; |
52 | ||
53 | #endif /* __CBCUSTOM_G__ */ | |
54 |