#include <qcalc.h>
Public Member Functions | |
QcalcListVirtualItem (QguListView *parent=0, QString txt="", QString WL="", QguListType type=ListTypeEntry, QguListItem *after=0) | |
QcalcListVirtualItem (QguListItem *parent=0, QString txt="", QString WL="", QguListType type=ListTypeEntry, QguListItem *after=0) | |
~QcalcListVirtualItem () | |
void | setChoices () |
void | QcalcInitItem (QString txt, QString WL, QguListType type) |
QString | GetNextAliaseName () |
bool | AliasAlreadyUsed (QString name) |
QdObject_var | getDataObject () |
Dim_var | getVirtualArrDim () |
virtual bool | validateLink (bool valid) |
Method that checks that the WL context of an item still refers to a valid item on the working list. | |
bool | setArrayFlags () |
void | SetItemVirtualName (bool bEmitChange=true) |
QdObject_var | getResultObject () |
void | DoMathOperation () |
void | DoOperation () |
bool | CheckOperatorSelfLink (QString &rqstrAliase) |
void | reNameAlias (const QString &NewVal) |
bool | getIsVector () |
bool | getIsArray () |
Public Attributes | |
ItemTypeEnum | m_eObjType |
QdObject_var | m_qdObjJoinedFirst |
QString | m_alias_cpy |
QString | m_qstrOperator |
int | m_nOp |
QdObject_var | m_qdObjResult |
bool | m_bCalcDone |
bool | m_bFilled |
QcalcTab * | m_pcalcTab |
QString | m_NameForSave |
int | isIvlObj |
int | isTagObj |
bool | ObjIsVec |
Those options are: the list of operands, the operator, working list name, virtual name (which is the operation name e.g. a + b),
the angle unit (if trigonometric operation), vector component (if vector decomposition operation), a pointer to the related tab
(created when an operation is added to the list view), a flag that signifies if the object is a constant float and a QdObject_var member for storing either the result of the operation or the constant float value. The main member functions are:
QcalcListVirtualItem::DoOperation() and QcalcListVirtualItem::DoMathOperation() that are recursively called from within the main loop of QcalcWindow::DoCalculation().
QcalcListVirtualItem::QcalcListVirtualItem | ( | QguListView * | parent = 0 , |
|
QString | txt = "" , |
|||
QString | WL = "" , |
|||
QguListType | type = ListTypeEntry , |
|||
QguListItem * | after = 0 | |||
) |
QcalcListVirtualItem::QcalcListVirtualItem | ( | QguListItem * | parent = 0 , |
|
QString | txt = "" , |
|||
QString | WL = "" , |
|||
QguListType | type = ListTypeEntry , |
|||
QguListItem * | after = 0 | |||
) |
QcalcListVirtualItem::~QcalcListVirtualItem | ( | ) |
bool QcalcListVirtualItem::AliasAlreadyUsed | ( | QString | name | ) |
bool QcalcListVirtualItem::CheckOperatorSelfLink | ( | QString & | rqstrAliase | ) |
void QcalcListVirtualItem::DoMathOperation | ( | ) |
void QcalcListVirtualItem::DoOperation | ( | ) |
QdObject_var QcalcListVirtualItem::getDataObject | ( | ) |
bool QcalcListVirtualItem::getIsArray | ( | ) |
bool QcalcListVirtualItem::getIsVector | ( | ) |
QString QcalcListVirtualItem::GetNextAliaseName | ( | ) |
QdObject_var QcalcListVirtualItem::getResultObject | ( | ) |
Dim_var QcalcListVirtualItem::getVirtualArrDim | ( | ) |
void QcalcListVirtualItem::QcalcInitItem | ( | QString | txt, | |
QString | WL, | |||
QguListType | type | |||
) |
void QcalcListVirtualItem::reNameAlias | ( | const QString & | NewVal | ) |
bool QcalcListVirtualItem::setArrayFlags | ( | ) |
void QcalcListVirtualItem::setChoices | ( | ) |
void QcalcListVirtualItem::SetItemVirtualName | ( | bool | bEmitChange = true |
) |
bool QcalcListVirtualItem::validateLink | ( | bool | valid | ) | [virtual] |
Method that checks that the WL context of an item still refers to a valid item on the working list.
valid | of bool type |
None |
Reimplemented from QguListItem.