reworked and vastly improved snapping subsystem

This commit is contained in:
itsmattkc
2022-05-02 00:01:49 -07:00
parent 756ff77ae8
commit e6d4fe43de
29 changed files with 289 additions and 225 deletions
+8 -1
View File
@@ -38,10 +38,17 @@ public:
TimelineMarker(QObject* parent = nullptr);
TimelineMarker(int color, const TimeRange& time, const QString& name = QString(), QObject* parent = nullptr);
/**
* @brief Dummy function for TimeBasedViewSelectionManager compatibility
*
* FIXME: Once we upgrade to C++17, we won't need this because we'll be able to check types in
* TimeBasedViewSelectionManager's template functions
*/
const rational &time() const { return time_.in(); }
void set_time(const rational& time);
const TimeRange &time_range() const { return time_; }
void set_time(const TimeRange& time);
void set_time(const rational& time);
bool has_sibling_at_time(const rational &t) const;