16 #include <boost/weak_ptr.hpp> 17 #include <boost/shared_ptr.hpp> 39 virtual std::vector<TreeNodePtr>
getChildren()
const = 0;
40 virtual QString
getUid()
const = 0;
41 virtual QString
getName()
const = 0;
42 virtual QString
getType()
const = 0;
43 virtual TreeNodePtr
getParent()
const = 0;
46 virtual QIcon
getIcon()
const = 0;
50 virtual QVariant
getColor()
const = 0;
52 virtual QVariant
getFont()
const = 0;
56 virtual void remove() = 0;
76 virtual std::vector<TreeNodePtr>
getChildren()
const {
return mBase->getChildren(); }
77 virtual QString
getUid()
const;
78 virtual QString
getName()
const {
return mBase->getName(); }
79 virtual QString
getType()
const;
80 virtual TreeNodePtr
getParent()
const {
return mBase->getParent(); }
83 virtual QIcon
getIcon()
const {
return mBase->getIcon(); }
87 virtual QVariant
getColor()
const {
return mBase->getColor(); }
89 virtual QVariant
getFont()
const {
return mBase->getFont(); }
92 virtual bool isRemovable()
const {
return mBase->isRemovable(); }
93 virtual void remove() { mBase->remove(); }
100 mutable QString mType;
101 mutable std::vector<TreeNodeWeakPtr> mVisibleChildren;
102 mutable bool mVisibleChildrenSet;
103 mutable TreeNodeWeakPtr mVisibleParent;
111 #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