kutils Library API Documentation

kmultitabbar_p.h

00001 /***************************************************************************
00002                           kmultitabbar_p.h -  description
00003                              -------------------
00004     begin                :  2003
00005     copyright            : (C) 2003 by Joseph Wenninger <jowenn@kde.org>
00006  ***************************************************************************/
00007 
00008 /***************************************************************************
00009     This library is free software; you can redistribute it and/or
00010     modify it under the terms of the GNU Library General Public
00011     License as published by the Free Software Foundation; either
00012     version 2 of the License, or (at your option) any later version.
00013 
00014     This library is distributed in the hope that it will be useful,
00015     but WITHOUT ANY WARRANTY; without even the implied warranty of
00016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00017     Library General Public License for more details.
00018 
00019     You should have received a copy of the GNU Library General Public License
00020     along with this library; see the file COPYING.LIB.  If not, write to
00021     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00022     Boston, MA 02111-1307, USA.
00023  ***************************************************************************/
00024 
00025 #ifndef K_MULTI_TAB_BAR_P_H
00026 #define K_MULTI_TAB_BAR_P_H
00027 #include <qscrollview.h>
00028 #include <kmultitabbar.h>
00029 
00030 class KMultiTabBarInternal: public QScrollView
00031 {
00032         Q_OBJECT
00033 public:
00034         KMultiTabBarInternal(QWidget *parent,KMultiTabBar::KMultiTabBarMode bm);
00035         int appendTab(const QPixmap &,int=-1,const QString& =QString::null);
00036         KMultiTabBarTab *tab(int) const;
00037         void removeTab(int);
00038         void setPosition(enum KMultiTabBar::KMultiTabBarPosition pos);
00039         void setStyle(enum KMultiTabBar::KMultiTabBarStyle style);
00040         void showActiveTabTexts(bool show);
00041         QPtrList<KMultiTabBarTab>* tabs(){return &m_tabs;}
00042 private:
00043         friend class KMultiTabBar;
00044         QHBox *box;
00045         QPtrList<KMultiTabBarTab> m_tabs;
00046         enum KMultiTabBar::KMultiTabBarPosition m_position;
00047         bool m_showActiveTabTexts;
00048         enum  KMultiTabBar::KMultiTabBarStyle m_style;
00049     int m_expandedTabSize;
00050 protected:
00051         virtual void drawContents ( QPainter *, int, int, int, int);
00052 
00058         virtual void contentsMousePressEvent(QMouseEvent *);
00059         virtual void mousePressEvent(QMouseEvent *);
00060 };
00061 #endif
00062 
KDE Logo
This file is part of the documentation for kutils Library Version 3.2.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Mar 4 22:44:56 2004 by doxygen 1.3.6-20040222 written by Dimitri van Heesch, © 1997-2003