This provides a user-friendly interface for displaying help documentation. More...
#include <HelpBrowser.hpp>
Public Slots | |
void | displayContent (const QUrl &link) |
Displays help content in the browser by using the provided link as the source. | |
void | displayIndex (const QHelpLink &document, const QString &keyword) |
Displays the index document related to the provided keyword in the help browser. | |
Public Member Functions | |
HelpBrowser (const foundation::QtPtr<::QWidget > &parent) | |
Partial initialisation constructor. | |
void | iniitalise (const foundation::QtPtr<::QHelpEngine > &helpEngine, const QUrl &page) |
Initialises the widget with the provided help engine and sets the specified start page. | |
Static Public Attributes | |
static constexpr ::QLatin1StringView | Scheme_ {"qthelp"} |
Represents the custom scheme utilised for processing internal help system links. | |
This provides a user-friendly interface for displaying help documentation.
It is used to display help-related content in a structured and navigable format within the graphical application. It provides users with the ability to browse, search, and interact with help documentation to assist in understanding the application or its features.
|
explicit |
Partial initialisation constructor.
It ensures proper integration into the graphical interface’s hierarchy and sets up the browser for displaying help-related content. N.B. nothing can be displayed until the object's initialise member function is invoked.
parent | The GUI item to contain the help browser that will mange the lifetime of the object. |
|
slot |
Displays help content in the browser by using the provided link as the source.
Error | Thrown if the help document cannot be loaded successfully. |
link | The URL pointing to the content resource to be displayed. |
|
slot |
Displays the index document related to the provided keyword in the help browser.
It loads the specified document in the help browser and associates it with the given keyword.
Error | Thrown if the help document cannot be loaded successfully. |
document | An object containing a URL resource pointing to a specific help document. |
keyword | A string used to identify the association between the resource and the keyword. |
void drn::auxilium::HelpBrowser::iniitalise | ( | const foundation::QtPtr<::QHelpEngine > & | helpEngine, |
const QUrl & | page ) |
Initialises the widget with the provided help engine and sets the specified start page.
It configures the widget to display help content by associating it with the provided help engine and sets the initial page to be displayed.
Error | Thrown if the provided start page URL is empty or invalid. |
helpEngine | The help engine which provides access to help documents and content. |
page | The URL pointing to the initial page to be displayed in the help browser. |
|
static |
Represents the custom scheme utilised for processing internal help system links.
It provides an identifier for distinguishing links handled specifically by the internal help browser. It is used to route URLs with this scheme to the appropriate handler within the application’s context.