QObject wrapper around array of arbitrary IProperty items. More...
#include <qsipropertyarray.h>
Public Slots | |
| void | append (QSIProperty *prop) |
| void | append (QObject *obj) |
| void | clear () |
| int | count () |
| QSCObject * | property (int index) |
Public Member Functions | |
| QSIPropertyArray (BaseCore *_base) | |
| virtual | ~QSIPropertyArray () |
| boost::shared_ptr< IProperty > | get (int index) |
| void | append (boost::shared_ptr< IProperty > prop) |
| void | copyTo (PdfOperator::Operands &oper) |
Private Attributes | |
| std::vector< boost::shared_ptr < IProperty > > | obj |
QObject wrapper around array of arbitrary IProperty items.
| gui::QSIPropertyArray::QSIPropertyArray | ( | BaseCore * | _base | ) |
Construct wrapper with empty array
| _base | Scripting base |
| gui::QSIPropertyArray::~QSIPropertyArray | ( | ) | [virtual] |
destructor
| void gui::QSIPropertyArray::append | ( | QObject * | obj | ) | [slot] |
append one IProperty to end of array. QSA-bugfix version
| obj | IProperty to append |
References append().
| void gui::QSIPropertyArray::append | ( | QSIProperty * | prop | ) | [slot] |
append one IProperty to end of array.
| prop | IProperty to append |
References gui::QSIProperty::get(), and obj.
| void gui::QSIPropertyArray::append | ( | boost::shared_ptr< IProperty > | prop | ) |
append one IProperty to end of array.
| prop | IProperty to append |
References obj.
Referenced by append(), and gui::QSPdfOperator::params().
| void gui::QSIPropertyArray::clear | ( | ) | [slot] |
Delete all elements in the array
References obj.
| void gui::QSIPropertyArray::copyTo | ( | PdfOperator::Operands & | oper | ) |
Copy all items to Operands that can be used in PDF Operators
| oper | Operands container that will be cleared and filled with operands from this array |
References obj.
Referenced by gui::Base::createOperator().
| int gui::QSIPropertyArray::count | ( | ) | [slot] |
Return number of items inside this array
References obj.
| boost::shared_ptr< IProperty > gui::QSIPropertyArray::get | ( | int | index | ) |
get one IProperty item held inside this class.
| index | Zero-based index of item to get |
References obj.
| QSCObject * gui::QSIPropertyArray::property | ( | int | index | ) | [slot] |
get one IProperty item held inside this class.
| index | Zero-based index of item to get |
References gui::QSCObject::base, gui::QSImporter::createQSObject(), and obj.
std::vector<boost::shared_ptr<IProperty> > gui::QSIPropertyArray::obj [private] |