• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kdeui
 

kdeui

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., 51 Franklin Street, Fifth Floor,
00017     Boston, MA 02110-1301, USA.
00018 */
00019 /*
00020  * $Id$
00021 */
00022 
00023 #ifndef KTABCTL_H
00024 #define KTABCTL_H
00025 
00026 #include <tqwidget.h>
00027 #include <tqtabbar.h>
00028 #include <tqmemarray.h>
00029 
00030 #include <kdelibs_export.h>
00031 
00048 class KDEUI_EXPORT KTabCtl : public TQWidget
00049 {
00050     Q_OBJECT
00051 
00052 public:
00053     KTabCtl(TQWidget *parent = 0, const char *name = 0);
00054    ~KTabCtl();
00055 
00056     void show();
00057     void setFont(const TQFont & font);
00058     void setTabFont( const TQFont &font );
00059 
00060     void addTab(TQWidget *, const TQString&);
00061     bool isTabEnabled(const TQString& );
00062     void setTabEnabled(const TQString&, bool);
00063     void setBorder(bool);
00064     void setShape( TQTabBar::Shape shape );
00065     virtual TQSize sizeHint() const;
00066 
00067 protected:
00068     void paintEvent(TQPaintEvent *);
00069     void resizeEvent(TQResizeEvent *);
00070 
00071 signals:
00072     void tabSelected(int);
00073     
00074 protected slots:
00075     void showTab(int i);
00076 
00077 protected:
00078     void setSizes();
00079     TQRect getChildRect() const;
00080 
00081     TQTabBar * tabs;
00082     TQMemArray<TQWidget *> 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

kdeui

Skip menu "kdeui"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kdeui by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |