From 886bdd0fa43a2fcdeca306648b643b623af99f88 Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Tue, 9 Feb 2016 17:38:28 -0200 Subject: Added TransitionControl and plot rewinding. New component overlays main view and handles middle clicks/drags to performing rewinding. Also sports smooth transitioning back to current projection whenever the mouse button is lifted. Next up, the same kind of transitions in the displayed values. --- rewindworkerthread.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 rewindworkerthread.h (limited to 'rewindworkerthread.h') diff --git a/rewindworkerthread.h b/rewindworkerthread.h new file mode 100644 index 0000000..0bbaeb6 --- /dev/null +++ b/rewindworkerthread.h @@ -0,0 +1,21 @@ +#ifndef REWINDWORKERTHREAD_H +#define REWINDWORKERTHREAD_H + +#include "transitioncontrol.h" + +#include +#include + +class RewindWorkerThread + : public QThread +{ + Q_OBJECT +public: + RewindWorkerThread(TransitionControl *control) { m_control = control; } + void run(); + +private: + TransitionControl *m_control; +}; + +#endif // REWINDWORKERTHREAD_H -- cgit v1.2.3