feat: add buttons for exact title / any book

This commit is contained in:
2024-11-26 10:16:55 +01:00
parent 9f12ef48bc
commit 63c525ce7a
2 changed files with 52 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
# Form implementation generated from reading ui file 'c:\Users\aky547\GitHub\SemesterapparatsManager\src\ui\dialogs\dialog_sources\medianadder.ui'
#
# Created by: PyQt6 UI code generator 6.6.1
# Created by: PyQt6 UI code generator 6.7.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
@@ -33,7 +33,7 @@ class Ui_Dialog(object):
self.lineEdit.setGeometry(QtCore.QRect(70, 10, 113, 20))
self.lineEdit.setObjectName("lineEdit")
self.label_3 = QtWidgets.QLabel(parent=Dialog)
self.label_3.setGeometry(QtCore.QRect(20, 70, 47, 21))
self.label_3.setGeometry(QtCore.QRect(20, 90, 47, 21))
self.label_3.setObjectName("label_3")
self.widget = QtWidgets.QWidget(parent=Dialog)
self.widget.setGeometry(QtCore.QRect(330, 90, 281, 381))
@@ -178,17 +178,17 @@ class Ui_Dialog(object):
self.tableWidget.horizontalHeader().setDefaultSectionSize(45)
self.horizontalLayout.addWidget(self.tableWidget)
self.listWidget = QtWidgets.QListWidget(parent=Dialog)
self.listWidget.setGeometry(QtCore.QRect(10, 90, 281, 341))
self.listWidget.setGeometry(QtCore.QRect(10, 110, 281, 321))
self.listWidget.setContextMenuPolicy(QtCore.Qt.ContextMenuPolicy.CustomContextMenu)
self.listWidget.setObjectName("listWidget")
self.label_4 = QtWidgets.QLabel(parent=Dialog)
self.label_4.setGeometry(QtCore.QRect(330, 50, 181, 21))
self.label_4.setObjectName("label_4")
self.label_5 = QtWidgets.QLabel(parent=Dialog)
self.label_5.setGeometry(QtCore.QRect(200, 70, 41, 21))
self.label_5.setGeometry(QtCore.QRect(200, 90, 41, 21))
self.label_5.setObjectName("label_5")
self.list_amount = QtWidgets.QLabel(parent=Dialog)
self.list_amount.setGeometry(QtCore.QRect(240, 70, 47, 21))
self.list_amount.setGeometry(QtCore.QRect(240, 90, 47, 21))
self.list_amount.setObjectName("list_amount")
self.horizontalLayoutWidget = QtWidgets.QWidget(parent=Dialog)
self.horizontalLayoutWidget.setGeometry(QtCore.QRect(10, 440, 160, 31))
@@ -204,6 +204,12 @@ class Ui_Dialog(object):
self.btn_cancel.setFocusPolicy(QtCore.Qt.FocusPolicy.NoFocus)
self.btn_cancel.setObjectName("btn_cancel")
self.horizontalLayout_2.addWidget(self.btn_cancel)
self.check_use_any_book = QtWidgets.QCheckBox(parent=Dialog)
self.check_use_any_book.setGeometry(QtCore.QRect(20, 70, 141, 20))
self.check_use_any_book.setObjectName("check_use_any_book")
self.check_use_exact_signature = QtWidgets.QCheckBox(parent=Dialog)
self.check_use_exact_signature.setGeometry(QtCore.QRect(165, 70, 121, 20))
self.check_use_exact_signature.setObjectName("check_use_exact_signature")
self.retranslateUi(Dialog)
QtCore.QMetaObject.connectSlotsByName(Dialog)
@@ -348,3 +354,7 @@ class Ui_Dialog(object):
self.list_amount.setText(_translate("Dialog", "0"))
self.btn_save.setText(_translate("Dialog", "Ok"))
self.btn_cancel.setText(_translate("Dialog", "Abbrechen"))
self.check_use_any_book.setToolTip(_translate("Dialog", "Verwendet ein zufälliges Buch des Datensatzes, nützlich wenn das Buch noch nicht im Apparat ist"))
self.check_use_any_book.setText(_translate("Dialog", "Jedes Buch verwenden"))
self.check_use_exact_signature.setToolTip(_translate("Dialog", "Verwendet die eingegebene Signatur für die Suche von Daten"))
self.check_use_exact_signature.setText(_translate("Dialog", "Exakte Signatur"))

View File

@@ -90,7 +90,7 @@
<property name="geometry">
<rect>
<x>20</x>
<y>70</y>
<y>90</y>
<width>47</width>
<height>21</height>
</rect>
@@ -453,9 +453,9 @@
<property name="geometry">
<rect>
<x>10</x>
<y>90</y>
<y>110</y>
<width>281</width>
<height>341</height>
<height>321</height>
</rect>
</property>
<property name="contextMenuPolicy">
@@ -479,7 +479,7 @@
<property name="geometry">
<rect>
<x>200</x>
<y>70</y>
<y>90</y>
<width>41</width>
<height>21</height>
</rect>
@@ -492,7 +492,7 @@
<property name="geometry">
<rect>
<x>240</x>
<y>70</y>
<y>90</y>
<width>47</width>
<height>21</height>
</rect>
@@ -533,6 +533,38 @@
</item>
</layout>
</widget>
<widget class="QCheckBox" name="check_use_any_book">
<property name="geometry">
<rect>
<x>20</x>
<y>70</y>
<width>141</width>
<height>20</height>
</rect>
</property>
<property name="toolTip">
<string>Verwendet ein zufälliges Buch des Datensatzes, nützlich wenn das Buch noch nicht im Apparat ist</string>
</property>
<property name="text">
<string>Jedes Buch verwenden</string>
</property>
</widget>
<widget class="QCheckBox" name="check_use_exact_signature">
<property name="geometry">
<rect>
<x>165</x>
<y>70</y>
<width>121</width>
<height>20</height>
</rect>
</property>
<property name="toolTip">
<string>Verwendet die eingegebene Signatur für die Suche von Daten</string>
</property>
<property name="text">
<string>Exakte Signatur</string>
</property>
</widget>
</widget>
<tabstops>
<tabstop>lineEdit</tabstop>