40 #ifndef CXMETRICWIDGET_H_ 41 #define CXMETRICWIDGET_H_ 43 #include "cxGuiExport.h" 97 virtual void setModified();
100 void itemSelectionChanged();
102 void removeButtonClickedSlot();
104 void loadReferencePointsSlot();
105 void addPointButtonClickedSlot();
106 void addFrameButtonClickedSlot();
107 void addToolButtonClickedSlot();
108 void addPlaneButtonClickedSlot();
109 void addAngleButtonClickedSlot();
110 void addDistanceButtonClickedSlot();
111 void addROIButtonClickedSlot();
112 void addSphereButtonClickedSlot();
113 void addDonutButtonClickedSlot();
114 void addCustomButtonClickedSlot();
116 void cellChangedSlot(
int row,
int col);
117 virtual void cellClickedSlot(
int row,
int column);
118 void exportMetricsButtonClickedSlot();
119 void importMetricsButtonClickedSlot();
120 void delayedUpdate();
131 virtual void showEvent(QShowEvent* event);
132 virtual void hideEvent(QHideEvent* event);
133 void enablebuttons();
134 virtual void prePaintEvent();
135 std::set<QString> getSelectedUids();
136 void createActions(QActionGroup* group);
137 bool checkEqual(
const std::vector<MetricBasePtr>& a,
const std::vector<MetricBasePtr>& b)
const;
138 void resetWrappersAndEditWidgets(std::vector<MetricBasePtr> wrappers);
139 void initializeTable();
140 void updateTableContents();
141 void expensizeColumnResize();
142 void updateMetricWrappers();
144 QAction* createAction(QActionGroup* group, QString iconName, QString text, QString tip,
const char* slot);
146 QVBoxLayout* mVerticalLayout;
147 QTableWidget* mTable;
149 std::vector<MetricBasePtr> mMetrics;
151 QAction* mRemoveAction;
152 QAction* mLoadReferencePointsAction;
153 QStackedWidget* mEditWidgets;
154 MetricManagerPtr mMetricManager;
157 QTimer* mDelayedUpdateTimer;
boost::shared_ptr< class VisServices > VisServicesPtr
boost::shared_ptr< class MetricManager > MetricManagerPtr
Namespace for all CustusX production code.