#include <ext/app/exttesttools/tasqtdatamodel.h>
class TasObject |
TasObject represents an object in the tas data model.
Public Member Functions | |
---|---|
~TasObject() | |
TasAttribute & | addAttribute() |
TasAttribute & | addAttribute(const QString &) |
TasAttribute & | addAttribute(const QString &, const QString &) |
TasAttribute & | addAttribute(const QString &, int) |
TasAttribute & | addAttribute(const QString &, qreal) |
TasAttribute & | addAttribute(const QString &, const QSize &) |
TasAttribute & | addAttribute(const QString &, const QSizeF &) |
TasAttribute & | addAttribute(const QString &, const QRect &) |
TasAttribute & | addAttribute(const QString &, const QRectF &) |
TasAttribute & | addAttribute(const QString &, const QPoint &) |
TasAttribute & | addAttribute(const QString &, const QPointF &) |
TasAttribute & | addBooleanAttribute(const QString &, bool) |
TasObject & | addNewObject(QString, const QString &, const QString &) |
TasObject & | addObject() |
QString | getType() |
void | setEnv(const QString &) |
void | setId(const QString &) |
void | setName(const QString &) |
void | setParentId(const QString &) |
void | setType(const QString &) |
Represents an object in tas data model. The object does not have to contain all elements.
TasAttribute & | addAttribute | ( | const QString & | name, |
const QString & | value | |||
) |
Add new attribute to the object with the given name and value.
TasAttribute & | addAttribute | ( | const QString & | name, |
int | value | |||
) |
Add new attribute to the object with the given name and value.
TasAttribute & | addAttribute | ( | const QString & | name, |
qreal | value | |||
) |
Add new attribute to the object with the given name and value.
TasAttribute & | addAttribute | ( | const QString & | name, |
const QSize & | value | |||
) |
Add a QSize as a new attribute. Format will be "width,height"
TasAttribute & | addAttribute | ( | const QString & | name, |
const QSizeF & | value | |||
) |
Add a QSizeF as a new attribute. Format will be "width,height"
TasAttribute & | addAttribute | ( | const QString & | name, |
const QRect & | value | |||
) |
Add a QRect as a new attribute. Format will be "x,y,width,height"
TasAttribute & | addAttribute | ( | const QString & | name, |
const QRectF & | value | |||
) |
Add a QRectF as a new attribute. Format will be "x,y,width,height"
TasAttribute & | addAttribute | ( | const QString & | name, |
const QPoint & | value | |||
) |
Add a QRectF as a new attribute. Format will be "x,y,width,height"
TasAttribute & | addAttribute | ( | const QString & | name, |
const QPointF & | value | |||
) |
Add a QRectF as a new attribute. Format will be "x,y,width,height"
TasAttribute & | addBooleanAttribute | ( | const QString & | name, |
bool | value | |||
) |
Add new attribute to the object with the given name and value.
TasObject & | addNewObject | ( | QString | id, |
const QString & | name, | |||
const QString & | type | |||
) |
Add new object under this object with the given object values.
QString | getType | ( | ) |
void | setEnv | ( | const QString & | env | ) |
void | setId | ( | const QString & | id | ) |
Set an id to the object. Ids should be as uniques as possible. Ids are used to separate objects.
void | setName | ( | const QString & | name | ) |
Set the name for the attribute. Names are very usefull since they can be used to identify objects. For instance a text edit field that takes the name field from a form type ui should be named as "name". This makes testing easier since the control can now be identified as a name edit field.