tdeui
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 <tqwidget.h>
00027 #include <tqtabbar.h>
00028 #include <tqmemarray.h>
00029
00030 #include <tdelibs_export.h>
00031
00048 class TDEUI_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