• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kdeui

ktabctl.h

Go to the documentation of this file.
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., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 */
00019 /*
00020  * $Id: ktabctl.h 465272 2005-09-29 09:47:40Z mueller $
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

kdeui

Skip menu "kdeui"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal