60 #include <OpenFlipper/common/UpdateType.hh> 69 #include <QStringList> 122 int persistentId()
const;
126 void persistentId(
int _id );
152 bool dataType(
DataType _type)
const;
180 virtual void cleanup();
190 virtual QString getObjectinfo();
193 virtual void printObjectInfo();
215 void target(
bool _target);
224 void source(
bool _source);
228 bool flag(QString _flag);
232 void setFlag(QString _flag,
bool _set);
264 virtual bool visible();
267 virtual void visible(
bool _visible);
377 int childCount()
const;
383 QList< BaseObject* > getLeafs();
386 void deleteSubtree();
405 bool isGroup()
const;
411 bool isInGroup(
int _id )
const;
417 bool isInGroup( QString _name )
const;
421 std::vector< int > getGroupIds();
425 QStringList getGroupNames();
439 void setFromFileName(
const QString &_filename);
443 QString path()
const;
446 void setPath(
const QString &_path);
449 QString name( )
const;
455 virtual void setName(QString _name );
458 QString filename()
const;
461 void setFileName(
const QString &_filename);
498 void setObjectData( QString _dataName ,
PerObjectData* _data );
501 void clearObjectData( QString _dataName );
504 bool hasObjectData( QString _dataName );
524 QMap<QString, PerObjectData*>& getPerObjectDataMap();
544 QString &getCommentByKey(
const QString &key);
551 const QString getCommentByKey(
const QString &key)
const;
554 bool hasCommentForKey(
const QString &key)
const;
557 bool hasComments()
const;
559 void clearComment(
const QString &key);
564 const QMap<QString, QString> &getAllComments()
const;
567 const QString getAllCommentsFlat()
const;
void clearAllComments(int objId)
Called when a plugin requests an update in the viewer.
const UpdateType UPDATE_ALL(UpdateTypeSet(1))
Identifier for all updates.
void objectSelectionChanged(int)
This signal is emitted if the object has been changed (source/target)
BaseObject * parentItem_
Parent item or 0 if rootnode.
QList< BaseObject * > childItems_
Children of this node.
QString name_
Object/FileName ( defaults to NONAME )
QMap< QString, PerObjectData *> dataMap_
get reference to map of all perObject Datas
QString filename_
path to the file from which the object is loaded ( defaults to "." )
void visibilityChanged(int _id)
Tell plugins that the visibility of an object has changed.
QString path_
path to the file from which the object is loaded ( defaults to "." )
int persistentId_
Persistent ID for this Object.
int id_
Unique ID for this Object.
void objectPropertiesChanged(int _id)
Tell plugins that object properties such as object names have been changed.
QMap< QString, QString > commentsByKey_
Get comment for the specified key.