Mantid
|
pqHelpWindow provides an assistant-like window for showing help provided by a QHelpEngine. More...
#include <pqHelpWindow.h>
Public Slots | |
bool | isExistingPage (const QUrl &url) |
Check if the url is an existing page. More... | |
virtual void | printPage () |
Prints the current open page. More... | |
virtual void | showHomePage () |
virtual void | showHomePage (const QString &namespace_name) |
Tries to locate a file name index.html in the given namespace and then shows that page. More... | |
virtual void | showLinkedPage (const QUrl &url) |
Show a page linked to by another page in the help window. More... | |
virtual void | showPage (const QString &url, bool linkClicked=false) |
Requests showing of a particular page. More... | |
virtual void | showPage (const QUrl &url, bool linkClicked=false) |
Signals | |
void | helpWarnings (const QString &) |
fired to relay warning messages from the help system. More... | |
Public Member Functions | |
pqHelpWindow (QHelpEngine *engine, QWidget *parent=nullptr, const Qt::WindowFlags &flags=Qt::WindowFlags()) | |
Protected Slots | |
void | linkHovered (const QString &link, const QString &title="", const QString &textContent="") |
void | search () |
void | updateNavButtons () |
Protected Attributes | |
QToolButton * | m_backward |
QWebEngineView * | m_browser |
QToolButton * | m_forward |
QHelpEngine * | m_helpEngine |
Private Types | |
using | Superclass = QMainWindow |
Private Member Functions | |
void | errorMissingPage (const QUrl &url) |
Set the contents of the browser to show an error message. More... | |
pqHelpWindow & | operator= (const pqHelpWindow &)=delete |
pqHelpWindow (const pqHelpWindow &)=delete | |
Friends | |
class | pqNetworkAccessManager |
pqHelpWindow provides an assistant-like window for showing help provided by a QHelpEngine.
Definition at line 73 of file pqHelpWindow.h.
|
private |
Definition at line 75 of file pqHelpWindow.h.
pqHelpWindow::pqHelpWindow | ( | QHelpEngine * | engine, |
QWidget * | parent = nullptr , |
||
const Qt::WindowFlags & | flags = Qt::WindowFlags() |
||
) |
Definition at line 234 of file pqHelpWindow.cxx.
References helpWarnings(), linkHovered(), m_backward, m_browser, m_forward, m_helpEngine, pqNetworkAccessManager, printPage(), search(), showHomePage(), showLinkedPage(), showPage(), and updateNavButtons().
|
privatedelete |
|
private |
Set the contents of the browser to show an error message.
url | The url that could not be found. |
Definition at line 333 of file pqHelpWindow.cxx.
References m_browser.
Referenced by showHomePage(), and showPage().
|
signal |
fired to relay warning messages from the help system.
Referenced by pqHelpWindow().
|
slot |
Check if the url is an existing page.
Definition at line 419 of file pqHelpWindow.cxx.
References m_helpEngine.
Referenced by showPage().
|
protectedslot |
Definition at line 397 of file pqHelpWindow.cxx.
Referenced by pqHelpWindow().
|
privatedelete |
|
virtualslot |
Prints the current open page.
Definition at line 371 of file pqHelpWindow.cxx.
References m_browser.
Referenced by pqHelpWindow().
|
protectedslot |
Definition at line 391 of file pqHelpWindow.cxx.
References m_helpEngine, and search().
Referenced by pqHelpWindow(), and search().
|
virtualslot |
Definition at line 403 of file pqHelpWindow.cxx.
References showPage().
|
virtualslot |
Tries to locate a file name index.html in the given namespace and then shows that page.
Definition at line 406 of file pqHelpWindow.cxx.
References errorMissingPage(), m_helpEngine, and showPage().
Referenced by pqHelpWindow().
|
virtualslot |
Show a page linked to by another page in the help window.
Definition at line 368 of file pqHelpWindow.cxx.
References showPage().
Referenced by pqHelpWindow().
|
virtualslot |
Requests showing of a particular page.
The url must begin with "qthelp:" scheme when referring to pages from the help files.
Definition at line 345 of file pqHelpWindow.cxx.
References showPage().
Referenced by pqHelpWindow(), showHomePage(), showLinkedPage(), and showPage().
|
virtualslot |
Definition at line 350 of file pqHelpWindow.cxx.
References errorMissingPage(), isExistingPage(), m_backward, m_browser, and m_forward.
|
protectedslot |
Definition at line 385 of file pqHelpWindow.cxx.
References m_backward, m_browser, and m_forward.
Referenced by pqHelpWindow().
|
friend |
Definition at line 122 of file pqHelpWindow.h.
Referenced by pqHelpWindow().
|
protected |
Definition at line 112 of file pqHelpWindow.h.
Referenced by pqHelpWindow(), showPage(), and updateNavButtons().
|
protected |
Definition at line 110 of file pqHelpWindow.h.
Referenced by errorMissingPage(), pqHelpWindow(), printPage(), showPage(), and updateNavButtons().
|
protected |
Definition at line 111 of file pqHelpWindow.h.
Referenced by pqHelpWindow(), showPage(), and updateNavButtons().
|
protected |
Definition at line 109 of file pqHelpWindow.h.
Referenced by isExistingPage(), pqHelpWindow(), search(), and showHomePage().