32 #ifndef CXTREEREPOSITORY_H
33 #define CXTREEREPOSITORY_H
36 #include <boost/weak_ptr.hpp>
37 #include <boost/shared_ptr.hpp>
65 template<
class WIDGET>
66 boost::shared_ptr<WIDGET>
find()
68 for (
unsigned i=0; i<mWidgets.size(); ++i)
70 boost::shared_ptr<WIDGET> w = boost::dynamic_pointer_cast<WIDGET>(mWidgets[i]);
74 return boost::shared_ptr<WIDGET>();
79 void add(boost::shared_ptr<QWidget> widget);
82 typedef QPointer<QWidget> QWidgetPtr;
83 std::vector<boost::shared_ptr<QWidget> > mWidgets;
119 void createVisibilityProperty();
120 void createModeProperty();
123 std::vector<TreeNodePtr> mNodes;
136 void insertTopNode();
137 void insertDataNode(
DataPtr data);
139 void insertToolNode(
ToolPtr tool);
140 void insertGroupNode(QString groupname);
148 #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)
void changed(TreeNode *node=NULL)
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