Files
oak-editor/app/project/project.cpp
T
itsmattkc 00b5672639 implemented saving UI
Implemented the file dialog, save progress dialog, and separate thread to save
in (saving needs to be done in a separate thread so the main/GUI thread doesn't
get blocked).
2020-01-12 16:26:05 +11:00

80 lines
1.6 KiB
C++

/***
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/>.
***/
#include "project.h"
#include <QFileInfo>
Project::Project()
{
root_.set_project(this);
}
Folder *Project::root()
{
return &root_;
}
QString Project::name() const
{
if (filename_.isEmpty()) {
return tr("(untitled)");
} else {
return QFileInfo(filename_).baseName();
}
}
const QString &Project::filename() const
{
return filename_;
}
void Project::set_filename(const QString &s)
{
filename_ = s;
emit NameChanged();
}
const QString &Project::ocio_config() const
{
return ocio_config_;
}
void Project::set_ocio_config(const QString &ocio_config)
{
ocio_config_ = ocio_config;
}
const QString &Project::default_input_colorspace() const
{
return default_input_colorspace_;
}
void Project::set_default_input_colorspace(const QString &colorspace)
{
default_input_colorspace_ = colorspace;
}
ColorManager *Project::color_manager()
{
return &color_manager_;
}