#include <filterexpression.h>
Public Member Functions | |
FilterExpression (NSCore::QTreeItem *) | |
QString | debug () const |
Custom debug text. | |
double | value (NSCore::AcqisitionDataSet &data) |
Abstract function that does the work. | |
QVariant | guiValue () const |
GUI: return a/the value to display. | |
void | guiSetValue (QVariant n) |
GUI: set the value. | |
Qt::ItemFlags | guiFlags () const |
GUI: the Flags for this item. | |
Protected Member Functions | |
QDomNode | saveToXML (QDomDocument) |
Store the information of this element into a new QDomElement. | |
bool | restoreFromXML (QDomNode) |
Restore the state of this element from the given QDomNode. | |
Private Attributes | |
bool | filter |
NSEvaluation::FilterExpression::FilterExpression | ( | NSCore::QTreeItem * | ) |
QString NSEvaluation::FilterExpression::debug | ( | ) | const [inline, virtual] |
Custom debug text.
This function has to be implemented and has to return the internal debug-data that is to be printed...
Reimplemented from NSCore::MathTreeRoot.
double NSEvaluation::FilterExpression::value | ( | NSCore::AcqisitionDataSet & | ) | [virtual] |
Abstract function that does the work.
This has to be implemented to do the work.
Reimplemented from NSCore::MathTreeRoot.
QVariant NSEvaluation::FilterExpression::guiValue | ( | ) | const [inline, virtual] |
GUI: return a/the value to display.
If you implement this, always remember to call the parent guiValue() if you can't return the right thing.
Reimplemented from NSCore::QTreeItem.
References filter.
void NSEvaluation::FilterExpression::guiSetValue | ( | QVariant | ) | [virtual] |
GUI: set the value.
This function will be called by GUIs to change the value. You should implement it accordingly.
Reimplemented from NSCore::QTreeItem.
Qt::ItemFlags NSEvaluation::FilterExpression::guiFlags | ( | ) | const [inline, virtual] |
GUI: the Flags for this item.
Reimplemented from NSCore::QTreeItem.
References NSCore::QTreeItem::guiFlags().
QDomNode NSEvaluation::FilterExpression::saveToXML | ( | QDomDocument | doc | ) | [protected, virtual] |
Store the information of this element into a new QDomElement.
This function is only to save the state of this element, all the recursive stuff will be done by toXml().
doc | The QDomDocument to use for creation of the element |
Reimplemented from NSCore::MathTreeRoot.
bool NSEvaluation::FilterExpression::restoreFromXML | ( | QDomNode | node | ) | [protected, virtual] |
Restore the state of this element from the given QDomNode.
You don't have to do the recursive stuff here, that is handled in fromXml() for you. Only the things done in saveToXML need/can be restored here.
If you succeeded and want the childs to be restored too, return true.
node | The QDomNode to restore from |
Reimplemented from NSCore::MathTreeRoot.
bool NSEvaluation::FilterExpression::filter [private] |
Referenced by guiValue().