33 #ifndef CXREGISTRATIONHISTORYWIDGET_H_ 34 #define CXREGISTRATIONHISTORYWIDGET_H_ 78 virtual void showEvent(QShowEvent* event);
79 virtual void hideEvent(QCloseEvent* event);
83 void createControls(QHBoxLayout* layout);
86 QAction* createAction(QLayout* layout, QString iconName, QString text, QString tip, T slot);
88 typedef std::multimap<QDateTime,QString> TimeMap;
89 typedef std::pair<QDateTime,QString> TimeMapPair;
90 typedef std::vector<RegistrationHistoryWidget::TimeMap::iterator> TimeMapIterators;
91 TimeMap generateRegistrationTimes();
92 QDateTime getActiveTime();
93 void setActiveTime(QDateTime active);
94 RegistrationHistoryWidget::TimeMapIterators findActiveRegistrations(TimeMap& times);
97 std::vector<RegistrationHistoryPtr> mHistories;
98 QAction* mRewindAction;
99 QAction* mRemoveAction;
100 QAction* mForwardAction;
101 QAction* mFastForwardAction;
103 QLabel* mBehindLabel;
104 QLabel* mInFrontLabel;
105 QTextEdit* mTextEdit;
107 std::vector<RegistrationHistoryPtr> getAllRegistrationHistories();
108 std::vector<RegistrationTransform> mergeHistory(
const std::vector<RegistrationHistoryPtr>& allHistories);
111 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.