lib

kotabpalette.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_TAB_PALETTE_
00019 #define _KO_TAB_PALETTE_
00020 
00021 #include <qdockwindow.h>
00022 #include <ktabwidget.h>
00023 
00024 #include "kopalette.h"
00025 
00026 class KoView;
00027 class QWidget;
00028 
00029 
00030 
00037 class KoTabPalette : public KoPalette {
00038 
00039 Q_OBJECT
00040 
00041 public:
00042 
00043     KoTabPalette(QWidget * parent, const char * name);
00044     virtual ~KoTabPalette();
00045 
00046 public:
00047     virtual void resetFont();
00048     virtual void plug(QWidget * widget, const QString & name, int position = -1);
00049     virtual void unplug(const QWidget * widget);
00050     void showPage(QWidget *w);
00051     void makeVisible(bool v);
00052     virtual void hidePage(QWidget * w);
00053     int indexOf(QWidget *w);
00054     bool isHidden(QWidget *w);
00055     virtual void togglePageHidden(QWidget *w);
00056 
00057 private:
00058 
00059     KTabWidget * m_page;
00060 
00061     QMap<QWidget*, int> m_hiddenPages;
00062 };
00063 
00064 #endif //_KO_TAB_PALETTE_
KDE Home | KDE Accessibility Home | Description of Access Keys