32 #ifndef CXTREEREPOSITORY_H
33 #define CXTREEREPOSITORY_H
36 #include <boost/weak_ptr.hpp>
37 #include <boost/shared_ptr.hpp>
59 template<
class WIDGET>
62 for (
unsigned i=0; i<mWidgets.size(); ++i)
64 WIDGET* w =
dynamic_cast<WIDGET*
>(mWidgets[i].data());
70 void add(QWidget* widget);
73 typedef QPointer<QWidget> QWidgetPtr;
74 std::vector<QWidgetPtr> mWidgets;
110 void createVisibilityProperty();
111 void createModeProperty();
114 std::vector<TreeNodePtr> mNodes;
127 void insertTopNode();
128 void insertDataNode(
DataPtr data);
130 void insertToolNode(
ToolPtr tool);
131 void insertGroupNode(QString groupname);
139 #endif // CXTREEREPOSITORY_H
boost::shared_ptr< class TreeRepository > TreeRepositoryPtr
TreeNodePtr getNodeForGroup(QString groupname)
boost::shared_ptr< TreeNode > TreeNodePtr
boost::shared_ptr< class VisServices > VisServicesPtr
boost::weak_ptr< class TreeRepository > TreeRepositoryWeakPtr
boost::shared_ptr< class Data > DataPtr
boost::shared_ptr< class StringProperty > StringPropertyPtr
QStringList getVisibleNodeTypes() const
std::vector< TreeNodePtr > getNodes()
StringListPropertyPtr getVisibilityProperty()
boost::shared_ptr< class WidgetTypeRepository > WidgetTypeRepositoryPtr
Identification of a Coordinate system.
static TreeRepositoryPtr create(XmlOptionFile options, VisServicesPtr services)
StringPropertyPtr getModeProperty()
boost::shared_ptr< class StringListProperty > StringListPropertyPtr
QStringList getAllNodeTypes() const
VisServicesPtr getServices()
WidgetTypeRepositoryPtr getWidgetTypeRepository()
Helper class for xml files used to store ssc/cx data.
TreeNodePtr getNode(QString uid)
boost::shared_ptr< class Tool > ToolPtr