# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'main_window.ui' ## ## Created by: Qt User Interface Compiler version 6.8.1 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale, QMetaObject, QObject, QPoint, QRect, QSize, QTime, QUrl, Qt) from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor, QFont, QFontDatabase, QGradient, QIcon, QImage, QKeySequence, QLinearGradient, QPainter, QPalette, QPixmap, QRadialGradient, QTransform) from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QDateEdit, QFrame, QGridLayout, QGroupBox, QHBoxLayout, QLabel, QLineEdit, QMainWindow, QProgressBar, QPushButton, QSizePolicy, QSpinBox, QTabWidget, QWidget) class Ui_MainWindow(object): def setupUi(self, MainWindow): if not MainWindow.objectName(): MainWindow.setObjectName(u"MainWindow") MainWindow.resize(366, 596) self.centralwidget = QWidget(MainWindow) self.centralwidget.setObjectName(u"centralwidget") self.gridLayout = QGridLayout(self.centralwidget) self.gridLayout.setObjectName(u"gridLayout") self.tabWidget = QTabWidget(self.centralwidget) self.tabWidget.setObjectName(u"tabWidget") self.tab_1 = QWidget() self.tab_1.setObjectName(u"tab_1") self.gridLayout_6 = QGridLayout(self.tab_1) self.gridLayout_6.setObjectName(u"gridLayout_6") self.folder_group = QFrame(self.tab_1) self.folder_group.setObjectName(u"folder_group") self.gridLayout_3 = QGridLayout(self.folder_group) self.gridLayout_3.setObjectName(u"gridLayout_3") self.gridLayout_3.setContentsMargins(-1, -1, 9, 9) self.input_path = QLineEdit(self.folder_group) self.input_path.setObjectName(u"input_path") self.gridLayout_3.addWidget(self.input_path, 0, 0, 1, 1) self.output_path = QLineEdit(self.folder_group) self.output_path.setObjectName(u"output_path") self.gridLayout_3.addWidget(self.output_path, 0, 1, 1, 1) self.input_folder_button = QPushButton(self.folder_group) self.input_folder_button.setObjectName(u"input_folder_button") self.gridLayout_3.addWidget(self.input_folder_button, 1, 0, 1, 1) self.output_folder_button = QPushButton(self.folder_group) self.output_folder_button.setObjectName(u"output_folder_button") self.gridLayout_3.addWidget(self.output_folder_button, 1, 1, 1, 1) self.gridLayout_6.addWidget(self.folder_group, 0, 0, 1, 2) self.groupBox_2 = QGroupBox(self.tab_1) self.groupBox_2.setObjectName(u"groupBox_2") self.gridLayout_5 = QGridLayout(self.groupBox_2) self.gridLayout_5.setObjectName(u"gridLayout_5") self.contrast_checkbox = QCheckBox(self.groupBox_2) self.contrast_checkbox.setObjectName(u"contrast_checkbox") self.gridLayout_5.addWidget(self.contrast_checkbox, 0, 1, 1, 1) self.brightness_spinBox = QSpinBox(self.groupBox_2) self.brightness_spinBox.setObjectName(u"brightness_spinBox") self.brightness_spinBox.setEnabled(False) self.brightness_spinBox.setMinimum(-100) self.brightness_spinBox.setMaximum(100) self.brightness_spinBox.setValue(-10) self.gridLayout_5.addWidget(self.brightness_spinBox, 1, 0, 1, 1) self.watermark_checkbox = QCheckBox(self.groupBox_2) self.watermark_checkbox.setObjectName(u"watermark_checkbox") self.gridLayout_5.addWidget(self.watermark_checkbox, 2, 0, 1, 1) self.brightness_checkbox = QCheckBox(self.groupBox_2) self.brightness_checkbox.setObjectName(u"brightness_checkbox") self.gridLayout_5.addWidget(self.brightness_checkbox, 0, 0, 1, 1) self.watermark_lineEdit = QLineEdit(self.groupBox_2) self.watermark_lineEdit.setObjectName(u"watermark_lineEdit") self.watermark_lineEdit.setEnabled(False) self.gridLayout_5.addWidget(self.watermark_lineEdit, 2, 1, 1, 3) self.contrast_spinBox = QSpinBox(self.groupBox_2) self.contrast_spinBox.setObjectName(u"contrast_spinBox") self.contrast_spinBox.setEnabled(False) self.contrast_spinBox.setMinimum(-100) self.contrast_spinBox.setMaximum(100) self.contrast_spinBox.setValue(10) self.gridLayout_5.addWidget(self.contrast_spinBox, 1, 1, 1, 1) self.grayscale_checkBox = QCheckBox(self.groupBox_2) self.grayscale_checkBox.setObjectName(u"grayscale_checkBox") self.gridLayout_5.addWidget(self.grayscale_checkBox, 0, 2, 1, 1) self.gridLayout_6.addWidget(self.groupBox_2, 2, 0, 1, 2) self.progressBar = QProgressBar(self.tab_1) self.progressBar.setObjectName(u"progressBar") self.progressBar.setValue(0) self.gridLayout_6.addWidget(self.progressBar, 4, 0, 1, 1) self.start_button = QPushButton(self.tab_1) self.start_button.setObjectName(u"start_button") self.start_button.setEnabled(True) self.gridLayout_6.addWidget(self.start_button, 4, 1, 1, 1) self.rename_group = QGroupBox(self.tab_1) self.rename_group.setObjectName(u"rename_group") self.gridLayout_4 = QGridLayout(self.rename_group) self.gridLayout_4.setObjectName(u"gridLayout_4") self.rename_checkbox = QCheckBox(self.rename_group) self.rename_checkbox.setObjectName(u"rename_checkbox") self.gridLayout_4.addWidget(self.rename_checkbox, 0, 0, 1, 1) self.revert_checkbox = QCheckBox(self.rename_group) self.revert_checkbox.setObjectName(u"revert_checkbox") self.gridLayout_4.addWidget(self.revert_checkbox, 0, 1, 1, 1) self.filename = QLineEdit(self.rename_group) self.filename.setObjectName(u"filename") self.filename.setEnabled(False) self.gridLayout_4.addWidget(self.filename, 1, 0, 1, 2) self.gridLayout_6.addWidget(self.rename_group, 3, 0, 1, 2) self.groupBox = QGroupBox(self.tab_1) self.groupBox.setObjectName(u"groupBox") self.gridLayout_2 = QGridLayout(self.groupBox) self.gridLayout_2.setObjectName(u"gridLayout_2") self.jpg_quality_spinBox = QSpinBox(self.groupBox) self.jpg_quality_spinBox.setObjectName(u"jpg_quality_spinBox") self.jpg_quality_spinBox.setMinimum(1) self.jpg_quality_spinBox.setMaximum(100) self.jpg_quality_spinBox.setValue(80) self.gridLayout_2.addWidget(self.jpg_quality_spinBox, 1, 1, 1, 1) self.image_type = QComboBox(self.groupBox) self.image_type.addItem(u"jpg") self.image_type.addItem(u"png") self.image_type.addItem(u"webp") self.image_type.setObjectName(u"image_type") self.gridLayout_2.addWidget(self.image_type, 1, 0, 1, 1) self.resize_checkbox = QCheckBox(self.groupBox) self.resize_checkbox.setObjectName(u"resize_checkbox") self.gridLayout_2.addWidget(self.resize_checkbox, 0, 0, 1, 1) self.resize_spinBox = QSpinBox(self.groupBox) self.resize_spinBox.setObjectName(u"resize_spinBox") self.resize_spinBox.setEnabled(False) self.resize_spinBox.setMinimum(1) self.resize_spinBox.setMaximum(200) self.resize_spinBox.setSingleStep(1) self.resize_spinBox.setValue(80) self.gridLayout_2.addWidget(self.resize_spinBox, 0, 1, 1, 1) self.png_quality_spinBox = QSpinBox(self.groupBox) self.png_quality_spinBox.setObjectName(u"png_quality_spinBox") self.png_quality_spinBox.setEnabled(True) self.png_quality_spinBox.setMinimum(1) self.png_quality_spinBox.setMaximum(9) self.png_quality_spinBox.setValue(6) self.gridLayout_2.addWidget(self.png_quality_spinBox, 1, 2, 1, 1) self.png_quality_spinBox.raise_() self.resize_checkbox.raise_() self.resize_spinBox.raise_() self.image_type.raise_() self.jpg_quality_spinBox.raise_() self.gridLayout_6.addWidget(self.groupBox, 1, 0, 1, 2) self.tabWidget.addTab(self.tab_1, "") self.tab_2 = QWidget() self.tab_2.setObjectName(u"tab_2") self.exif_group = QFrame(self.tab_2) self.exif_group.setObjectName(u"exif_group") self.exif_group.setGeometry(QRect(30, 70, 251, 41)) self.horizontalLayout = QHBoxLayout(self.exif_group) self.horizontalLayout.setObjectName(u"horizontalLayout") self.exif_checkbox = QCheckBox(self.exif_group) self.exif_checkbox.setObjectName(u"exif_checkbox") self.exif_checkbox.setEnabled(False) self.horizontalLayout.addWidget(self.exif_checkbox) self.copy_exif_checkBox = QCheckBox(self.exif_group) self.copy_exif_checkBox.setObjectName(u"copy_exif_checkBox") self.horizontalLayout.addWidget(self.copy_exif_checkBox) self.label = QLabel(self.tab_2) self.label.setObjectName(u"label") self.label.setGeometry(QRect(50, 30, 201, 22)) self.dateEdit = QDateEdit(self.tab_2) self.dateEdit.setObjectName(u"dateEdit") self.dateEdit.setGeometry(QRect(80, 190, 110, 31)) self.tabWidget.addTab(self.tab_2, "") self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1) MainWindow.setCentralWidget(self.centralwidget) self.retranslateUi(MainWindow) self.resize_checkbox.toggled.connect(self.resize_spinBox.setEnabled) self.brightness_checkbox.toggled.connect(self.brightness_spinBox.setEnabled) self.contrast_checkbox.toggled.connect(self.contrast_spinBox.setEnabled) self.watermark_checkbox.toggled.connect(self.watermark_lineEdit.setEnabled) self.rename_checkbox.toggled.connect(self.filename.setEnabled) self.tabWidget.setCurrentIndex(0) QMetaObject.connectSlotsByName(MainWindow) # setupUi def retranslateUi(self, MainWindow): MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"OPTIMA-35", None)) self.input_path.setText(QCoreApplication.translate("MainWindow", u"local_files/img", None)) self.output_path.setText(QCoreApplication.translate("MainWindow", u"local_files/out", None)) self.input_folder_button.setText(QCoreApplication.translate("MainWindow", u"input", None)) self.output_folder_button.setText(QCoreApplication.translate("MainWindow", u"output", None)) self.groupBox_2.setTitle(QCoreApplication.translate("MainWindow", u"Extra stuff", None)) self.contrast_checkbox.setText(QCoreApplication.translate("MainWindow", u"Contrast", None)) self.watermark_checkbox.setText(QCoreApplication.translate("MainWindow", u"Watermark", None)) self.brightness_checkbox.setText(QCoreApplication.translate("MainWindow", u"Brightness", None)) self.watermark_lineEdit.setText("") self.watermark_lineEdit.setPlaceholderText(QCoreApplication.translate("MainWindow", u"Enter Watermark", None)) self.grayscale_checkBox.setText(QCoreApplication.translate("MainWindow", u"Grayscale", None)) self.start_button.setText(QCoreApplication.translate("MainWindow", u"Convert", None)) self.rename_group.setTitle(QCoreApplication.translate("MainWindow", u"files", None)) self.rename_checkbox.setText(QCoreApplication.translate("MainWindow", u"Rename", None)) self.revert_checkbox.setText(QCoreApplication.translate("MainWindow", u"Revert order", None)) self.filename.setText("") self.filename.setPlaceholderText(QCoreApplication.translate("MainWindow", u"Enter file name", None)) self.groupBox.setTitle(QCoreApplication.translate("MainWindow", u"Esential group", None)) self.resize_checkbox.setText(QCoreApplication.translate("MainWindow", u"Resize", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_1), QCoreApplication.translate("MainWindow", u"Main", None)) self.exif_checkbox.setText(QCoreApplication.translate("MainWindow", u"own exif", None)) self.copy_exif_checkBox.setText(QCoreApplication.translate("MainWindow", u"copy exif", None)) self.label.setText(QCoreApplication.translate("MainWindow", u"EXIF EXPERIMENTAL", None)) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QCoreApplication.translate("MainWindow", u"EXIF", None)) # retranslateUi