Add settings_ui. Add info.md to docs directory.
This commit is contained in:
parent
159ee227b7
commit
d08ad5d6f5
1
docs/info.md
Normal file
1
docs/info.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
#In this folder you will find all the documentation for the MagicPodcast project.
|
98
src/gui/ui/settings_dialog.ui
Normal file
98
src/gui/ui/settings_dialog.ui
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>v_layout_settings</class>
|
||||||
|
<widget class="QDialog" name="v_layout_settings">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>400</width>
|
||||||
|
<height>100</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>400</width>
|
||||||
|
<height>100</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Ustawienia</string>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<layout class="QHBoxLayout" name="h_layout_language">
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="label_language">
|
||||||
|
<property name="text">
|
||||||
|
<string>Język programu:</string>
|
||||||
|
</property>
|
||||||
|
<property name="alignment">
|
||||||
|
<set>Qt::AlignCenter</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QComboBox" name="combo_box_language">
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Angielski/English</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>Polski/Polish</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QDialogButtonBox" name="button_box">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="standardButtons">
|
||||||
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections>
|
||||||
|
<connection>
|
||||||
|
<sender>button_box</sender>
|
||||||
|
<signal>accepted()</signal>
|
||||||
|
<receiver>v_layout_settings</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>button_box</sender>
|
||||||
|
<signal>rejected()</signal>
|
||||||
|
<receiver>v_layout_settings</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>
|
59
src/python/ui/settings_dialog_ui.py
Normal file
59
src/python/ui/settings_dialog_ui.py
Normal file
@ -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_())
|
Loading…
Reference in New Issue
Block a user