#include <configdialog.h>
Public Slots | |
void | browseConfig () |
void | loadConfig () |
void | editConfig () |
void | browseLocalConfig () |
void | loadLocalConfig () |
void | editLocalConfig () |
void | browseJobDescriptions () |
void | browseJobDescDialog () |
void | accept () |
void | apply () |
Signals | |
void | reconfig (QStringList paths, QList< QTime > timers, QStringList opaths) |
Public Member Functions | |
ConfigDialog (QWidget *parent=0) | |
ConfigDialog (QList< CondorAbstractView * > listViews, QList< QTime >) | |
~ConfigDialog () | |
Private Slots | |
void | browseJobHeader () |
void | browseMachineHeader () |
void | browseEditor () |
void | errorControl (int, QProcess::ExitStatus) |
Private Member Functions | |
void | readPath (QString) |
void | readSettings () |
void | writeSettings () |
Private Attributes | |
Ui::configDialog | ui |
Contains the dialog object designed by QtDesigner. | |
QString | m_dirBrowse |
Contains the directory where the user usually save the files. | |
bool | m_reconfig |
Contains I don't remember what. | |
QStringList | m_paths |
Contains the paths of configuration files. | |
QList< QTime > | m_timers |
Contains the timers that specify when should be refresh the model. | |
CondorStatusView * | m_statusView |
Contains the object machine view. | |
CondorStatusPage * | m_statusPage |
Contains the object machine tab configuration. | |
CondorQView * | m_qView |
Contains the object job view. | |
CondorQPage * | m_qPage |
Contains the object job tab configuration. | |
QProcess * | m_proc |
Contains the object to execute commands. |
ConfigDialog::ConfigDialog | ( | QWidget * | parent = 0 |
) |
Constructor
ConfigDialog::ConfigDialog | ( | QList< CondorAbstractView * > | listViews, | |
QList< QTime > | listTime | |||
) |
Constructs a Configuration dialog with a general tab and another tab for every view attached in listViews
listViews | of views | |
listTime | of refresh times for models. |
ConfigDialog::~ConfigDialog | ( | ) |
Destructor
void ConfigDialog::accept | ( | ) | [slot] |
Accept the changes and close the dialog
void ConfigDialog::apply | ( | ) | [slot] |
Apply the changes without closing the dialog
void ConfigDialog::browseConfig | ( | ) | [slot] |
Open a dialog to browse the condor.config file
void ConfigDialog::browseEditor | ( | ) | [private, slot] |
Open a dialog to select the path of your preferred editor
void ConfigDialog::browseJobDescDialog | ( | ) | [slot] |
Open a dialog to select where do you want to save the job descriptions edited by JobDescriptionDialog
void ConfigDialog::browseJobDescriptions | ( | ) | [slot] |
Open a dialog to select where do you want to save the job descriptions
void ConfigDialog::browseJobHeader | ( | ) | [private, slot] |
Open a dialog to select where is the condorqview.config
void ConfigDialog::browseLocalConfig | ( | ) | [slot] |
Open a dialog to browse the condor_config.local file
void ConfigDialog::browseMachineHeader | ( | ) | [private, slot] |
Open a dialog to select where is the condorstatusview.config
void ConfigDialog::editConfig | ( | ) | [slot] |
If exist an editor configured, it is opened to edit the file specify
void ConfigDialog::editLocalConfig | ( | ) | [slot] |
If exist an editor configured, it is opened to edit the file specify
void ConfigDialog::errorControl | ( | int | exitCode, | |
QProcess::ExitStatus | exitStatus | |||
) | [private, slot] |
emits a dialog with the end of process
exitCode | ||
exitStatus |
void ConfigDialog::loadConfig | ( | ) | [slot] |
Read the config file and apply its configuration
void ConfigDialog::loadLocalConfig | ( | ) | [slot] |
Read the config file and apply its configuration
void ConfigDialog::readPath | ( | QString | line | ) | [private] |
read the paths
line | with path |
void ConfigDialog::readSettings | ( | ) | [private] |
read the information in QSettings
void ConfigDialog::reconfig | ( | QStringList | paths, | |
QList< QTime > | timers, | |||
QStringList | opaths | |||
) | [signal] |
Emit a signal to reconfigure the application
paths | ||
timers | ||
opaths |
void ConfigDialog::writeSettings | ( | ) | [private] |
write a new information in QSettings