Ksetiwatch API Documentation


AddSetiLocDlg Class Reference

A dialog for adding and editing a S@h location. More...

#include <addsetilocdlg.h>

Inherits KDialogBase.

Inheritance diagram for AddSetiLocDlg:

Inheritance graph
[legend]
Collaboration diagram for AddSetiLocDlg:

Collaboration graph
[legend]
List of all members.

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

AddSetiLocDlg::AddSetiLocDlg QWidget   parent = 0,
const char *    name = 0
 

The constructor.

Parameters:
parent  The parent widget. If 0, this widget becomes a top-level widget.
name  A text that can be used to identify this widget.

Definition at line 34 of file addsetilocdlg.cpp.

References QToolTip::add(), KDialogBase::enableButtonOK(), QWidget::resize(), KColorButton::setColor(), QPushButton::setPixmap(), setupClientPage(), setupLocationPage(), and setupLoggingPage().

AddSetiLocDlg::~AddSetiLocDlg  
 

The destructor.

Definition at line 69 of file addsetilocdlg.cpp.


Member Function Documentation

void AddSetiLocDlg::setOptions const LocSettings   locsets
 

Passes the location settings to the dialog.

Sets all widgets in the dialog into the state represented by the parameters given in locsets.

Parameters:
locsets  A structure containing the options of a S@h location.

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

LocSettings AddSetiLocDlg::options  
 

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

void AddSetiLocDlg::setSetiDirectory const QString   t [inline]
 

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.

See also:
setiDirectory(), setExeFilePath(), exeFilePath(), setLogDirectory(), logDirectory()
Parameters:
t  A string pointing to the S@h directory.

Definition at line 71 of file addsetilocdlg.h.

References QLineEdit::setText().

Referenced by slotGetSetiDirectory().

QString AddSetiLocDlg::setiDirectory   const [inline]
 

Returns the S@h directory string from the dialog.

See also:
setSetiDirectory(), setExeFilePath(), exeFilePath(), setLogDirectory(), logDirectory()

Definition at line 77 of file addsetilocdlg.h.

References QLineEdit::text().

Referenced by Analysis::handlePopupCommand().

void AddSetiLocDlg::setLogDirectory const QString   t [inline]
 

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.

See also:
logDirectory(), setSetiDirectory(), setiDirectory(), setExeFilePath(), exeFilePath()
Parameters:
t  A string pointing to the log directory.

Definition at line 89 of file addsetilocdlg.h.

References QLineEdit::setText().

Referenced by slotGetLogDirectory().

QString AddSetiLocDlg::logDirectory   const [inline]
 

Returns the log directory string from the dialog.

See also:
setLogDirectory(), setSetiDirectory(), setiDirectory(), setExeFilePath(), exeFilePath()

Definition at line 95 of file addsetilocdlg.h.

References QLineEdit::text().

void AddSetiLocDlg::setStartExeFilePath const QString   exe [inline]
 

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.

See also:
setStopExeFilePath(), startExeFilePath(), stopExeFilePath
Parameters:
exe  A string containing a valid path and file name of the S@h start-up executable.

Definition at line 107 of file addsetilocdlg.h.

References QLineEdit::setText().

Referenced by slotGetStartExe().

QString AddSetiLocDlg::startExeFilePath   const [inline]
 

Returns path and file name of the S@h start-up executable in one string.

See also:
setStartExeFilePath(), setStopExeFilePath(), stopExeFilePath()

Definition at line 113 of file addsetilocdlg.h.

References QLineEdit::text().

void AddSetiLocDlg::setStopExeFilePath const QString   exe [inline]
 

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.

See also:
setStartExeFilePath(), startExeFilePath(), stopExeFilePath
Parameters:
exe  A string containing a valid path and file name of the S@h shut-down executable.

Definition at line 125 of file addsetilocdlg.h.

References QLineEdit::setText().

Referenced by slotGetStopExe().

QString AddSetiLocDlg::stopExeFilePath   const [inline]
 

Returns path and file name of the S@h shut-down executable in one string.

See also:
setStartExeFilePath(), setStopExeFilePath(), startExeFilePath()

Definition at line 131 of file addsetilocdlg.h.

References QLineEdit::text().

void AddSetiLocDlg::slotOk   [protected, virtual, slot]
 

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

void AddSetiLocDlg::slotGetSetiDirectory   [protected, slot]
 

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

void AddSetiLocDlg::slotGetLogDirectory   [protected, slot]
 

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

void AddSetiLocDlg::slotGetStartExe   [protected, slot]
 

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

void AddSetiLocDlg::slotGetStopExe   [protected, slot]
 

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

void AddSetiLocDlg::slotHandleText const QString   t [protected, slot]
 

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.

Parameters:
t  Not used in this context.

Definition at line 425 of file addsetilocdlg.cpp.

References KDialogBase::enableButtonOK(), QString::isEmpty(), and QLineEdit::text().

Referenced by setupLocationPage().

void AddSetiLocDlg::setupLocationPage   [protected]
 

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

void AddSetiLocDlg::setupLoggingPage   [protected]
 

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

void AddSetiLocDlg::setupClientPage   [protected]
 

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:
KDE Logo
This file is part of the documentation for Ksetiwatch API Version 2.6.1.
Documentation copyright © 2000-2003 Gordon Machel.
Generated on Fri Jun 6 00:28:37 2003 by doxygen 1.2.18, written by Dimitri van Heesch, © 1997-2002