12 #ifndef CXREGISTRATIONHISTORYWIDGET_H_ 13 #define CXREGISTRATIONHISTORYWIDGET_H_ 57 virtual void showEvent(QShowEvent* event);
58 virtual void hideEvent(QCloseEvent* event);
62 void createControls(QHBoxLayout* layout);
65 QAction* createAction(QLayout* layout, QString iconName, QString text, QString tip, T slot);
67 typedef std::multimap<QDateTime,QString> TimeMap;
68 typedef std::pair<QDateTime,QString> TimeMapPair;
69 typedef std::vector<RegistrationHistoryWidget::TimeMap::iterator> TimeMapIterators;
70 TimeMap generateRegistrationTimes();
71 QDateTime getActiveTime();
72 void setActiveTime(QDateTime active);
73 RegistrationHistoryWidget::TimeMapIterators findActiveRegistrations(TimeMap& times);
76 std::vector<RegistrationHistoryPtr> mHistories;
77 QAction* mRewindAction;
78 QAction* mRemoveAction;
79 QAction* mForwardAction;
80 QAction* mFastForwardAction;
83 QLabel* mInFrontLabel;
86 std::vector<RegistrationHistoryPtr> getAllRegistrationHistories();
87 std::vector<RegistrationTransform> mergeHistory(
const std::vector<RegistrationHistoryPtr>& allHistories);
90 RegistrationHistoryWidget::TimeMap::iterator findActiveRegistration(TimeMap ×);
virtual QString defaultWhatsThis() const
virtual void hideEvent(QCloseEvent *event)
disconnects stuff
virtual ~RegistrationHistoryWidget()
virtual void prePaintEvent()
boost::shared_ptr< class RegServices > RegServicesPtr
virtual void showEvent(QShowEvent *event)
updates internal info before showing the widget
Namespace for all CustusX production code.