rocs/RocsCore
DataType.cpp
Go to the documentation of this file.
QSvgRenderer * sharedRenderer(const QString &iconPackage)
Definition: DocumentManager.cpp:284
bool atEnd() const
void propertyVisibilityChanged(const QString &name)
Emitted when the visibility was changed.
void propertyRenamed(const QString &oldName, const QString &newName)
Emitted when a property was renamed.
bool end()
void renameProperty(const QString &oldName, const QString &newName)
Rename property from oldName to newName.
Definition: DataType.cpp:191
void addProperty(const QString &name, const QString &defaultValue=QString())
Add a new dynamic property to all data elements of this data type.
Definition: DataType.cpp:173
void render(QPainter *painter)
void setIcon(const QString &icon)
Set icon of data elements of this type.
Definition: DataType.cpp:104
void defaultColorChanged(const QColor &color)
Emitted when default color was changed.
void propertyRemoved(const QString &name)
Emitted when property was removed.
QString toString() const
void visibilityChanged(bool visible)
Emitted when the visibility was changed.
bool isPropertyVisible(const QString &name) const
Definition: DataType.cpp:231
QPixmap fromImage(const QImage &image, QFlags< Qt::ImageConversionFlag > flags)
void propertyDefaultValueChanged(const QString &name)
Emitted when default value of property is changed.
QStringRef value(const QString &namespaceUri, const QString &name) const
QVariant propertyDefaultValue(const QString &name) const
Definition: DataType.cpp:212
QString & remove(int position, int n)
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void propertyAdded(const QString &name, const QVariant &defaultValue)
Emitted when new property was created.
void setPropertyVisible(const QString &name, bool visible)
Set default value of property name to visible.
Definition: DataType.cpp:239
void removeProperty(const QString &name)
Remove dynamic property from data type.
Definition: DataType.cpp:184
void setPropertyDefaultValue(const QString &name, const QVariant &value)
Set default value of property name to value.
Definition: DataType.cpp:221
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
TokenType readNext()
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
static DataTypePtr create(Document *document, int identifier)
Create data type objects.
Definition: DataType.cpp:63
Definition: Document.h:41
bool hasAttribute(const QString &qualifiedName) const
QXmlStreamAttributes attributes() const
void setDefaultColor(const QColor &color)
Set default color value for this data type.
Definition: DataType.cpp:162
void setVisible(bool visible)
Set visibility for all data elements of this type.
Definition: DataType.cpp:149
bool begin(QPaintDevice *device)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.