diff --git a/app/widget/timelinewidget/timelinewidget.cpp b/app/widget/timelinewidget/timelinewidget.cpp index 449f876de..0ff33241a 100644 --- a/app/widget/timelinewidget/timelinewidget.cpp +++ b/app/widget/timelinewidget/timelinewidget.cpp @@ -35,6 +35,7 @@ #include "tool/edit.h" #include "tool/pointer.h" #include "tool/razor.h" +#include "tool/record.h" #include "tool/ripple.h" #include "tool/rolling.h" #include "tool/slide.h" @@ -96,7 +97,7 @@ TimelineWidget::TimelineWidget(QWidget *parent) : tools_.replace(olive::Tool::kSlide, new SlideTool(this)); tools_.replace(olive::Tool::kZoom, new ZoomTool(this)); tools_.replace(olive::Tool::kTransition, new TransitionTool(this)); - //tools_.replace(olive::Tool::kRecord, new PointerTool(this)); FIXME: Implement + tools_.replace(olive::Tool::kRecord, new RecordTool(this)); tools_.replace(olive::Tool::kAdd, new AddTool(this)); import_tool_ = new ImportTool(this); diff --git a/app/widget/timelinewidget/tool/CMakeLists.txt b/app/widget/timelinewidget/tool/CMakeLists.txt index 8f9a1d8e0..78d2a061d 100644 --- a/app/widget/timelinewidget/tool/CMakeLists.txt +++ b/app/widget/timelinewidget/tool/CMakeLists.txt @@ -28,6 +28,8 @@ set(OLIVE_SOURCES widget/timelinewidget/tool/pointer.h widget/timelinewidget/tool/razor.cpp widget/timelinewidget/tool/razor.h + widget/timelinewidget/tool/record.cpp + widget/timelinewidget/tool/record.h widget/timelinewidget/tool/ripple.cpp widget/timelinewidget/tool/ripple.h widget/timelinewidget/tool/rolling.cpp diff --git a/app/widget/timelinewidget/tool/record.cpp b/app/widget/timelinewidget/tool/record.cpp new file mode 100644 index 000000000..4a904fb14 --- /dev/null +++ b/app/widget/timelinewidget/tool/record.cpp @@ -0,0 +1,11 @@ +#include "record.h" + +namespace olive { + +RecordTool::RecordTool(TimelineWidget *parent) : + BeamTool(parent) +{ + +} + +} diff --git a/app/widget/timelinewidget/tool/record.h b/app/widget/timelinewidget/tool/record.h new file mode 100644 index 000000000..4ad234245 --- /dev/null +++ b/app/widget/timelinewidget/tool/record.h @@ -0,0 +1,36 @@ +/*** + + Olive - Non-Linear Video Editor + Copyright (C) 2020 Olive Team + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +***/ + +#ifndef RECORDTIMELINETOOL_H +#define RECORDTIMELINETOOL_H + +#include "beam.h" + +namespace olive { + +class RecordTool : public BeamTool +{ +public: + RecordTool(TimelineWidget* parent); +}; + +} + +#endif // RECORDTOOL_H