kdeui Library API Documentation

ktabctl.h

00001 /* This file is part of the KDE libraries 00002 Copyright (C) 1997 Alexander Sanda (alex@darkstar.ping.at) 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 as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00017 Boston, MA 02111-1307, USA. 00018 */ 00019 /* 00020 * $Id: ktabctl.h,v 1.16 2004/09/09 15:23:53 faure Exp $ 00021 */ 00022 00023 #ifndef KTABCTL_H 00024 #define KTABCTL_H 00025 00026 #include <qwidget.h> 00027 #include <qtabbar.h> 00028 #include <qmemarray.h> 00029 00030 #include <kdelibs_export.h> 00031 00048 class KDEUI_EXPORT KTabCtl : public QWidget 00049 { 00050 Q_OBJECT 00051 00052 public: 00053 KTabCtl(QWidget *parent = 0, const char *name = 0); 00054 ~KTabCtl(); 00055 00056 void show(); 00057 void setFont(const QFont & font); 00058 void setTabFont( const QFont &font ); 00059 00060 void addTab(QWidget *, const QString&); 00061 bool isTabEnabled(const QString& ); 00062 void setTabEnabled(const QString&, bool); 00063 void setBorder(bool); 00064 void setShape( QTabBar::Shape shape ); 00065 virtual QSize sizeHint() const; 00066 00067 protected: 00068 void paintEvent(QPaintEvent *); 00069 void resizeEvent(QResizeEvent *); 00070 00071 signals: 00072 void tabSelected(int); 00073 00074 protected slots: 00075 void showTab(int i); 00076 00077 protected: 00078 void setSizes(); 00079 QRect getChildRect() const; 00080 00081 QTabBar * tabs; 00082 QMemArray<QWidget *> pages; 00083 int bh; 00084 bool blBorder; 00085 protected: 00086 virtual void virtual_hook( int id, void* data ); 00087 private: 00088 class KTabCtrlPrivate* d; 00089 }; 00090 #endif
KDE Logo
This file is part of the documentation for kdeui Library Version 3.4.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Apr 14 00:10:16 2005 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003