various: encapsulate all code in the olive namespace to avoid name collisions

Large-scale code cleanup. Also adds a license to the top of all files that were
missing it.
This commit is contained in:
itsmattkc
2020-04-06 15:29:53 +10:00
parent 82b6ddccc8
commit 1aa87cbda6
519 changed files with 7939 additions and 158 deletions
+4
View File
@@ -25,6 +25,8 @@
#include <QLabel>
#include <QVBoxLayout>
OLIVE_NAMESPACE_ENTER
AboutDialog::AboutDialog(QWidget *parent) :
QDialog(parent)
{
@@ -64,3 +66,5 @@ AboutDialog::AboutDialog(QWidget *parent) :
connect(buttons, SIGNAL(accepted()), this, SLOT(accept()));
}
OLIVE_NAMESPACE_EXIT
+6
View File
@@ -23,6 +23,10 @@
#include <QDialog>
#include "common/define.h"
OLIVE_NAMESPACE_ENTER
/**
* @brief The AboutDialog class
*
@@ -45,4 +49,6 @@ public:
explicit AboutDialog(QWidget *parent = nullptr);
};
OLIVE_NAMESPACE_EXIT
#endif // ABOUTDIALOG_H
+4
View File
@@ -25,6 +25,8 @@
#include <QMenuBar>
#include <QLabel>
OLIVE_NAMESPACE_ENTER
ActionSearch::ActionSearch(QWidget *parent) :
QDialog(parent),
menu_bar_(nullptr)
@@ -251,3 +253,5 @@ void ActionSearchList::mouseDoubleClickEvent(QMouseEvent *) {
emit dbl_click();
}
OLIVE_NAMESPACE_EXIT
+6
View File
@@ -27,6 +27,10 @@
#include <QMenu>
#include <QMenuBar>
#include "common/define.h"
OLIVE_NAMESPACE_ENTER
class ActionSearchList;
/**
@@ -178,4 +182,6 @@ signals:
void moveSelectionDown();
};
OLIVE_NAMESPACE_EXIT
#endif // ACTIONSEARCH_H
+24
View File
@@ -1,3 +1,23 @@
/***
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 "colordialog.h"
#include <QDialogButtonBox>
@@ -6,6 +26,8 @@
#include "common/qtutils.h"
OLIVE_NAMESPACE_ENTER
ColorDialog::ColorDialog(ColorManager* color_manager, Color start, QString input_cs, QWidget *parent) :
QDialog(parent),
color_manager_(color_manager)
@@ -127,3 +149,5 @@ void ColorDialog::ColorSpaceChanged(const QString &input, const QString &display
hsv_value_gradient_->SetColorProcessor(to_linear_processor_, to_display);
color_values_widget_->preview_box()->SetColorProcessor(to_linear_processor_, to_display);
}
OLIVE_NAMESPACE_EXIT
+24
View File
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef COLORDIALOG_H
#define COLORDIALOG_H
@@ -10,6 +30,8 @@
#include "widget/colorwheel/colorwheelwidget.h"
#include "widget/colorwheel/colorgradientwidget.h"
OLIVE_NAMESPACE_ENTER
class ColorDialog : public QDialog
{
Q_OBJECT
@@ -68,4 +90,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
#endif // COLORDIALOG_H
+24
View File
@@ -1,7 +1,29 @@
/***
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 "colorpreviewbox.h"
#include <QPainter>
OLIVE_NAMESPACE_ENTER
ColorPreviewBox::ColorPreviewBox(QWidget *parent) :
QWidget(parent)
{
@@ -41,3 +63,5 @@ void ColorPreviewBox::paintEvent(QPaintEvent *e)
p.drawRect(rect());
}
OLIVE_NAMESPACE_EXIT
+24
View File
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef COLORPREVIEWBOX_H
#define COLORPREVIEWBOX_H
@@ -6,6 +26,8 @@
#include "render/color.h"
#include "render/colorprocessor.h"
OLIVE_NAMESPACE_ENTER
class ColorPreviewBox : public QWidget
{
Q_OBJECT
@@ -29,4 +51,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
#endif // COLORPREVIEWBOX_H
+24
View File
@@ -1,8 +1,30 @@
/***
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 "colorspacechooser.h"
#include <QGridLayout>
#include <QLabel>
OLIVE_NAMESPACE_ENTER
ColorSpaceChooser::ColorSpaceChooser(ColorManager* color_manager, bool enable_input_field, QWidget *parent):
QGroupBox(parent),
color_manager_(color_manager)
@@ -145,3 +167,5 @@ void ColorSpaceChooser::ComboBoxChanged()
emit DisplayColorSpaceChanged(display(), view(), look());
}
OLIVE_NAMESPACE_EXIT
+24
View File
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef COLORSPACECHOOSER_H
#define COLORSPACECHOOSER_H
@@ -6,6 +26,8 @@
#include "render/colormanager.h"
OLIVE_NAMESPACE_ENTER
class ColorSpaceChooser : public QGroupBox
{
Q_OBJECT
@@ -43,4 +65,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
#endif // COLORSPACECHOOSER_H
+24
View File
@@ -1,7 +1,29 @@
/***
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 "colorvalueswidget.h"
#include <QGridLayout>
OLIVE_NAMESPACE_ENTER
ColorValuesWidget::ColorValuesWidget(QWidget *parent) :
QWidget(parent)
{
@@ -76,3 +98,5 @@ void ColorValuesWidget::SliderChanged()
emit ColorChanged(c);
}
OLIVE_NAMESPACE_EXIT
+24
View File
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef COLORVALUESWIDGET_H
#define COLORVALUESWIDGET_H
@@ -7,6 +27,8 @@
#include "render/color.h"
#include "widget/slider/floatslider.h"
OLIVE_NAMESPACE_ENTER
class ColorValuesWidget : public QWidget
{
Q_OBJECT
@@ -37,4 +59,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
#endif // COLORVALUESWIDGET_H
+24
View File
@@ -1,3 +1,23 @@
/***
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 "crashhandler.h"
#include <QFile>
@@ -7,6 +27,8 @@
#include <QTextEdit>
#include <QVBoxLayout>
OLIVE_NAMESPACE_ENTER
CrashHandlerDialog::CrashHandlerDialog(const char *log_file)
{
setWindowTitle(tr("Olive"));
@@ -59,3 +81,5 @@ void CrashHandlerDialog::reject()
{
QDialog::reject();
}
OLIVE_NAMESPACE_EXIT
+26
View File
@@ -1,8 +1,32 @@
/***
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/>.
***/
#ifndef CRASHHANDLERDIALOG_H
#define CRASHHANDLERDIALOG_H
#include <QDialog>
#include "common/define.h"
OLIVE_NAMESPACE_ENTER
class CrashHandlerDialog : public QDialog
{
Q_OBJECT
@@ -16,4 +40,6 @@ public slots:
};
OLIVE_NAMESPACE_EXIT
#endif // CRASHHANDLERDIALOG_H
+21 -1
View File
@@ -1,3 +1,23 @@
/***
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 "crashhandler.h"
#include <QApplication>
@@ -10,7 +30,7 @@ int main(int argc, char *argv[])
QApplication a(argc, argv);
CrashHandlerDialog chd(argv[1]);
OLIVE_NAMESPACE::CrashHandlerDialog chd(argv[1]);
chd.open();
return a.exec();
+24
View File
@@ -1,6 +1,30 @@
/***
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 "codecsection.h"
OLIVE_NAMESPACE_ENTER
CodecSection::CodecSection(QWidget *parent) :
QWidget(parent)
{
}
OLIVE_NAMESPACE_EXIT
+24
View File
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef CODECSECTION_H
#define CODECSECTION_H
@@ -5,6 +25,8 @@
#include "codec/encoder.h"
OLIVE_NAMESPACE_ENTER
class CodecSection : public QWidget
{
public:
@@ -14,4 +36,6 @@ public:
};
OLIVE_NAMESPACE_EXIT
#endif // CODECSECTION_H
+24
View File
@@ -1,3 +1,23 @@
/***
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 "h264section.h"
#include <QCheckBox>
@@ -8,6 +28,8 @@
#include "common/qtutils.h"
#include "widget/slider/integerslider.h"
OLIVE_NAMESPACE_ENTER
H264Section::H264Section(QWidget *parent) :
CodecSection(parent)
{
@@ -184,3 +206,5 @@ int64_t H264FileSizeSection::GetFileSize() const
// Convert megabytes to BITS
return qRound64(file_size_->GetValue() * 1024.0 * 1024.0 * 8.0);
}
OLIVE_NAMESPACE_EXIT
+24
View File
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef H264SECTION_H
#define H264SECTION_H
@@ -7,6 +27,8 @@
#include "codecsection.h"
#include "widget/slider/floatslider.h"
OLIVE_NAMESPACE_ENTER
class H264CRFSection : public QWidget
{
public:
@@ -86,4 +108,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
#endif // H264SECTION_H
+24
View File
@@ -1,8 +1,30 @@
/***
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 "imagesection.h"
#include <QGridLayout>
#include <QLabel>
OLIVE_NAMESPACE_ENTER
ImageSection::ImageSection(QWidget* parent) :
CodecSection(parent)
{
@@ -21,3 +43,5 @@ QCheckBox *ImageSection::image_sequence_checkbox() const
{
return image_sequence_checkbox_;
}
OLIVE_NAMESPACE_EXIT
+24
View File
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef IMAGESECTION_H
#define IMAGESECTION_H
@@ -5,6 +25,8 @@
#include "codecsection.h"
OLIVE_NAMESPACE_ENTER
class ImageSection : public CodecSection
{
public:
@@ -17,4 +39,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
#endif // IMAGESECTION_H
+24
View File
@@ -1,3 +1,23 @@
/***
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 "export.h"
#include <QCloseEvent>
@@ -15,6 +35,8 @@
#include "render/pixelformat.h"
#include "ui/icons/icons.h"
OLIVE_NAMESPACE_ENTER
ExportDialog::ExportDialog(ViewerOutput *viewer_node, QWidget *parent) :
QDialog(parent),
viewer_node_(viewer_node),
@@ -613,3 +635,5 @@ void ExportDialog::UpdateTaskbarProgress(int progress)
}
}
#endif
OLIVE_NAMESPACE_EXIT
+24
View File
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef EXPORTDIALOG_H
#define EXPORTDIALOG_H
@@ -18,6 +38,8 @@
#include "render/backend/exporter.h"
#include "widget/viewer/viewer.h"
OLIVE_NAMESPACE_ENTER
class ExportDialog : public QDialog
{
Q_OBJECT
@@ -124,4 +146,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
#endif // EXPORTDIALOG_H
+24
View File
@@ -1,3 +1,23 @@
/***
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 "exportaudiotab.h"
#include <QGridLayout>
@@ -5,6 +25,8 @@
#include "core.h"
OLIVE_NAMESPACE_ENTER
ExportAudioTab::ExportAudioTab(QWidget* parent) :
QWidget(parent)
{
@@ -74,3 +96,5 @@ void ExportAudioTab::set_channel_layout(uint64_t layout)
{
channel_layout_combobox_->setCurrentIndex(channel_layouts_.indexOf(layout));
}
OLIVE_NAMESPACE_EXIT
+26
View File
@@ -1,9 +1,33 @@
/***
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/>.
***/
#ifndef EXPORTAUDIOTAB_H
#define EXPORTAUDIOTAB_H
#include <QComboBox>
#include <QWidget>
#include "common/define.h"
OLIVE_NAMESPACE_ENTER
class ExportAudioTab : public QWidget
{
public:
@@ -25,4 +49,6 @@ private:
QList<uint64_t> channel_layouts_;
};
OLIVE_NAMESPACE_EXIT
#endif // EXPORTAUDIOTAB_H
+26
View File
@@ -1,8 +1,32 @@
/***
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/>.
***/
#ifndef EXPORTCODEC_H
#define EXPORTCODEC_H
#include <QString>
#include "common/define.h"
OLIVE_NAMESPACE_ENTER
class ExportCodec {
public:
enum Flag {
@@ -28,4 +52,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
#endif // EXPORTCODEC_H
+26
View File
@@ -1,9 +1,33 @@
/***
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/>.
***/
#ifndef EXPORTFORMAT_H
#define EXPORTFORMAT_H
#include <QList>
#include <QString>
#include "common/define.h"
OLIVE_NAMESPACE_ENTER
class ExportFormat {
public:
ExportFormat(const QString& name, const QString& extension, const QString& encoder, const QList<int>& vcodecs, const QList<int>& acodecs) :
@@ -30,4 +54,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
#endif // EXPORTFORMAT_H
+24
View File
@@ -1,3 +1,23 @@
/***
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 "exportvideotab.h"
#include <QCheckBox>
@@ -8,6 +28,8 @@
#include "core.h"
#include "render/colormanager.h"
OLIVE_NAMESPACE_ENTER
ExportVideoTab::ExportVideoTab(ColorManager* color_manager, QWidget *parent) :
QWidget(parent),
color_manager_(color_manager)
@@ -190,3 +212,5 @@ void ExportVideoTab::MaintainAspectRatioChanged(bool val)
{
scaling_method_combobox_->setEnabled(!val);
}
OLIVE_NAMESPACE_EXIT
+24
View File
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef EXPORTVIDEOTAB_H
#define EXPORTVIDEOTAB_H
@@ -12,6 +32,8 @@
#include "render/colormanager.h"
#include "widget/slider/integerslider.h"
OLIVE_NAMESPACE_ENTER
class ExportVideoTab : public QWidget
{
Q_OBJECT
@@ -74,4 +96,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
#endif // EXPORTVIDEOTAB_H
@@ -36,6 +36,8 @@
#include "streamproperties/audiostreamproperties.h"
#include "streamproperties/videostreamproperties.h"
OLIVE_NAMESPACE_ENTER
FootagePropertiesDialog::FootagePropertiesDialog(QWidget *parent, Footage *footage) :
QDialog(parent),
footage_(footage)
@@ -170,3 +172,5 @@ void FootagePropertiesDialog::StreamEnableChangeCommand::undo_internal()
{
stream_->set_enabled(old_enabled_);
}
OLIVE_NAMESPACE_EXIT
@@ -32,6 +32,8 @@
#include "project/item/footage/footage.h"
#include "undo/undocommand.h"
OLIVE_NAMESPACE_ENTER
/**
* @brief The MediaPropertiesDialog class
*
@@ -126,4 +128,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
#endif // MEDIAPROPERTIESDIALOG_H
@@ -20,6 +20,8 @@
#include "audiostreamproperties.h"
OLIVE_NAMESPACE_ENTER
AudioStreamProperties::AudioStreamProperties(AudioStreamPtr stream) :
stream_(stream)
{
@@ -28,3 +30,5 @@ AudioStreamProperties::AudioStreamProperties(AudioStreamPtr stream) :
void AudioStreamProperties::Accept(QUndoCommand*)
{
}
OLIVE_NAMESPACE_EXIT
@@ -24,6 +24,8 @@
#include "project/item/footage/audiostream.h"
#include "streamproperties.h"
OLIVE_NAMESPACE_ENTER
class AudioStreamProperties : public StreamProperties
{
public:
@@ -35,4 +37,6 @@ private:
AudioStreamPtr stream_;
};
OLIVE_NAMESPACE_EXIT
#endif // AUDIOSTREAMPROPERTIES_H
@@ -20,7 +20,11 @@
#include "streamproperties.h"
OLIVE_NAMESPACE_ENTER
StreamProperties::StreamProperties(QWidget *parent) :
QWidget(parent)
{
}
OLIVE_NAMESPACE_EXIT
@@ -24,6 +24,10 @@
#include <QUndoCommand>
#include <QWidget>
#include "common/define.h"
OLIVE_NAMESPACE_ENTER
class StreamProperties : public QWidget
{
public:
@@ -35,4 +39,6 @@ public:
};
OLIVE_NAMESPACE_EXIT
#endif // STREAMPROPERTIES_H
@@ -31,6 +31,8 @@ namespace OCIO = OCIO_NAMESPACE::v1;
#include "project/project.h"
#include "undo/undostack.h"
OLIVE_NAMESPACE_ENTER
VideoStreamProperties::VideoStreamProperties(ImageStreamPtr stream) :
stream_(stream)
{
@@ -193,3 +195,5 @@ void VideoStreamProperties::ImageSequenceChangeCommand::undo_internal()
video_stream_->set_start_time(old_start_index_);
video_stream_->set_duration(old_duration_);
}
OLIVE_NAMESPACE_EXIT
@@ -29,6 +29,8 @@
#include "undo/undocommand.h"
#include "widget/slider/integerslider.h"
OLIVE_NAMESPACE_ENTER
class VideoStreamProperties : public StreamProperties
{
public:
@@ -111,4 +113,6 @@ private:
};
};
OLIVE_NAMESPACE_EXIT
#endif // VIDEOSTREAMPROPERTIES_H
@@ -1,3 +1,23 @@
/***
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 "keyframeproperties.h"
#include <QDialogButtonBox>
@@ -8,6 +28,8 @@
#include "widget/keyframeview/keyframeviewundo.h"
#include "widget/nodeparamview/nodeparamviewundo.h"
OLIVE_NAMESPACE_ENTER
KeyframePropertiesDialog::KeyframePropertiesDialog(const QList<NodeKeyframePtr> &keys, const rational &timebase, QWidget *parent) :
QDialog(parent),
keys_(keys),
@@ -217,3 +239,5 @@ void KeyframePropertiesDialog::KeyTypeChanged(int index)
{
bezier_group_->setEnabled(type_select_->itemData(index) == NodeKeyframe::kBezier);
}
OLIVE_NAMESPACE_EXIT
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef KEYFRAMEPROPERTIESDIALOG_H
#define KEYFRAMEPROPERTIESDIALOG_H
@@ -9,6 +29,8 @@
#include "widget/slider/floatslider.h"
#include "widget/slider/timeslider.h"
OLIVE_NAMESPACE_ENTER
class KeyframePropertiesDialog : public QDialog
{
Q_OBJECT
@@ -44,4 +66,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
#endif // KEYFRAMEPROPERTIESDIALOG_H
@@ -22,6 +22,8 @@
#include <QAction>
OLIVE_NAMESPACE_ENTER
KeySequenceEditor::KeySequenceEditor(QWidget* parent, QAction* a)
: QKeySequenceEdit(parent), action(a) {
setKeySequence(action->shortcut());
@@ -46,3 +48,5 @@ QString KeySequenceEditor::export_shortcut() {
}
return nullptr;
}
OLIVE_NAMESPACE_EXIT
@@ -23,6 +23,10 @@
#include <QKeySequenceEdit>
#include "common/debug.h"
OLIVE_NAMESPACE_ENTER
/**
* @brief The KeySequenceEditor class
*
@@ -97,4 +101,6 @@ private:
QAction* action;
};
OLIVE_NAMESPACE_EXIT
#endif // KEYSEQUENCEEDITOR_H
+4
View File
@@ -34,6 +34,8 @@
#include "tabs/preferencesaudiotab.h"
#include "tabs/preferenceskeyboardtab.h"
OLIVE_NAMESPACE_ENTER
PreferencesDialog::PreferencesDialog(QWidget *parent, QMenuBar* main_menu_bar) :
QDialog(parent)
{
@@ -94,3 +96,5 @@ void PreferencesDialog::AddTab(PreferencesTab *tab, const QString &title)
tabs_.append(tab);
}
OLIVE_NAMESPACE_EXIT
+4
View File
@@ -30,6 +30,8 @@
#include "tabs/preferencestab.h"
OLIVE_NAMESPACE_ENTER
/**
* @brief The PreferencesDialog class
*
@@ -67,4 +69,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
#endif // PREFERENCESDIALOG_H
@@ -1,3 +1,23 @@
/***
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 "preferencesappearancetab.h"
#include <QFileDialog>
@@ -5,6 +25,8 @@
#include <QLabel>
#include <QPushButton>
OLIVE_NAMESPACE_ENTER
PreferencesAppearanceTab::PreferencesAppearanceTab()
{
QVBoxLayout* layout = new QVBoxLayout(this);
@@ -50,3 +72,5 @@ void PreferencesAppearanceTab::Accept()
StyleManager::SetStyle(style_->currentData().toString());
}
}
OLIVE_NAMESPACE_EXIT
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef PREFERENCESAPPEARANCETAB_H
#define PREFERENCESAPPEARANCETAB_H
@@ -7,6 +27,8 @@
#include "preferencestab.h"
#include "ui/style/style.h"
OLIVE_NAMESPACE_ENTER
class PreferencesAppearanceTab : public PreferencesTab
{
Q_OBJECT
@@ -34,4 +56,6 @@ private:
QString custom_style_path_;
};
OLIVE_NAMESPACE_EXIT
#endif // PREFERENCESAPPEARANCETAB_H
@@ -1,3 +1,23 @@
/***
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 "preferencesaudiotab.h"
#include <QAudioDeviceInfo>
@@ -8,6 +28,8 @@
#include "audio/audiomanager.h"
#include "config/config.h"
OLIVE_NAMESPACE_ENTER
PreferencesAudioTab::PreferencesAudioTab() :
has_devices_(false)
{
@@ -169,3 +191,5 @@ void PreferencesAudioTab::RetrieveDeviceLists()
has_devices_ = true;
}
OLIVE_NAMESPACE_EXIT
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef PREFERENCESAUDIOTAB_H
#define PREFERENCESAUDIOTAB_H
@@ -5,6 +25,8 @@
#include "preferencestab.h"
OLIVE_NAMESPACE_ENTER
class PreferencesAudioTab : public PreferencesTab
{
Q_OBJECT
@@ -44,4 +66,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
#endif // PREFERENCESAUDIOTAB_H
@@ -1,3 +1,23 @@
/***
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 "preferencesbehaviortab.h"
#include <QCheckBox>
@@ -5,6 +25,8 @@
#include "config/config.h"
OLIVE_NAMESPACE_ENTER
PreferencesBehaviorTab::PreferencesBehaviorTab()
{
QVBoxLayout* layout = new QVBoxLayout(this);
@@ -128,3 +150,5 @@ QTreeWidgetItem *PreferencesBehaviorTab::AddParent(const QString &text, QTreeWid
{
return AddParent(text, QString(), parent);
}
OLIVE_NAMESPACE_EXIT
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef PREFERENCESBEHAVIORTAB_H
#define PREFERENCESBEHAVIORTAB_H
@@ -5,6 +25,8 @@
#include "preferencestab.h"
OLIVE_NAMESPACE_ENTER
class PreferencesBehaviorTab : public PreferencesTab
{
Q_OBJECT
@@ -26,4 +48,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
#endif // PREFERENCESBEHAVIORTAB_H
@@ -1,3 +1,23 @@
/***
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 "preferencesdisktab.h"
#include <QDir>
@@ -9,6 +29,8 @@
#include "render/diskmanager.h"
OLIVE_NAMESPACE_ENTER
PreferencesDiskTab::PreferencesDiskTab()
{
QVBoxLayout* outer_layout = new QVBoxLayout(this);
@@ -124,3 +146,5 @@ void PreferencesDiskTab::ClearDiskCache()
}
}
}
OLIVE_NAMESPACE_EXIT
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef PREFERENCESDISKTAB_H
#define PREFERENCESDISKTAB_H
@@ -8,6 +28,8 @@
#include "preferencestab.h"
#include "widget/slider/floatslider.h"
OLIVE_NAMESPACE_ENTER
class PreferencesDiskTab : public PreferencesTab
{
Q_OBJECT
@@ -38,4 +60,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
#endif // PREFERENCESDISKTAB_H
@@ -1,3 +1,23 @@
/***
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 "preferencesgeneraltab.h"
#include <QGridLayout>
@@ -8,6 +28,8 @@
#include "dialog/sequence/sequence.h"
#include "project/item/sequence/sequence.h"
OLIVE_NAMESPACE_ENTER
PreferencesGeneralTab::PreferencesGeneralTab()
{
QVBoxLayout* layout = new QVBoxLayout(this);
@@ -121,3 +143,5 @@ void PreferencesGeneralTab::edit_default_sequence_settings()
sd.SetNameIsEditable(false);
sd.exec();
}
OLIVE_NAMESPACE_EXIT
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef PREFERENCESGENERALTAB_H
#define PREFERENCESGENERALTAB_H
@@ -9,6 +29,8 @@
#include "project/item/sequence/sequence.h"
#include "widget/slider/floatslider.h"
OLIVE_NAMESPACE_ENTER
class PreferencesGeneralTab : public PreferencesTab
{
Q_OBJECT
@@ -39,4 +61,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
#endif // PREFERENCESGENERALTAB_H
@@ -1,3 +1,23 @@
/***
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 "preferenceskeyboardtab.h"
#include <QFileDialog>
@@ -7,6 +27,8 @@
#include <QPushButton>
#include <QVBoxLayout>
OLIVE_NAMESPACE_ENTER
PreferencesKeyboardTab::PreferencesKeyboardTab(QMenuBar *menubar)
{
QVBoxLayout* shortcut_layout = new QVBoxLayout(this);
@@ -216,3 +238,5 @@ void PreferencesKeyboardTab::save_shortcut_file() {
}
}
}
OLIVE_NAMESPACE_EXIT
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef PREFERENCESKEYBOARDTAB_H
#define PREFERENCESKEYBOARDTAB_H
@@ -7,6 +27,8 @@
#include "preferencestab.h"
#include "../keysequenceeditor.h"
OLIVE_NAMESPACE_ENTER
class PreferencesKeyboardTab : public PreferencesTab
{
Q_OBJECT
@@ -112,4 +134,6 @@ private:
QVector<KeySequenceEditor*> key_shortcut_fields_;
};
OLIVE_NAMESPACE_EXIT
#endif // PREFERENCESKEYBOARDTAB_H
@@ -1,3 +1,23 @@
/***
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 "preferencesqualitytab.h"
#include <QGroupBox>
@@ -8,6 +28,8 @@
#include "render/colormanager.h"
#include "render/pixelformat.h"
OLIVE_NAMESPACE_ENTER
PreferencesQualityTab::PreferencesQualityTab()
{
QVBoxLayout* layout = new QVBoxLayout(this);
@@ -126,3 +148,5 @@ QComboBox *PreferencesQualityGroup::sample_fmt_combobox()
{
return sample_fmt_combobox_;
}
OLIVE_NAMESPACE_EXIT
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef PREFERENCESQUALITYTAB_H
#define PREFERENCESQUALITYTAB_H
@@ -8,6 +28,8 @@
#include "preferencestab.h"
OLIVE_NAMESPACE_ENTER
class PreferencesQualityGroup : public QGroupBox
{
Q_OBJECT
@@ -46,4 +68,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
#endif // PREFERENCESQUALITYTAB_H
+23 -4
View File
@@ -1,11 +1,30 @@
/***
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 "preferencestab.h"
PreferencesTab::PreferencesTab()
{
}
OLIVE_NAMESPACE_ENTER
bool PreferencesTab::Validate()
{
return true;
}
OLIVE_NAMESPACE_EXIT
+25 -1
View File
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef PREFERENCESTAB_H
#define PREFERENCESTAB_H
@@ -5,14 +25,18 @@
#include "config/config.h"
OLIVE_NAMESPACE_ENTER
class PreferencesTab : public QWidget
{
public:
PreferencesTab();
PreferencesTab() = default;
virtual bool Validate();
virtual void Accept() = 0;
};
OLIVE_NAMESPACE_EXIT
#endif // PREFERENCESTAB_H
+24
View File
@@ -1,9 +1,31 @@
/***
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 "progress.h"
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
OLIVE_NAMESPACE_ENTER
ProgressDialog::ProgressDialog(const QString& message, const QString& title, QWidget *parent) :
QDialog(parent)
{
@@ -38,3 +60,5 @@ void ProgressDialog::SetProgress(int value)
{
bar_->setValue(value);
}
OLIVE_NAMESPACE_EXIT
+26
View File
@@ -1,9 +1,33 @@
/***
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/>.
***/
#ifndef PROGRESSDIALOG_H
#define PROGRESSDIALOG_H
#include <QDialog>
#include <QProgressBar>
#include "common/debug.h"
OLIVE_NAMESPACE_ENTER
class ProgressDialog : public QDialog
{
Q_OBJECT
@@ -21,4 +45,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
#endif // PROGRESSDIALOG_H
@@ -34,6 +34,8 @@ namespace OCIO = OCIO_NAMESPACE::v1;
#include "core.h"
#include "render/colormanager.h"
OLIVE_NAMESPACE_ENTER
ProjectPropertiesDialog::ProjectPropertiesDialog(QWidget *parent) :
QDialog(parent),
working_project_(Core::instance()->GetActiveProject())
@@ -153,3 +155,5 @@ void ProjectPropertiesDialog::BrowseForOCIOConfig()
}
}
}
OLIVE_NAMESPACE_EXIT
@@ -27,6 +27,8 @@
#include "project/project.h"
OLIVE_NAMESPACE_ENTER
class ProjectPropertiesDialog : public QDialog
{
Q_OBJECT
@@ -52,4 +54,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
#endif // PROJECTPROPERTIESDIALOG_H
+24
View File
@@ -1,5 +1,27 @@
/***
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 "rendercancel.h"
OLIVE_NAMESPACE_ENTER
RenderCancelDialog::RenderCancelDialog(QWidget *parent) :
ProgressDialog(tr("Waiting for workers to finish..."), tr("Renderer"), parent),
busy_workers_(0),
@@ -56,3 +78,5 @@ void RenderCancelDialog::UpdateProgress()
accept();
}
}
OLIVE_NAMESPACE_EXIT
+24
View File
@@ -1,8 +1,30 @@
/***
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/>.
***/
#ifndef RENDERCANCELDIALOG_H
#define RENDERCANCELDIALOG_H
#include "dialog/progress/progress.h"
OLIVE_NAMESPACE_ENTER
class RenderCancelDialog : public ProgressDialog
{
Q_OBJECT
@@ -32,4 +54,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
#endif // RENDERCANCELDIALOG_H
+4
View File
@@ -32,6 +32,8 @@
#include "common/rational.h"
#include "undo/undostack.h"
OLIVE_NAMESPACE_ENTER
SequenceDialog::SequenceDialog(Sequence* s, Type t, QWidget* parent) :
QDialog(parent),
sequence_(s),
@@ -222,3 +224,5 @@ void SequenceDialog::SequenceParamCommand::undo_internal()
sequence_->set_audio_params(old_audio_params_);
sequence_->set_name(old_name_);
}
OLIVE_NAMESPACE_EXIT
+4
View File
@@ -28,6 +28,8 @@
#include "project/item/sequence/sequence.h"
#include "undo/undocommand.h"
OLIVE_NAMESPACE_ENTER
/**
* @brief A dialog for editing Sequence parameters
*
@@ -137,4 +139,6 @@ private:
};
};
OLIVE_NAMESPACE_EXIT
#endif // SEQUENCEDIALOG_H
@@ -1,3 +1,23 @@
/***
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 "speedduration.h"
#include <QCheckBox>
@@ -12,6 +32,8 @@
#include "widget/nodeview/nodeviewundo.h"
#include "widget/timelinewidget/undo/undo.h"
OLIVE_NAMESPACE_ENTER
SpeedDurationDialog::SpeedDurationDialog(const rational& timebase, const QList<ClipBlock *> &clips, QWidget *parent) :
QDialog(parent),
clips_(clips),
@@ -348,3 +370,5 @@ void BlockReverseCommand::undo_internal()
{
redo_internal();
}
OLIVE_NAMESPACE_EXIT
+24
View File
@@ -1,3 +1,23 @@
/***
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/>.
***/
#ifndef SPEEDDURATIONDIALOG_H
#define SPEEDDURATIONDIALOG_H
@@ -10,6 +30,8 @@
#include "widget/slider/timeslider.h"
#include "undo/undocommand.h"
OLIVE_NAMESPACE_ENTER
class SpeedDurationDialog : public QDialog
{
Q_OBJECT
@@ -57,4 +79,6 @@ private:
};
OLIVE_NAMESPACE_EXIT
#endif // SPEEDDURATIONDIALOG_H
+24
View File
@@ -1,8 +1,30 @@
/***
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 "task.h"
#include <QMessageBox>
#include <QThread>
OLIVE_NAMESPACE_ENTER
TaskDialog::TaskDialog(Task* task, const QString& title, QWidget *parent) :
ProgressDialog(task->GetTitle(), title, parent),
task_(task),
@@ -69,3 +91,5 @@ void TaskDialog::TaskFailed(const QString &s)
task_failed_ = true;
task_error_ = s;
}
OLIVE_NAMESPACE_EXIT
+24
View File
@@ -1,9 +1,31 @@
/***
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/>.
***/
#ifndef TASKDIALOG_H
#define TASKDIALOG_H
#include "dialog/progress/progress.h"
#include "task/task.h"
OLIVE_NAMESPACE_ENTER
class TaskDialog : public ProgressDialog
{
Q_OBJECT
@@ -28,4 +50,6 @@ private slots:
};
OLIVE_NAMESPACE_EXIT
#endif // TASKDIALOG_H