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         QWidget *box;
00045     QBoxLayout *mainLayout;
00046         QPtrList<KMultiTabBarTab> m_tabs;
00047         enum KMultiTabBar::KMultiTabBarPosition m_position;
00048         bool m_showActiveTabTexts;
00049         enum  KMultiTabBar::KMultiTabBarStyle m_style;
00050     int m_expandedTabSize;
00051     int m_lines;
00052 protected:
00053         virtual void drawContents ( QPainter *, int, int, int, int);
00054 
00060         virtual void contentsMousePressEvent(QMouseEvent *);
00061         virtual void mousePressEvent(QMouseEvent *);
00062     virtual void resizeEvent(QResizeEvent *);
00063 };
00064 #endif
00065 
KDE Logo
This file is part of the documentation for kutils Library Version 3.3.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jan 22 16:48:52 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003