treeitem.h
changeset 753 25a77484ec72
parent 750 ff3b01ce0960
child 754 db0ec4bcf416
     1.1 --- a/treeitem.h	Thu Apr 02 09:57:47 2009 +0000
     1.2 +++ b/treeitem.h	Tue Apr 07 16:15:53 2009 +0000
     1.3 @@ -10,12 +10,16 @@
     1.4  class LinkableMapObj;
     1.5  class BranchObj;
     1.6  class BranchItem;
     1.7 +
     1.8 +
     1.9  class VymModel;
    1.10  
    1.11  class TreeItem:public XMLObj
    1.12  {
    1.13  public:
    1.14  	enum Type {Undefined,MapCenter,Branch,Image};
    1.15 +	enum HideTmpMode {HideNone, HideExport};
    1.16 +
    1.17      TreeItem(const QList<QVariant> &data, TreeItem *parent = 0);
    1.18      ~TreeItem();
    1.19  	QString saveToDir (const QString &tmpdir,const QString &prefix, const QPointF& offset);
    1.20 @@ -49,7 +53,8 @@
    1.21  	// Accessing data
    1.22      QVariant data(int column) const;
    1.23  	void setHeading (const QString s);
    1.24 -	QString getHeading();
    1.25 +	QString getHeading() const;
    1.26 +	std::string headingStd() const;	//! convenience function used for debugging
    1.27  
    1.28  protected:
    1.29  	NoteObj note;
    1.30 @@ -68,6 +73,7 @@
    1.31  public:	
    1.32  	void setType (const Type t);
    1.33  	Type getType ();
    1.34 +	bool isBranchLikeType() const;
    1.35  	QString getTypeName ();
    1.36  
    1.37  	// Navigation and selection
    1.38 @@ -79,8 +85,14 @@
    1.39  	void setLastSelectedBranch();
    1.40  	TreeItem* getLastSelectedBranch();
    1.41  
    1.42 +	virtual void setHideTmp (HideTmpMode);
    1.43 +	virtual bool hasHiddenExportParent ();
    1.44 +	virtual void setHideInExport(bool);		// set export of object (and children)
    1.45 +	virtual bool hideInExport();
    1.46 +	virtual bool isHidden ();		
    1.47 +
    1.48  	
    1.49 -	// Relation to map objects in graphicsscene
    1.50 +	// Relation to map objects in graphicsscene	// FIXME-3 should be obsolete
    1.51  	LinkableMapObj* getLMO();
    1.52  	void setLMO (LinkableMapObj*);
    1.53  
    1.54 @@ -97,6 +109,7 @@
    1.55  	int branchCounter;
    1.56  	int lastSelectedBranchNum;
    1.57  
    1.58 +	bool hideExport;//! Hide this item in export
    1.59  	bool hidden;	//! Hidden in export if true
    1.60  };
    1.61