From 3c59cdd0319fbf1099f378907aeac514d1d57810 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 1 Oct 2014 17:52:57 +0200 Subject: Add index and filter combo box to external help window Change-Id: Icc815379220c55d9d7dc5d154278ba21ce2e9984 Reviewed-by: Eike Ziller --- src/plugins/help/helpwidget.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/plugins/help/helpwidget.h') diff --git a/src/plugins/help/helpwidget.h b/src/plugins/help/helpwidget.h index bd00034881..d81e9a17ae 100644 --- a/src/plugins/help/helpwidget.h +++ b/src/plugins/help/helpwidget.h @@ -44,6 +44,11 @@ class QPrinter; class QStackedWidget; QT_END_NAMESPACE +namespace Core { +class MiniSplitter; +class SideBar; +} + namespace Help { namespace Internal { @@ -74,6 +79,10 @@ public: int viewerCount() const; HelpViewer *viewerAt(int index) const; + void open(const QUrl &url, bool newPage = false); + void showTopicChooser(const QMap &links, const QString &key, + bool newPage = false); + public slots: void setSource(const QUrl &url); void setSourceFromSearch(const QUrl &url); @@ -106,9 +115,11 @@ private: void resetScale(); void print(HelpViewer *viewer); void highlightSearchTerms(); + void addSideBar(); Core::IContext *m_context; WidgetStyle m_style; + QAction *m_toggleSideBarAction; QAction *m_switchToHelp; QAction *m_homeAction; QMenu *m_backMenu; @@ -126,6 +137,10 @@ private: QStackedWidget *m_viewerStack; QPrinter *m_printer; + + Core::MiniSplitter *m_sideBarSplitter; + Core::SideBar *m_sideBar; + QAction *m_indexAction; }; } // Internal -- cgit v1.2.1