Move settings to a seperate dialog, add about box
It contains licensing information!
This commit is contained in:
parent
999e0e3511
commit
e61d69a840
14
KShare.pro
14
KShare.pro
@ -11,6 +11,8 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||
TARGET = KShare
|
||||
TEMPLATE = app
|
||||
|
||||
CONFIG += c++11
|
||||
|
||||
# The following define makes your compiler emit warnings if you use
|
||||
# any feature of Qt which as been marked as deprecated (the exact warnings
|
||||
# depend on your compiler). Please consult the documentation of the
|
||||
@ -55,7 +57,9 @@ SOURCES += main.cpp\
|
||||
formats.cpp \
|
||||
recording/encoders/encoder.cpp \
|
||||
recording/encoders/encodersettings.cpp \
|
||||
recording/encoders/encodersettingsdialog.cpp
|
||||
recording/encoders/encodersettingsdialog.cpp \
|
||||
settingsdialog.cpp \
|
||||
aboutbox.cpp
|
||||
|
||||
HEADERS += mainwindow.hpp \
|
||||
cropeditor/cropeditor.hpp \
|
||||
@ -91,7 +95,9 @@ HEADERS += mainwindow.hpp \
|
||||
formats.hpp \
|
||||
recording/encoders/encoder.hpp \
|
||||
recording/encoders/encodersettings.hpp \
|
||||
recording/encoders/encodersettingsdialog.hpp
|
||||
recording/encoders/encodersettingsdialog.hpp \
|
||||
settingsdialog.hpp \
|
||||
aboutbox.hpp
|
||||
|
||||
LIBS += -lavcodec -lavformat -lavutil -lswscale -lavutil
|
||||
|
||||
@ -117,7 +123,9 @@ mac {
|
||||
FORMS += mainwindow.ui \
|
||||
cropeditor/settings/brushpenselection.ui \
|
||||
cropeditor/settings/blurdialog.ui \
|
||||
recording/encoders/encodersettingsdialog.ui
|
||||
recording/encoders/encodersettingsdialog.ui \
|
||||
settingsdialog.ui \
|
||||
aboutbox.ui
|
||||
|
||||
DISTFILES += \
|
||||
README.md \
|
||||
|
11
aboutbox.cpp
Normal file
11
aboutbox.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#include "aboutbox.hpp"
|
||||
#include "ui_aboutbox.h"
|
||||
|
||||
AboutBox::AboutBox(QWidget *parent) : QDialog(parent), ui(new Ui::AboutBox) {
|
||||
ui->setupUi(this);
|
||||
ui->label->setText(ui->label->text().arg(QApplication::applicationVersion()));
|
||||
}
|
||||
|
||||
AboutBox::~AboutBox() {
|
||||
delete ui;
|
||||
}
|
21
aboutbox.hpp
Normal file
21
aboutbox.hpp
Normal file
@ -0,0 +1,21 @@
|
||||
#ifndef ABOUTBOX_HPP
|
||||
#define ABOUTBOX_HPP
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class AboutBox;
|
||||
}
|
||||
|
||||
class AboutBox : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit AboutBox(QWidget *parent = 0);
|
||||
~AboutBox();
|
||||
|
||||
private:
|
||||
Ui::AboutBox *ui;
|
||||
};
|
||||
|
||||
#endif // ABOUTBOX_HPP
|
291
aboutbox.ui
Normal file
291
aboutbox.ui
Normal file
@ -0,0 +1,291 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>AboutBox</class>
|
||||
<widget class="QDialog" name="AboutBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>531</width>
|
||||
<height>231</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>About KShare</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string><p style="vertical-align:middle;"><img src=":/icons/icon.svg" width="50"/><span style="font-weight:600;"> KShare</span> - The open source and cross platform screen sharing software</p><p>Version %0<br>Links: <a href="https://github.com/ArsenArsen/KShare">Source code</a>, <a href="https://github.com/ArsenArsen/KShare/issues">Issue tracker</a>, <a href="http://kshare.arsenarsen.com">Website</a>, <a href="https://patreon.com/arsen">Patreon</a></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QTextBrowser" name="textBrowser">
|
||||
<property name="html">
|
||||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'Noto Sans'; font-size:10pt; font-weight:400; font-style:normal;">
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This software uses and possibly bundles Qt, OpenSSL, and FFMpeg, whose licenses are respectively:</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">------------------------------ </span><a href="http://code.qt.io/cgit/qt/qt5.git/tree/LICENSE.LGPLv3"><span style=" font-family:'Noto Mono'; text-decoration: underline; color:#007af4;">Qt</span></a><span style=" font-family:'Noto Mono';">:</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">GNU LESSER GENERAL PUBLIC LICENSE</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">The Qt Toolkit is Copyright (C) 2015 The Qt Company Ltd.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">Contact: </span><a href="http://www.qt.io/licensing/"><span style=" font-family:'Noto Mono'; text-decoration: underline; color:#007af4;">http://www.qt.io/licensing/</span></a></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">You may use, distribute and copy the Qt Toolkit under the terms of</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">GNU Lesser General Public License version 3, which is displayed below.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">This license makes reference to the version 3 of the GNU General</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">Public License, which you can find in the </span><a href="http://code.qt.io/cgit/qt/qt5.git/tree/LICENSE.LGPLv3"><span style=" font-family:'Noto Mono'; text-decoration: underline; color:#007af4;">LICENSE.GPLv3</span></a><span style=" font-family:'Noto Mono';"> file.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">------------------------------ </span><a href="https://www.openssl.org/source/license.html"><span style=" text-decoration: underline; color:#007af4;">OpenSSL</span></a><span style=" font-family:'Noto Mono';">:</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">LICENSE ISSUES</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">==============</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">The OpenSSL toolkit stays under a double license, i.e. both the conditions of</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">the OpenSSL License and the original SSLeay license apply to the toolkit.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">See below for the actual license texts.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">OpenSSL License</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">---------------</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">/* ====================================================================</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* Copyright (c) 1998-2017 The OpenSSL Project. All rights reserved.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">*</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* Redistribution and use in source and binary forms, with or without</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* modification, are permitted provided that the following conditions</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* are met:</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">*</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* 1. Redistributions of source code must retain the above copyright</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* notice, this list of conditions and the following disclaimer. </span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">*</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* 2. Redistributions in binary form must reproduce the above copyright</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* notice, this list of conditions and the following disclaimer in</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* the documentation and/or other materials provided with the</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* distribution.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">*</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* 3. All advertising materials mentioning features or use of this</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* software must display the following acknowledgment:</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* &quot;This product includes software developed by the OpenSSL Project</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* for use in the OpenSSL Toolkit. (http://www.openssl.org/)&quot;</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">*</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* 4. The names &quot;OpenSSL Toolkit&quot; and &quot;OpenSSL Project&quot; must not be used to</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* endorse or promote products derived from this software without</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* prior written permission. For written permission, please contact</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* openssl-core@openssl.org.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">*</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* 5. Products derived from this software may not be called &quot;OpenSSL&quot;</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* nor may &quot;OpenSSL&quot; appear in their names without prior written</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* permission of the OpenSSL Project.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">*</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* 6. Redistributions of any form whatsoever must retain the following</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* acknowledgment:</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* &quot;This product includes software developed by the OpenSSL Project</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* for use in the OpenSSL Toolkit (http://www.openssl.org/)&quot;</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">*</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* OF THE POSSIBILITY OF SUCH DAMAGE.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* ====================================================================</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">*</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* This product includes cryptographic software written by Eric Young</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* (eay@cryptsoft.com). This product includes software written by Tim</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* Hudson (tjh@cryptsoft.com).</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">*</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">*/</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">Original SSLeay License</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">-----------------------</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* All rights reserved.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">*</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* This package is an SSL implementation written</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* by Eric Young (eay@cryptsoft.com).</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* The implementation was written so as to conform with Netscapes SSL.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* </span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* This library is free for commercial and non-commercial use as long as</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* the following conditions are aheared to. The following conditions</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* apply to all code found in this distribution, be it the RC4, RSA,</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* lhash, DES, etc., code; not just the SSL code. The SSL documentation</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* included with this distribution is covered by the same copyright terms</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* except that the holder is Tim Hudson (tjh@cryptsoft.com).</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* </span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* Copyright remains Eric Young's, and as such any Copyright notices in</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* the code are not to be removed.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* If this package is used in a product, Eric Young should be given attribution</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* as the author of the parts of the library used.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* This can be in the form of a textual message at program startup or</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* in documentation (online or textual) provided with the package.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* </span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* Redistribution and use in source and binary forms, with or without</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* modification, are permitted provided that the following conditions</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* are met:</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* 1. Redistributions of source code must retain the copyright</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* notice, this list of conditions and the following disclaimer.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* 2. Redistributions in binary form must reproduce the above copyright</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* notice, this list of conditions and the following disclaimer in the</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* documentation and/or other materials provided with the distribution.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* 3. All advertising materials mentioning features or use of this software</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* must display the following acknowledgement:</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* &quot;This product includes cryptographic software written by</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* Eric Young (eay@cryptsoft.com)&quot;</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* The word 'cryptographic' can be left out if the rouines from the library</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* being used are not cryptographic related :-).</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* 4. If you include any Windows specific code (or a derivative thereof) from </span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* the apps directory (application code) you must include an acknowledgement:</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* &quot;This product includes software written by Tim Hudson (tjh@cryptsoft.com)&quot;</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* </span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* SUCH DAMAGE.</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* </span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* The licence and distribution terms for any publically available version or</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* derivative of this code cannot be changed. i.e. this code cannot simply be</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* copied and put under another distribution licence</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">* [including the GNU Public Licence.]</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">*/</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">------------------------------ </span><a href="https://github.com/FFmpeg/FFmpeg/blob/master/LICENSE.md"><span style=" text-decoration: underline; color:#007af4;">FFMpeg</span></a>:</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:xx-large; font-weight:600;">License</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Most files in FFmpeg are under the GNU Lesser General Public License version 2.1 or later (LGPL v2.1+). Read the file <span style=" font-family:'Noto Mono';">COPYING.LGPLv2.1</span> for details. Some other files have MIT/X11/BSD-style licenses. In combination the LGPL v2.1+ applies to FFmpeg.</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Some optional parts of FFmpeg are licensed under the GNU General Public License version 2 or later (GPL v2+). See the file <span style=" font-family:'Noto Mono';">COPYING.GPLv2</span> for details. None of these parts are used by default, you have to explicitly pass <span style=" font-family:'Noto Mono';">--enable-gpl</span> to configure to activate them. In this case, FFmpeg's license changes to GPL v2+.</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Specifically, the GPL parts of FFmpeg are:</p>
|
||||
<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">libpostproc</li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">optional x86 optimization in the files </li>
|
||||
<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 2;"><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">libavcodec/x86/flac_dsp_gpl.asm</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">libavcodec/x86/idct_mmx.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">libavfilter/x86/vf_removegrain.asm</span></li></ul>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">the following building and testing tools </li>
|
||||
<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 2;"><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">compat/solaris/make_sunver.pl</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">doc/t2h.pm</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">doc/texi2pod.pl</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">libswresample/swresample-test.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">tests/checkasm/*</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">tests/tiny_ssim.c</span></li></ul>
|
||||
<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">the following filters in libavfilter: </li></ul>
|
||||
<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 2;"><li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_blackframe.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_boxblur.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_colormatrix.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_cover_rect.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_cropdetect.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_delogo.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_eq.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_find_rect.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_fspp.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_geq.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_histeq.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_hqdn3d.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_interlace.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_kerndeint.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_mcdeint.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_mpdecimate.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_owdenoise.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_perspective.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_phase.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_pp.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_pp7.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_pullup.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_repeatfields.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_sab.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_smartblur.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_spp.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_stereo3d.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_super2xsai.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_tinterlace.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vf_uspp.c</span></li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">vsrc_mptestsrc.c</span></li></ul>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Should you, for whatever reason, prefer to use version 3 of the (L)GPL, then the configure parameter <span style=" font-family:'Noto Mono';">--enable-version3</span> will activate this licensing option for you. Read the file <span style=" font-family:'Noto Mono';">COPYING.LGPLv3</span> or, if you have enabled GPL parts, <span style=" font-family:'Noto Mono';">COPYING.GPLv3</span> to learn the exact legal terms that apply in this case.</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">There are a handful of files under other licensing terms, namely:</p>
|
||||
<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The files <span style=" font-family:'Noto Mono';">libavcodec/jfdctfst.c</span>, <span style=" font-family:'Noto Mono';">libavcodec/jfdctint_template.c</span> and <span style=" font-family:'Noto Mono';">libavcodec/jrevdct.c</span> are taken from libjpeg, see the top of the files for licensing details. Specifically note that you must credit the IJG in the documentation accompanying your program if you only distribute executables. You must also indicate any changes including additions and deletions to those three files in the documentation.</li>
|
||||
<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Noto Mono';">tests/reference.pnm</span> is under the expat license.</li></ul>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="user-content-external-libraries"></a><span style=" font-size:x-large; font-weight:600;">E</span><span style=" font-size:x-large; font-weight:600;">xternal libraries</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">FFmpeg can be combined with a number of external libraries, which sometimes affect the licensing of binaries resulting from the combination.</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="user-content-compatible-libraries"></a><span style=" font-size:large; font-weight:600;">C</span><span style=" font-size:large; font-weight:600;">ompatible libraries</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The following libraries are under GPL:</p>
|
||||
<ul style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; -qt-list-indent: 1;"><li style=" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">frei0r</li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">libcdio</li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">librubberband</li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">libvidstab</li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">libx264</li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">libx265</li>
|
||||
<li style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">libxavs</li>
|
||||
<li style=" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">libxvid</li></ul>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">When combining them with FFmpeg, FFmpeg needs to be licensed as GPL as well by passing <span style=" font-family:'Noto Mono';">--enable-gpl</span> to configure.</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The OpenCORE and VisualOn libraries are under the Apache License 2.0. That license is incompatible with the LGPL v2.1 and the GPL v2, but not with version 3 of those licenses. So to combine these libraries with FFmpeg, the license version needs to be upgraded by passing <span style=" font-family:'Noto Mono';">--enable-version3</span> to configure.</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a name="user-content-incompatible-libraries"></a><span style=" font-size:large; font-weight:600;">I</span><span style=" font-size:large; font-weight:600;">ncompatible libraries</span></p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">There are certain libraries you can combine with FFmpeg whose licenses are not compatible with the GPL and/or the LGPL. If you wish to enable these libraries, even in circumstances that their license may be incompatible, pass <span style=" font-family:'Noto Mono';">--enable-nonfree</span> to configure. But note that if you enable any of these libraries the resulting binary will be under a complex license mix that is more restrictive than the LGPL and that may result in additional obligations. It is possible that these restrictions cause the resulting binary to be unredistributable.</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The Fraunhofer FDK AAC and OpenSSL libraries are under licenses which are incompatible with the GPLv2 and v3. To the best of our knowledge, they are compatible with the LGPL.</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The NVENC library, while its header file is licensed under the compatible MIT license, requires a proprietary binary blob at run time, and is deemed to be incompatible with the GPL. We are not certain if it is compatible with the LGPL, but we require <span style=" font-family:'Noto Mono';">--enable-nonfree</span> even with LGPL configurations in case it is not.</p></body></html></string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>accepted()</signal>
|
||||
<receiver>AboutBox</receiver>
|
||||
<slot>accept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>248</x>
|
||||
<y>254</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>157</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>rejected()</signal>
|
||||
<receiver>AboutBox</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>316</x>
|
||||
<y>260</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>286</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
1
icon.qrc
1
icon.qrc
@ -1,5 +1,6 @@
|
||||
<RCC>
|
||||
<qresource prefix="/">
|
||||
<file>icons/icon.png</file>
|
||||
<file>icons/icon.svg</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
64
icons/icon.svg
Normal file
64
icons/icon.svg
Normal file
@ -0,0 +1,64 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
id="svg"
|
||||
version="1.1"
|
||||
width="512"
|
||||
height="512"
|
||||
style="display: block;"
|
||||
sodipodi:docname="icon.svg"
|
||||
inkscape:version="0.92.1 r">
|
||||
<metadata
|
||||
id="metadata10">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="945"
|
||||
inkscape:window-height="512"
|
||||
id="namedview6"
|
||||
showgrid="false"
|
||||
inkscape:zoom="0.65186406"
|
||||
inkscape:cx="256.13697"
|
||||
inkscape:cy="251.44673"
|
||||
inkscape:window-x="965"
|
||||
inkscape:window-y="558"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:current-layer="svg" />
|
||||
<g
|
||||
id="svgg"
|
||||
transform="matrix(1.3099461,0,0,1.3099461,-9.0366163,12.913832)">
|
||||
<path
|
||||
id="path0"
|
||||
d="m 151.367,48.952 c -1.611,0.668 -2.929,1.529 -2.929,1.913 0,0.384 -0.505,0.698 -1.121,0.698 -0.617,0 -5.117,3.955 -10.001,8.789 -8.618,8.53 -12.287,12.455 -22.082,23.617 -9.656,11.004 -9.019,10.562 -15.208,10.562 H 94.531 V 86.719 78.906 H 77.344 60.156 v 7.813 7.812 H 50.142 c -9.258,0 -17.576,1.328 -18.892,3.015 -0.215,0.276 -1.367,1.046 -2.56,1.713 -3.024,1.69 -9.94,8.525 -9.94,9.824 0,0.59 -0.319,1.073 -0.708,1.073 -4.884,0 -5.026,199.782 -0.143,201.409 0.468,0.156 0.851,0.701 0.851,1.21 0,2.443 11.765,13.788 14.298,13.788 0.347,0 2.182,0.706 4.077,1.569 5.046,2.299 331.973,2.101 334.276,-0.202 0.752,-0.752 1.811,-1.368 2.355,-1.368 2.759,0 13.729,-11.577 13.749,-14.51 0.002,-0.398 0.618,-1.779 1.367,-3.068 1.275,-2.194 1.362,-8.446 1.362,-98.046 v -95.704 l -2.171,-4.492 c -1.194,-2.471 -2.513,-4.492 -2.93,-4.492 -0.417,0 -0.758,-0.5 -0.758,-1.111 0,-1.317 -6.077,-6.701 -7.562,-6.701 -0.568,0 -1.032,-0.338 -1.032,-0.751 0,-2.55 -7.802,-3.155 -41.352,-3.207 l -33.257,-0.051 -1.953,-2.315 c -1.074,-1.274 -3.711,-4.247 -5.86,-6.608 -2.148,-2.362 -5.66,-6.306 -7.804,-8.767 -6.56,-7.527 -24.596,-25.176 -25.728,-25.176 -0.586,0 -1.243,-0.461 -1.459,-1.024 -1.217,-3.171 -99.663,-4.631 -107.001,-1.587 m 101.175,17.522 c 2.042,1.751 10.479,10.924 18.75,20.385 8.27,9.461 15.597,17.843 16.284,18.626 4.173,4.763 3.293,4.665 41.955,4.668 28.941,0.003 35.775,0.204 37.5,1.105 2.833,1.48 6.12,5.044 7.138,7.738 1.165,3.085 1.152,179.426 -0.014,183.625 -0.959,3.453 -5.997,9.29 -9.136,10.583 -1.556,0.641 -45.218,0.822 -162.403,0.673 l -160.275,-0.205 -3.397,-2.423 c -1.868,-1.332 -4.54,-4.097 -5.936,-6.143 l -2.539,-3.72 v -90.185 c 0,-98.208 -0.283,-92.042 4.422,-96.511 4.761,-4.522 4.87,-4.534 43.093,-4.534 h 35.066 l 2.655,-1.788 c 1.46,-0.984 4.845,-4.526 7.523,-7.871 7.03,-8.782 23.627,-26.968 29.645,-32.483 l 5.165,-4.733 45.395,0.005 45.395,0.005 3.714,3.183 m -65.433,59.336 c -65.561,13.241 -89.892,93.009 -42.65,139.827 25.695,25.465 65.472,31.493 96.375,14.604 2.678,-1.463 6.402,-3.505 8.275,-4.537 15.547,-8.565 31.248,-33.472 34.912,-55.381 9.41,-56.28 -41.307,-105.742 -96.912,-94.513 m 26.172,13.623 c 6.923,1.065 15.124,3.57 16.702,5.102 0.389,0.377 -4.026,6.579 -10.156,14.268 -28.832,36.167 -34.971,43.553 -35.641,42.883 -0.394,-0.394 -0.77,-13.846 -0.846,-30.283 l -0.137,-29.574 1.985,-0.957 c 5.034,-2.426 17.522,-3.066 28.093,-1.439 m -47.065,67.228 c 0.123,34.303 -0.085,56.427 -0.534,56.876 -1.721,1.721 -14.151,-9.784 -20.111,-18.615 -17.603,-26.083 -14.812,-61.256 6.686,-84.27 4.362,-4.67 11.875,-10.759 12.867,-10.428 0.655,0.218 0.945,15.224 1.092,56.437 m 84.411,-48.263 c 23.295,23.35 27.072,59.157 9.095,86.199 -4.152,6.246 -13.226,15.9 -14.313,15.228 -1.289,-0.796 -42.284,-55.731 -42.284,-56.661 0,-0.761 4.647,-6.498 23.787,-29.365 2.171,-2.594 6.928,-8.307 10.572,-12.695 7.859,-9.467 6.647,-9.218 13.143,-2.706 m -55.181,61.983 c 5.727,7.772 15.947,21.571 22.711,30.664 6.764,9.093 12.212,17.039 12.108,17.657 -0.94,5.569 -35.577,9.066 -44.967,4.541 l -2.095,-1.009 0.163,-31.953 c 0.15,-29.472 0.326,-34.031 1.313,-34.031 0.195,0 5.04,6.359 10.767,14.131"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:#000000;fill-rule:evenodd;stroke:none" />
|
||||
<path
|
||||
id="path1"
|
||||
d="m 152.44841,64.980069 c -6.018,5.515 -22.615,23.701 -29.645,32.483 -2.678,3.345001 -6.063,6.887001 -7.523,7.871001 l -2.655,1.788 H 77.559407 c -38.223,0 -38.332,0.012 -43.093,4.534 -4.705,4.469 -4.422,-1.697 -4.422,96.511 v 90.185 l 2.539,3.72 c 1.396,2.046 4.068,4.811 5.936,6.143 l 3.397,2.423 160.275003,0.205 c 117.185,0.149 160.847,-0.032 162.403,-0.673 3.139,-1.293 8.177,-7.13 9.136,-10.583 1.166,-4.199 1.179,-180.54 0.014,-183.625 -1.018,-2.694 -4.305,-6.258 -7.138,-7.738 -1.725,-0.901 -8.559,-1.102 -37.5,-1.105 -38.662,-0.003 -37.782,0.095 -41.955,-4.668 -0.687,-0.783 -8.014,-9.165001 -16.284,-18.626001 -8.271,-9.461 -16.708,-18.634 -18.75,-20.385 l -3.714,-3.183 -45.395,-0.005 -45.395,-0.005 -5.165,4.733 m 62.539,57.338001 c 56.562,9.954 86.089,68.636 60.36,119.961 -5.404,10.779 -18.818,26.07 -26.663,30.391 -1.873,1.032 -5.597,3.074 -8.275,4.537 -45.11,24.653 -103.386,-0.358 -117.751,-50.537 -16.509,-57.666 33.896,-114.635 92.329,-104.352 m -23.193,13.843 c -2.775,0.396 -5.939,1.151 -7.031,1.677 l -1.985,0.957 0.137,29.574 c 0.076,16.437 0.452,29.889 0.846,30.283 0.67,0.67 6.809,-6.716 35.641,-42.883 6.13,-7.689 10.545,-13.891 10.156,-14.268 -4.38,-4.251 -24.987,-7.165 -37.764,-5.34 m -32.564,14.584 c -31.607,26.605 -34.519,70.99 -6.587,100.392 5.515,5.805 11.632,10.347 12.614,9.366 1.13,-1.131 0.58,-112.934 -0.558,-113.313 -0.491,-0.164 -2.952,1.436 -5.469,3.555 m 77.829,7.325 c -3.644,4.388 -8.401,10.101 -10.572,12.695 -19.14,22.867 -23.787,28.604 -23.787,29.365 0,0.93 40.995,55.865 42.284,56.661 1.087,0.672 10.161,-8.982 14.313,-15.228 17.977,-27.042 14.2,-62.849 -9.095,-86.199 -6.496,-6.512 -5.284,-6.761 -13.143,2.706 m -53.557,46.185 c -0.219,0.571 -0.472,15.418 -0.561,32.992 l -0.163,31.953 2.095,1.009 c 9.39,4.525 44.027,1.028 44.967,-4.541 0.104,-0.618 -5.344,-8.564 -12.108,-17.657 -6.764,-9.093 -16.984,-22.892 -22.711,-30.664 -10.883,-14.768 -10.878,-14.762 -11.519,-13.092"
|
||||
inkscape:connector-curvature="0"
|
||||
style="fill:#ffffff;fill-rule:evenodd;stroke:none" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 6.7 KiB |
33
main.cpp
33
main.cpp
@ -2,6 +2,7 @@
|
||||
#include "screenshotutil.hpp"
|
||||
#include <QApplication>
|
||||
#include <QCommandLineParser>
|
||||
#include <QDebug>
|
||||
#include <QtGlobal>
|
||||
#include <formatter.hpp>
|
||||
#include <iostream>
|
||||
@ -9,29 +10,48 @@ extern "C" {
|
||||
#include <libavcodec/avcodec.h>
|
||||
#include <libavformat/avformat.h>
|
||||
}
|
||||
#include "ui_mainwindow.h"
|
||||
#include <QListWidget>
|
||||
#include <notifications.hpp>
|
||||
#include <worker/worker.hpp>
|
||||
|
||||
bool verbose = false;
|
||||
|
||||
// I've experiments to run
|
||||
// There is research to be done
|
||||
// On the people who are
|
||||
// still alive
|
||||
bool stillAlive = true;
|
||||
|
||||
#define LOGACT(lvl) \
|
||||
std::cout << lvl << stdMsg << "\n"; \
|
||||
if (stillAlive && MainWindow::inst() && MainWindow::inst()->valid()) { \
|
||||
MainWindow::inst()->ui->logBox->addItem(lvl + msg); \
|
||||
}
|
||||
|
||||
void handler(QtMsgType type, const QMessageLogContext &, const QString &msg) {
|
||||
std::string stdMsg = msg.toStdString();
|
||||
switch (type) {
|
||||
case QtDebugMsg:
|
||||
if (verbose) std::cout << "DEBUG: " << stdMsg << "\n";
|
||||
if (verbose) {
|
||||
LOGACT("DEBUG: ")
|
||||
}
|
||||
break;
|
||||
case QtInfoMsg:
|
||||
std::cout << "INFO: " << stdMsg << "\n";
|
||||
LOGACT("INFO: ")
|
||||
if (stillAlive) notifications::notifyNolog("KShare", msg);
|
||||
break;
|
||||
case QtWarningMsg:
|
||||
std::cerr << "WARN: " << stdMsg << "\n";
|
||||
LOGACT("WARN: ")
|
||||
if (stillAlive) notifications::notifyNolog("KShare Warning", msg, QSystemTrayIcon::Warning);
|
||||
break;
|
||||
case QtCriticalMsg:
|
||||
std::cerr << "CRIT: " << stdMsg << "\n";
|
||||
LOGACT("CRIT: ")
|
||||
if (stillAlive) notifications::notifyNolog("KShare Critical Error", msg, QSystemTrayIcon::Critical);
|
||||
break;
|
||||
case QtFatalMsg:
|
||||
std::cerr << "FATAL: " << stdMsg << "\n";
|
||||
notifications::notify("KShare Fatal Error", msg, QSystemTrayIcon::Critical);
|
||||
LOGACT("FATAL: ")
|
||||
if (stillAlive) notifications::notifyNolog("KShare Fatal Error", msg, QSystemTrayIcon::Critical);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -65,6 +85,7 @@ int main(int argc, char *argv[]) {
|
||||
MainWindow w;
|
||||
Worker::init();
|
||||
a.connect(&a, &QApplication::aboutToQuit, Worker::end);
|
||||
a.connect(&a, &QApplication::aboutToQuit, [] { stillAlive = false; });
|
||||
if (!parser.isSet(h)) w.show();
|
||||
return a.exec();
|
||||
}
|
||||
|
177
mainwindow.cpp
177
mainwindow.cpp
@ -1,38 +1,19 @@
|
||||
#include "mainwindow.hpp"
|
||||
#include "aboutbox.hpp"
|
||||
#include "screenshotter.hpp"
|
||||
#include "screenshotutil.hpp"
|
||||
#include "settingsdialog.hpp"
|
||||
#include "ui_mainwindow.h"
|
||||
#include <QAction>
|
||||
#include <QApplication>
|
||||
#include <QCheckBox>
|
||||
#include <QCloseEvent>
|
||||
#include <QComboBox>
|
||||
#include <QCoreApplication>
|
||||
#include <QDesktopServices>
|
||||
#include <QDoubleSpinBox>
|
||||
#include <QInputDialog>
|
||||
#include <QListWidgetItem>
|
||||
#include <QMenu>
|
||||
#include <QStatusBar>
|
||||
#include <QSystemTrayIcon>
|
||||
#include <QTimer>
|
||||
#include <QMessageBox>
|
||||
#include <colorpicker/colorpickerscene.hpp>
|
||||
#include <functional>
|
||||
#include <formats.hpp>
|
||||
#include <hotkeying.hpp>
|
||||
#include <recording/encoders/encodersettingsdialog.hpp>
|
||||
#include <recording/recordingformats.hpp>
|
||||
#include <settings.hpp>
|
||||
#include <uploaders/uploadersingleton.hpp>
|
||||
|
||||
MainWindow *MainWindow::instance;
|
||||
|
||||
void addHotkeyItem(QString text, QString name, std::function<void()> func, QString def = QString()) {
|
||||
QListWidgetItem *item = new QListWidgetItem(text, MainWindow::inst()->ui->hotkeys);
|
||||
item->setData(Qt::UserRole + 1, name);
|
||||
MainWindow::inst()->fncs.insert(name, func);
|
||||
hotkeying::load(name, func, def);
|
||||
}
|
||||
|
||||
void MainWindow::rec() {
|
||||
if (controller->isRunning()) return;
|
||||
auto f
|
||||
@ -49,10 +30,14 @@ void MainWindow::rec() {
|
||||
controller->start(ctx);
|
||||
}
|
||||
|
||||
void addHotkey(QString name, std::function<void()> action) {
|
||||
hotkeying::load(name, action);
|
||||
}
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) {
|
||||
instance = this;
|
||||
ui->setupUi(this);
|
||||
setWindowIcon(QIcon(":/icons/icon.png"));
|
||||
setWindowIcon(QIcon(":/icons/icon.svg"));
|
||||
tray = new QSystemTrayIcon(windowIcon(), this);
|
||||
tray->setToolTip("KShare");
|
||||
tray->setVisible(true);
|
||||
@ -80,67 +65,28 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWi
|
||||
connect(area, &QAction::triggered, this, [] { screenshotter::areaDelayed(); });
|
||||
connect(rec, &QAction::triggered, this, &MainWindow::rec);
|
||||
connect(recoff, &QAction::triggered, [this] { controller->end(); });
|
||||
connect(ui->settings, &QPushButton::clicked, this, &MainWindow::on_actionSettings_triggered);
|
||||
|
||||
tray->setContextMenu(menu);
|
||||
|
||||
ui->uploaderList->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
ui->uploaderList->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||
|
||||
// Add items to uploader selection
|
||||
for (Uploader *u : UploaderSingleton::inst().uploaderList()) newUploader(u);
|
||||
connect(&UploaderSingleton::inst(), &UploaderSingleton::newUploader, this, &MainWindow::newUploader);
|
||||
|
||||
// Set filename scheme
|
||||
if ((settings::settings().contains("fileFormat")))
|
||||
setScheme(settings::settings().value("fileFormat").toString());
|
||||
else
|
||||
setScheme("Screenshot %(yyyy-MM-dd HH:mm:ss)date");
|
||||
addHotkey("fullscreen", [] { screenshotter::fullscreen(); });
|
||||
addHotkey("area", [] { screenshotter::area(); });
|
||||
addHotkey("picker", [] { ColorPickerScene::showPicker(); });
|
||||
addHotkey("recordingstop", [&] { controller->end(); });
|
||||
addHotkey("recordingstart", [&] { this->rec(); });
|
||||
|
||||
auto errors = UploaderSingleton::inst().errors();
|
||||
if (errors.length() == 1)
|
||||
statusBar()->showMessage(errors.at(0).what());
|
||||
else
|
||||
statusBar()->showMessage(QString("Errors visible in console (if present). Count: " + QString::number(errors.size())));
|
||||
|
||||
// Set delay
|
||||
if ((settings::settings().contains("delay")))
|
||||
ui->delay->setValue(settings::settings().value("delay").toDouble());
|
||||
else
|
||||
ui->delay->setValue(0.25);
|
||||
|
||||
ui->hotkeys->setSelectionMode(QListWidget::SingleSelection);
|
||||
|
||||
addHotkeyItem("Fullscreen image", "fullscreen", [] { screenshotter::fullscreen(); });
|
||||
addHotkeyItem("Area image", "area", [] { screenshotter::area(); });
|
||||
addHotkeyItem("Color picker", "picker", [] { ColorPickerScene::showPicker(); });
|
||||
addHotkeyItem("Stop Recording", "recordingstop", [&] { controller->end(); });
|
||||
addHotkeyItem("Start Recording", "recordingstart", [&] { this->rec(); });
|
||||
|
||||
ui->quickMode->setChecked(settings::settings().value("quickMode", false).toBool());
|
||||
ui->hideToTray->setChecked(settings::settings().value("hideOnClose", true).toBool());
|
||||
ui->captureCursor->setChecked(settings::settings().value("captureCursor", true).toBool());
|
||||
|
||||
for (int i = 0; i < (int)formats::Recording::None; i++) {
|
||||
ui->formatBox->addItem(formats::recordingFormatName(static_cast<formats::Recording>(i)));
|
||||
}
|
||||
|
||||
for (int i = 0; i < (int)formats::Normal::None; i++) {
|
||||
ui->imageFormatBox->addItem(formats::normalFormatName(static_cast<formats::Normal>(i)));
|
||||
}
|
||||
|
||||
ui->formatBox->addItem("None");
|
||||
ui->formatBox->setCurrentIndex(settings::settings().value("recording/format", (int)formats::Recording::None).toInt());
|
||||
for (auto err : errors) ui->logBox->addItem(QString("ERROR: ") + err.what());
|
||||
setWindowTitle("KShare v" + QApplication::applicationVersion());
|
||||
val = true;
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow() {
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void MainWindow::setScheme(QString scheme) {
|
||||
ui->nameScheme->setText(scheme);
|
||||
}
|
||||
|
||||
QDoubleSpinBox *MainWindow::delay() {
|
||||
return ui->delay;
|
||||
bool MainWindow::valid() {
|
||||
return val;
|
||||
}
|
||||
|
||||
MainWindow *MainWindow::inst() {
|
||||
@ -150,7 +96,7 @@ MainWindow *MainWindow::inst() {
|
||||
void MainWindow::closeEvent(QCloseEvent *event) {
|
||||
if (settings::settings().value("hideOnClose", true).toBool()) {
|
||||
event->ignore();
|
||||
QTimer::singleShot(0, this, &MainWindow::hide);
|
||||
hide();
|
||||
} else
|
||||
QApplication::exit(0);
|
||||
}
|
||||
@ -168,13 +114,6 @@ void MainWindow::toggleVisible() {
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::newUploader(Uploader *u) {
|
||||
QListWidgetItem *item = new QListWidgetItem(u->name());
|
||||
item->setToolTip(u->description());
|
||||
ui->uploaderList->addItem(item);
|
||||
if (u->name() == UploaderSingleton::inst().selectedUploader()) item->setSelected(true);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionQuit_triggered() {
|
||||
quit();
|
||||
}
|
||||
@ -187,66 +126,6 @@ void MainWindow::on_actionArea_triggered() {
|
||||
screenshotter::areaDelayed();
|
||||
}
|
||||
|
||||
void MainWindow::on_uploaderList_clicked(const QModelIndex &) {
|
||||
QList<QListWidgetItem *> index = ui->uploaderList->selectedItems();
|
||||
if (index.size() == 1) {
|
||||
UploaderSingleton::inst().set(index.at(0)->text());
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_nameScheme_textEdited(const QString &arg1) {
|
||||
settings::settings().setValue("fileFormat", arg1);
|
||||
}
|
||||
|
||||
void MainWindow::on_delay_valueChanged(double arg1) {
|
||||
settings::settings().setValue("delay", arg1);
|
||||
}
|
||||
|
||||
void MainWindow::on_hotkeys_doubleClicked(const QModelIndex &) {
|
||||
if (ui->hotkeys->selectedItems().length() == 1) {
|
||||
QListWidgetItem *i = ui->hotkeys->selectedItems().at(0);
|
||||
QString str = i->data(Qt::UserRole + 1).toString();
|
||||
bool ok;
|
||||
QString seq = QInputDialog::getText(ui->centralWidget, "Hotkey Input", "Insert hotkey:", QLineEdit::Normal,
|
||||
hotkeying::sequence(str), &ok);
|
||||
if (ok && hotkeying::valid(seq)) hotkeying::hotkey(str, QKeySequence(seq), fncs.value(str));
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::on_settingsButton_clicked() {
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + "/KShare"));
|
||||
}
|
||||
|
||||
void MainWindow::on_quickMode_clicked(bool checked) {
|
||||
settings::settings().setValue("quickMode", checked);
|
||||
}
|
||||
|
||||
void MainWindow::on_hideToTray_clicked(bool checked) {
|
||||
settings::settings().setValue("hideOnClose", checked);
|
||||
}
|
||||
|
||||
void MainWindow::on_actionColor_Picker_triggered() {
|
||||
ColorPickerScene::showPicker();
|
||||
}
|
||||
|
||||
void MainWindow::on_captureCursor_clicked(bool checked) {
|
||||
settings::settings().setValue("captureCursor", checked);
|
||||
}
|
||||
|
||||
void MainWindow::on_formatBox_currentIndexChanged(int index) {
|
||||
if (isVisible()) settings::settings().setValue("recording/format", index);
|
||||
}
|
||||
|
||||
void MainWindow::on_imageFormatBox_currentIndexChanged(int index) {
|
||||
if (isVisible()) settings::settings().setValue("imageformat", index);
|
||||
}
|
||||
|
||||
void MainWindow::on_pushButton_clicked() {
|
||||
auto a = new EncoderSettingsDialog();
|
||||
a->setAttribute(Qt::WA_DeleteOnClose);
|
||||
a->show();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionStart_triggered() {
|
||||
rec();
|
||||
}
|
||||
@ -254,3 +133,15 @@ void MainWindow::on_actionStart_triggered() {
|
||||
void MainWindow::on_actionStop_triggered() {
|
||||
controller->end();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionSettings_triggered() {
|
||||
SettingsDialog *dialog = new SettingsDialog(this);
|
||||
dialog->setAttribute(Qt::WA_DeleteOnClose);
|
||||
dialog->show();
|
||||
}
|
||||
|
||||
void MainWindow::on_actionAbout_triggered() {
|
||||
AboutBox *box = new AboutBox(this);
|
||||
box->setAttribute(Qt::WA_DeleteOnClose);
|
||||
box->show();
|
||||
}
|
||||
|
@ -19,44 +19,32 @@ class MainWindow : public QMainWindow {
|
||||
private slots:
|
||||
void quit();
|
||||
void toggleVisible();
|
||||
void newUploader(Uploader *u);
|
||||
|
||||
void on_actionQuit_triggered();
|
||||
void on_actionFullscreen_triggered();
|
||||
void on_actionArea_triggered();
|
||||
void on_uploaderList_clicked(const QModelIndex &);
|
||||
void on_nameScheme_textEdited(const QString &arg1);
|
||||
void on_delay_valueChanged(double arg1);
|
||||
void on_hotkeys_doubleClicked(const QModelIndex &index);
|
||||
void on_settingsButton_clicked();
|
||||
void on_quickMode_clicked(bool checked);
|
||||
void on_hideToTray_clicked(bool checked);
|
||||
void on_actionColor_Picker_triggered();
|
||||
void on_captureCursor_clicked(bool checked);
|
||||
void on_formatBox_currentIndexChanged(int index);
|
||||
void on_imageFormatBox_currentIndexChanged(int index);
|
||||
void on_actionStart_triggered();
|
||||
void on_actionStop_triggered();
|
||||
|
||||
void on_pushButton_clicked();
|
||||
void on_actionSettings_triggered();
|
||||
|
||||
void on_actionAbout_triggered();
|
||||
|
||||
public:
|
||||
static MainWindow *inst();
|
||||
explicit MainWindow(QWidget *parent = 0);
|
||||
~MainWindow();
|
||||
bool valid();
|
||||
Ui::MainWindow *ui;
|
||||
RecordingController *controller = new RecordingController;
|
||||
|
||||
QSystemTrayIcon *tray;
|
||||
void setScheme(QString scheme);
|
||||
QDoubleSpinBox *delay();
|
||||
|
||||
static MainWindow *inst();
|
||||
QMap<QString, std::function<void()>> fncs;
|
||||
public slots:
|
||||
void rec();
|
||||
|
||||
private:
|
||||
bool val = false;
|
||||
static MainWindow *instance;
|
||||
RecordingController *controller = new RecordingController;
|
||||
private slots:
|
||||
void rec();
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent *event);
|
||||
|
145
mainwindow.ui
145
mainwindow.ui
@ -6,8 +6,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>483</width>
|
||||
<height>512</height>
|
||||
<width>352</width>
|
||||
<height>220</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@ -25,129 +25,23 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="3" column="0">
|
||||
<widget class="QLineEdit" name="nameScheme">
|
||||
<property name="toolTip">
|
||||
<string>http://doc.qt.io/qt-5/qdatetime.html#toString</string>
|
||||
</property>
|
||||
<item row="1" column="0" colspan="2">
|
||||
<widget class="QPushButton" name="settings">
|
||||
<property name="text">
|
||||
<string>Screenshot %(yyyy-MM-dd HH:mm:ss)date</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<widget class="QCheckBox" name="quickMode">
|
||||
<property name="text">
|
||||
<string>Quick mode (mouse release screenshots)</string>
|
||||
<string>Settings</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Uploader selection:</string>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
<property name="title">
|
||||
<string>Log</string>
|
||||
</property>
|
||||
</widget>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<item row="0" column="0">
|
||||
<widget class="QListWidget" name="logBox"/>
|
||||
</item>
|
||||
<item row="6" column="1">
|
||||
<widget class="QPushButton" name="settingsButton">
|
||||
<property name="text">
|
||||
<string>Open settings directory</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Delay before taking a screenshot</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="17" column="0" colspan="2">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string><a href="https://github.com/ArsenArsen/KShare">Source code available free for everyone. Forever.</a>
|
||||
|
||||
</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QDoubleSpinBox" name="delay">
|
||||
<property name="toolTip">
|
||||
<string>In seconds</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<string>A delay before taking a screenshot, in seconds</string>
|
||||
</property>
|
||||
<property name="suffix">
|
||||
<string>s</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Hotkeys</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
<widget class="QListWidget" name="uploaderList"/>
|
||||
</item>
|
||||
<item row="1" column="1" rowspan="5">
|
||||
<widget class="QListWidget" name="hotkeys"/>
|
||||
</item>
|
||||
<item row="2" column="0">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>File name scheme:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="13" column="0">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Recording format</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="15" column="0">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Still image format</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="0" colspan="2">
|
||||
<widget class="QCheckBox" name="hideToTray">
|
||||
<property name="text">
|
||||
<string>Pressing <X> hides to tray</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="0" colspan="2">
|
||||
<widget class="QCheckBox" name="captureCursor">
|
||||
<property name="text">
|
||||
<string>Capture cursor</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="15" column="1">
|
||||
<widget class="QComboBox" name="imageFormatBox"/>
|
||||
</item>
|
||||
<item row="12" column="1" rowspan="2">
|
||||
<widget class="QComboBox" name="formatBox">
|
||||
<property name="currentIndex">
|
||||
<number>-1</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="16" column="0" colspan="2">
|
||||
<widget class="QPushButton" name="pushButton">
|
||||
<property name="text">
|
||||
<string>Encoder settings</string>
|
||||
</property>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
@ -157,7 +51,7 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>483</width>
|
||||
<width>352</width>
|
||||
<height>25</height>
|
||||
</rect>
|
||||
</property>
|
||||
@ -165,6 +59,9 @@
|
||||
<property name="title">
|
||||
<string>Fi&le</string>
|
||||
</property>
|
||||
<addaction name="actionSettings"/>
|
||||
<addaction name="actionAbout"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionQuit"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuScreenshot">
|
||||
@ -223,6 +120,16 @@
|
||||
<string>Stop</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSettings">
|
||||
<property name="text">
|
||||
<string>Settings</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionAbout">
|
||||
<property name="text">
|
||||
<string>About</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources/>
|
||||
|
@ -1,9 +1,16 @@
|
||||
#include "notifications.hpp"
|
||||
|
||||
#include "mainwindow.hpp"
|
||||
#include "ui_mainwindow.h"
|
||||
#include <QStatusBar>
|
||||
|
||||
void notifications::notify(QString title, QString body, QSystemTrayIcon::MessageIcon icon) {
|
||||
if (!MainWindow::inst() || !MainWindow::inst()->valid()) return;
|
||||
notifyNolog(title, body, icon);
|
||||
MainWindow::inst()->ui->logBox->addItem(title + ": " + body);
|
||||
}
|
||||
|
||||
void notifications::notifyNolog(QString title, QString body, QSystemTrayIcon::MessageIcon icon) {
|
||||
if (!MainWindow::inst()) return;
|
||||
MainWindow::inst()->tray->showMessage(title, body, icon, 5000);
|
||||
MainWindow::inst()->statusBar()->showMessage(title + ": " + body);
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
namespace notifications {
|
||||
void notify(QString title, QString body, QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::Information);
|
||||
void notifyNolog(QString title, QString body, QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::Information);
|
||||
}
|
||||
|
||||
#endif // NOTIFICATIONS_HPP
|
||||
|
@ -37,6 +37,7 @@ RecordingFormats::RecordingFormats(formats::Recording f) {
|
||||
}
|
||||
QFile res(path);
|
||||
if (!res.open(QFile::ReadOnly)) {
|
||||
qCritical().noquote() << "Could not open resulting file: " << res.errorString();
|
||||
return QByteArray();
|
||||
}
|
||||
QByteArray data = res.readAll();
|
||||
@ -53,7 +54,8 @@ RecordingFormats::RecordingFormats(formats::Recording f) {
|
||||
return false;
|
||||
}
|
||||
} catch (std::runtime_error e) {
|
||||
notifications::notify("KShare Video Encoder Error", e.what(), QSystemTrayIcon::Critical);
|
||||
// notifications::notify("KShare Video Encoder Error", e.what(),
|
||||
// QSystemTrayIcon::Critical);
|
||||
qCritical() << "Encoder error: " << e.what();
|
||||
interrupt = true;
|
||||
delete enc;
|
||||
@ -66,7 +68,8 @@ RecordingFormats::RecordingFormats(formats::Recording f) {
|
||||
if (!interrupt) try {
|
||||
enc->addFrame(img);
|
||||
} catch (std::runtime_error e) {
|
||||
notifications::notify("KShare Video Encoder Error", e.what(), QSystemTrayIcon::Critical);
|
||||
// notifications::notify("KShare Video Encoder Error", e.what(),
|
||||
// QSystemTrayIcon::Critical);
|
||||
qCritical() << "Encoder error: " << e.what();
|
||||
interrupt = true;
|
||||
}
|
||||
|
@ -20,9 +20,9 @@ void screenshotter::fullscreen() {
|
||||
}
|
||||
|
||||
void screenshotter::areaDelayed() {
|
||||
QTimer::singleShot(MainWindow::inst()->delay()->value() * 1000, &screenshotter::area);
|
||||
QTimer::singleShot(settings::settings().value("delay", 0.5).toFloat() * 1000, &screenshotter::area);
|
||||
}
|
||||
|
||||
void screenshotter::fullscreenDelayed() {
|
||||
QTimer::singleShot(MainWindow::inst()->delay()->value() * 1000, &screenshotter::fullscreen);
|
||||
QTimer::singleShot(settings::settings().value("delay", 0.5).toFloat() * 1000, &screenshotter::fullscreen);
|
||||
}
|
||||
|
145
settingsdialog.cpp
Normal file
145
settingsdialog.cpp
Normal file
@ -0,0 +1,145 @@
|
||||
#include "settingsdialog.hpp"
|
||||
#include "mainwindow.hpp"
|
||||
#include "ui_settingsdialog.h"
|
||||
|
||||
#include <QDesktopServices>
|
||||
#include <QInputDialog>
|
||||
#include <QListWidget>
|
||||
#include <QListWidgetItem>
|
||||
#include <QStandardPaths>
|
||||
#include <colorpicker/colorpickerscene.hpp>
|
||||
#include <formats.hpp>
|
||||
#include <hotkeying.hpp>
|
||||
#include <recording/encoders/encodersettingsdialog.hpp>
|
||||
#include <screenshotter.hpp>
|
||||
#include <settings.hpp>
|
||||
#include <uploaders/uploadersingleton.hpp>
|
||||
|
||||
QMap<QString, std::function<void()>> fncs;
|
||||
|
||||
void addHotkeyItem(QListWidget *hotkeys, QString text, QString name, std::function<void()> func, QString def = QString()) {
|
||||
QListWidgetItem *item = new QListWidgetItem(text, hotkeys);
|
||||
item->setData(Qt::UserRole + 1, name);
|
||||
hotkeys->addItem(item);
|
||||
fncs.insert(name, func);
|
||||
hotkeying::load(name, func, def);
|
||||
}
|
||||
|
||||
SettingsDialog::SettingsDialog(QWidget *parent) : QDialog(parent), ui(new Ui::SettingsDialog) {
|
||||
ui->setupUi(this);
|
||||
|
||||
ui->uploaderList->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
ui->uploaderList->setSelectionMode(QAbstractItemView::SingleSelection);
|
||||
|
||||
// Add items to uploader selection
|
||||
for (Uploader *u : UploaderSingleton::inst().uploaderList()) newUploader(u);
|
||||
|
||||
// Set filename scheme
|
||||
if ((settings::settings().contains("fileFormat")))
|
||||
setScheme(settings::settings().value("fileFormat").toString());
|
||||
else
|
||||
setScheme("Screenshot %(yyyy-MM-dd HH:mm:ss)date");
|
||||
|
||||
// Set delay
|
||||
if ((settings::settings().contains("delay")))
|
||||
ui->delay->setValue(settings::settings().value("delay").toDouble());
|
||||
else
|
||||
ui->delay->setValue(0.25);
|
||||
|
||||
ui->hotkeys->setSelectionMode(QListWidget::SingleSelection);
|
||||
|
||||
addHotkeyItem(ui->hotkeys, "Fullscreen image", "fullscreen", [] { screenshotter::fullscreen(); });
|
||||
addHotkeyItem(ui->hotkeys, "Area image", "area", [] { screenshotter::area(); });
|
||||
addHotkeyItem(ui->hotkeys, "Color picker", "picker", [] { ColorPickerScene::showPicker(); });
|
||||
addHotkeyItem(ui->hotkeys, "Stop Recording", "recordingstop", [&] { MainWindow::inst()->controller->end(); });
|
||||
addHotkeyItem(ui->hotkeys, "Start Recording", "recordingstart", [&] { MainWindow::inst()->rec(); });
|
||||
|
||||
ui->quickMode->setChecked(settings::settings().value("quickMode", false).toBool());
|
||||
ui->hideToTray->setChecked(settings::settings().value("hideOnClose", true).toBool());
|
||||
ui->captureCursor->setChecked(settings::settings().value("captureCursor", true).toBool());
|
||||
for (int i = 0; i < (int)formats::Recording::None; i++) {
|
||||
ui->formatBox->addItem(formats::recordingFormatName(static_cast<formats::Recording>(i)));
|
||||
}
|
||||
|
||||
for (int i = 0; i < (int)formats::Normal::None; i++) {
|
||||
ui->imageFormatBox->addItem(formats::normalFormatName(static_cast<formats::Normal>(i)));
|
||||
}
|
||||
|
||||
ui->formatBox->addItem("None");
|
||||
ui->formatBox->setCurrentIndex(settings::settings().value("recording/format", (int)formats::Recording::None).toInt());
|
||||
setWindowTitle("Settings");
|
||||
}
|
||||
|
||||
void SettingsDialog::setScheme(QString scheme) {
|
||||
ui->nameScheme->setText(scheme);
|
||||
}
|
||||
|
||||
SettingsDialog::~SettingsDialog() {
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void SettingsDialog::newUploader(Uploader *u) {
|
||||
QListWidgetItem *uploader = new QListWidgetItem(u->name(), ui->uploaderList);
|
||||
uploader->setToolTip(u->description());
|
||||
ui->uploaderList->addItem(uploader);
|
||||
}
|
||||
|
||||
void SettingsDialog::on_uploaderList_clicked(const QModelIndex &) {
|
||||
QList<QListWidgetItem *> index = ui->uploaderList->selectedItems();
|
||||
if (index.size() == 1) {
|
||||
UploaderSingleton::inst().set(index.at(0)->text());
|
||||
}
|
||||
}
|
||||
|
||||
void SettingsDialog::on_nameScheme_textEdited(const QString &arg1) {
|
||||
settings::settings().setValue("fileFormat", arg1);
|
||||
}
|
||||
|
||||
void SettingsDialog::on_delay_valueChanged(double arg1) {
|
||||
settings::settings().setValue("delay", arg1);
|
||||
}
|
||||
|
||||
void SettingsDialog::on_hotkeys_doubleClicked(const QModelIndex &) {
|
||||
if (ui->hotkeys->selectedItems().length() == 1) {
|
||||
QListWidgetItem *i = ui->hotkeys->selectedItems().at(0);
|
||||
QString str = i->data(Qt::UserRole + 1).toString();
|
||||
bool ok;
|
||||
QString seq = QInputDialog::getText(MainWindow::inst(), "Hotkey Input", "Insert hotkey:", QLineEdit::Normal,
|
||||
hotkeying::sequence(str), &ok);
|
||||
if (ok && hotkeying::valid(seq)) hotkeying::hotkey(str, QKeySequence(seq), fncs.value(str));
|
||||
}
|
||||
}
|
||||
|
||||
void SettingsDialog::on_settingsButton_clicked() {
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + "/KShare"));
|
||||
}
|
||||
|
||||
void SettingsDialog::on_quickMode_clicked(bool checked) {
|
||||
settings::settings().setValue("quickMode", checked);
|
||||
}
|
||||
|
||||
void SettingsDialog::on_hideToTray_clicked(bool checked) {
|
||||
settings::settings().setValue("hideOnClose", checked);
|
||||
}
|
||||
|
||||
void SettingsDialog::on_actionColor_Picker_triggered() {
|
||||
ColorPickerScene::showPicker();
|
||||
}
|
||||
|
||||
void SettingsDialog::on_captureCursor_clicked(bool checked) {
|
||||
settings::settings().setValue("captureCursor", checked);
|
||||
}
|
||||
|
||||
void SettingsDialog::on_formatBox_currentIndexChanged(int index) {
|
||||
if (isVisible()) settings::settings().setValue("recording/format", index);
|
||||
}
|
||||
|
||||
void SettingsDialog::on_imageFormatBox_currentIndexChanged(int index) {
|
||||
if (isVisible()) settings::settings().setValue("imageformat", index);
|
||||
}
|
||||
|
||||
void SettingsDialog::on_pushButton_clicked() {
|
||||
auto a = new EncoderSettingsDialog();
|
||||
a->setAttribute(Qt::WA_DeleteOnClose);
|
||||
a->show();
|
||||
}
|
38
settingsdialog.hpp
Normal file
38
settingsdialog.hpp
Normal file
@ -0,0 +1,38 @@
|
||||
#ifndef SETTINGSDIALOG_HPP
|
||||
#define SETTINGSDIALOG_HPP
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
#include <uploaders/uploader.hpp>
|
||||
|
||||
namespace Ui {
|
||||
class SettingsDialog;
|
||||
}
|
||||
|
||||
class SettingsDialog : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SettingsDialog(QWidget *parent = 0);
|
||||
~SettingsDialog();
|
||||
void setScheme(QString scheme);
|
||||
void newUploader(Uploader *u);
|
||||
|
||||
void on_uploaderList_clicked(const QModelIndex &);
|
||||
void on_nameScheme_textEdited(const QString &arg1);
|
||||
void on_delay_valueChanged(double arg1);
|
||||
void on_hotkeys_doubleClicked(const QModelIndex &index);
|
||||
void on_settingsButton_clicked();
|
||||
void on_quickMode_clicked(bool checked);
|
||||
void on_hideToTray_clicked(bool checked);
|
||||
void on_actionColor_Picker_triggered();
|
||||
void on_captureCursor_clicked(bool checked);
|
||||
void on_formatBox_currentIndexChanged(int index);
|
||||
void on_imageFormatBox_currentIndexChanged(int index);
|
||||
void on_pushButton_clicked();
|
||||
|
||||
private:
|
||||
Ui::SettingsDialog *ui;
|
||||
};
|
||||
|
||||
#endif // SETTINGSDIALOG_HPP
|
180
settingsdialog.ui
Normal file
180
settingsdialog.ui
Normal file
@ -0,0 +1,180 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>SettingsDialog</class>
|
||||
<widget class="QDialog" name="SettingsDialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>483</width>
|
||||
<height>470</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout">
|
||||
<item row="1" column="1">
|
||||
<widget class="QListWidget" name="uploaderList"/>
|
||||
</item>
|
||||
<item row="6" column="1">
|
||||
<widget class="QCheckBox" name="quickMode">
|
||||
<property name="text">
|
||||
<string>Quick mode (mouse release screenshots)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="text">
|
||||
<string>Delay before taking a screenshot</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QDoubleSpinBox" name="delay">
|
||||
<property name="toolTip">
|
||||
<string>In seconds</string>
|
||||
</property>
|
||||
<property name="whatsThis">
|
||||
<string>A delay before taking a screenshot, in seconds</string>
|
||||
</property>
|
||||
<property name="suffix">
|
||||
<string>s</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="2" rowspan="5">
|
||||
<widget class="QListWidget" name="hotkeys"/>
|
||||
</item>
|
||||
<item row="0" column="2">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<property name="text">
|
||||
<string>Hotkeys</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="11" column="1" colspan="2">
|
||||
<widget class="QPushButton" name="pushButton">
|
||||
<property name="text">
|
||||
<string>Encoder settings</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="1">
|
||||
<widget class="QLabel" name="label_7">
|
||||
<property name="text">
|
||||
<string>Still image format</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="10" column="2">
|
||||
<widget class="QComboBox" name="imageFormatBox"/>
|
||||
</item>
|
||||
<item row="9" column="1">
|
||||
<widget class="QLabel" name="label_4">
|
||||
<property name="text">
|
||||
<string>Recording format</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="7" column="1" colspan="2">
|
||||
<widget class="QCheckBox" name="captureCursor">
|
||||
<property name="text">
|
||||
<string>Capture cursor</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="3" column="1">
|
||||
<widget class="QLineEdit" name="nameScheme">
|
||||
<property name="toolTip">
|
||||
<string>http://doc.qt.io/qt-5/qdatetime.html#toString</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Screenshot %(yyyy-MM-dd HH:mm:ss)date</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="text">
|
||||
<string>File name scheme:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="1" colspan="2">
|
||||
<widget class="QCheckBox" name="hideToTray">
|
||||
<property name="text">
|
||||
<string>Pressing <X> hides to tray</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="9" column="2">
|
||||
<widget class="QComboBox" name="formatBox">
|
||||
<property name="currentIndex">
|
||||
<number>-1</number>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="2">
|
||||
<widget class="QPushButton" name="settingsButton">
|
||||
<property name="text">
|
||||
<string>Open settings directory</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Uploader selection:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="12" column="1" colspan="2">
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>accepted()</signal>
|
||||
<receiver>SettingsDialog</receiver>
|
||||
<slot>accept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>248</x>
|
||||
<y>254</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>157</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>rejected()</signal>
|
||||
<receiver>SettingsDialog</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>316</x>
|
||||
<y>260</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>286</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
Loading…
Reference in New Issue
Block a user