29#include <tqstringlist.h>
30#include <koffice_export.h>
61class KOFFICEUI_EXPORT KoTabBar : public TQWidget
66 TQ_PROPERTY( TQString activeTab READ activeTab WRITE setActiveTab )
67 TQ_PROPERTY( bool readOnly READ readOnly WRITE setReadOnly )
68 TQ_PROPERTY( TQStringList tabs READ tabs WRITE setTabs )
69 TQ_PROPERTY( unsigned count READ count )
76 KoTabBar( TQWidget* parent = 0, const char *name = 0 );
86 bool readOnly() const;
92 bool reverseLayout() const;
97 TQStringList tabs() const;
103 unsigned count() const;
108 TQString activeTab() const;
115 bool canScrollBack() const;
122 bool canScrollForward() const;
127 void ensureVisible( const TQString& tab );
134 void setTabs( const TQStringList& list );
143 void setReadOnly( bool ro );
149 void setReverseLayout( bool reverse );
154 void addTab( const TQString& text );
161 void removeTab( const TQString& text );
166 void renameTab( const TQString& old_name, const TQString& new_name );
178 void moveTab( unsigned tab, unsigned target );
194 void scrollForward();
215 void setActiveTab( const TQString& text );
222 TQSize sizeHint() const;
255 void autoScrollBack();
256 void autoScrollForward();
259 virtual void paintEvent ( TQPaintEvent* ev );
260 virtual void resizeEvent( TQResizeEvent* ev );
261 virtual void mousePressEvent ( TQMouseEvent* ev );
262 virtual void mouseReleaseEvent ( TQMouseEvent* ev );
263 virtual void mouseDoubleClickEvent ( TQMouseEvent* ev );
264 virtual void mouseMoveEvent ( TQMouseEvent* ev );
265 virtual void wheelEvent ( TQWheelEvent * e );
The KoTabBar class provides a tab bar, for use to switch active page/sheet in a document.
void tabMoved(unsigned tab, unsigned target) This signal is emitted whenever a tab is dragged, moved and released.
void doubleClicked() This signal is emitted whenever the tab bar is double-clicked.
void contextMenu(const TQPoint &pos) This signal is emitted whenever the tab bar is right-clicked.
void tabChanged(const TQString &_text) Emitted if the active tab changed.
|