various: moved time from viewer UI to viewer node
This commit is contained in:
@@ -45,8 +45,6 @@ public:
|
||||
return snapped_;
|
||||
}
|
||||
|
||||
const rational &GetTime() const { return playhead_; }
|
||||
|
||||
TimeBasedWidget *GetSnapService() const { return snap_service_; }
|
||||
void SetSnapService(TimeBasedWidget* service) { snap_service_ = service; }
|
||||
|
||||
@@ -62,9 +60,11 @@ public:
|
||||
virtual void SelectionManagerSelectEvent(void *obj){}
|
||||
virtual void SelectionManagerDeselectEvent(void *obj){}
|
||||
|
||||
public slots:
|
||||
void SetTime(const rational &time);
|
||||
ViewerOutput *GetViewerNode() const { return viewer_; }
|
||||
|
||||
void SetViewerNode(ViewerOutput *v);
|
||||
|
||||
public slots:
|
||||
void SetEndTime(const rational& length);
|
||||
|
||||
/**
|
||||
@@ -73,8 +73,6 @@ public slots:
|
||||
void UpdateSceneRect();
|
||||
|
||||
signals:
|
||||
void TimeChanged(const rational& time);
|
||||
|
||||
void ScaleChanged(double scale);
|
||||
|
||||
protected:
|
||||
@@ -109,8 +107,6 @@ protected:
|
||||
private:
|
||||
qreal GetPlayheadX();
|
||||
|
||||
rational playhead_;
|
||||
|
||||
double playhead_scene_left_;
|
||||
double playhead_scene_right_;
|
||||
|
||||
@@ -129,6 +125,8 @@ private:
|
||||
|
||||
double y_scale_;
|
||||
|
||||
ViewerOutput *viewer_;
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user