![]() |
LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
|
Common interface for a web widget. More...
#include "iwebbrowser.h"
Public Member Functions | |
virtual | ~IWebWidget ()=default |
virtual void | Load (const QUrl &url)=0 |
Loads a given url. | |
virtual void | SetHtml (const QString &html, const QUrl &base={})=0 |
Sets the contents of the web widget to the specified html. | |
virtual void | SetNavBarVisible (bool visible)=0 |
Sets whether the navigation bar of the widget (where the address bar and reload/back/forward/etc buttons are) is visible. | |
virtual void | SetEverythingElseVisible (bool visible)=0 |
Shows or hides every other panel in the browser but navbar. | |
virtual QWidget * | GetQWidget ()=0 |
Returns the IWebWidget as a QWidget. | |
virtual void | urlChanged (const QUrl &)=0 |
Emitted when the URL rendered by the browser changes to @url. | |
Common interface for a web widget.
A widget that is capable of showing/rendering web pages should implement this interface in order to communicate with other modules of LeechCraft.
Definition at line 23 of file iwebbrowser.h.
|
virtualdefault |
|
pure virtual |
Returns the IWebWidget as a QWidget.
Referenced by LC::Util::SvcAuth::VkAuthManager::Reauth().
|
pure virtual |
Loads a given url.
The url should be UTF8-encoded.
[in] | url | The url of the resource. |
|
pure virtual |
Shows or hides every other panel in the browser but navbar.
If the IWebBrowser implementation has additional panels, toolbars, sidebars and similar stuff, it should be set visible according to the visible parameter.
[in] | visible | Whether additional stuff should be visible. |
Referenced by LC::Util::SelectableBrowser::SetEverythingElseVisible().
|
pure virtual |
Sets the contents of the web widget to the specified html.
External objects such as stylesheets or images referenced in the HTML document are located relative to the base.
[in] | html | The HTML with the new contents. |
[in] | base | Base address for resolution of external elements. |
Referenced by LC::Util::SelectableBrowser::SetHtml().
|
pure virtual |
Sets whether the navigation bar of the widget (where the address bar and reload/back/forward/etc buttons are) is visible.
If the widget doesn't have such bar this function does nothing.
[in] | visible | Whether to show or hide the navbar. |
Referenced by LC::Util::SelectableBrowser::SetNavBarVisible().
|
pure virtual |
Emitted when the URL rendered by the browser changes to @url.
[out] | url | The new URL that the browser renders. |