3#ifndef BOOKMARKMANAGER_H
4#define BOOKMARKMANAGER_H
6#include <QtCore/QMutex>
7#include <QtWidgets/QTreeView>
9#include "ui_bookmarkwidget.h"
17class QSortFilterProxyModel;
25 class BookmarkListView;
33 void setBookmarksMenu(QMenu* menu);
48 void removeItem(
const QModelIndex &index);
49 bool eventFilter(QObject *object, QEvent *event)
override;
50 void buildBookmarksMenu(
const QModelIndex &index, QMenu *menu);
51 void showBookmarkDialog(
const QString &name,
const QString &url);
55 void storeBookmarks();
57 void addBookmarkActivated();
58 void removeBookmarkActivated();
59 void manageBookmarks();
60 void refreshBookmarkMenu();
61 void refreshBookmarkToolBar();
62 void renameBookmark(
const QModelIndex &index);
64 void setSourceFromAction();
65 void setSourceFromIndex(
const QModelIndex &index,
bool newTab);
67 void focusInEventOccurred();
68 void managerWidgetAboutToClose();
69 void textChanged(
const QString &text);
70 void customContextMenuRequested(
const QPoint &point);
73 bool typeAndSearch =
false;
78 QMenu *bookmarkMenu =
nullptr;
79 QToolBar *m_toolBar =
nullptr;
83 QSortFilterProxyModel *typeAndSearchModel =
nullptr;
QString documentTitle() const
void setText(const QString &text, const QByteArray &resources)
void setPixmap(const QPixmap &pixmap)
QSize minimumSizeHint() const override
QVariant loadResource(int type, const QUrl &name) override
This function is called when the document is loaded and for each image in the document.
void doSetSource(const QUrl &name, QTextDocument::ResourceType type) override
Attempts to load the document at the given url with the specified type.
void setText(const QString &text, const QByteArray &resources)
~BookmarkTreeView() override
void subclassKeyPressEvent(QKeyEvent *event)
void setBookmarksToolbar(QToolBar *toolBar)
void setSource(const QUrl &url)
void setSourceInNewTab(const QUrl &url)
QWidget * bookmarkDockWidget() const
~BookmarkManager() override
bool eventFilter(QObject *object, QEvent *event) override
Filters events if this object has been installed as an event filter for the watched object.
ShowState contents() const
ShowState bookmarks() const
bool enableRemoteControl() const
bool collectionFileGiven() const
void expandToDepth(int depth)
QAction * findAction() const
QAction * zoomInAction() const
QAction * nextAction() const
QAction * homeAction() const
QAction * backAction() const
QAction * printAction() const
QAction * zoomOutAction() const
QHelpFilterEngine * filterEngine() const
QHelpSearchEngine * searchEngine() const
static HelpEngineWrapper & instance()
bool addressBarEnabled() const
bool addressBarVisible() const
void setUseBrowserFont(bool useBrowserFont)
bool hasFontSettings() const
QHelpIndexModel * indexModel() const
bool filterFunctionalityEnabled() const
void initialDocSetupDone()
bool filterToolbarVisible() const
void setUseAppFont(bool useAppFont)
QHelpContentModel * contentModel() const
void closeEvent(QCloseEvent *event) override
[21]
void setIndexString(const QString &str)
void setBookmarksVisible(bool visible)
static void activateCurrentBrowser()
void activateCurrentCentralWidgetTab()
void expandTOC(int depth)
void setIndexVisible(bool visible)
void setSearchVisible(bool visible)
void currentFilterChanged(const QString &filter)
bool usesDefaultCollection() const
QAbstractItemView * openPagesWidget() const
HelpViewer * createNewPageFromSearch(const QUrl &url)
void pageAdded(int index)
HelpViewer * createBlankPage()
static OpenPagesManager * instance()
void updateApplicationFont()
void updateUserInterface()
void docsInstalled(bool newDocsInstalled)
Combined button and popup list for selecting options.
static const char * docs[]
static QStringList newQtDocumentation()
@ warnAboutMissingModules