#include <jobtextedit.h>
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 |
Definition at line 57 of file jobtextedit.h.
JobTextEditProperty::JobTextEditProperty | ( | ) | [inline] |
Definition at line 62 of file jobtextedit.h.
JobTextEditProperty::JobTextEditProperty | ( | QString | name, | |
QString | opt, | |||
QString | rxPattern, | |||
JobTextEdit * | jte | |||
) |
Construct a JobTextEditProperty
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.
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
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
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.
str | value of the property to add |
Definition at line 256 of file jobtextedit.cpp.
References _jte.
Referenced by setProperty().
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] |
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().