ffconverter 2.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ffconverter/__init__.py +22 -0
- ffconverter/about_dlg.py +84 -0
- ffconverter/audiovideotab.py +600 -0
- ffconverter/config.py +149 -0
- ffconverter/dynamictab.py +63 -0
- ffconverter/ffconverter.py +720 -0
- ffconverter/imagetab.py +122 -0
- ffconverter/preferences_dlg.py +358 -0
- ffconverter/presets.xml +729 -0
- ffconverter/presets_dlgs.py +492 -0
- ffconverter/progress.py +680 -0
- ffconverter/qrc_resources.py +19097 -0
- ffconverter/utils.py +792 -0
- ffconverter-2.5.0.data/data/share/applications/ffconverter.desktop +14 -0
- ffconverter-2.5.0.data/data/share/man/man1/ffconverter.1.gz +0 -0
- ffconverter-2.5.0.data/data/share/pixmaps/ffconverter.png +0 -0
- ffconverter-2.5.0.dist-info/METADATA +185 -0
- ffconverter-2.5.0.dist-info/RECORD +22 -0
- ffconverter-2.5.0.dist-info/WHEEL +5 -0
- ffconverter-2.5.0.dist-info/entry_points.txt +2 -0
- ffconverter-2.5.0.dist-info/licenses/COPYING +226 -0
- ffconverter-2.5.0.dist-info/top_level.txt +1 -0
ffconverter/__init__.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""
|
|
2
|
+
GUI File Format Converter
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
# version
|
|
6
|
+
__major__ = 2
|
|
7
|
+
__minor__ = 5
|
|
8
|
+
__patch__ = 0
|
|
9
|
+
__prerelease__ = "" # alpha, beta, rc etc.
|
|
10
|
+
|
|
11
|
+
# package information
|
|
12
|
+
__name__ = "ffconverter"
|
|
13
|
+
__version__ = "{0}.{1}.{2}".format(__major__, __minor__, __patch__)
|
|
14
|
+
__version__ += __prerelease__
|
|
15
|
+
__description__ = "File Format Converter with Qt GUI"
|
|
16
|
+
__author__ = "Ilias Stamatis"
|
|
17
|
+
__author_email__ = "stamatis.iliass@gmail.com"
|
|
18
|
+
__maintainer__ = "l-koehler"
|
|
19
|
+
__maintainer_email__ = "lorenz.koehler@posteo.de"
|
|
20
|
+
__license__ = "GNU GPL3"
|
|
21
|
+
__platforms__ = ["Linux", "Windows"]
|
|
22
|
+
__url__ = "https://github.com/l-koehler/FF-converter"
|
ffconverter/about_dlg.py
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Copyright (C) 2023-2024 l-koehler
|
|
2
|
+
# Copyright (C) 2011-2016 Ilias Stamatis <stamatis.iliass@gmail.com>
|
|
3
|
+
#
|
|
4
|
+
# This program is free software: you can redistribute it and/or modify
|
|
5
|
+
# it under the terms of the GNU General Public License as published by
|
|
6
|
+
# the Free Software Foundation, either version 3 of the License, or
|
|
7
|
+
# (at your option) any later version.
|
|
8
|
+
#
|
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
+
|
|
17
|
+
from PyQt5.QtCore import QSize
|
|
18
|
+
from PyQt5.QtGui import QPixmap
|
|
19
|
+
from PyQt5.QtWidgets import (
|
|
20
|
+
QDialog, QLabel, QPlainTextEdit, QPushButton, QTabWidget
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
from ffconverter import utils
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class AboutDialog(QDialog):
|
|
27
|
+
def __init__(self, text, image, authors, translators, parent=None):
|
|
28
|
+
super(AboutDialog, self).__init__(parent)
|
|
29
|
+
self.parent = parent
|
|
30
|
+
self.authors = authors
|
|
31
|
+
self.translators = translators
|
|
32
|
+
|
|
33
|
+
imageQL = QLabel()
|
|
34
|
+
imageQL.setMaximumSize(QSize(63, 61))
|
|
35
|
+
imageQL.setPixmap(QPixmap(image))
|
|
36
|
+
imageQL.setScaledContents(True)
|
|
37
|
+
textQL = QLabel()
|
|
38
|
+
textQL.setText(text)
|
|
39
|
+
textQL.setOpenExternalLinks(True)
|
|
40
|
+
creditsQPB = QPushButton(self.tr('C&redits'))
|
|
41
|
+
closeQPB = QPushButton(self.tr('&Close'))
|
|
42
|
+
|
|
43
|
+
vlayout1 = utils.add_to_layout('v', imageQL, None)
|
|
44
|
+
hlayout1 = utils.add_to_layout('h', vlayout1, textQL)
|
|
45
|
+
hlayout2 = utils.add_to_layout('h', creditsQPB, None, closeQPB)
|
|
46
|
+
fin_layout = utils.add_to_layout('v', hlayout1, hlayout2)
|
|
47
|
+
|
|
48
|
+
self.setLayout(fin_layout)
|
|
49
|
+
|
|
50
|
+
closeQPB.clicked.connect(self.close)
|
|
51
|
+
creditsQPB.clicked.connect(self.show_credits)
|
|
52
|
+
|
|
53
|
+
self.resize(455, 200)
|
|
54
|
+
self.setWindowTitle(self.tr('About FF Multi Converter'))
|
|
55
|
+
|
|
56
|
+
def show_credits(self):
|
|
57
|
+
"""Call CreditsDialog."""
|
|
58
|
+
dialog = CreditsDialog(self.authors, self.translators, self)
|
|
59
|
+
dialog.exec_()
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class CreditsDialog(QDialog):
|
|
63
|
+
def __init__(self, authors, translators, parent=None):
|
|
64
|
+
super(CreditsDialog, self).__init__(parent)
|
|
65
|
+
self.parent = parent
|
|
66
|
+
|
|
67
|
+
authorsLabel = QPlainTextEdit(authors)
|
|
68
|
+
authorsLabel.setReadOnly(True)
|
|
69
|
+
translatorsLabel = QPlainTextEdit(translators)
|
|
70
|
+
translatorsLabel.setReadOnly(True)
|
|
71
|
+
TabWidget = QTabWidget()
|
|
72
|
+
TabWidget.addTab(authorsLabel, self.tr('Written by'))
|
|
73
|
+
TabWidget.addTab(translatorsLabel, self.tr('Translated by'))
|
|
74
|
+
closeQPB = QPushButton(self.tr('&Close'))
|
|
75
|
+
|
|
76
|
+
hlayout = utils.add_to_layout('h', None, closeQPB)
|
|
77
|
+
vlayout = utils.add_to_layout('v', TabWidget, hlayout)
|
|
78
|
+
|
|
79
|
+
self.setLayout(vlayout)
|
|
80
|
+
closeQPB.clicked.connect(self.close)
|
|
81
|
+
|
|
82
|
+
self.setMinimumSize(QSize(335, 370))
|
|
83
|
+
self.setMaximumSize(QSize(335, 370))
|
|
84
|
+
self.setWindowTitle(self.tr('Credits'))
|