QguWLinput Class Reference

This is the QguWLinput class. More...

#include <qslot.h>

List of all members.

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
Exceptions:
None. 

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
Exceptions:
None 

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
QguLineEditlineBox
QguListViewaliasList
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< QconditionacceptConditions
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

Vostreamoperator<< (Vostream &, QguWLinput &)
Vistreamoperator>> (Vistream &, QguWLinput &)


Detailed Description

This is the QguWLinput class.

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

Remarks:
{ This class includes Q_OBJECT which is a QT3 macro that is used in all sub-classes of QObject in order to benefit from the QT's Meta object system which are signals and slots mechanisms for inter-object communication, runtime type information and the dynamic property system }

Constructor & Destructor Documentation

QguWLinput::QguWLinput ( QWidget *  parent,
const char *  name 
)

Constructor of QguWLinput class.

Parameters:
parent of type QWidget
name of type const char *
Exceptions:
None 
Returns:
None

QguWLinput::~QguWLinput (  ) 

Destructor of QguWLinput class

Exceptions:
None. 

Returns:
None


Member Function Documentation

void QguWLinput::addAcceptable ( Qcondition  newCondition  )  [inline]

void QguWLinput::clear (  ) 

passes clear to contained QLineEdit

Exceptions:
None 

Returns:
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

Parameters:
component of type const char *, flag of type const char * = "VECTOR" or "TIME"
Exceptions:
None 
Returns:
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.

Parameters:
text validated
Exceptions:
None 
Returns:
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

Parameters:
None 
Exceptions:
None 
Returns:
Returns QdObject_var, nil if conversion fails

QMenu * QguWLinput::getTimePopup (  ) 

QMenu * QguWLinput::getTivlFromEvtTablePopup (  ) 

QMenu * QguWLinput::getTivlSeqSlicePopup (  ) 

QMenu * QguWLinput::getTrangePopup (  ) 

QMenu * QguWLinput::getVectorPopup (  ) 

void QguWLinput::hadDropEvent (  )  [signal]

signal emitted drop received

Parameters:
None 
Exceptions:
None 
Returns:
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.

Parameters:
None 
Exceptions:
None 
Returns:
vector <dimTriple *>

dimTriple QguWLinput::parseTimeSlice (  ) 

Method that parses text in QguLineEdit and finds the array reduction requested.

Parameters:
None 
Exceptions:
None 
Returns:
vector <dimTriple *>

void QguWLinput::paste (  )  [slot]

Slot that allows paste into contained QguLineEdit.

Parameters:
None 
Exceptions:
None 
Returns:
none

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.

Parameters:
validity of type const QString
Exceptions:
None 
Returns:
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.

Parameters:
len of type int
Exceptions:
None 
Returns:
None

void QguWLinput::setReadOnly ( bool  readOnly  ) 

void QguWLinput::setText ( QString  txt  ) 

Method that sets the text in the input slot.

Parameters:
txt of type QString
Exceptions:
None 
Returns:
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.

Parameters:
None 
Exceptions:
None 
Returns:
text of type QString

QString QguWLinput::textObject (  ) 

Method that returns the text in the input slot with component text removed.

Parameters:
None 
Exceptions:
None 
Returns:
text of type QString

void QguWLinput::TimeChosen (  )  [signal]

signal emitted when dropdown component menu selected a time

Parameters:
None 
Exceptions:
None 
Returns:
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.

Parameters:
text validated
Exceptions:
None 
Returns:
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.

Parameters:
None 
Exceptions:
None 
Returns:
double


Friends And Related Function Documentation

Vostream& operator<< ( Vostream ,
QguWLinput  
) [friend]

Vistream& operator>> ( Vistream ,
QguWLinput  
) [friend]


Member Data Documentation

int QguWLinput::_validity [protected]

Public flag set to signify that this QguWLinput is active (accepts input).

nil object for use when invalid slot input text so that a .is)nil() object is returned

The WL context for the valid object or the alias name.

nil string used when input did not validate OK

Public member defining how the list view is being saved (saved with/without data).


The documentation for this class was generated from the following files:

Generated on Fri Jan 8 12:51:29 2010 for QSAS by  doxygen 1.5.7