|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
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;
46 virtual QIcon
getIcon()
const = 0;
50 virtual QVariant
getColor()
const = 0;
52 virtual QVariant
getFont()
const = 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;
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;
111 #endif // CXTREENODE_H
virtual bool isDefaultExpanded() const
virtual bool isRemovable() const =0
Namespace for all CustusX production code.
virtual bool isDefaultExpanded() const =0
CachedTreeNode(TreeNodePtr base)
virtual TreeNodePtr getParent() const =0
virtual QVariant getColor() const =0
virtual void activate()=0
virtual TreeNodePtr getVisibleParent() const =0
virtual QVariant getViewGroupVisibility(int index) const
virtual std::vector< TreeNodePtr > getVisibleChildren() const =0
virtual bool useColoredName() const
virtual QVariant getColor() const
virtual TreeNodePtr getParent() const
virtual std::vector< TreeNodePtr > getChildren() const
virtual QString getType() const =0
virtual QString getName() const
virtual QIcon getIcon() const =0
virtual bool isRemovable() const
virtual boost::shared_ptr< QWidget > createPropertiesWidget() const =0
boost::shared_ptr< class TreeRepository > TreeRepositoryPtr
virtual boost::shared_ptr< QWidget > createPropertiesWidget() const
virtual void setViewGroupVisibility(int index, bool value)
boost::weak_ptr< TreeNode > TreeNodeWeakPtr
boost::shared_ptr< TreeNode > TreeNodePtr
virtual bool useColoredName() const =0
virtual std::vector< TreeNodePtr > getChildren() const =0
virtual QString getUid() const
virtual bool isVisibleNode() const
virtual void setViewGroupVisibility(int index, bool value)=0
virtual TreeNodePtr getVisibleParent() const
virtual QString getType() const
virtual QVariant getFont() const =0
virtual bool isVisibleNode() const =0
void parentChanged(TreeNodePtr prev, TreeNodePtr next)
virtual QVariant getFont() const
virtual QVariant getViewGroupVisibility(int index) const =0
virtual QString getName() const =0
virtual std::vector< TreeNodePtr > getVisibleChildren() const
virtual QIcon getIcon() const
boost::weak_ptr< class TreeRepository > TreeRepositoryWeakPtr
virtual ~CachedTreeNode()
virtual QString getUid() const =0