JobTextEditProperty Class Reference

#include <jobtextedit.h>

Collaboration diagram for JobTextEditProperty:

Collaboration graph
[legend]

List of all members.

Public Slots

void setProperty (const QString &pty)

Signals

void propertyChanged (const QString &pty)

Public Member Functions

 JobTextEditProperty ()
 JobTextEditProperty (QString name, QString opt, QString rxPattern, JobTextEdit *jte)
void checkForPropertyChanged ()

Private Member Functions

void addPBSProperty (const QString &str)
 Add a property to the JobTextEdit 1/ insert before previously defines PBS properties 2/ if not possible, insert after comments lines 3/ if it's still not possible, insert at the beginning of the text.

Private Attributes

QString _value
QString _name
QString _opt
QRegExp _rx
JobTextEdit_jte


Detailed Description

Describe a job property

Definition at line 57 of file jobtextedit.h.


Constructor & Destructor Documentation

JobTextEditProperty::JobTextEditProperty (  )  [inline]

Definition at line 62 of file jobtextedit.h.

JobTextEditProperty::JobTextEditProperty ( QString  name,
QString  opt,
QString  rxPattern,
JobTextEdit jte 
)

Construct a JobTextEditProperty

Parameters:
name Name of this property. if empty, opt must be set
opt Option used to access this property. ex: "j" for "#PBS -j oe"
rxPattern 
jte the JobTextEdit where the property may be.

Definition at line 171 of file jobtextedit.cpp.

References _name, and _rx.


Member Function Documentation

void JobTextEditProperty::checkForPropertyChanged (  ) 

Check if the property has changed in the text of the JobTextEdit

Definition at line 187 of file jobtextedit.cpp.

References _jte, _rx, _value, and propertyChanged().

Referenced by JobTextEdit::onTextChanged().

void JobTextEditProperty::setProperty ( const QString &  pty  )  [slot]

Set the property

Parameters:
pty value to set

Definition at line 213 of file jobtextedit.cpp.

References _jte, _name, _opt, _rx, _value, and addPBSProperty().

void JobTextEditProperty::propertyChanged ( const QString &  pty  )  [signal]

Signal emitted when the property has just changed

Parameters:
pty the new value of the property

Referenced by checkForPropertyChanged().

void JobTextEditProperty::addPBSProperty ( const QString &  str  )  [private]

Add a property to the JobTextEdit 1/ insert before previously defines PBS properties 2/ if not possible, insert after comments lines 3/ if it's still not possible, insert at the beginning of the text.

Parameters:
str value of the property to add

Definition at line 256 of file jobtextedit.cpp.

References _jte.

Referenced by setProperty().


Member Data Documentation

QString JobTextEditProperty::_value [private]

Definition at line 80 of file jobtextedit.h.

Referenced by checkForPropertyChanged(), and setProperty().

QString JobTextEditProperty::_name [private]

Definition at line 81 of file jobtextedit.h.

Referenced by JobTextEditProperty(), and setProperty().

QString JobTextEditProperty::_opt [private]

Definition at line 82 of file jobtextedit.h.

Referenced by setProperty().

QRegExp JobTextEditProperty::_rx [private]

Definition at line 83 of file jobtextedit.h.

Referenced by checkForPropertyChanged(), JobTextEditProperty(), and setProperty().

JobTextEdit* JobTextEditProperty::_jte [private]

Definition at line 84 of file jobtextedit.h.

Referenced by addPBSProperty(), checkForPropertyChanged(), and setProperty().


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