forked from qt-creator/qt-creator
Add index and filter combo box to external help window
Change-Id: Icc815379220c55d9d7dc5d154278ba21ce2e9984 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -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<QString, QUrl> &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
|
||||
|
||||
Reference in New Issue
Block a user