29#include <tqstringlist.h>
30#include <koffice_export.h>
61class KOFFICEUI_EXPORT
KoTabBar :
public TQWidget
76 KoTabBar( TQWidget* parent = 0,
const char *name = 0 );
97 TQStringList
tabs()
const;
103 unsigned count()
const;
134 void setTabs(
const TQStringList& list );
154 void addTab(
const TQString& text );
166 void renameTab(
const TQString& old_name,
const TQString& new_name );
178 void moveTab(
unsigned tab,
unsigned target );
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 );
void removeTab(const TQString &text)
Removes a tab from the bar.
void scrollFirst()
Scrolls to the first tab.
void tabMoved(unsigned tab, unsigned target)
This signal is emitted whenever a tab is dragged, moved and released.
void setReadOnly(bool ro)
Sets the tab bar to be read only.
KoTabBar(TQWidget *parent=0, const char *name=0)
Creates a new tabbar.
void doubleClicked()
This signal is emitted whenever the tab bar is double-clicked.
void setActiveTab(const TQString &text)
Sets active tab.
TQString activeTab() const
Returns the active tab.
TQStringList tabs() const
Returns all the tab as list of strings.
void clear()
Removes all tabs.
void setReverseLayout(bool reverse)
If reverse is true, dialogs and scroll buttonswidgets will be laid out in a mirrored as if the sheet ...
void moveTab(unsigned tab, unsigned target)
Moves a tab to another position and reorder other tabs.
void ensureVisible(const TQString &tab)
Ensures that specified tab is visible.
void addTab(const TQString &text)
Adds a tab to the tab bar.
void scrollForward()
Scrolls one tab forward.
void renameTab(const TQString &old_name, const TQString &new_name)
Renames a tab.
bool canScrollBack() const
Returns true if it is possible to scroll one tab back.
bool canScrollForward() const
Returns true if it is possible to scroll one tab forward.
void contextMenu(const TQPoint &pos)
This signal is emitted whenever the tab bar is right-clicked.
unsigned count() const
Returns number of tabs.
void setTabs(const TQStringList &list)
Replaces all tabs with the list of strings.
bool reverseLayout() const
Returns true if tabs and scroll buttons will be laid out in a mirrored (right to left) fashion.
void scrollBack()
Scrolls one tab back.
void tabChanged(const TQString &_text)
Emitted if the active tab changed.
void scrollLast()
Scrolls to the last tab.
bool readOnly() const
Returns true if the tab bar is read only.