9 #include "uiMedDataQt/config.hpp" 11 #include <fwActivities/registry/Activities.hpp> 13 #include <fwData/Composite.hpp> 15 #include <fwMedData/ActivitySeries.hpp> 20 #include <QTreeWidget> 36 typedef std::map< std::string, std::string > ObjectIconMapType;
40 UIMEDDATAQT_API
virtual ~ActivityDataView();
45 enum class ColumnType : int
55 UIMEDDATAQT_API
void fillInformation(const ::fwActivities::registry::ActivityInfo& info);
58 UIMEDDATAQT_API
void fillInformation(const ::fwMedData::ActivitySeries::sptr& actSeries);
70 UIMEDDATAQT_API
bool checkAndComputeData(const ::fwMedData::ActivitySeries::sptr& actSeries,
71 std::string& errorMsg);
79 UIMEDDATAQT_API ::fwData::Object::sptr checkData(
size_t index, std::string& errorMsg);
84 m_ioSelectorSrvConfig = ioSelectorSrvConfig;
90 m_sdbIoSelectorSrvConfig = ioSelectorSrvConfig;
94 UIMEDDATAQT_API
virtual void clear();
99 m_objectIcons = objectIcons;
105 bool eventFilter(QObject* obj, QEvent* event)
override;
109 typedef std::vector< ::fwData::Object::csptr > ImportedObjectType;
110 typedef std::vector<QPointer<QTreeWidget> > TreeContainerType;
116 void importObjectFromSDB();
119 void createNewObject();
122 fwData::Object::sptr readObject(
const std::string& classname,
const std::string& ioSelectorSrvConfig);
125 void removeSelectedObjects();
134 void onTreeItemDoubleClicked(QTreeWidgetItem* item,
int column);
141 void addObjectItem(
size_t index, const ::fwData::Object::csptr& obj);
145 std::string m_ioSelectorSrvConfig;
146 std::string m_sdbIoSelectorSrvConfig;
148 ImportedObjectType m_importedObject;
149 TreeContainerType m_treeWidgets;
151 ObjectIconMapType m_objectIcons;
The namespace uiMedDataQt contains editors for medical data.
Holds Activities configuration.