okteta
#include <datainformationwithchildren.h>
Public Member Functions | |
DataInformationWithChildren (const QString &name, const QVector< DataInformation * > &children=QVector< DataInformation * >(), DataInformation *parent=0) | |
virtual | ~DataInformationWithChildren () |
void | appendChild (DataInformation *child, bool emitSignal=true) |
void | appendChildren (const QVector< DataInformation * > &newChildren, bool emitSignal=true) |
virtual void | calculateValidationState () |
virtual bool | canHaveChildren () const |
virtual DataInformation * | childAt (unsigned int index) const |
virtual unsigned int | childCount () const |
virtual QVariant | childData (int row, int column, int role) const |
virtual QWidget * | createEditWidget (QWidget *parent) const |
virtual QVariant | dataFromWidget (const QWidget *w) const |
virtual int | indexOf (const DataInformation *const data) const |
virtual bool | replaceChildAt (unsigned int index, DataInformation *newChild) |
virtual void | resetValidationState () |
void | setChildren (const QVector< DataInformation * > &newChildren) |
void | setChildren (QScriptValue newChildren) |
virtual bool | setData (const QVariant &value, Okteta::AbstractByteArrayModel *out, Okteta::Address address, BitCount64 bitsRemaining, quint8 bitOffset) |
virtual void | setWidgetData (QWidget *w) const |
virtual BitCount32 | size () const |
virtual QString | tooltipString () const |
Public Member Functions inherited from DataInformation | |
DataInformation (const QString &name, DataInformationBase *parent=NULL) | |
virtual | ~DataInformation () |
void | beginRead () |
DataInformationEndianess | byteOrder () const |
virtual DataInformation * | child (const QString &name) const |
virtual BitCount64 | childPosition (const DataInformation *child, Okteta::Address start) const =0 |
virtual DataInformation * | clone () const =0 |
virtual QVariant | data (int column, int role) const |
QSysInfo::Endian | effectiveByteOrder () const |
virtual Qt::ItemFlags | flags (int column, bool fileLoaded=true) const |
QString | fullObjectPath () const |
bool | hasBeenUpdated () const |
bool | hasBeenValidated () const |
virtual bool | isTopLevel () const |
QDebug | logError () const |
ScriptLogger::LogLevel | loggedData () const |
ScriptLogger * | logger () const |
QDebug | logInfo () const |
QDebug | logWarn () const |
DataInformation * | mainStructure () |
QString | name () const |
DataInformationBase * | parent () const |
virtual BitCount64 | positionInFile (Okteta::Address start) const |
virtual qint64 | readData (Okteta::AbstractByteArrayModel *input, Okteta::Address address, BitCount64 bitsRemaining, quint8 *bitOffset)=0 |
int | row () const |
void | setByteOrder (DataInformationEndianess newEndianess) |
void | setCustomTypeName (const QString &customTypeName) |
void | setLoggedData (ScriptLogger::LogLevel lvl) const |
void | setName (const QString &newName) |
void | setParent (DataInformationBase *newParent) |
void | setToStringFunction (const QScriptValue &value) |
void | setUpdateFunc (const QScriptValue &func) |
void | setValidationFunc (const QScriptValue &func) |
virtual QString | sizeString () const |
TopLevelDataInformation * | topLevelDataInformation () const |
virtual QScriptValue | toScriptValue (QScriptEngine *engine, ScriptHandlerInfo *handlerInfo) |
QScriptValue | toScriptValue (TopLevelDataInformation *top) |
QScriptValue | toStringFunction () const |
QString | typeName () const |
QScriptValue | updateFunc () const |
QString | validationError () const |
QScriptValue | validationFunc () const |
bool | validationSuccessful () const |
QString | valueString () const |
bool | wasAbleToRead () const |
Public Member Functions inherited from DataInformationBase | |
DataInformationBase () | |
virtual | ~DataInformationBase () |
ArrayDataInformation * | asArray () |
const ArrayDataInformation * | asArray () const |
AbstractBitfieldDataInformation * | asBitfield () |
const AbstractBitfieldDataInformation * | asBitfield () const |
DataInformation * | asDataInformation () |
const DataInformation * | asDataInformation () const |
DummyDataInformation * | asDummy () |
const DummyDataInformation * | asDummy () const |
EnumDataInformation * | asEnum () |
const EnumDataInformation * | asEnum () const |
PointerDataInformation * | asPointer () |
const PointerDataInformation * | asPointer () const |
PrimitiveDataInformation * | asPrimitive () |
const PrimitiveDataInformation * | asPrimitive () const |
StringDataInformation * | asString () |
const StringDataInformation * | asString () const |
StructureDataInformation * | asStruct () |
const StructureDataInformation * | asStruct () const |
TaggedUnionDataInformation * | asTaggedUnion () |
const TaggedUnionDataInformation * | asTaggedUnion () const |
TopLevelDataInformation * | asTopLevel () |
const TopLevelDataInformation * | asTopLevel () const |
UnionDataInformation * | asUnion () |
const UnionDataInformation * | asUnion () const |
virtual bool | isArray () const |
virtual bool | isBitfield () const |
virtual bool | isDummy () const |
virtual bool | isEnum () const |
virtual bool | isPointer () const |
virtual bool | isPrimitive () const |
virtual bool | isString () const |
virtual bool | isStruct () const |
virtual bool | isTaggedUnion () const |
virtual bool | isUnion () const |
Static Public Member Functions | |
static QVector< DataInformation * > | cloneList (const QVector< DataInformation * > &other, DataInformation *parent) |
Protected Member Functions | |
DataInformationWithChildren (const DataInformationWithChildren &d) | |
virtual QScriptClass * | scriptClass (ScriptHandlerInfo *handlerInfo) const |
Protected Member Functions inherited from DataInformation | |
DataInformation (const DataInformation &) | |
void | setAdditionalFunction (AdditionalData::AdditionalDataType entry, const QScriptValue &value, const char *name) |
Protected Attributes | |
QVector< DataInformation * > | mChildren |
Protected Attributes inherited from DataInformation | |
AdditionalData | mAdditionalData |
DataInformationEndianess | mByteOrder:2 |
bool | mHasBeenUpdated:1 |
bool | mHasBeenValidated:1 |
ScriptLogger::LogLevel | mLoggedData:2 |
QString | mName |
DataInformationBase * | mParent |
bool | mValidationSuccessful:1 |
bool | mWasAbleToRead:1 |
Additional Inherited Members | |
Public Types inherited from DataInformation | |
enum | Columns { ColumnName = 0, ColumnType, ColumnValue, COLUMN_COUNT } |
enum | DataInformationEndianess { EndianessFromSettings = 0, EndianessInherit, EndianessLittle, EndianessBig } |
Static Protected Member Functions inherited from DataInformation | |
static QVariant | eofReachedData (int role) |
Detailed Description
Definition at line 29 of file datainformationwithchildren.h.
Constructor & Destructor Documentation
|
explicitprotected |
Definition at line 61 of file datainformationwithchildren.cpp.
|
explicit |
Definition at line 53 of file datainformationwithchildren.cpp.
|
virtual |
Definition at line 48 of file datainformationwithchildren.cpp.
Member Function Documentation
void DataInformationWithChildren::appendChild | ( | DataInformation * | child, |
bool | emitSignal = true |
||
) |
Takes ownership!
Definition at line 186 of file datainformationwithchildren.cpp.
void DataInformationWithChildren::appendChildren | ( | const QVector< DataInformation * > & | newChildren, |
bool | emitSignal = true |
||
) |
Takes ownership of all elements.
Definition at line 196 of file datainformationwithchildren.cpp.
|
virtual |
Definition at line 104 of file datainformationwithchildren.cpp.
|
inlinevirtual |
true for unions and structs and arrays
Implements DataInformation.
Definition at line 82 of file datainformationwithchildren.h.
|
virtual |
Implements DataInformation.
Reimplemented in TaggedUnionDataInformation.
Definition at line 34 of file datainformationwithchildren.cpp.
|
inlinevirtual |
Implements DataInformation.
Reimplemented in TaggedUnionDataInformation.
Definition at line 77 of file datainformationwithchildren.h.
|
virtual |
Definition at line 179 of file datainformationwithchildren.cpp.
|
static |
Definition at line 255 of file datainformationwithchildren.cpp.
create a QWidget for the QItemDelegate
Implements DataInformation.
Definition at line 66 of file datainformationwithchildren.cpp.
|
virtual |
get the needed data from the widget
Implements DataInformation.
Definition at line 72 of file datainformationwithchildren.cpp.
|
virtual |
Find the index of a DataInformation in this object, needed to calculate the row.
- Returns
- the index of
data
or -1 if not found
Implements DataInformation.
Reimplemented in TaggedUnionDataInformation.
Definition at line 165 of file datainformationwithchildren.cpp.
|
virtual |
replaces child at index
with newChild
.
- Parameters
-
index the index of the child newChild the new child (ownership is taken if replacing is successful, otherwise it must be deleted)
- Returns
- true if replacing was successful, false otherwise
Reimplemented in TaggedUnionDataInformation.
Definition at line 210 of file datainformationwithchildren.cpp.
|
virtual |
Reimplemented from DataInformation.
Definition at line 95 of file datainformationwithchildren.cpp.
|
protectedvirtual |
So that this object can be wrapped by the correct javascript object.
Implements DataInformation.
Definition at line 222 of file datainformationwithchildren.cpp.
void DataInformationWithChildren::setChildren | ( | const QVector< DataInformation * > & | newChildren | ) |
Definition at line 135 of file datainformationwithchildren.cpp.
void DataInformationWithChildren::setChildren | ( | QScriptValue | newChildren | ) |
Definition at line 153 of file datainformationwithchildren.cpp.
|
virtual |
Writes the current data contained in this object to out.
Implements DataInformation.
Definition at line 41 of file datainformationwithchildren.cpp.
|
virtual |
initialize the delegate widget with the correct data
Implements DataInformation.
Definition at line 79 of file datainformationwithchildren.cpp.
|
virtual |
the size in bits of this element
Implements DataInformation.
Reimplemented in TaggedUnionDataInformation, and UnionDataInformation.
Definition at line 85 of file datainformationwithchildren.cpp.
|
virtual |
Reimplemented from DataInformation.
Definition at line 227 of file datainformationwithchildren.cpp.
Member Data Documentation
|
protected |
Definition at line 32 of file datainformationwithchildren.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.