30 #ifndef INTERFACES_IHAVETABS_H
31 #define INTERFACES_IHAVETABS_H
185 virtual QObject* ParentMultiTabs () = 0;
197 virtual void Remove () = 0;
209 virtual QToolBar* GetToolBar ()
const = 0;
344 virtual void TabOpenRequested (
const QByteArray& tabClass) = 0;
363 virtual void addNewTab (
const QString& name, QWidget *tabContents) = 0;
378 virtual void removeTab (QWidget *tabContents) = 0;
399 virtual void changeTabName (QWidget *tabContents,
const QString& name) = 0;
418 virtual void changeTabIcon (QWidget *tabContents,
const QIcon& icon) = 0;
444 virtual void statusBarChanged (QWidget *tabContents,
const QString& text) = 0;
458 virtual void raiseTab (QWidget *tabContents) = 0;
There could be only one instance of this tab.
QString Description_
The description of the given tab class.
Interface for plugins that have one or more tabs.
QIcon Icon_
The icon for the given tab class.
This tab could be opened by user request.
Q_DECLARE_INTERFACE(ITabWidget,"org.Deviant.LeechCraft.ITabWidget/1.0")
Q_DECLARE_OPERATORS_FOR_FLAGS(LeechCraft::TabFeatures)
The structure describing a single tab class.
TabFeature
Defines different behavior features of tab classes.
The tab uses the standard tab close shortcut (Ctrl+W).
QList< TabClassInfo > TabClasses_t
The tab is to be suggested in a quick launch area.
The tab should be opened by default.
QByteArray TabClass_
The tab class ID, which should be globally unique.
Q_DECLARE_FLAGS(TabFeatures, LeechCraft::TabFeature)
TabFeatures Features_
The features of this tab class.
QString VisibleName_
Visible name for the given tab class.
quint16 Priority_
The priority of this tab class.