#include <qgu.h>
Public Slots | ||||
void | validateInput (const QString &) | |||
Method that validates the input string txt. | ||||
void | sendTextChanged (const QString &) | |||
emits textChanged signal to trigger validation. Traps changes made by validator itself
| ||||
void | reValidate () | |||
Method that validates the content of the line edit object. | ||||
void | paste () | |||
Slot that allows paste into contained QguLineEdit. | ||||
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 () | |||
void | openSliceS () | |||
void | openSliceV () | |||
void | openSliceVP () | |||
void | openSelectMetadata () | |||
void | setDropdownTstart () | |||
void | setDropdownTcentre () | |||
void | setDropdownTend () | |||
void | resetColour () | |||
void | selectTivlSeqSubset () | |||
void | selectTivlEvent () | |||
Signals | ||||
void | hadDropEvent () | |||
signal emitted drop received | ||||
void | validated_alias (const QString &) | |||
void | validated_WL_OBJ (const QString &) | |||
void | validated_number (const QString &) | |||
void | validated_TEXT (const QString &) | |||
void | validated_OK () | |||
Function signal that is emitted when any data being entered has been validated with success. | ||||
void | validated_WARN () | |||
Function signal that is emitted when text entered is incomplete, but valid so far. | ||||
void | validated_NOT_OK () | |||
Function signal that is emitted when text entered is not compatible with slot requirements. | ||||
void | validated_EMPTY () | |||
Function signal that is emitted when line input object does not contain any text. | ||||
void | validated_INACTIVE () | |||
Function signal that is emitted when the line input object is set inactive. | ||||
void | textChanged (const QString &) | |||
signal emitted when input text changes | ||||
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 | dropDetected (const char *) | |||
Public Member Functions | ||||
QguWLinput (QWidget *parent, const char *name) | ||||
Constructor of QguWLinput class. | ||||
~QguWLinput () | ||||
Destructor of QguWLinput class
| ||||
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 (const QString 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 | setAlignment (int flag) | |||
Method that sets the text alignment in the underlying lineEdit. | ||||
void | setMaxLength (int len) | |||
Method that sets the max text length in the underlying lineEdit. | ||||
bool | edited () | |||
Method that returns the edited flag from this slot. | ||||
void | setEdited (bool hasBeenEdited) | |||
Method that sets the edited flag from this slot. | ||||
bool | setDropdownActive (QdObject_var dobj, const bool toScalar, bool isVect, bool useTimeSlicer) | |||
This method shows/hides the dropDown arrow if dimension reduction is possible. | ||||
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 () | |||
void | emitCmpSelected (const char *cmpTxt, const char *cmpType) | |||
bool | isTimeSelection () | |||
Q_POPUP_MENU * | getDefaultPopup () | |||
Q_POPUP_MENU * | getDefaultPopupSlice () | |||
Q_POPUP_MENU * | getTrangePopup () | |||
Q_POPUP_MENU * | getTivlPopup () | |||
Q_POPUP_MENU * | getTivlPopupPlus () | |||
Q_POPUP_MENU * | getTivlFromEvtTablePopup () | |||
Q_POPUP_MENU * | getTivlSeqSlicePopup () | |||
Q_POPUP_MENU * | getVectorPopup () | |||
Q_POPUP_MENU * | getVectorPopupPlus () | |||
Q_POPUP_MENU * | getVectorPopupSlice () | |||
Q_POPUP_MENU * | getVectorPopupPlusSlice () | |||
Q_POPUP_MENU * | getArrayPopup () | |||
Q_POPUP_MENU * | getArrayPopupPlus () | |||
Public Attributes | ||||
QToolButton * | dropDownArray | |||
QguLineEdit * | lineBox | |||
QguListView * | aliasList | |||
Q_POPUP_MENU * | defaultPopup | |||
Q_POPUP_MENU * | defaultPopupSlice | |||
Q_POPUP_MENU * | TivlPopup | |||
Q_POPUP_MENU * | TivlPopupPlus | |||
Q_POPUP_MENU * | TivlFromEvtTablePopup | |||
Q_POPUP_MENU * | TivlSlicePopup | |||
Q_POPUP_MENU * | TrangePopup | |||
Q_POPUP_MENU * | vectorPopup | |||
Q_POPUP_MENU * | vectorPopupPlus | |||
Q_POPUP_MENU * | vectorPopupSlice | |||
Q_POPUP_MENU * | vectorPopupPlusSlice | |||
Q_POPUP_MENU * | arrayPopup | |||
Q_POPUP_MENU * | arrayPopupPlus | |||
bool | reduce3Dto1 | |||
bool | reduce3DtoScalar | |||
bool | active | |||
Public flag set to signify that this QguWLinput is active (accepts input). | ||||
bool | acceptNumber | |||
Public flag, true implies QguWLinput accepts numerical input (using atof() from text input). | ||||
bool | acceptInteger | |||
Public flag, true implies QguWLinput accepts integer input (using atoi() from text input). | ||||
bool | acceptObject | |||
Public flag, true implies QguWLinput accepts QdObject_var input. | ||||
bool | acceptObjectPlus | |||
Public flag, true implies QguWLinput accepts QdObject_var input permitting dimension reduction. | ||||
bool | acceptObjectMinus | |||
Public flag, true implies QguWLinput accepts QdObject_var input only for dimension reduction. | ||||
bool | acceptScalarObject | |||
Public flag, true implies QguWLinput accepts QdRScalar_var and QdRScalarSeq_var input. | ||||
bool | acceptVectorObject | |||
Public flag, true implies QguWLinput accepts QdRMatrix_var and QdRMatrixSeq_var input that satisfies QuIsThreeVector. | ||||
bool | acceptArrayObject | |||
Public flag, true implies QguWLinput accepts QdRMatrix_var and QdRMatrixSeq_var input. | ||||
bool | acceptObjectPlus_TSonly | |||
Public flag, true implies QguWLinput accepts any input if it has TIME_TAGS xref. | ||||
bool | acceptScalarObject_TSonly | |||
Public flag, true implies QguWLinput accepts QdRScalar_var and QdRScalarSeq_var input if it has TIME_TAGS xref. | ||||
bool | acceptVectorObject_TSonly | |||
Public flag, true implies QguWLinput accepts QdRMatrix_var input if it has TIME_TAGS xref, that satisfies QuIsThreeVector,. | ||||
bool | acceptArrayObject_TSonly | |||
Public flag, true implies QguWLinput accepts QdRMatrix_var input if it has TIME_TAGS xref. | ||||
bool | acceptTTagObject | |||
Public flag, true implies QguWLinput accepts QdTimeSequenace_var or QdObject_var input with a TIME_TAGS xref. | ||||
bool | acceptTIvlObject | |||
Public flag, true implies QguWLinput accepts QdTimeInterval_var input. | ||||
bool | acceptTIvlSeqObject | |||
Public flag, true implies QguWLinput accepts QdTimeIntervalSeq_var input. | ||||
bool | acceptDuration | |||
Public flag, true implies QguWLinput accepts number input to be used as time duration. | ||||
bool | acceptTimeObject | |||
Public flag, true implies QguWLinput accepts QdTime_var input. | ||||
bool | acceptText | |||
Public flag, true implies QguWLinput accepts any keyboard text input. | ||||
bool | acceptTime | |||
Public flag, true implies QguWLinput accepts any valid ISO time text string input. | ||||
bool | acceptAliasToScalar | |||
Public flag, true if slot accepts a name on the specified QguListView * aliasList. Restricted to Scalar. | ||||
bool | acceptAliasToVector | |||
Public flag, true if slot accepts a name on the specified QguListView * aliasList. Restricted to Vector. | ||||
bool | acceptAlias | |||
Public flag, true if slot accepts a name on the specified QguListView * aliasList. | ||||
bool | acceptTimeSlice | |||
Public flag, true if slot accepts slice or average down to single time. | ||||
bool | acceptTimeSubset | |||
Public flag, true if slot accepts slice, average down or subset on time. | ||||
bool | refresh | |||
local flag to trap re-validation following a refresh of the input during validation. No infinite loop. | ||||
int | with | |||
Public member defining how the list view is being saved (saved with/without data). | ||||
bool | beenEdited | |||
flag to show a manual edit has taken place | ||||
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 | ||||
QString | objType | |||
the type of object resloved to, "text", "object", "number", "timeString" | ||||
QdObject_var | nilObject | |||
nil object for use when invalid slot input text so that a .is)nil() object is returned | ||||
bool | slotObjVector | |||
flag for current item is vector | ||||
bool | slotObjArray | |||
flag for current item is array | ||||
bool | userChoice | |||
flag to let initialisation of Time object without validation to time string | ||||
bool | canEmitCmpSel | |||
QPalette * | WLI_palette | |||
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 Q_H_GROUP_BOX 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::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] |
bool QguWLinput::edited | ( | ) |
Method that returns the edited flag from this slot.
None |
None |
void QguWLinput::emitCmpSelected | ( | const char * | cmpTxt, | |
const char * | cmpType | |||
) |
Q_POPUP_MENU * QguWLinput::getArrayPopup | ( | ) |
Q_POPUP_MENU * QguWLinput::getArrayPopupPlus | ( | ) |
QguComp_e QguWLinput::getComponent | ( | ) |
Q_POPUP_MENU * QguWLinput::getDefaultPopup | ( | ) |
Q_POPUP_MENU * QguWLinput::getDefaultPopupSlice | ( | ) |
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 |
Q_POPUP_MENU * QguWLinput::getTivlFromEvtTablePopup | ( | ) |
Q_POPUP_MENU * QguWLinput::getTivlPopup | ( | ) |
Q_POPUP_MENU * QguWLinput::getTivlPopupPlus | ( | ) |
Q_POPUP_MENU * QguWLinput::getTivlSeqSlicePopup | ( | ) |
Q_POPUP_MENU * QguWLinput::getTrangePopup | ( | ) |
Q_POPUP_MENU * QguWLinput::getVectorPopup | ( | ) |
Q_POPUP_MENU * QguWLinput::getVectorPopupPlus | ( | ) |
Q_POPUP_MENU * QguWLinput::getVectorPopupPlusSlice | ( | ) |
Q_POPUP_MENU * QguWLinput::getVectorPopupSlice | ( | ) |
void QguWLinput::hadDropEvent | ( | ) | [signal] |
signal emitted drop received
None |
None |
bool QguWLinput::hasFocus | ( | ) |
bool QguWLinput::isTimeSelection | ( | ) |
void QguWLinput::openArrayReduce | ( | ) | [slot] |
void QguWLinput::openSelectMetadata | ( | ) | [slot] |
void QguWLinput::openSliceS | ( | ) | [slot] |
void QguWLinput::openSliceT | ( | ) | [slot] |
void QguWLinput::openSliceV | ( | ) | [slot] |
void QguWLinput::openSliceVP | ( | ) | [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] |
void QguWLinput::reValidate | ( | ) | [slot] |
Method that validates the content of the line edit object.
None |
None |
void QguWLinput::selectTivlEvent | ( | ) | [slot] |
void QguWLinput::selectTivlSeqSubset | ( | ) | [slot] |
void QguWLinput::sendTextChanged | ( | const QString & | txt | ) | [slot] |
emits textChanged signal to trigger validation. Traps changes made by validator itself
None |
void QguWLinput::setAliasKeepComp | ( | const QString & | txt | ) |
void QguWLinput::setAlignment | ( | int | flag | ) |
Method that sets the text alignment in the underlying lineEdit.
flag | of type int |
None |
void QguWLinput::setColour | ( | const QString | 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::setDouble | ( | double | value | ) |
bool QguWLinput::setDropdownActive | ( | QdObject_var | dobj, | |
const bool | toScalar, | |||
bool | isVec, | |||
bool | useTimeSlicer | |||
) |
This method shows/hides the dropDown arrow if dimension reduction is possible.
dobj | of type QdObject_var | |
toScalar | flag of type bool | |
isVec | flag of type bool | |
useTimeSlicer | flag of type bool |
None |
void QguWLinput::setDropdownTcentre | ( | ) | [slot] |
void QguWLinput::setDropdownTend | ( | ) | [slot] |
void QguWLinput::setDropdownText_dobj | ( | ) | [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::setEdited | ( | bool | hasBeenEdited | ) |
Method that sets the edited flag from this slot.
hasBeenEdited | of type bool |
None |
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 | ) |
QString QguWLinput::text | ( | ) |
Method that returns the text in the input slot.
None |
None |
void QguWLinput::textChanged | ( | const QString & | ) | [signal] |
signal emitted when input text changes
txt | of type QString |
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 |
void QguWLinput::validated_alias | ( | const QString & | ) | [signal] |
void QguWLinput::validated_EMPTY | ( | ) | [signal] |
Function signal that is emitted when line input object does not contain any text.
None |
None |
void QguWLinput::validated_INACTIVE | ( | ) | [signal] |
Function signal that is emitted when the line input object is set inactive.
None |
None |
void QguWLinput::validated_NOT_OK | ( | ) | [signal] |
Function signal that is emitted when text entered is not compatible with slot requirements.
None |
None |
void QguWLinput::validated_number | ( | const QString & | ) | [signal] |
void QguWLinput::validated_OK | ( | ) | [signal] |
Function signal that is emitted when any data being entered has been validated with success.
None |
None |
void QguWLinput::validated_TEXT | ( | const QString & | ) | [signal] |
void QguWLinput::validated_WARN | ( | ) | [signal] |
Function signal that is emitted when text entered is incomplete, but valid so far.
None |
None |
void QguWLinput::validated_WL_OBJ | ( | const QString & | ) | [signal] |
void QguWLinput::validateInput | ( | const QString & | txt | ) | [slot] |
Method that validates the input string txt.
txt | of type const QString |
None |
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] |
Public flag, true if slot accepts a name on the specified QguListView * aliasList.
Public flag, true if slot accepts a name on the specified QguListView * aliasList. Restricted to Scalar.
Public flag, true if slot accepts a name on the specified QguListView * aliasList. Restricted to Vector.
Public flag, true implies QguWLinput accepts QdRMatrix_var and QdRMatrixSeq_var input.
Public flag, true implies QguWLinput accepts QdRMatrix_var input if it has TIME_TAGS xref.
Public flag, true implies QguWLinput accepts number input to be used as time duration.
Public flag, true implies QguWLinput accepts integer input (using atoi() from text input).
Public flag, true implies QguWLinput accepts numerical input (using atof() from text input).
Public flag, true implies QguWLinput accepts QdObject_var input.
Public flag, true implies QguWLinput accepts QdObject_var input only for dimension reduction.
Public flag, true implies QguWLinput accepts QdObject_var input permitting dimension reduction.
Public flag, true implies QguWLinput accepts any input if it has TIME_TAGS xref.
Public flag, true implies QguWLinput accepts QdRScalar_var and QdRScalarSeq_var input.
Public flag, true implies QguWLinput accepts QdRScalar_var and QdRScalarSeq_var input if it has TIME_TAGS xref.
Public flag, true implies QguWLinput accepts any keyboard text input.
Public flag, true implies QguWLinput accepts any valid ISO time text string input.
Public flag, true implies QguWLinput accepts QdTime_var input.
Public flag, true if slot accepts slice or average down to single time.
Public flag, true if slot accepts slice, average down or subset on time.
Public flag, true implies QguWLinput accepts QdTimeInterval_var input.
Public flag, true implies QguWLinput accepts QdTimeIntervalSeq_var input.
Public flag, true implies QguWLinput accepts QdTimeSequenace_var or QdObject_var input with a TIME_TAGS xref.
Public flag, true implies QguWLinput accepts QdRMatrix_var and QdRMatrixSeq_var input that satisfies QuIsThreeVector.
Public flag, true implies QguWLinput accepts QdRMatrix_var input if it has TIME_TAGS xref, that satisfies QuIsThreeVector,.
bool QguWLinput::active |
Public flag set to signify that this QguWLinput is active (accepts input).
Q_POPUP_MENU* QguWLinput::arrayPopup |
Q_POPUP_MENU* QguWLinput::arrayPopupPlus |
flag to show a manual edit has taken place
Q_POPUP_MENU* QguWLinput::defaultPopup |
Q_POPUP_MENU* QguWLinput::defaultPopupSlice |
QToolButton* QguWLinput::dropDownArray |
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
QString QguWLinput::objType |
the type of object resloved to, "text", "object", "number", "timeString"
bool QguWLinput::refresh |
local flag to trap re-validation following a refresh of the input during validation. No infinite loop.
flag for current item is array
flag for current item is vector
Q_POPUP_MENU* QguWLinput::TivlFromEvtTablePopup |
Q_POPUP_MENU* QguWLinput::TivlPopup |
Q_POPUP_MENU* QguWLinput::TivlPopupPlus |
Q_POPUP_MENU* QguWLinput::TivlSlicePopup |
Q_POPUP_MENU* QguWLinput::TrangePopup |
flag to let initialisation of Time object without validation to time string
Q_POPUP_MENU* QguWLinput::vectorPopup |
Q_POPUP_MENU* QguWLinput::vectorPopupPlus |
Q_POPUP_MENU* QguWLinput::vectorPopupPlusSlice |
Q_POPUP_MENU* QguWLinput::vectorPopupSlice |
int QguWLinput::with |
Public member defining how the list view is being saved (saved with/without data).
QPalette* QguWLinput::WLI_palette |