implemented 'ripple to' timeline actions

This commit is contained in:
itsmattkc
2019-09-24 22:45:30 +10:00
parent c33a0b50ce
commit cf3e8d80d1
17 changed files with 219 additions and 82 deletions
+9 -2
View File
@@ -28,13 +28,15 @@
#include "common/timecodefunctions.h"
#include "common/qtversionabstraction.h"
#include "config/config.h"
#include "core.h"
TimeRuler::TimeRuler(bool text_visible, QWidget* parent) :
QWidget(parent),
scroll_(0),
centered_text_(true),
scale_(1.0), // FIXME: Temporary value
time_(0)
scale_(1.0),
time_(0),
snapping_(false)
{
QFontMetrics fm = fontMetrics();
@@ -92,6 +94,11 @@ void TimeRuler::SetTimebase(const rational &r)
update();
}
void TimeRuler::SetSnapping(bool snapping)
{
snapping_ = snapping;
}
const int64_t &TimeRuler::GetTime()
{
return time_;
+4
View File
@@ -42,6 +42,8 @@ public:
void SetCenteredText(bool c);
void SetSnapping(bool snapping);
const int64_t& GetTime();
public slots:
@@ -94,6 +96,8 @@ private:
TimelinePlayhead style_;
bool snapping_;
};
#endif // TIMERULER_H