20 #ifndef __KATE_TABWIDGET_H__
21 #define __KATE_TABWIDGET_H__
23 #include <ktabwidget.h>
25 class KateTabWidget :
public KTabWidget
30 enum TabWidgetVisibility {
32 ShowWhenMoreThanOneTab = 1,
37 KateTabWidget(TQWidget* parent,
const char* name=0);
38 virtual ~KateTabWidget();
40 virtual void addTab ( TQWidget * child,
const TQString & label );
42 virtual void addTab ( TQWidget * child,
const TQIconSet & iconset,
const TQString & label );
44 virtual void addTab ( TQWidget * child, TQTab * tab );
46 virtual void insertTab ( TQWidget * child,
const TQString & label,
int index = -1 );
48 virtual void insertTab ( TQWidget * child,
const TQIconSet & iconset,
const TQString & label,
int index = -1 );
50 virtual void insertTab ( TQWidget * child, TQTab * tab,
int index = -1 );
52 virtual void removePage ( TQWidget * w );
54 TabWidgetVisibility tabWidgetVisibility()
const;
56 void setTabWidgetVisibility( TabWidgetVisibility );
59 void closeTab(TQWidget* w);
63 void setCornerWidgetVisibility(
bool visible);
66 TabWidgetVisibility m_visibility;