HelpTextBrowser Class Reference

#include <helptextbrowser.h>

List of all members.

Public Slots

virtual void setSource (const QUrl &url)

Public Member Functions

 HelpTextBrowser (QWidget *parent=0)
QVariant loadResource (int type, const QUrl &name)

Detailed Description

Definition at line 24 of file helptextbrowser.h.


Constructor & Destructor Documentation

HelpTextBrowser::HelpTextBrowser ( QWidget *  parent = 0  ) 

Default constructor.

Definition at line 28 of file helptextbrowser.cpp.


Member Function Documentation

QVariant HelpTextBrowser::loadResource ( int  type,
const QUrl &  name 
)

Loads a resource into the browser.

Loads a resource into the browser. If it is an HTML resource, we'll load it as UTF-8, so the special characters in our translations appear properly.

Definition at line 37 of file helptextbrowser.cpp.

References Vidalia::language().

void HelpTextBrowser::setSource ( const QUrl &  url  )  [virtual, slot]

Called when the displayed document is changed. If url specifies an external link, then the user will be prompted for whether they want to open the link in their default browser or not.

Definition at line 67 of file helptextbrowser.cpp.

References VMessageBox::Cancel, VMessageBox::information(), VMessageBox::Ok, p(), VMessageBox::question(), and VMessageBox::Yes.

Referenced by HelpBrowser::search().


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

Generated on Wed Dec 23 21:11:11 2009 for Vidalia by  doxygen 1.6.1