kotabpalette.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_TAB_PALETTE_
19#define _KO_TAB_PALETTE_
20
21#include <tqdockwindow.h>
22#include <ktabwidget.h>
23
24#include "kopalette.h"
25
26class KoView;
27class TQWidget;
28
29
30
37class KoTabPalette : public KoPalette {
38
39TQ_OBJECT
40
41
42public:
43
44 KoTabPalette(TQWidget * parent, const char * name);
45 virtual ~KoTabPalette();
46
47public:
48 virtual void resetFont();
49 virtual void plug(TQWidget * widget, const TQString & name, int position = -1);
50 virtual void unplug(const TQWidget * widget);
51 void showPage(TQWidget *w);
52 void makeVisible(bool v);
53 virtual void hidePage(TQWidget * w);
54 int indexOf(TQWidget *w);
55 bool isHidden(TQWidget *w);
56 virtual void togglePageHidden(TQWidget *w);
57
58private:
59
60 KTabWidget * m_page;
61
62 TQMap<TQWidget*, int> m_hiddenPages;
63};
64
65#endif //_KO_TAB_PALETTE_
A floating palette that allows the adding and removing of widgets to its organzing principle.
Definition kopalette.h:39
This is a palette with a tabwidget.
This class is used to display a KoDocument.
Definition KoView.h:58