kotoolboxpalette.h
1/*
2 * Copyright (c) 2005 Boudewijn Rempt <boud@valdyas.org>
3 *
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License version 2, as published by the Free Software Foundation.
7
8 This library is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 Library General Public License for more details.
12
13 You should have received a copy of the GNU Library General Public License
14 along with this library; see the file COPYING.LIB. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 */
17
18#ifndef _KO_TOOLBOX_PALETTE_
19#define _KO_TOOLBOX_PALETTE_
20
21#include <tqdockwindow.h>
22#include <tqtoolbox.h>
23
24#include <kopalettemanager.h>
25
31
32TQ_OBJECT
33
34
35public:
36
37 KoToolBoxPalette(TQWidget * parent, const char * name);
39
40public:
41 void resetFont();
42 virtual void plug(TQWidget * widget, const TQString & name, int position = INT_MAX);
43 virtual void unplug(const TQWidget * widget);
44 void showPage(TQWidget *w);
45 void makeVisible(bool v);
46 virtual void hidePage(TQWidget * w);
47 int indexOf(TQWidget *w);
48 bool isHidden(TQWidget *w);
49 void togglePageHidden(TQWidget *w);
50private:
51
52 TQToolBox * m_page;
53
54 TQMap<TQWidget*, int> m_hiddenPages;
55};
56
57#endif //_KO_TOOLBOX_PALETTE_
A floating palette that allows the adding and removing of widgets to its organzing principle.
Definition kopalette.h:39
A palette based on a toolbox widget.