AddSetiLocDlg Class Reference
A dialog for adding and editing a S@h location. More...
#include <addsetilocdlg.h>
Inherits KDialogBase.
Inheritance diagram for AddSetiLocDlg:


Public Methods | |
| AddSetiLocDlg (QWidget *parent=0, const char *name=0) | |
| ~AddSetiLocDlg () | |
| void | setOptions (const LocSettings &locsets) |
| LocSettings | options () const |
| void | setSetiDirectory (const QString &t) |
| QString | setiDirectory () const |
| void | setLogDirectory (const QString &t) |
| QString | logDirectory () const |
| void | setStartExeFilePath (const QString &exe) |
| QString | startExeFilePath () const |
| void | setStopExeFilePath (const QString &exe) |
| QString | stopExeFilePath () const |
Protected Slots | |
| void | slotOk () |
| void | slotGetSetiDirectory () |
| void | slotGetLogDirectory () |
| void | slotGetStartExe () |
| void | slotGetStopExe () |
| void | slotHandleText (const QString &t) |
Protected Methods | |
| void | setupLocationPage () |
| void | setupLoggingPage () |
| void | setupClientPage () |
Detailed Description
A dialog for adding and editing a S@h location.This dialog inherits from KDialogBase. Different pages with options and settings can be selected via an icon list.
Definition at line 37 of file addsetilocdlg.h.
Constructor & Destructor Documentation
|
||||||||||||
|
The constructor.
Definition at line 34 of file addsetilocdlg.cpp. References QToolTip::add(), KDialogBase::enableButtonOK(), QWidget::resize(), KColorButton::setColor(), QPushButton::setPixmap(), setupClientPage(), setupLocationPage(), and setupLoggingPage(). |
|
|
The destructor.
Definition at line 69 of file addsetilocdlg.cpp. |
Member Function Documentation
|
|
Passes the location settings to the dialog. Sets all widgets in the dialog into the state represented by the parameters given in locsets.
Definition at line 448 of file addsetilocdlg.cpp. References LocSettings::arguments, LocSettings::color, LocSettings::customStartExe, LocSettings::customStopExe, LocSettings::description, LocSettings::directory, LocSettings::email, LocSettings::graphics, LocSettings::keepClientAlive, LocSettings::log, LocSettings::logDirectory, QString::number(), LocSettings::priority, LocSettings::proxyPort, LocSettings::proxyServer, LocSettings::redirectLog, QCheckBox::setChecked(), KColorButton::setColor(), QLineEdit::setText(), QSlider::setValue(), LocSettings::startSeti, LocSettings::stopAfterProcess, LocSettings::stopAfterSend, LocSettings::stopSeti, LocSettings::useCustomStartExe, LocSettings::useCustomStopExe, and LocSettings::useProxy. Referenced by Analysis::handlePopupCommand(). |
|
|
Returns the settings made in the dialog in a LocSettings structure.
Definition at line 478 of file addsetilocdlg.cpp. References LocSettings::arguments, KColorButton::color(), LocSettings::color, LocSettings::customStartExe, LocSettings::customStopExe, LocSettings::description, LocSettings::directory, LocSettings::email, LocSettings::graphics, QCheckBox::isChecked(), LocSettings::keepClientAlive, LocSettings::log, LocSettings::logDirectory, LocSettings::priority, LocSettings::proxyPort, LocSettings::proxyServer, LocSettings::redirectLog, LocSettings::startSeti, LocSettings::stopAfterProcess, LocSettings::stopAfterSend, LocSettings::stopSeti, QLineEdit::text(), LocSettings::useCustomStartExe, LocSettings::useCustomStopExe, and LocSettings::useProxy. Referenced by Analysis::handlePopupCommand(). |
|
|
Sets the S@h directory. The S@h directory is the directory where all the sah stae files, the WU file and (optionally) the SETI@home client are located.
Definition at line 71 of file addsetilocdlg.h. References QLineEdit::setText(). Referenced by slotGetSetiDirectory(). |
|
|
Returns the S@h directory string from the dialog.
Definition at line 77 of file addsetilocdlg.h. References QLineEdit::text(). Referenced by Analysis::handlePopupCommand(). |
|
|
Sets the log directory. By default, log files are written to the S@h directory. The user can redirect the writing of the log files to another directory by specifying it in the dialog.
Definition at line 89 of file addsetilocdlg.h. References QLineEdit::setText(). Referenced by slotGetLogDirectory(). |
|
|
Returns the log directory string from the dialog.
Definition at line 95 of file addsetilocdlg.h. References QLineEdit::text(). |
|
|
Sets path and file name of the S@h start-up executable. The specified executable is responsible for starting the S@h client. Purpose of this feature is to allow users to execute other things prior or after starting the client.
Definition at line 107 of file addsetilocdlg.h. References QLineEdit::setText(). Referenced by slotGetStartExe(). |
|
|
Returns path and file name of the S@h start-up executable in one string.
Definition at line 113 of file addsetilocdlg.h. References QLineEdit::text(). |
|
|
Sets path and file name of the S@h shut-down executable. The specified executable is responsible for stopping the S@h client. Purpose of this feature is to allow users to execute other things prior or after stopping the client.
Definition at line 125 of file addsetilocdlg.h. References QLineEdit::setText(). Referenced by slotGetStopExe(). |
|
|
Returns path and file name of the S@h shut-down executable in one string.
Definition at line 131 of file addsetilocdlg.h. References QLineEdit::text(). |
|
|
Checks the given S@h directory before exiting the dialog.
Reimplemented from KDialogBase. Definition at line 436 of file addsetilocdlg.cpp. References QDialog::accept(), KMessageBox::error(), QDir::exists(), and QLineEdit::text(). |
|
|
Opens a file dialog for the selection of the S@h directory.
Definition at line 393 of file addsetilocdlg.cpp. References QString::isNull(), and setSetiDirectory(). Referenced by setupLocationPage(). |
|
|
Opens a file dialog for the selection of the log directory.
Definition at line 401 of file addsetilocdlg.cpp. References QString::isNull(), and setLogDirectory(). Referenced by setupLoggingPage(). |
|
|
Opens a file dialog for the selection of path and file name of the S@h start-up executable.
Definition at line 409 of file addsetilocdlg.cpp. References QString::isNull(), and setStartExeFilePath(). Referenced by setupLocationPage(). |
|
|
Opens a file dialog for the selection of path and file name of the S@h shutdown executable.
Definition at line 417 of file addsetilocdlg.cpp. References QString::isNull(), and setStopExeFilePath(). Referenced by setupLocationPage(). |
|
|
Enables or disables the OK button. The OK button of the dialog will only be enabled if both a S@h directory and a descriptive name for the location have been entered.
Definition at line 425 of file addsetilocdlg.cpp. References KDialogBase::enableButtonOK(), QString::isEmpty(), and QLineEdit::text(). Referenced by setupLocationPage(). |
|
|
Sets up a dialog page containing general settings of the S@h location.
Definition at line 74 of file addsetilocdlg.cpp. References QToolTip::add(), QGridLayout::addItem(), QGridLayout::addMultiCellLayout(), KDialogBase::addPage(), QGridLayout::addWidget(), QObject::connect(), QWidget::setEnabled(), QWidget::setSizePolicy(), QWidget::setTabOrder(), QCheckBox::setText(), QLineEdit::setText(), QLabel::setText(), QWidget::sizePolicy(), QSizePolicy::SizeType(), slotGetSetiDirectory(), slotGetStartExe(), slotGetStopExe(), and slotHandleText(). Referenced by AddSetiLocDlg(). |
|
|
Sets up a dialog page containing options for the logging of completed work units.
Definition at line 207 of file addsetilocdlg.cpp. References QToolTip::add(), QGridLayout::addItem(), QGridLayout::addMultiCellWidget(), KDialogBase::addPage(), QGridLayout::addWidget(), QObject::connect(), QCheckBox::setChecked(), QWidget::setEnabled(), QWidget::setTabOrder(), QCheckBox::setText(), and slotGetLogDirectory(). Referenced by AddSetiLocDlg(). |
|
|
Sets up a dialog page containing settings and options for the S@h client.
Definition at line 252 of file addsetilocdlg.cpp. References QToolTip::add(), QGridLayout::addItem(), QGridLayout::addMultiCellWidget(), KDialogBase::addPage(), QGridLayout::addWidget(), QObject::connect(), QLabel::setAlignment(), QWidget::setEnabled(), QSlider::setLineStep(), QSlider::setMaxValue(), QSlider::setMinValue(), QSlider::setOrientation(), QSlider::setPageStep(), QWidget::setSizePolicy(), QWidget::setTabOrder(), QLabel::setText(), QCheckBox::setText(), QSlider::setTickInterval(), QSlider::setTickmarks(), QSlider::setValue(), QWidget::sizePolicy(), and QSizePolicy::SizeType(). Referenced by AddSetiLocDlg(). |
The documentation for this class was generated from the following files:

