ktabctl.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 #ifndef KTABCTL_H
00024 #define KTABCTL_H
00025 
00026 #include <qwidget.h>
00027 #include <qtabbar.h>
00028 #include <qmemarray.h>
00029 
00046 class KTabCtl : public QWidget
00047 {
00048     Q_OBJECT
00049 
00050 public:
00051     KTabCtl(QWidget *parent = 0, const char *name = 0);
00052    ~KTabCtl();
00053 
00054     void show();
00055     void setFont(const QFont & font);
00056     void setTabFont( const QFont &font );
00057 
00058     void addTab(QWidget *, const QString&);
00059     bool isTabEnabled(const QString& );
00060     void setTabEnabled(const QString&, bool);
00061     void setBorder(bool);
00062     void setShape( QTabBar::Shape shape );
00063     virtual QSize sizeHint() const;
00064 
00065 protected:
00066     void paintEvent(QPaintEvent *);
00067     void resizeEvent(QResizeEvent *);
00068 
00069 signals:
00070     void tabSelected(int);
00071     
00072 protected slots:
00073     void showTab(int i);
00074 
00075 protected:
00076     void setSizes();
00077     QRect getChildRect() const;
00078 
00079     QTabBar * tabs;
00080     QMemArray<QWidget *> pages;
00081     int bh;
00082     bool blBorder;
00083 protected:
00084     virtual void virtual_hook( int id, void* data );
00085 private:
00086     class KTabCtrlPrivate* d;
00087 };
00088 #endif
 
This file is part of the documentation for kdeui Library Version 3.2.0.