#include <qslot.h>
Public Slots | ||||
bool | validateInput (const QString &) | |||
void | paste () | |||
Slot that allows paste into contained QguLineEdit. | ||||
void | setDropdownText_event () | |||
void | setDropdownText_r () | |||
void | setDropdownText_x () | |||
void | setDropdownText_y () | |||
void | setDropdownText_z () | |||
void | setDropdownText_ld () | |||
void | setDropdownText_td () | |||
void | setDropdownText_pd () | |||
void | setDropdownText_lr () | |||
void | setDropdownText_tr () | |||
void | setDropdownText_pr () | |||
void | setDropdownText_dobj () | |||
void | openArrayReduce () | |||
void | openSliceT_seq () | |||
void | openSliceT_not_seq () | |||
void | openSliceS () | |||
void | openSliceS_seq () | |||
void | openSliceS_not_seq () | |||
void | openSliceV () | |||
void | openSelectMetadata () | |||
void | setDropdownTstart () | |||
void | setDropdownTcentre () | |||
void | setDropdownTend () | |||
void | setTimeDropdownDefault () | |||
void | setVectorDropdownDefault () | |||
void | setArrayDropdownDefault () | |||
void | resetColour () | |||
void | selectTivlSeqSubset () | |||
void | selectTivlEvent () | |||
void | validateObjChanged (const QString &) | |||
void | validateDeletion (const QString &) | |||
void | validatePathChanged (const QString &, const QString &) | |||
void | validateCreation (const QString &) | |||
Signals | ||||
void | hadDropEvent () | |||
signal emitted drop received | ||||
void | validated_alias () | |||
Function signal that is emitted when entered text is alias on calculator list. | ||||
void | edited_OK () | |||
Function signal that is emitted when entered text is valid for the slot. | ||||
void | componentSelected (const char *, const char *) | |||
signal emitted when dropdown component menu activated for time or vector | ||||
void | TimeChosen () | |||
signal emitted when dropdown component menu selected a time | ||||
void | validated_WL_OBJ (const QString &) | |||
void | dropDetected (const char *) | |||
Public Member Functions | ||||
QguWLinput (QWidget *parent, const char *name) | ||||
Constructor of QguWLinput class. | ||||
~QguWLinput () | ||||
Destructor of QguWLinput class
| ||||
void | setDefaultComp (int targetDim, int targetIsSeq, QString &obj_name) | |||
QString | getDefaultComp (int targetDim, int targetIsSeq) | |||
QdObject_var | getSlotObject () | |||
Method that gets the QdObject from the WL on the basis of the name that is held within the line edit text. | ||||
void | setColour (int validity) | |||
Method that sets the colour of the line edit object on the basis of the validity state of the content of this object. | ||||
void | setText (QString txt) | |||
Method that sets the text in the input slot. | ||||
void | setTextKeepComp (const QString &txt) | |||
bool | compatibleComp (QdObject_var dobj, const QString &comp, bool &nowVector) | |||
void | setAliasKeepComp (const QString &txt) | |||
QString | text () | |||
Method that returns the text in the input slot. | ||||
QString | textObject () | |||
Method that returns the text in the input slot with component text removed. | ||||
double | value () | |||
Method that returns the double value in the input slot, if acceptNumber or acceptTime is true. | ||||
void | setDouble (double value) | |||
void | setCursorPosition (int posn) | |||
void | emitCmpSelected (const char *txt, const char *typ) | |||
void | setAlignment (Qt::AlignmentFlag flag) | |||
void | setMaxLength (int len) | |||
Method that sets the max text length in the underlying lineEdit. | ||||
void | setReadOnly (bool readOnly) | |||
void | clear () | |||
passes clear to contained QLineEdit
| ||||
bool | hasFocus () | |||
void | clearFocus () | |||
void | setEnabled (bool enabled) | |||
dimTripleStack | parseArrayReduce () | |||
Method that parses text in QguLineEdit and finds the array reduction requested. | ||||
dimTriple | parseTimeSlice () | |||
Method that parses text in QguLineEdit and finds the array reduction requested. | ||||
QguComp_e | getComponent () | |||
Dim_var | getSlotArrDim () | |||
bool | reValidate (bool propagate=false) | |||
bool | validateCondition (const QString &txt, Qcondition &cond) | |||
QMenu * | getDefaultPopup (int seqChoice) | |||
QMenu * | getTrangePopup () | |||
QMenu * | getTimePopup () | |||
QMenu * | getTivlFromEvtTablePopup () | |||
QMenu * | getTivlSeqSlicePopup () | |||
QMenu * | getVectorPopup () | |||
QMenu * | getArrayPopup () | |||
void | setDropdown (QMenu *dropdownChoice) | |||
void | setAcceptable (Qcondition newCondition) | |||
void | addAcceptable (Qcondition newCondition) | |||
bool | isValid () const | |||
Public Attributes | ||||
QToolButton * | dropDownArray | |||
QguLineEdit * | lineBox | |||
QguListView * | aliasList | |||
QMenu * | defaultPopup | |||
QMenu * | TrangePopup | |||
QMenu * | TimePopup | |||
QMenu * | TivlFromEvtTablePopup | |||
QMenu * | TivlSlicePopup | |||
QMenu * | vectorPopup | |||
QMenu * | arrayPopup | |||
bool | active | |||
Public flag set to signify that this QguWLinput is active (accepts input). | ||||
bool | isAlias | |||
vector< Qcondition > | acceptConditions | |||
int | with | |||
Public member defining how the list view is being saved (saved with/without data). | ||||
QString | ObjectName | |||
The WL context for the valid object or the alias name. | ||||
QString | ObjectName_nil | |||
nil string used when input did not validate OK | ||||
QdObject_var | nilObject | |||
nil object for use when invalid slot input text so that a .is)nil() object is returned | ||||
QPalette * | WLI_palette | |||
Protected Attributes | ||||
int | _validity | |||
Friends | ||||
Vostream & | operator<< (Vostream &, QguWLinput &) | |||
Vistream & | operator>> (Vistream &, QguWLinput &) |
This class specialises the QLineEdit widget which is a one-line text editor. Does so inside a box with optional drop down menu for sub-dimensions
A line edit allows the user to enter and edit a single line of plain text with a useful collection of editing functions, including undo and redo, cut and paste, and drag and drop
It inherits QGroupBox which is a built-in QT3 class
QguWLinput::QguWLinput | ( | QWidget * | parent, | |
const char * | name | |||
) |
Constructor of QguWLinput class.
parent | of type QWidget | |
name | of type const char * |
None |
QguWLinput::~QguWLinput | ( | ) |
void QguWLinput::addAcceptable | ( | Qcondition | newCondition | ) | [inline] |
void QguWLinput::clear | ( | ) |
passes clear to contained QLineEdit
None |
void QguWLinput::clearFocus | ( | ) |
bool QguWLinput::compatibleComp | ( | QdObject_var | dobj, | |
const QString & | comp, | |||
bool & | nowVector | |||
) |
void QguWLinput::componentSelected | ( | const char * | , | |
const char * | ||||
) | [signal] |
signal emitted when dropdown component menu activated for time or vector
component | of type const char *, flag of type const char * = "VECTOR" or "TIME" |
None |
void QguWLinput::dropDetected | ( | const char * | ) | [signal] |
void QguWLinput::edited_OK | ( | ) | [signal] |
Function signal that is emitted when entered text is valid for the slot.
text | validated |
None |
void QguWLinput::emitCmpSelected | ( | const char * | txt, | |
const char * | typ | |||
) | [inline] |
QMenu * QguWLinput::getArrayPopup | ( | ) |
QguComp_e QguWLinput::getComponent | ( | ) |
QString QguWLinput::getDefaultComp | ( | int | targetDim, | |
int | targetIsSeq | |||
) |
QMenu * QguWLinput::getDefaultPopup | ( | int | seqChoice | ) |
Dim_var QguWLinput::getSlotArrDim | ( | ) |
QdObject_var QguWLinput::getSlotObject | ( | ) |
Method that gets the QdObject from the WL on the basis of the name that is held within the line edit text.
Will create an object from input text (not on WL, so volatile) if slot accepts non-object input. Will return a QdObject_var containing a dimension reduced object if pulldown is used to select dimension reduction
None |
None |
QMenu * QguWLinput::getTimePopup | ( | ) |
QMenu * QguWLinput::getTivlFromEvtTablePopup | ( | ) |
QMenu * QguWLinput::getTivlSeqSlicePopup | ( | ) |
QMenu * QguWLinput::getTrangePopup | ( | ) |
QMenu * QguWLinput::getVectorPopup | ( | ) |
void QguWLinput::hadDropEvent | ( | ) | [signal] |
signal emitted drop received
None |
None |
bool QguWLinput::hasFocus | ( | ) |
bool QguWLinput::isValid | ( | ) | const |
void QguWLinput::openArrayReduce | ( | ) | [slot] |
void QguWLinput::openSelectMetadata | ( | ) | [slot] |
void QguWLinput::openSliceS | ( | ) | [slot] |
void QguWLinput::openSliceS_not_seq | ( | ) | [slot] |
void QguWLinput::openSliceS_seq | ( | ) | [slot] |
void QguWLinput::openSliceT_not_seq | ( | ) | [slot] |
void QguWLinput::openSliceT_seq | ( | ) | [slot] |
void QguWLinput::openSliceV | ( | ) | [slot] |
dimTripleStack QguWLinput::parseArrayReduce | ( | ) |
Method that parses text in QguLineEdit and finds the array reduction requested.
None |
None |
dimTriple QguWLinput::parseTimeSlice | ( | ) |
Method that parses text in QguLineEdit and finds the array reduction requested.
None |
None |
void QguWLinput::paste | ( | ) | [slot] |
void QguWLinput::resetColour | ( | ) | [slot] |
bool QguWLinput::reValidate | ( | bool | propagate = false |
) |
void QguWLinput::selectTivlEvent | ( | ) | [slot] |
void QguWLinput::selectTivlSeqSubset | ( | ) | [slot] |
void QguWLinput::setAcceptable | ( | Qcondition | newCondition | ) | [inline] |
void QguWLinput::setAliasKeepComp | ( | const QString & | txt | ) |
void QguWLinput::setAlignment | ( | Qt::AlignmentFlag | flag | ) |
void QguWLinput::setArrayDropdownDefault | ( | ) | [slot] |
void QguWLinput::setColour | ( | int | validity | ) |
Method that sets the colour of the line edit object on the basis of the validity state of the content of this object.
validity | of type const QString |
None |
void QguWLinput::setCursorPosition | ( | int | posn | ) |
void QguWLinput::setDefaultComp | ( | int | targetDim, | |
int | targetIsSeq, | |||
QString & | obj_name | |||
) |
void QguWLinput::setDouble | ( | double | value | ) |
void QguWLinput::setDropdown | ( | QMenu * | dropdownChoice | ) |
void QguWLinput::setDropdownTcentre | ( | ) | [slot] |
void QguWLinput::setDropdownTend | ( | ) | [slot] |
void QguWLinput::setDropdownText_dobj | ( | ) | [slot] |
void QguWLinput::setDropdownText_event | ( | ) | [slot] |
void QguWLinput::setDropdownText_ld | ( | ) | [slot] |
void QguWLinput::setDropdownText_lr | ( | ) | [slot] |
void QguWLinput::setDropdownText_pd | ( | ) | [slot] |
void QguWLinput::setDropdownText_pr | ( | ) | [slot] |
void QguWLinput::setDropdownText_r | ( | ) | [slot] |
void QguWLinput::setDropdownText_td | ( | ) | [slot] |
void QguWLinput::setDropdownText_tr | ( | ) | [slot] |
void QguWLinput::setDropdownText_x | ( | ) | [slot] |
void QguWLinput::setDropdownText_y | ( | ) | [slot] |
void QguWLinput::setDropdownText_z | ( | ) | [slot] |
void QguWLinput::setDropdownTstart | ( | ) | [slot] |
void QguWLinput::setEnabled | ( | bool | enabled | ) |
void QguWLinput::setMaxLength | ( | int | len | ) |
Method that sets the max text length in the underlying lineEdit.
len | of type int |
None |
void QguWLinput::setReadOnly | ( | bool | readOnly | ) |
void QguWLinput::setText | ( | QString | txt | ) |
Method that sets the text in the input slot.
txt | of type QString |
None |
void QguWLinput::setTextKeepComp | ( | const QString & | txt | ) |
void QguWLinput::setTimeDropdownDefault | ( | ) | [slot] |
void QguWLinput::setVectorDropdownDefault | ( | ) | [slot] |
QString QguWLinput::text | ( | ) |
Method that returns the text in the input slot.
None |
None |
QString QguWLinput::textObject | ( | ) |
Method that returns the text in the input slot with component text removed.
None |
None |
void QguWLinput::TimeChosen | ( | ) | [signal] |
signal emitted when dropdown component menu selected a time
None |
None |
bool QguWLinput::validateCondition | ( | const QString & | txt, | |
Qcondition & | cond | |||
) |
void QguWLinput::validateCreation | ( | const QString & | path | ) | [slot] |
void QguWLinput::validated_alias | ( | ) | [signal] |
Function signal that is emitted when entered text is alias on calculator list.
text | validated |
None |
void QguWLinput::validated_WL_OBJ | ( | const QString & | ) | [signal] |
void QguWLinput::validateDeletion | ( | const QString & | path | ) | [slot] |
bool QguWLinput::validateInput | ( | const QString & | txt | ) | [slot] |
void QguWLinput::validateObjChanged | ( | const QString & | path | ) | [slot] |
void QguWLinput::validatePathChanged | ( | const QString & | from, | |
const QString & | to | |||
) | [slot] |
double QguWLinput::value | ( | ) |
Method that returns the double value in the input slot, if acceptNumber or acceptTime is true.
None |
None |
Vostream& operator<< | ( | Vostream & | , | |
QguWLinput & | ||||
) | [friend] |
Vistream& operator>> | ( | Vistream & | , | |
QguWLinput & | ||||
) | [friend] |
int QguWLinput::_validity [protected] |
bool QguWLinput::active |
Public flag set to signify that this QguWLinput is active (accepts input).
QMenu* QguWLinput::arrayPopup |
QMenu* QguWLinput::defaultPopup |
QToolButton* QguWLinput::dropDownArray |
bool QguWLinput::isAlias |
nil object for use when invalid slot input text so that a .is)nil() object is returned
QString QguWLinput::ObjectName |
The WL context for the valid object or the alias name.
QString QguWLinput::ObjectName_nil |
nil string used when input did not validate OK
QMenu* QguWLinput::TimePopup |
QMenu* QguWLinput::TivlSlicePopup |
QMenu* QguWLinput::TrangePopup |
QMenu* QguWLinput::vectorPopup |
int QguWLinput::with |
Public member defining how the list view is being saved (saved with/without data).
QPalette* QguWLinput::WLI_palette |