37 #include <boost/weak_ptr.hpp> 38 #include <boost/shared_ptr.hpp> 60 virtual std::vector<TreeNodePtr>
getChildren()
const = 0;
61 virtual QString
getUid()
const = 0;
62 virtual QString
getName()
const = 0;
63 virtual QString
getType()
const = 0;
64 virtual TreeNodePtr
getParent()
const = 0;
67 virtual QIcon
getIcon()
const = 0;
71 virtual QVariant
getColor()
const = 0;
73 virtual QVariant
getFont()
const = 0;
77 virtual void remove() = 0;
97 virtual std::vector<TreeNodePtr>
getChildren()
const {
return mBase->getChildren(); }
98 virtual QString
getUid()
const;
99 virtual QString
getName()
const {
return mBase->getName(); }
100 virtual QString
getType()
const;
101 virtual TreeNodePtr
getParent()
const {
return mBase->getParent(); }
104 virtual QIcon
getIcon()
const {
return mBase->getIcon(); }
108 virtual QVariant
getColor()
const {
return mBase->getColor(); }
110 virtual QVariant
getFont()
const {
return mBase->getFont(); }
114 virtual void remove() { mBase->remove(); }
120 mutable QString mUid;
121 mutable QString mType;
122 mutable std::vector<TreeNodeWeakPtr> mVisibleChildren;
123 mutable bool mVisibleChildrenSet;
124 mutable TreeNodeWeakPtr mVisibleParent;
132 #endif // CXTREENODE_H boost::shared_ptr< class TreeRepository > TreeRepositoryPtr
boost::shared_ptr< TreeNode > TreeNodePtr
virtual std::vector< TreeNodePtr > getVisibleChildren() const =0
void parentChanged(TreeNodePtr prev, TreeNodePtr next)
virtual QString getUid() const =0
virtual bool isRemovable() const =0
virtual QVariant getViewGroupVisibility(int index) const
virtual TreeNodePtr getParent() const
virtual QVariant getColor() const =0
virtual QVariant getFont() const
virtual QIcon getIcon() const =0
boost::weak_ptr< class TreeRepository > TreeRepositoryWeakPtr
virtual boost::shared_ptr< QWidget > createPropertiesWidget() const
virtual bool isRemovable() const
virtual QString getType() const =0
virtual ~CachedTreeNode()
virtual void setViewGroupVisibility(int index, bool value)=0
virtual QVariant getViewGroupVisibility(int index) const =0
virtual bool useColoredName() const
virtual void activate()=0
virtual QString getName() const
virtual boost::shared_ptr< QWidget > createPropertiesWidget() const =0
boost::weak_ptr< TreeNode > TreeNodeWeakPtr
virtual bool useColoredName() const =0
virtual std::vector< TreeNodePtr > getChildren() const
virtual void setViewGroupVisibility(int index, bool value)
virtual std::vector< TreeNodePtr > getChildren() const =0
virtual bool isVisibleNode() const =0
virtual QString getName() const =0
virtual QVariant getFont() const =0
virtual QIcon getIcon() const
virtual TreeNodePtr getParent() const =0
virtual bool isDefaultExpanded() const
virtual TreeNodePtr getVisibleParent() const =0
virtual bool isDefaultExpanded() const =0
virtual QVariant getColor() const
Namespace for all CustusX production code.
virtual bool isVisibleNode() const