From d08ad5d6f5461c80696e8d08ac8b8734d0a8f0f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20Wieczorek?= Date: Mon, 4 Jan 2021 13:31:53 +0100 Subject: [PATCH] Add settings_ui. Add info.md to docs directory. --- docs/info.md | 1 + src/gui/ui/settings_dialog.ui | 98 +++++++++++++++++++++++++++++ src/python/ui/settings_dialog_ui.py | 59 +++++++++++++++++ 3 files changed, 158 insertions(+) create mode 100644 docs/info.md create mode 100644 src/gui/ui/settings_dialog.ui create mode 100644 src/python/ui/settings_dialog_ui.py diff --git a/docs/info.md b/docs/info.md new file mode 100644 index 0000000..1cd7ea6 --- /dev/null +++ b/docs/info.md @@ -0,0 +1 @@ +#In this folder you will find all the documentation for the MagicPodcast project. \ No newline at end of file diff --git a/src/gui/ui/settings_dialog.ui b/src/gui/ui/settings_dialog.ui new file mode 100644 index 0000000..fcb8ec4 --- /dev/null +++ b/src/gui/ui/settings_dialog.ui @@ -0,0 +1,98 @@ + + + v_layout_settings + + + + 0 + 0 + 400 + 100 + + + + + 400 + 100 + + + + Ustawienia + + + + + + + + Język programu: + + + Qt::AlignCenter + + + + + + + + Angielski/English + + + + + Polski/Polish + + + + + + + + + + Qt::Horizontal + + + QDialogButtonBox::Cancel|QDialogButtonBox::Ok + + + + + + + + + button_box + accepted() + v_layout_settings + accept() + + + 248 + 254 + + + 157 + 274 + + + + + button_box + rejected() + v_layout_settings + reject() + + + 316 + 260 + + + 286 + 274 + + + + + diff --git a/src/python/ui/settings_dialog_ui.py b/src/python/ui/settings_dialog_ui.py new file mode 100644 index 0000000..9326977 --- /dev/null +++ b/src/python/ui/settings_dialog_ui.py @@ -0,0 +1,59 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file './src/gui/ui/settings_dialog.ui' +# +# Created by: PyQt5 UI code generator 5.15.2 +# +# WARNING: Any manual changes made to this file will be lost when pyuic5 is +# run again. Do not edit this file unless you know what you are doing. + + +from PyQt5 import QtCore, QtGui, QtWidgets + + +class Ui_v_layout_settings(object): + def setupUi(self, v_layout_settings): + v_layout_settings.setObjectName("v_layout_settings") + v_layout_settings.resize(400, 100) + v_layout_settings.setMaximumSize(QtCore.QSize(400, 100)) + self.verticalLayout = QtWidgets.QVBoxLayout(v_layout_settings) + self.verticalLayout.setObjectName("verticalLayout") + self.h_layout_language = QtWidgets.QHBoxLayout() + self.h_layout_language.setObjectName("h_layout_language") + self.label_language = QtWidgets.QLabel(v_layout_settings) + self.label_language.setAlignment(QtCore.Qt.AlignCenter) + self.label_language.setObjectName("label_language") + self.h_layout_language.addWidget(self.label_language) + self.combo_box_language = QtWidgets.QComboBox(v_layout_settings) + self.combo_box_language.setObjectName("combo_box_language") + self.combo_box_language.addItem("") + self.combo_box_language.addItem("") + self.h_layout_language.addWidget(self.combo_box_language) + self.verticalLayout.addLayout(self.h_layout_language) + self.button_box = QtWidgets.QDialogButtonBox(v_layout_settings) + self.button_box.setOrientation(QtCore.Qt.Horizontal) + self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) + self.button_box.setObjectName("button_box") + self.verticalLayout.addWidget(self.button_box) + + self.retranslateUi(v_layout_settings) + self.button_box.accepted.connect(v_layout_settings.accept) + self.button_box.rejected.connect(v_layout_settings.reject) + QtCore.QMetaObject.connectSlotsByName(v_layout_settings) + + def retranslateUi(self, v_layout_settings): + _translate = QtCore.QCoreApplication.translate + v_layout_settings.setWindowTitle(_translate("v_layout_settings", "Ustawienia")) + self.label_language.setText(_translate("v_layout_settings", "Język programu:")) + self.combo_box_language.setItemText(0, _translate("v_layout_settings", "Angielski/English")) + self.combo_box_language.setItemText(1, _translate("v_layout_settings", "Polski/Polish")) + + +if __name__ == "__main__": + import sys + app = QtWidgets.QApplication(sys.argv) + v_layout_settings = QtWidgets.QDialog() + ui = Ui_v_layout_settings() + ui.setupUi(v_layout_settings) + v_layout_settings.show() + sys.exit(app.exec_())