Developer Documentation
|
#include <OpenFlipper/common/GroupObject.hh>
Public Member Functions | |
GroupObject (const GroupObject &_object) | |
GroupObject (QString _groupName="Group", GroupObject *_parent=0) | |
virtual | ~GroupObject () |
destructor More... | |
BaseObject * | copy () |
![]() | |
BaseObject (const BaseObject &_object) | |
BaseObject (BaseObject *_parent=0) | |
virtual void | cleanup () |
virtual QString | getObjectinfo () |
Get all Info for the Object as a string. More... | |
virtual void | printObjectInfo () |
Print all information about the object. More... | |
void | dumpTree () |
Debugging function, writing the subtree to output. More... | |
int | row () const |
get the row of this item from the parent More... | |
BaseObject * | parent () |
Get the parent item ( 0 if rootitem ) More... | |
const BaseObject * | parent () const |
get the row of this item from the parent More... | |
void | setParent (BaseObject *_parent) |
Set the parent pointer. More... | |
BaseObject * | childExists (int _objectId) |
Check if the element exists in the subtree of this element. More... | |
BaseObject * | childExists (QString _name) |
Check if the element exists in the subtree of this element. More... | |
void | appendChild (BaseObject *child) |
add a child to this node More... | |
BaseObject * | child (int row) |
return a child More... | |
int | childCount () const |
get the number of children More... | |
void | removeChild (BaseObject *_item) |
Remove a child from this object. More... | |
QList< BaseObject * > | getLeafs () |
get all leafes of the tree below this object ( These will be all visible objects ) More... | |
void | deleteSubtree () |
delete the whole subtree below this item ( The item itself is not touched ) More... | |
int | group () const |
bool | isGroup () const |
Check if object is a group. More... | |
bool | isInGroup (int _id) const |
bool | isInGroup (const QString &_name) const |
std::vector< int > | getGroupIds () |
QStringList | getGroupNames () |
void | setObjectData (QString _dataName, PerObjectData *_data) |
void | clearObjectData (QString _dataName) |
Clear the object data pointer ( this will not delete the object!! ) More... | |
bool | hasObjectData (QString _dataName) |
Checks if object data with given name is available. More... | |
PerObjectData * | objectData (QString _dataName) |
Returns the object data pointer. More... | |
void | deleteData () |
Delete all data attached to this object ( calls delete on each object ) More... | |
int | id () const |
int | persistentId () const |
void | persistentId (int _id) |
bool | dataType (DataType _type) const |
DataType | dataType () const |
void | setDataType (DataType _type) |
bool | target () |
void | target (bool _target) |
bool | source () |
void | source (bool _source) |
bool | flag (QString _flag) |
void | setFlag (QString _flag, bool _set) |
QStringList | flags () |
BaseObject * | last () |
BaseObject * | next () |
int | level () |
void | setFromFileName (const QString &_filename) |
QString | path () const |
return the path to the object ( defaults to "." if unset ) More... | |
void | setPath (const QString &_path) |
set the path to the object. More... | |
QString | name () const |
return the name of the object. The name defaults to NONAME if unset. More... | |
virtual void | setName (QString _name) |
path to the file from which the object is loaded ( defaults to "." ) More... | |
QString | filename () const |
return the filename of the object More... | |
void | setFileName (const QString &_filename) |
set the filename for this object More... | |
QMap< QString, PerObjectData * > & | getPerObjectDataMap () |
get reference to map of all perObject Datas More... | |
QString & | getCommentByKey (const QString &key) |
Get comment for the specified key. More... | |
const QString | getCommentByKey (const QString &key) const |
Get comment for the specified key. More... | |
bool | hasCommentForKey (const QString &key) const |
bool | hasComments () const |
void | clearComment (const QString &key) |
Get comment for the specified key. More... | |
void | clearAllComments () |
Get comment for the specified key. More... | |
const QMap< QString, QString > & | getAllComments () const |
const QString | getAllCommentsFlat () const |
virtual bool | visible () |
return if object is visible More... | |
virtual void | visible (bool _visible) |
Sets visiblity. More... | |
Additional Inherited Members | |
![]() | |
void | objectSelectionChanged (int _objectId) |
void | objectPropertiesChanged (int _objectId) |
void | visibilityChanged (int _objectId) |
![]() | |
static int | NOOBJECT = -1 |
![]() | |
virtual void | update (UpdateType _type=UPDATE_ALL) |
This function is called to update the object. More... | |
![]() | |
bool | visible_ |
This class provides grouping functionality. Datacontrol normally manages grouping.
Definition at line 69 of file GroupObject.hh.
GroupObject::GroupObject | ( | const GroupObject & | _object | ) |
copy constructor
Definition at line 60 of file GroupObject.cc.
GroupObject::GroupObject | ( | QString | _groupName = "Group" , |
GroupObject * | _parent = 0 |
||
) |
constructor
_groupName | Name of the new Group object |
_parent | The parent object of this object |
Definition at line 67 of file GroupObject.cc.
|
virtual |
destructor
Definition at line 74 of file GroupObject.cc.
|
virtual |
return a full copy of this object. The object will not be a part of the object tree. This has to be done with the setParent() function.
Reimplemented from BaseObject.
Definition at line 78 of file GroupObject.cc.