WebGui::BrowserView Class Reference

A special view class which sends the messages from the application to the editor and embeds it in a window. More...

#include <BrowserView.h>

Inheritance diagram for WebGui::BrowserView:
Gui::MDIView Gui::WindowParameter Gui::BaseView Base::BaseClass

List of all members.

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 ()

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]
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]
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") 
)

Definition at line 172 of file BrowserView.cpp.

References stop().

Referenced by openBrowserHTML().

void BrowserView::stop ( void   ) 

Definition at line 182 of file BrowserView.cpp.

Referenced by load(), onMsg(), and setHtml().


The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:49 2011 for FreeCAD by  doxygen 1.6.1