A special view class which sends the messages from the application to the editor and embeds it in a window. More...
#include <BrowserView.h>
Public Member Functions | |
| BrowserView (QWidget *parent) | |
| Constructs a BrowserView which is a child of 'parent', with the name 'name'. | |
| bool | canClose (void) |
| Checking on close state. | |
| const char * | getName (void) const |
| returns the name of the view (important for messages) | |
| void | load (const QUrl &url) |
| void | load (const char *URL) |
| void | OnChange (Base::Subject< const char * > &rCaller, const char *rcReason) |
| bool | onHasMsg (const char *pMsg) const |
| Checks if the action pMsg is available. | |
| bool | onMsg (const char *pMsg, const char **ppReturn) |
| Runs the action specified by pMsg. | |
| void | onUpdate (void) |
| get called when the document is updated | |
| void | setHtml (const QString &HtmlCode, const QUrl &BaseUrl, const QString &TabName=QString::fromAscii("Browser")) |
| void | stop (void) |
| ~BrowserView () | |
| Destroys the object and frees any allocated resources. | |
Protected Slots | |
| bool | chckHostAllowed (const QString &host) |
| void | onLinkClicked (const QUrl &url) |
| void | onLoadFinished () |
| void | onLoadProgress (int) |
| void | onLoadStarted () |
A special view class which sends the messages from the application to the editor and embeds it in a window.
Definition at line 42 of file BrowserView.h.
| BrowserView::BrowserView | ( | QWidget * | parent | ) |
Constructs a BrowserView which is a child of 'parent', with the name 'name'.
Definition at line 71 of file BrowserView.cpp.
References draftlibs::fcgeo::connect(), onLinkClicked(), onLoadFinished(), onLoadProgress(), and onLoadStarted().
| BrowserView::~BrowserView | ( | ) |
Destroys the object and frees any allocated resources.
Definition at line 93 of file BrowserView.cpp.
| bool BrowserView::canClose | ( | void | ) | [virtual] |
Checking on close state.
Reimplemented from Gui::MDIView.
Definition at line 262 of file BrowserView.cpp.
| bool BrowserView::chckHostAllowed | ( | const QString & | host | ) | [protected, slot] |
Definition at line 140 of file BrowserView.cpp.
| const char* WebGui::BrowserView::getName | ( | void | ) | const [inline, virtual] |
returns the name of the view (important for messages)
Reimplemented from Gui::BaseView.
Definition at line 57 of file BrowserView.h.
| void BrowserView::load | ( | const QUrl & | url | ) |
Definition at line 153 of file BrowserView.cpp.
References stop().
| void BrowserView::load | ( | const char * | URL | ) |
Definition at line 147 of file BrowserView.cpp.
Referenced by openBrowser().
| void BrowserView::OnChange | ( | Base::Subject< const char * > & | rCaller, | |
| const char * | rcReason | |||
| ) |
Reimplemented from Gui::WindowParameter.
Definition at line 211 of file BrowserView.cpp.
| bool BrowserView::onHasMsg | ( | const char * | pMsg | ) | const [virtual] |
Checks if the action pMsg is available.
This is for enabling/disabling the corresponding buttons or menu items for this action.
Reimplemented from Gui::MDIView.
Definition at line 249 of file BrowserView.cpp.
| void BrowserView::onLinkClicked | ( | const QUrl & | url | ) | [protected, slot] |
Definition at line 98 of file BrowserView.cpp.
References Gui::Command::doCommand(), Mesh2Shape::ext, Gui::getMainWindow(), Gui::Command::Gui, Gui::OpenURLInBrowser(), and Base::Exception::what().
Referenced by BrowserView().
| void BrowserView::onLoadFinished | ( | ) | [protected, slot] |
Definition at line 202 of file BrowserView.cpp.
References Gui::getMainWindow(), and Gui::MainWindow::showMessage().
Referenced by BrowserView().
| void BrowserView::onLoadProgress | ( | int | step | ) | [protected, slot] |
Definition at line 196 of file BrowserView.cpp.
References Gui::Sequencer::getProgressBar(), and Gui::Sequencer::instance().
Referenced by BrowserView().
| void BrowserView::onLoadStarted | ( | ) | [protected, slot] |
Definition at line 187 of file BrowserView.cpp.
References Gui::getMainWindow(), Gui::Sequencer::getProgressBar(), Gui::Sequencer::instance(), and Gui::MainWindow::showMessage().
Referenced by BrowserView().
| bool BrowserView::onMsg | ( | const char * | pMsg, | |
| const char ** | ppReturn | |||
| ) | [virtual] |
Runs the action specified by pMsg.
Reimplemented from Gui::MDIView.
Definition at line 218 of file BrowserView.cpp.
References stop().
| void WebGui::BrowserView::onUpdate | ( | void | ) | [inline, virtual] |
get called when the document is updated
Reimplemented from Gui::BaseView.
Definition at line 58 of file BrowserView.h.
| void BrowserView::setHtml | ( | const QString & | HtmlCode, | |
| const QUrl & | BaseUrl, | |||
| const QString & | TabName = QString::fromAscii("Browser") | |||
| ) |
| void BrowserView::stop | ( | void | ) |
Definition at line 182 of file BrowserView.cpp.
1.6.1