This class implements the dialog for downloading the online documentation. More...
#include <DlgOnlineHelpImp.h>
Public Member Functions | |
DlgOnlineHelpImp (QWidget *parent=0) | |
Constructs a DlgOnlineHelpImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'. | |
void | loadSettings () |
void | saveSettings () |
~DlgOnlineHelpImp () | |
Destroys the object and frees any allocated resources. | |
Static Public Member Functions | |
static QString | getStartpage () |
Returns the start page for the HelpView. | |
Protected Member Functions | |
void | changeEvent (QEvent *e) |
Sets the strings of the subwidgets using the current language. | |
void | on_lineEditDownload_fileNameSelected (const QString &) |
This class implements the dialog for downloading the online documentation.
Moreover it allows to specify location of the start page an an external browser. Here you can specify to use a proxy if necessary and some more stuff.
Definition at line 38 of file DlgOnlineHelpImp.h.
DlgOnlineHelpImp::DlgOnlineHelpImp | ( | QWidget * | parent = 0 |
) |
Constructs a DlgOnlineHelpImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'.
The dialog will by default be modeless, unless you set 'modal' to TRUE to construct a modal dialog.
Definition at line 47 of file DlgOnlineHelpImp.cpp.
References Gui::FileChooser::fileName, getStartpage(), Gui::Dialog::Ui_DlgOnlineHelp::prefStartPage, Gui::FileChooser::setFileName(), Gui::FileChooser::setFilter(), and Gui::Dialog::Ui_DlgOnlineHelp::setupUi().
DlgOnlineHelpImp::~DlgOnlineHelpImp | ( | ) |
Destroys the object and frees any allocated resources.
Definition at line 61 of file DlgOnlineHelpImp.cpp.
void DlgOnlineHelpImp::changeEvent | ( | QEvent * | e | ) | [protected, virtual] |
Sets the strings of the subwidgets using the current language.
Implements Gui::Dialog::PreferencePage.
Definition at line 90 of file DlgOnlineHelpImp.cpp.
References Gui::Dialog::Ui_DlgOnlineHelp::retranslateUi().
QString DlgOnlineHelpImp::getStartpage | ( | ) | [static] |
Returns the start page for the HelpView.
If none is defined the default start page "<FreeCADHome>/doc/free-cad.sourceforge.net/wiki/index.php.html" is returned.
Definition at line 71 of file DlgOnlineHelpImp.cpp.
References App::Application::getHelpDir().
Referenced by DlgOnlineHelpImp(), and Gui::MainWindow::MainWindow().
void DlgOnlineHelpImp::loadSettings | ( | ) | [virtual] |
Implements Gui::Dialog::PreferencePage.
Definition at line 82 of file DlgOnlineHelpImp.cpp.
References Gui::PrefWidget::onRestore(), and Gui::Dialog::Ui_DlgOnlineHelp::prefStartPage.
void DlgOnlineHelpImp::on_lineEditDownload_fileNameSelected | ( | const QString & | url | ) | [protected] |
Definition at line 100 of file DlgOnlineHelpImp.cpp.
void DlgOnlineHelpImp::saveSettings | ( | ) | [virtual] |
Implements Gui::Dialog::PreferencePage.
Definition at line 77 of file DlgOnlineHelpImp.cpp.
References Gui::PrefWidget::onSave(), and Gui::Dialog::Ui_DlgOnlineHelp::prefStartPage.