refactored so sequence is again a derivative of viewer
This commit is contained in:
@@ -108,22 +108,7 @@ void TimeBasedPanel::ShuttleRight()
|
||||
emit ShuttleRightRequested();
|
||||
}
|
||||
|
||||
TimeBasedWidget *TimeBasedPanel::GetTimeBasedWidget() const
|
||||
{
|
||||
return widget_;
|
||||
}
|
||||
|
||||
Sequence *TimeBasedPanel::GetConnectedViewer() const
|
||||
{
|
||||
return widget_->GetConnectedNode();
|
||||
}
|
||||
|
||||
TimeRuler *TimeBasedPanel::ruler() const
|
||||
{
|
||||
return widget_->ruler();
|
||||
}
|
||||
|
||||
void TimeBasedPanel::ConnectViewerNode(Sequence *node)
|
||||
void TimeBasedPanel::ConnectViewerNode(ViewerOutput *node)
|
||||
{
|
||||
if (widget_->GetConnectedNode() == node) {
|
||||
return;
|
||||
|
||||
@@ -32,15 +32,26 @@ class TimeBasedPanel : public PanelWidget
|
||||
public:
|
||||
TimeBasedPanel(const QString& object_name, QWidget *parent = nullptr);
|
||||
|
||||
void ConnectViewerNode(Sequence *node);
|
||||
void ConnectViewerNode(ViewerOutput *node);
|
||||
|
||||
void DisconnectViewerNode();
|
||||
|
||||
rational GetTime();
|
||||
|
||||
Sequence *GetConnectedViewer() const;
|
||||
ViewerOutput *GetConnectedViewer() const
|
||||
{
|
||||
return widget_->GetConnectedNode();
|
||||
}
|
||||
|
||||
TimeRuler* ruler() const;
|
||||
TimelinePoints* GetConnectedTimelinePoints() const
|
||||
{
|
||||
return widget_->GetConnectedTimelinePoints();
|
||||
}
|
||||
|
||||
TimeRuler* ruler() const
|
||||
{
|
||||
return widget_->ruler();
|
||||
}
|
||||
|
||||
virtual void ZoomIn() override;
|
||||
|
||||
@@ -107,7 +118,10 @@ signals:
|
||||
void ShuttleRightRequested();
|
||||
|
||||
protected:
|
||||
TimeBasedWidget* GetTimeBasedWidget() const;
|
||||
TimeBasedWidget* GetTimeBasedWidget() const
|
||||
{
|
||||
return widget_;
|
||||
}
|
||||
|
||||
void SetTimeBasedWidget(TimeBasedWidget* widget);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user