reworked viewer timers
This commit is contained in:
@@ -28,6 +28,8 @@
|
||||
#include "node/node.h"
|
||||
#include "render/color.h"
|
||||
#include "tool/tool.h"
|
||||
#include "viewerplaybacktimer.h"
|
||||
#include "viewerqueue.h"
|
||||
#include "viewersafemargininfo.h"
|
||||
#include "widget/manageddisplay/manageddisplay.h"
|
||||
#include "widget/timetarget/timetarget.h"
|
||||
@@ -107,6 +109,20 @@ public:
|
||||
return texture_;
|
||||
}
|
||||
|
||||
void Play(const int64_t &start_timestamp, const int &playback_speed, const rational &timebase);
|
||||
|
||||
void Pause();
|
||||
|
||||
ViewerQueue* queue()
|
||||
{
|
||||
return &queue_;
|
||||
}
|
||||
|
||||
ViewerPlaybackTimer *timer()
|
||||
{
|
||||
return &timer_;
|
||||
}
|
||||
|
||||
public slots:
|
||||
/**
|
||||
* @brief Set the transformation matrix to draw with
|
||||
@@ -210,6 +226,8 @@ protected:
|
||||
|
||||
virtual void hideEvent(QHideEvent* event) override;
|
||||
|
||||
//virtual void closeEvent(QCloseEvent* event) override;
|
||||
|
||||
protected slots:
|
||||
/**
|
||||
* @brief Paint function to display the texture (received in SetTexture()) on screen.
|
||||
@@ -334,9 +352,18 @@ private:
|
||||
|
||||
PushMode push_mode_;
|
||||
|
||||
// Playback
|
||||
ViewerQueue queue_;
|
||||
|
||||
ViewerPlaybackTimer timer_;
|
||||
|
||||
rational playback_timebase_;
|
||||
|
||||
private slots:
|
||||
void EmitColorAtCursor(QMouseEvent* e);
|
||||
|
||||
void UpdateFromQueue();
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user