aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/help/centralwidget.h
diff options
context:
space:
mode:
authorkh1 <qt-info@nokia.com>2010-01-18 15:18:23 +0100
committerkh1 <qt-info@nokia.com>2010-01-18 15:22:07 +0100
commita0af55e7bdd56f3b486176738d5db82478311b44 (patch)
tree0b4ff7111c31da4f0eca21b8d2b420cb3b504ebe /src/plugins/help/centralwidget.h
parentf88bc5f3cd3abf49d23fdd7d371676682c793cd3 (diff)
Add an combo box to switch between the opened tabs.
Follow the text editor and provide a combo box for opened documents. We might consider removing the tabs all together to look more consistent. Task-number: QTCREATORBUG-584 Reviewed-by: ck
Diffstat (limited to 'src/plugins/help/centralwidget.h')
-rw-r--r--src/plugins/help/centralwidget.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/plugins/help/centralwidget.h b/src/plugins/help/centralwidget.h
index 001118abc81..78f92318fee 100644
--- a/src/plugins/help/centralwidget.h
+++ b/src/plugins/help/centralwidget.h
@@ -77,6 +77,7 @@ public:
bool find(const QString &txt, QTextDocument::FindFlags findFlags, bool incremental);
void setLastShownPages();
HelpViewer *helpViewerAtIndex(int index) const;
+ int indexOf(HelpViewer *viewer) const;
static CentralWidget *instance();
@@ -99,12 +100,13 @@ public slots:
void showTopicChooser(const QMap<QString, QUrl> &links,
const QString &keyword);
void copy();
+ void activateTab(int index);
protected:
void focusInEvent(QFocusEvent *event);
signals:
- void currentViewerChanged();
+ void currentViewerChanged(int index);
void copyAvailable(bool yes);
void sourceChanged(const QUrl &url);
void highlighted(const QString &link);
@@ -112,6 +114,9 @@ signals:
void backwardAvailable(bool available);
void addNewBookmark(const QString &title, const QString &url);
+ void viewerAboutToBeRemoved(int index);
+ void viewerRemoved(int index);
+
private slots:
void newTab();
void closeTab();