QObject wrapper around CArray. More...
#include <qsarray.h>
Public Slots | |
| void | add (int index, QSIProperty *ip) |
| void | add (int index, QObject *ip) |
| void | add (int index, const QString &ip) |
| void | add (int index, int ip) |
| void | add (QSIProperty *ip) |
| void | add (QObject *ip) |
| void | add (const QString &ip) |
| void | add (int ip) |
| QSCObject * | child (const QString &name) |
| int | count () |
| void | delProperty (int index) |
| QString | getText () |
| QSCObject * | property (int index) |
Public Member Functions | |
| QSArray (QSArray &source) | |
| QSArray (boost::shared_ptr< CArray > _array, BaseCore *_base) | |
| virtual | ~QSArray () |
| boost::shared_ptr< CArray > | get () |
QObject wrapper around CArray.
| gui::QSArray::QSArray | ( | QSArray & | source | ) |
Copy constructor
| source | Source item |
Construct wrapper with given CArray
| _array | Array | |
| _base | scripting base |
| gui::QSArray::~QSArray | ( | ) | [virtual] |
destructor
| void gui::QSArray::add | ( | int | ip | ) | [slot] |
| void gui::QSArray::add | ( | const QString & | ip | ) | [slot] |
Append given String property to array
| ip | string to add |
References util::convertFromUnicode(), OP_BEGIN, OP_END, and util::PDF.
| void gui::QSArray::add | ( | QObject * | ip | ) | [slot] |
Append given property to array
| ip | property to add |
References gui::QSIProperty::get(), OP_BEGIN, and OP_END.
| void gui::QSArray::add | ( | QSIProperty * | ip | ) | [slot] |
Append given property to array
| ip | property to add |
References gui::QSIProperty::get(), OP_BEGIN, and OP_END.
| void gui::QSArray::add | ( | int | index, | |
| int | ip | |||
| ) | [slot] |
Add Int property to array at specified index
| index | Index of element in array | |
| ip | integer to add |
References OP_BEGIN, OP_END, and property().
| void gui::QSArray::add | ( | int | index, | |
| const QString & | ip | |||
| ) | [slot] |
Add String property to array at specified index
| index | Index of element in array | |
| ip | string to add |
References util::convertFromUnicode(), OP_BEGIN, OP_END, util::PDF, and property().
| void gui::QSArray::add | ( | int | index, | |
| QObject * | ip | |||
| ) | [slot] |
Add given property to array at specified index
| index | Index of element in array | |
| ip | property to add |
References gui::QSIProperty::get(), OP_BEGIN, and OP_END.
| void gui::QSArray::add | ( | int | index, | |
| QSIProperty * | ip | |||
| ) | [slot] |
Add given property to array at specified index
| index | Index of element in array | |
| ip | property to add |
References gui::QSIProperty::get(), OP_BEGIN, and OP_END.
| QSCObject * gui::QSArray::child | ( | const QString & | name | ) | [slot] |
recursive CDict/CArray getProperty(...) Will take the name as slash-separated list of childs to traverse to get to target property. References on the way are automatically dereferenced
| name | Path to property |
References gui::QSCObject::base, gui::QSImporter::createQSObject(), gui::QSIProperty::obj, property(), and util::recursiveProperty().
| int gui::QSArray::count | ( | ) | [slot] |
Return number of array elements
References pdfobjects::CArray::getPropertyCount(), and gui::QSIProperty::obj.
| void gui::QSArray::delProperty | ( | int | index | ) | [slot] |
| boost::shared_ptr< CArray > gui::QSArray::get | ( | ) |
get CArray held inside this class. Not exposed to scripting
References gui::QSIProperty::obj.
| QString gui::QSArray::getText | ( | ) | [slot] |
Return text representation of array
Reimplemented from gui::QSIProperty.
References util::convertToUnicode(), pdfobjects::CArray::getStringRepresentation(), gui::QSIProperty::obj, and util::PDF.
| QSCObject * gui::QSArray::property | ( | int | index | ) | [slot] |
Return property at specified index
| index | Index of element in array |
References gui::QSCObject::base, gui::QSImporter::createQSObject(), pdfobjects::CArray::getProperty(), and gui::QSIProperty::obj.