gui::QSArray Class Reference

QObject wrapper around CArray. More...

#include <qsarray.h>

Inheritance diagram for gui::QSArray:
gui::QSIProperty gui::QSCObject

List of all members.

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)
QSCObjectchild (const QString &name)
int count ()
void delProperty (int index)
QString getText ()
QSCObjectproperty (int index)

Public Member Functions

 QSArray (QSArray &source)
 QSArray (boost::shared_ptr< CArray > _array, BaseCore *_base)
virtual ~QSArray ()
boost::shared_ptr< CArrayget ()

Detailed Description

QObject wrapper around CArray.


Constructor & Destructor Documentation

gui::QSArray::QSArray ( QSArray source  ) 

Copy constructor

Parameters:
source Source item
gui::QSArray::QSArray ( boost::shared_ptr< CArray _array,
BaseCore _base 
)

Construct wrapper with given CArray

Parameters:
_array Array
_base scripting base
gui::QSArray::~QSArray (  )  [virtual]

destructor


Member Function Documentation

void gui::QSArray::add ( int  ip  )  [slot]

Append given Int property to array

Parameters:
ip integer to add
See also:
CArray::addProperty

References OP_BEGIN, and OP_END.

void gui::QSArray::add ( const QString &  ip  )  [slot]

Append given String property to array

Parameters:
ip string to add
See also:
CArray::addProperty

References util::convertFromUnicode(), OP_BEGIN, OP_END, and util::PDF.

void gui::QSArray::add ( QObject *  ip  )  [slot]

Append given property to array

Parameters:
ip property to add
See also:
CArray::addProperty

References gui::QSIProperty::get(), OP_BEGIN, and OP_END.

void gui::QSArray::add ( QSIProperty ip  )  [slot]

Append given property to array

Parameters:
ip property to add
See also:
CArray::addProperty

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

Parameters:
index Index of element in array
ip integer to add
See also:
CArray::addProperty

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

Parameters:
index Index of element in array
ip string to add
See also:
CArray::addProperty

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

Parameters:
index Index of element in array
ip property to add
See also:
CArray::addProperty

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

Parameters:
index Index of element in array
ip property to add
See also:
CArray::addProperty

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

Parameters:
name Path to property
Returns:
specified 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

See also:
CArray::getPropertyCount
Returns:
number of elements

References pdfobjects::CArray::getPropertyCount(), and gui::QSIProperty::obj.

void gui::QSArray::delProperty ( int  index  )  [slot]

Delete property at specified index

See also:
CArray::delProperty(int)
Parameters:
index Index of element in array

References OP_BEGIN, and OP_END.

boost::shared_ptr< CArray > gui::QSArray::get (  ) 

get CArray held inside this class. Not exposed to scripting

Returns:
CArray shared pointer

References gui::QSIProperty::obj.

QString gui::QSArray::getText (  )  [slot]

Return text representation of array

See also:
CArray::getStringRepresentation
Returns:
string representation

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

See also:
CArray::getProperty(int)
Parameters:
index Index of element in array
Returns:
property at given index

References gui::QSCObject::base, gui::QSImporter::createQSObject(), pdfobjects::CArray::getProperty(), and gui::QSIProperty::obj.

Referenced by add(), and child().


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