JobEditorWidget Class Reference

#include <jobeditorwidget.h>

List of all members.

Public Slots

void open ()
void save ()
 Slot called to save the file. If the file is still a draft, ask the user for a file name.
void saveAs ()
void executeJob ()
void onJobSent (QStringList)
 Slot called when the job is sent We don't know the command was executed successfully, we need to check if the error stream is empty.

Public Member Functions

 JobEditorWidget (QWidget *parent=0)
 Construct a JobEditorWidget.

Private Member Functions

void saveToFile ()

Private Attributes

QString _filename


Detailed Description

QWidget used to edit a job

Definition at line 19 of file jobeditorwidget.h.


Constructor & Destructor Documentation

JobEditorWidget::JobEditorWidget ( QWidget *  parent = 0  ) 

Construct a JobEditorWidget.

Apply a model to the Treeview, give it a Delegate, set connections between the text editor and the properties window, add the Highlighter to the text widget...

Parameters:
parent parent of the JobEditorWidget

Definition at line 33 of file jobeditorwidget.cpp.

References _filename, JobPropertyItem::child(), executeJob(), open(), JobPropertyModel::rootItem, save(), and saveAs().

Here is the call graph for this function:


Member Function Documentation

void JobEditorWidget::saveToFile (  )  [private]

Save the content of the editor window to the file specified in the class variable _filename

Definition at line 305 of file jobeditorwidget.cpp.

References _filename.

Referenced by save(), and saveAs().

void JobEditorWidget::open (  )  [slot]

Slot called to open a file

Definition at line 261 of file jobeditorwidget.cpp.

References _filename.

Referenced by JobEditorWidget().

void JobEditorWidget::save (  )  [slot]

Slot called to save the file. If the file is still a draft, ask the user for a file name.

Definition at line 280 of file jobeditorwidget.cpp.

References _filename, and saveToFile().

Referenced by JobEditorWidget().

void JobEditorWidget::saveAs (  )  [slot]

Slot called to save a file As...

Definition at line 294 of file jobeditorwidget.cpp.

References saveToFile().

Referenced by JobEditorWidget().

void JobEditorWidget::executeJob (  )  [slot]

Slot called to execute the Job written in the window.

Definition at line 212 of file jobeditorwidget.cpp.

References Myssh::isConnected(), and onJobSent().

Referenced by JobEditorWidget().

void JobEditorWidget::onJobSent ( QStringList  outerr  )  [slot]

Slot called when the job is sent We don't know the command was executed successfully, we need to check if the error stream is empty.

Parameters:
outerr List of strings: the output stream and the error stream of the submission command

Definition at line 236 of file jobeditorwidget.cpp.

Referenced by executeJob().


Member Data Documentation

QString JobEditorWidget::_filename [private]

Definition at line 23 of file jobeditorwidget.h.

Referenced by JobEditorWidget(), open(), save(), and saveToFile().


The documentation for this class was generated from the following files:
Generated on Mon Mar 16 18:46:07 2009 for QCJM by  doxygen 1.5.4