diff -r 914f330b6aa8 -r 25a77484ec72 treeitem.h --- a/treeitem.h Thu Apr 02 09:57:47 2009 +0000 +++ b/treeitem.h Tue Apr 07 16:15:53 2009 +0000 @@ -10,12 +10,16 @@ class LinkableMapObj; class BranchObj; class BranchItem; + + class VymModel; class TreeItem:public XMLObj { public: enum Type {Undefined,MapCenter,Branch,Image}; + enum HideTmpMode {HideNone, HideExport}; + TreeItem(const QList &data, TreeItem *parent = 0); ~TreeItem(); QString saveToDir (const QString &tmpdir,const QString &prefix, const QPointF& offset); @@ -49,7 +53,8 @@ // Accessing data QVariant data(int column) const; void setHeading (const QString s); - QString getHeading(); + QString getHeading() const; + std::string headingStd() const; //! convenience function used for debugging protected: NoteObj note; @@ -68,6 +73,7 @@ public: void setType (const Type t); Type getType (); + bool isBranchLikeType() const; QString getTypeName (); // Navigation and selection @@ -79,8 +85,14 @@ void setLastSelectedBranch(); TreeItem* getLastSelectedBranch(); + virtual void setHideTmp (HideTmpMode); + virtual bool hasHiddenExportParent (); + virtual void setHideInExport(bool); // set export of object (and children) + virtual bool hideInExport(); + virtual bool isHidden (); + - // Relation to map objects in graphicsscene + // Relation to map objects in graphicsscene // FIXME-3 should be obsolete LinkableMapObj* getLMO(); void setLMO (LinkableMapObj*); @@ -97,6 +109,7 @@ int branchCounter; int lastSelectedBranchNum; + bool hideExport;//! Hide this item in export bool hidden; //! Hidden in export if true };