timeline: started record tool

This commit is contained in:
itsmattkc
2020-11-25 11:53:56 +11:00
parent b5cc13c10e
commit a043a686c6
4 changed files with 51 additions and 1 deletions
+2 -1
View File
@@ -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);
@@ -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
+11
View File
@@ -0,0 +1,11 @@
#include "record.h"
namespace olive {
RecordTool::RecordTool(TimelineWidget *parent) :
BeamTool(parent)
{
}
}
+36
View File
@@ -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 <http://www.gnu.org/licenses/>.
***/
#ifndef RECORDTIMELINETOOL_H
#define RECORDTIMELINETOOL_H
#include "beam.h"
namespace olive {
class RecordTool : public BeamTool
{
public:
RecordTool(TimelineWidget* parent);
};
}
#endif // RECORDTOOL_H