]> git.saurik.com Git - wxWidgets.git/blame - contrib/include/wx/fl/cbcustom.h
Removed leaks from Forty demo
[wxWidgets.git] / contrib / include / wx / fl / cbcustom.h
CommitLineData
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
15#ifdef __GNUG__
16 #pragma interface "cbcustom.h"
17#endif
18
19#include "wx/fl/controlbar.h"
20
e598303a
JS
21/*
22This class enables customization of a bar, popping up a
23menu and handling basic customization such as floating
24and horizontal/vertical alignment of the bar.
25*/
26
8e08b761
JS
27class cbSimpleCustomizationPlugin : public cbPluginBase
28{
29public:
4cbc57f0 30 DECLARE_DYNAMIC_CLASS( cbSimpleCustomizationPlugin )
8e08b761 31
4cbc57f0 32 int mCustMenuItemId;
8e08b761
JS
33public:
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