changed some icons and added classes for timeline view

This commit is contained in:
itsmattkc
2019-07-25 23:16:07 -07:00
parent 3bdbb4a26a
commit 316d12b61d
40 changed files with 453 additions and 598 deletions
+1
View File
@@ -24,6 +24,7 @@ add_subdirectory(playbackcontrols)
add_subdirectory(projectexplorer)
add_subdirectory(projecttoolbar)
add_subdirectory(taskview)
add_subdirectory(timelineview)
add_subdirectory(timeruler)
add_subdirectory(toolbar)
add_subdirectory(viewer)
+24
View File
@@ -0,0 +1,24 @@
# Olive - Non-Linear Video Editor
# Copyright (C) 2019 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/>.
set(OLIVE_SOURCES
${OLIVE_SOURCES}
widget/timelineview/timelineview.h
widget/timelineview/timelineview.cpp
widget/timelineview/timelineviewclipitem.h
widget/timelineview/timelineviewclipitem.cpp
PARENT_SCOPE
)
+16
View File
@@ -0,0 +1,16 @@
#include "timelineview.h"
TimelineView::TimelineView(QWidget *parent) :
QGraphicsView(parent),
sequence_(nullptr)
{
}
void TimelineView::SetSequence(Sequence *s)
{
scene_.clear();
sequence_ = s;
QList<Node*> sequence_nodes = sequence_->nodes();
}
+21
View File
@@ -0,0 +1,21 @@
#ifndef TIMELINEVIEW_H
#define TIMELINEVIEW_H
#include <QGraphicsView>
#include "project/item/sequence/sequence.h"
class TimelineView : public QGraphicsView
{
public:
TimelineView(QWidget* parent);
void SetSequence(Sequence* s);
private:
Sequence* sequence_;
QGraphicsScene scene_;
};
#endif // TIMELINEVIEW_H
@@ -0,0 +1,7 @@
#include "timelineviewclipitem.h"
TimelineViewClipItem::TimelineViewClipItem(QGraphicsItem* parent) :
QGraphicsRectItem(parent)
{
}
@@ -0,0 +1,12 @@
#ifndef TIMELINEVIEWCLIPITEM_H
#define TIMELINEVIEWCLIPITEM_H
#include <QGraphicsRectItem>
class TimelineViewClipItem : public QGraphicsRectItem
{
public:
TimelineViewClipItem(QGraphicsItem* parent = nullptr);
};
#endif // TIMELINEVIEWCLIPITEM_H