gui::QSIPropertyArray Class Reference

QObject wrapper around array of arbitrary IProperty items. More...

#include <qsipropertyarray.h>

Inheritance diagram for gui::QSIPropertyArray:
gui::QSCObject

List of all members.

Public Slots

void append (QSIProperty *prop)
void append (QObject *obj)
void clear ()
int count ()
QSCObjectproperty (int index)

Public Member Functions

 QSIPropertyArray (BaseCore *_base)
virtual ~QSIPropertyArray ()
boost::shared_ptr< IPropertyget (int index)
void append (boost::shared_ptr< IProperty > prop)
void copyTo (PdfOperator::Operands &oper)

Private Attributes

std::vector< boost::shared_ptr
< IProperty > > 
obj

Detailed Description

QObject wrapper around array of arbitrary IProperty items.


Constructor & Destructor Documentation

gui::QSIPropertyArray::QSIPropertyArray ( BaseCore _base  ) 

Construct wrapper with empty array

Parameters:
_base Scripting base
gui::QSIPropertyArray::~QSIPropertyArray (  )  [virtual]

destructor


Member Function Documentation

void gui::QSIPropertyArray::append ( QObject *  obj  )  [slot]

append one IProperty to end of array. QSA-bugfix version

Parameters:
obj IProperty to append

References append().

void gui::QSIPropertyArray::append ( QSIProperty prop  )  [slot]

append one IProperty to end of array.

Parameters:
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.

Parameters:
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

Parameters:
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.

Parameters:
index Zero-based index of item to get
Returns:
specified IProperty

References obj.

QSCObject * gui::QSIPropertyArray::property ( int  index  )  [slot]

get one IProperty item held inside this class.

Parameters:
index Zero-based index of item to get
Returns:
specified IProperty

References gui::QSCObject::base, gui::QSImporter::createQSObject(), and obj.


Member Data Documentation

std::vector<boost::shared_ptr<IProperty> > gui::QSIPropertyArray::obj [private]

Vector holding parameters

Referenced by append(), clear(), copyTo(), count(), get(), and property().


The documentation for this class was generated from the following files: