merge main into dev #13
@@ -12,7 +12,24 @@ from .widget_sources.new_edition_check_found_result_ui import (
|
||||
Ui_Dialog as Ui_NewEditionCheckFoundResult,
|
||||
)
|
||||
from .widget_sources.new_edition_check_ui import Ui_Dialog as Ui_NewEditionCheck
|
||||
from .widget_sources.new_edition_check_selector_ui import Ui_Dialog as Ui_NewEditionCheckSelector
|
||||
|
||||
class NewEditionCheckSelector(QtWidgets.QDialog, Ui_NewEditionCheckSelector):
|
||||
def __init__(self, parent=None):
|
||||
super().__init__(parent)
|
||||
self.setupUi(self)
|
||||
self.setWindowTitle("Neuauflagen prüfen")
|
||||
self.btn_apparat.clicked.connect(self.select_apparat)
|
||||
self.btn_prof.clicked.connect(self.select_professor)
|
||||
self.selection = None
|
||||
|
||||
def select_apparat(self):
|
||||
self.selection = "apparat"
|
||||
self.accept()
|
||||
|
||||
def select_professor(self):
|
||||
self.selection = "professor"
|
||||
self.accept()
|
||||
|
||||
class NewEditionCheckFoundResult(QtWidgets.QDialog, Ui_NewEditionCheckFoundResult):
|
||||
def __init__(self, book: BookData, parent=None):
|
||||
|
||||
46
src/ui/widgets/widget_sources/new_edition_check_selector.ui
Normal file
46
src/ui/widgets/widget_sources/new_edition_check_selector.ui
Normal file
@@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>Dialog</class>
|
||||
<widget class="QDialog" name="Dialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>475</width>
|
||||
<height>66</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string>Soll nur der Apparat geprüft werden, oder sollen alle Medien des Profs geprüft werden?</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QPushButton" name="btn_apparat">
|
||||
<property name="text">
|
||||
<string>Apparat</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btn_prof">
|
||||
<property name="text">
|
||||
<string>Prof</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
Reference in New Issue
Block a user