MainWindow Class Reference

Implements the main window where all widget would be shown. More...

#include <mainwindow.h>

List of all members.

Signals

void reconfigPaths (QStringList list)
void refreshMachineT (QTime time)
void refreshJobT (QTime time)

Public Member Functions

 MainWindow (QWidget *parent=0)

Protected Member Functions

void closeEvent (QCloseEvent *event)

Private Slots

void configure ()
void execCommand ()
void defaultOn ()
void allOn ()
void masterOn ()
void startdOn ()
void scheddOn ()
void collectorOn ()
void negotiatorOn ()
void kbddOn ()
void defaultOff ()
void allOff ()
void masterOff ()
void startdOff ()
void scheddOff ()
void collectorOff ()
void negotiatorOff ()
void kbddOff ()
void defaultRestart ()
void allRestart ()
void masterRestart ()
void startdRestart ()
void scheddRestart ()
void collectorRestart ()
void negotiatorRestart ()
void kbddRestart ()
void defaultReconfig ()
void allReconfig ()
void masterReconfig ()
void startdReconfig ()
void scheddReconfig ()
void collectorReconfig ()
void negotiatorReconfig ()
void kbddReconfig ()
void submit ()
void hold ()
void qedit ()
void prio ()
void remove ()
void release ()
void createProcess ()
void createFactories ()
void reconfig (QStringList, QList< QTime >, QStringList)
void errorControl (int exitCode, QProcess::ExitStatus exitStatus)
void commandControl (int exitCode, QProcess::ExitStatus exitStatus)
void condorUp (int, QProcess::ExitStatus)
void readSettings ()
void writeSettings ()

Private Member Functions

void createActions ()

Private Attributes

Ui::mainWindow ui
 Contains the object designed by QtDesigner.
QProcess * m_proc
 Contains the object to execute commands.
QProcess * m_procCommand
 Contains the object to execute commands.
QProcess * m_procJob
 Contains the object to execute job commands.
QProcess * m_daemonProc
 Contains the object to execute daemon commands.
QStandardItemModel * m_modelMachine
 Contains the model of machine view.
QStandardItemModel * m_modelJob
 Contains the model of job view.
CondorStatusViewm_condorStatus
 Contains the view of machines.
CondorQViewm_condorQ
 Contains the view of jobs.
FactoryJobfjob
 Contains the object that control the job model.
FactoryMachinefmachine
 Contains the object that control the machine model.
QStringList m_paths
 Contains the configuration paths.
QTime m_machineT
 Contains a timer for refresh machine model.
QTime m_jobT
 Contains a timer for refresh job model.
QStringList m_otherPaths
 Contains other paths configuration.
QStringList m_headerPaths
 Contains the paths of the header files of views.


Detailed Description

Implements the main window where all widget would be shown.

Author:
Author
Nuria Fernández
Version:
Revision
1.0
Date:
2007/01/11 14:16:20
This class define the structure of the main window. Currently the main window has:


Constructor & Destructor Documentation

MainWindow::MainWindow ( QWidget *  parent = 0  ) 

Basic constructor


Member Function Documentation

void MainWindow::allOff (  )  [private, slot]

Execute the command condor_off to all daemons

void MainWindow::allOn (  )  [private, slot]

Execute the command condor on with everyone of daemons

void MainWindow::allReconfig (  )  [private, slot]

Execute the command condor_reconfig

void MainWindow::allRestart (  )  [private, slot]

Execute the command condor_restart

void MainWindow::closeEvent ( QCloseEvent *  event  )  [protected]

Close the application

void MainWindow::collectorOff (  )  [private, slot]

Execute the command condor_off -collector

void MainWindow::collectorOn (  )  [private, slot]

Execute the command condor_collector

void MainWindow::collectorReconfig (  )  [private, slot]

Execute the command condor_reconfig

void MainWindow::collectorRestart (  )  [private, slot]

Execute the command condor_restart

void MainWindow::commandControl ( int  exitCode,
QProcess::ExitStatus  exitStatus 
) [private, slot]

Show a message box with the system output

void MainWindow::condorUp ( int  exitCode,
QProcess::ExitStatus  exitStatus 
) [private, slot]

Show a message box with the status of the condor system

void MainWindow::configure (  )  [private, slot]

Configure the application with the last configuration specify

void MainWindow::createActions (  )  [private]

Create the actions of the applications.

void MainWindow::createFactories (  )  [private, slot]

Create the models and the views.

void MainWindow::createProcess (  )  [private, slot]

Check if the condor system is up

void MainWindow::defaultOff (  )  [private, slot]

Execute the command condor_off

void MainWindow::defaultOn (  )  [private, slot]

Execute the command condor_on without arguments

void MainWindow::defaultReconfig (  )  [private, slot]

Execute the command condor_reconfig

void MainWindow::defaultRestart (  )  [private, slot]

Execute the command condor_restart

void MainWindow::errorControl ( int  exitCode,
QProcess::ExitStatus  exitStatus 
) [private, slot]

Show a message box with the system output

void MainWindow::execCommand (  )  [private, slot]

Show a dialog to execute any command you want. If the command is not in the path, it should be contains the route to the command. I.e. C:/condor/bin/condor_q.exe

void MainWindow::hold (  )  [private, slot]

Show hold dialog

void MainWindow::kbddOff (  )  [private, slot]

Execute the command condor_off -kbdd

void MainWindow::kbddOn (  )  [private, slot]

Execute the command condor_kbdd

void MainWindow::kbddReconfig (  )  [private, slot]

Execute the command condor_reconfig

void MainWindow::kbddRestart (  )  [private, slot]

Execute the command condor_restart

void MainWindow::masterOff (  )  [private, slot]

Execute the command condor_master_off

void MainWindow::masterOn (  )  [private, slot]

Execute command condor_master

void MainWindow::masterReconfig (  )  [private, slot]

Execute the command condor_reconfig

void MainWindow::masterRestart (  )  [private, slot]

Execute the command condor_restart

void MainWindow::negotiatorOff (  )  [private, slot]

Execute the command condor_off -negotiator

void MainWindow::negotiatorOn (  )  [private, slot]

Execute the command condor_negotiator

void MainWindow::negotiatorReconfig (  )  [private, slot]

Execute the command condor_reconfig

void MainWindow::negotiatorRestart (  )  [private, slot]

Execute the command condor_restart

void MainWindow::prio (  )  [private, slot]

Show prio dialog

void MainWindow::qedit (  )  [private, slot]

Show qedit dialog

void MainWindow::readSettings (  )  [private, slot]

read QSettings

void MainWindow::reconfig ( QStringList  paths,
QList< QTime >  timers,
QStringList  otherThings 
) [private, slot]

reconfig the application.

Parameters:
paths update the paths of the condor commands
timers update the timers for refresh views
otherThings update other paths

void MainWindow::reconfigPaths ( QStringList  list  )  [signal]

Emit a signal for reconfig paths of the application

Parameters:
list list of paths

void MainWindow::refreshJobT ( QTime  time  )  [signal]

Emit a signal for refresh job view

Parameters:
time time

void MainWindow::refreshMachineT ( QTime  time  )  [signal]

Emit a signal for refresh machine view

Parameters:
time time

void MainWindow::release (  )  [private, slot]

Show release dialog

void MainWindow::remove (  )  [private, slot]

Show remove dialog

void MainWindow::scheddOff (  )  [private, slot]

Execute the command condor_off -schedd

void MainWindow::scheddOn (  )  [private, slot]

Execute the command condor_schedd

void MainWindow::scheddReconfig (  )  [private, slot]

Execute the command condor_reconfig

void MainWindow::scheddRestart (  )  [private, slot]

Execute the command condor_restart

void MainWindow::startdOff (  )  [private, slot]

Execute the command condor_off -startd

void MainWindow::startdOn (  )  [private, slot]

Execute the command startd

void MainWindow::startdReconfig (  )  [private, slot]

Execute the command condor_reconfig

void MainWindow::startdRestart (  )  [private, slot]

Execute the command condor_restart

void MainWindow::submit (  )  [private, slot]

Show submitDialog

void MainWindow::writeSettings (  )  [private, slot]

write QSettings


The documentation for this class was generated from the following files:
Generated on Sun Jan 14 23:38:42 2007 for QCondor by  doxygen 1.4.7