started ripple tool and finish hand tool

This commit is contained in:
itsmattkc
2019-09-18 02:39:26 +10:00
parent d002da8f60
commit cdcfd59ec5
6 changed files with 265 additions and 51 deletions
+4 -2
View File
@@ -36,7 +36,9 @@ TimelineView::TimelineView(QWidget *parent) :
QGraphicsView(parent),
pointer_tool_(this),
import_tool_(this),
ripple_tool_(this),
razor_tool_(this),
hand_tool_(this),
playhead_(0)
{
setScene(&scene_);
@@ -206,7 +208,7 @@ TimelineView::Tool *TimelineView::GetActiveTool()
case olive::tool::kEdit:
return nullptr; // FIXME: Implement
case olive::tool::kRipple:
return nullptr; // FIXME: Implement
return &ripple_tool_;
case olive::tool::kRolling:
return nullptr; // FIXME: Implement
case olive::tool::kRazor:
@@ -216,7 +218,7 @@ TimelineView::Tool *TimelineView::GetActiveTool()
case olive::tool::kSlide:
return nullptr; // FIXME: Implement
case olive::tool::kHand:
return nullptr; // FIXME: Implement
return &hand_tool_;
case olive::tool::kZoom:
return nullptr; // FIXME: Implement
case olive::tool::kTransition: