lib

kotoolboxpalette.h

00001 /*
00002  *  Copyright (c) 2005 Boudewijn Rempt <boud@valdyas.org>
00003  *
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2, as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00016  */
00017 
00018 #ifndef _KO_TOOLBOX_PALETTE_
00019 #define _KO_TOOLBOX_PALETTE_
00020 
00021 #include <qdockwindow.h>
00022 #include <qtoolbox.h>
00023 
00024 #include <kopalettemanager.h>
00025 
00030 class KoToolBoxPalette : public KoPalette {
00031 
00032 Q_OBJECT
00033 
00034 public:
00035 
00036     KoToolBoxPalette(QWidget * parent, const char * name);
00037     ~KoToolBoxPalette();
00038 
00039 public:
00040     void resetFont();
00041     virtual void plug(QWidget * widget, const QString & name, int position = INT_MAX);
00042     virtual void unplug(const QWidget * widget);
00043     void showPage(QWidget *w);
00044     void makeVisible(bool v);
00045     virtual void hidePage(QWidget * w);
00046     int indexOf(QWidget *w);
00047     bool isHidden(QWidget *w);
00048     void togglePageHidden(QWidget *w);
00049 private:
00050 
00051     QToolBox * m_page;
00052 
00053     QMap<QWidget*, int> m_hiddenPages;
00054 };
00055 
00056 #endif //_KO_TOOLBOX_PALETTE_
KDE Home | KDE Accessibility Home | Description of Access Keys