12 #ifndef CXVIEWWRAPPER_H_
13 #define CXVIEWWRAPPER_H_
15 #include "org_custusx_core_view_Export.h"
57 void addDataActionsOfType(QWidget* parent);
60 void dataActionSlot();
62 void addDataAction(QString uid, QWidget* parent);
67 QString mLastDataActionUid;
75 mLastDataActionUid =
"________________________";
76 for (
typename std::vector< boost::shared_ptr<DATA> >::iterator iter=sorted.begin(); iter!=sorted.end(); ++iter)
78 this->addDataAction((*iter)->getUid(), parent);
89 class org_custusx_core_view_EXPORT
ViewWrapper:
public QObject
98 virtual void updateView();
103 void orientationChanged(ORIENTATION_TYPE type);
106 void contextMenuSlot(
const QPoint& point);
107 void settingsChangedSlot(QString key);
109 virtual void dataViewPropertiesChangedSlot(QString uid) = 0;
116 void connectContextMenu(
ViewPtr view);
117 virtual QString getDataDescription() = 0;
118 virtual QString getViewDescription() = 0;
119 virtual void appendToContextMenu(QMenu& contextMenu) = 0;
121 virtual void addReps();