|
NorMIT-nav
22.09
An IGT application
|
Go to the documentation of this file.
11 #ifndef CXTREEREPOSITORY_H
12 #define CXTREEREPOSITORY_H
15 #include <boost/weak_ptr.hpp>
16 #include <boost/shared_ptr.hpp>
44 template<
class WIDGET>
45 boost::shared_ptr<WIDGET>
find()
47 for (
unsigned i=0; i<mWidgets.size(); ++i)
49 boost::shared_ptr<WIDGET> w = boost::dynamic_pointer_cast<WIDGET>(mWidgets[i]);
53 return boost::shared_ptr<WIDGET>();
58 void add(boost::shared_ptr<QWidget> widget);
61 typedef QPointer<QWidget> QWidgetPtr;
62 std::vector<boost::shared_ptr<QWidget> > mWidgets;
98 void createVisibilityProperty();
99 void createModeProperty();
102 std::vector<TreeNodePtr> mNodes;
115 void insertTopNode();
116 void insertDataNode(
DataPtr data);
118 void insertToolNode(
ToolPtr tool);
119 void insertGroupNode(QString groupname);
127 #endif // CXTREEREPOSITORY_H
boost::shared_ptr< class WidgetTypeRepository > WidgetTypeRepositoryPtr
StringListPropertyPtr getVisibilityProperty()
Helper class for xml files used to store ssc/cx data.
Namespace for all CustusX production code.
std::vector< TreeNodePtr > getNodes()
static TreeRepositoryPtr create(XmlOptionFile options, VisServicesPtr services)
boost::shared_ptr< class VisServices > VisServicesPtr
boost::shared_ptr< class StringProperty > StringPropertyPtr
StringPropertyPtr getModeProperty()
WidgetTypeRepositoryPtr getWidgetTypeRepository()
QStringList getVisibleNodeTypes() const
boost::shared_ptr< class Data > DataPtr
TreeNodePtr getNodeForGroup(QString groupname)
void changed(TreeNode *node=NULL)
boost::shared_ptr< class TreeRepository > TreeRepositoryPtr
boost::shared_ptr< TreeNode > TreeNodePtr
VisServicesPtr getServices()
boost::shared_ptr< class StringListProperty > StringListPropertyPtr
TreeNodePtr getNode(QString uid)
boost::shared_ptr< class Tool > ToolPtr
QStringList getAllNodeTypes() const
boost::weak_ptr< class TreeRepository > TreeRepositoryWeakPtr
Identification of a Coordinate system.