okteta
datainformationwithchildren.cpp
Go to the documentation of this file.
189 topLevelDataInformation()->_childCountAboutToChange(this, mChildren.size(), mChildren.size() + 1);
196 void DataInformationWithChildren::appendChildren(const QVector<DataInformation*>& newChildren, bool emitSignal)
202 topLevelDataInformation()->_childCountAboutToChange(this, mChildren.size(), mChildren.size() + added);
207 topLevelDataInformation()->_childCountChanged(this, mChildren.size(), mChildren.size() + added);
255 QVector<DataInformation*> DataInformationWithChildren::cloneList(const QVector<DataInformation*>& other,
QString valueString() const
by default just returns an empty QString
Definition: datainformation.h:414
Interface that must be implemented by all datatypes.
Definition: datainformation.h:67
could it be useful to hide the data access behind an iterator? * class KDataBufferIterator { public: ...
Definition: abstractbytearraymodel.h:79
TopLevelDataInformation * topLevelDataInformation() const
Definition: datainformation.cpp:240
virtual unsigned int childCount() const
Definition: datainformationwithchildren.h:77
void _childCountAboutToChange(DataInformation *sender, uint oldCount, uint newCount)
Definition: topleveldatainformation.h:184
void _childCountChanged(DataInformation *sender, uint oldCount, uint newCount)
Definition: topleveldatainformation.h:192
virtual ~DataInformationWithChildren()
Definition: datainformationwithchildren.cpp:48
QVector< DataInformation * > convertValues(const QScriptValue &value, ScriptLogger *logger, DataInformation *parent)
If the value is a list of elements or an object with many elements.
Definition: scriptvalueconverter.cpp:44
QVector< DataInformation * > mChildren
Definition: datainformationwithchildren.h:32
void appendChild(DataInformation *child, bool emitSignal=true)
Takes ownership!
Definition: datainformationwithchildren.cpp:186
QScopedPointer< StructUnionScriptClass > mStructUnionClass
Definition: scripthandlerinfo.h:53
void setChildren(const QVector< DataInformation * > &newChildren)
Definition: datainformationwithchildren.cpp:135
virtual QScriptClass * scriptClass(ScriptHandlerInfo *handlerInfo) const
So that this object can be wrapped by the correct javascript object.
Definition: datainformationwithchildren.cpp:222
virtual DataInformation * childAt(unsigned int index) const
Definition: datainformationwithchildren.cpp:34
virtual QString sizeString() const
needs to be virtual for bitfields
Definition: datainformation.cpp:56
virtual int indexOf(const DataInformation *const data) const
Find the index of a DataInformation in this object, needed to calculate the row.
Definition: datainformationwithchildren.cpp:165
void setParent(DataInformationBase *newParent)
Definition: datainformation.h:303
virtual bool setData(const QVariant &value, Okteta::AbstractByteArrayModel *out, Okteta::Address address, BitCount64 bitsRemaining, quint8 bitOffset)
Writes the current data contained in this object to out.
Definition: datainformationwithchildren.cpp:41
virtual QWidget * createEditWidget(QWidget *parent) const
create a QWidget for the QItemDelegate
Definition: datainformationwithchildren.cpp:66
virtual QVariant childData(int row, int column, int role) const
Definition: datainformationwithchildren.cpp:179
virtual QString tooltipString() const
Definition: datainformationwithchildren.cpp:227
virtual DataInformation * child(const QString &name) const
Looks for a child of this object with given name.
Definition: datainformation.cpp:228
DataInformationWithChildren(const DataInformationWithChildren &d)
Definition: datainformationwithchildren.cpp:61
void appendChildren(const QVector< DataInformation * > &newChildren, bool emitSignal=true)
Takes ownership of all elements.
Definition: datainformationwithchildren.cpp:196
virtual BitCount32 size() const
the size in bits of this element
Definition: datainformationwithchildren.cpp:85
virtual bool replaceChildAt(unsigned int index, DataInformation *newChild)
replaces child at index with newChild.
Definition: datainformationwithchildren.cpp:210
virtual QVariant data(int column, int role) const
get the necessary data (for the model)
Definition: datainformation.cpp:156
virtual void resetValidationState()
Definition: datainformationwithchildren.cpp:95
Definition: scripthandlerinfo.h:39
virtual void resetValidationState()
Definition: datainformation.cpp:111
bool validationSuccessful() const
Definition: datainformation.h:344
virtual DataInformation * clone() const =0
virtual QVariant dataFromWidget(const QWidget *w) const
get the needed data from the widget
Definition: datainformationwithchildren.cpp:72
static QVector< DataInformation * > cloneList(const QVector< DataInformation * > &other, DataInformation *parent)
Definition: datainformationwithchildren.cpp:255
virtual void calculateValidationState()
Definition: datainformationwithchildren.cpp:104
static QVariant eofReachedData(int role)
Definition: datainformation.cpp:189
virtual void setWidgetData(QWidget *w) const
initialize the delegate widget with the correct data
Definition: datainformationwithchildren.cpp:79
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.