ui changes

This commit is contained in:
WorldTeacher
2024-07-11 15:16:41 +02:00
parent 3383deeb2b
commit 1b8e669fee
8 changed files with 159 additions and 10 deletions

View File

@@ -24,6 +24,10 @@ class Ui_Dialog(object):
self.buttonBox.setObjectName("buttonBox")
self.gridLayout.addWidget(self.buttonBox, 2, 2, 1, 1)
self.label = QtWidgets.QLabel(parent=Dialog)
font = QtGui.QFont()
font.setPointSize(11)
font.setBold(True)
self.label.setFont(font)
self.label.setObjectName("label")
self.gridLayout.addWidget(self.label, 0, 2, 1, 1)

View File

@@ -0,0 +1,34 @@
# Form implementation generated from reading ui file 'c:\Users\aky547\GitHub\LibrarySystem\src\ui\sources\dialog_message.ui'
#
# Created by: PyQt6 UI code generator 6.6.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.
from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.resize(400, 89)
self.horizontalLayout = QtWidgets.QHBoxLayout(Dialog)
self.horizontalLayout.setObjectName("horizontalLayout")
self.textEdit = QtWidgets.QTextEdit(parent=Dialog)
self.textEdit.setObjectName("textEdit")
self.horizontalLayout.addWidget(self.textEdit)
self.buttonBox = QtWidgets.QDialogButtonBox(parent=Dialog)
self.buttonBox.setOrientation(QtCore.Qt.Orientation.Vertical)
self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
self.buttonBox.setObjectName("buttonBox")
self.horizontalLayout.addWidget(self.buttonBox)
self.retranslateUi(Dialog)
self.buttonBox.accepted.connect(Dialog.accept) # type: ignore
self.buttonBox.rejected.connect(Dialog.reject) # type: ignore
QtCore.QMetaObject.connectSlotsByName(Dialog)
def retranslateUi(self, Dialog):
_translate = QtCore.QCoreApplication.translate
Dialog.setWindowTitle(_translate("Dialog", "Dialog"))

View File

@@ -88,6 +88,13 @@ class Ui_MainWindow(object):
self.label_4.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
self.label_4.setObjectName("label_4")
self.gridLayout_2.addWidget(self.label_4, 0, 0, 1, 1)
self.label_7 = QtWidgets.QLabel(parent=self.groupBox_2)
self.label_7.setObjectName("label_7")
self.gridLayout_2.addWidget(self.label_7, 1, 0, 1, 1)
self.nextReturnDate = QtWidgets.QLabel(parent=self.groupBox_2)
self.nextReturnDate.setText("")
self.nextReturnDate.setObjectName("nextReturnDate")
self.gridLayout_2.addWidget(self.nextReturnDate, 1, 1, 1, 1)
self.horizontalLayout_2.addWidget(self.groupBox_2)
self.horizontalLayout_2.setStretch(0, 3)
self.horizontalLayout_2.setStretch(1, 1)
@@ -120,11 +127,14 @@ class Ui_MainWindow(object):
self.actionEinstellungen.setObjectName("actionEinstellungen")
self.actionBeenden = QtGui.QAction(parent=MainWindow)
self.actionBeenden.setObjectName("actionBeenden")
self.actionR_ckgabemodus = QtGui.QAction(parent=MainWindow)
self.actionR_ckgabemodus.setObjectName("actionR_ckgabemodus")
self.actionRueckgabemodus = QtGui.QAction(parent=MainWindow)
self.actionRueckgabemodus.setObjectName("actionRueckgabemodus")
self.actionNutzer = QtGui.QAction(parent=MainWindow)
self.actionNutzer.setObjectName("actionNutzer")
self.menuDatei.addAction(self.actionEinstellungen)
self.menuDatei.addAction(self.actionBeenden)
self.menuShortkeys.addAction(self.actionR_ckgabemodus)
self.menuShortkeys.addAction(self.actionRueckgabemodus)
self.menuShortkeys.addAction(self.actionNutzer)
self.menubar.addAction(self.menuDatei.menuAction())
self.menubar.addAction(self.menuShortkeys.menuAction())
@@ -149,6 +159,7 @@ class Ui_MainWindow(object):
self.groupBox.setTitle(_translate("MainWindow", "Nutzerdaten"))
self.groupBox_2.setTitle(_translate("MainWindow", "Ausleihdaten"))
self.label_4.setText(_translate("MainWindow", "Anzahl Ausleihen"))
self.label_7.setText(_translate("MainWindow", "Nächstes Rückgabedatum"))
item = self.tableWidget.horizontalHeaderItem(0)
item.setText(_translate("MainWindow", "ISBN"))
item = self.tableWidget.horizontalHeaderItem(1)
@@ -157,5 +168,7 @@ class Ui_MainWindow(object):
self.menuShortkeys.setTitle(_translate("MainWindow", "Shortkeys"))
self.actionEinstellungen.setText(_translate("MainWindow", "Einstellungen"))
self.actionBeenden.setText(_translate("MainWindow", "Beenden"))
self.actionR_ckgabemodus.setText(_translate("MainWindow", "Rückgabemodus"))
self.actionR_ckgabemodus.setShortcut(_translate("MainWindow", "F5"))
self.actionRueckgabemodus.setText(_translate("MainWindow", "Rückgabemodus"))
self.actionRueckgabemodus.setShortcut(_translate("MainWindow", "F5"))
self.actionNutzer.setText(_translate("MainWindow", "Nutzer"))
self.actionNutzer.setShortcut(_translate("MainWindow", "U"))

View File

@@ -93,6 +93,7 @@ class Ui_MainWindow(object):
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
self.horizontalLayout_3.addItem(spacerItem3)
self.btn_extendSelectedMedia = QtWidgets.QPushButton(parent=self.centralwidget)
self.btn_extendSelectedMedia.setEnabled(False)
self.btn_extendSelectedMedia.setObjectName("btn_extendSelectedMedia")
self.horizontalLayout_3.addWidget(self.btn_extendSelectedMedia)
self.verticalLayout.addLayout(self.horizontalLayout_3)
@@ -149,8 +150,6 @@ class Ui_MainWindow(object):
self.radio_overdueLoans.setText(_translate("MainWindow", "Überzogen"))
self.btn_searchTableContent.setText(_translate("MainWindow", "Suchen"))
self.btn_extendSelectedMedia.setText(_translate("MainWindow", "Ausgewählte Verlängern"))
item = self.UserMediaTable.horizontalHeaderItem(0)
item.setText(_translate("MainWindow", " "))
item = self.UserMediaTable.horizontalHeaderItem(1)
item.setText(_translate("MainWindow", "ISBN"))
item = self.UserMediaTable.horizontalHeaderItem(2)

View File

@@ -29,6 +29,12 @@
</item>
<item row="0" column="2">
<widget class="QLabel" name="label">
<property name="font">
<font>
<pointsize>11</pointsize>
<bold>true</bold>
</font>
</property>
<property name="text">
<string>Bitte das Verlängerungsdatum auswählen</string>
</property>

View File

@@ -0,0 +1,67 @@
<?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>400</width>
<height>89</height>
</rect>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QTextEdit" name="textEdit"/>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>Dialog</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>buttonBox</sender>
<signal>rejected()</signal>
<receiver>Dialog</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>

View File

@@ -144,6 +144,20 @@
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_7">
<property name="text">
<string>Nächstes Rückgabedatum</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="nextReturnDate">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</widget>
</item>
@@ -189,7 +203,8 @@
<property name="title">
<string>Shortkeys</string>
</property>
<addaction name="actionR_ckgabemodus"/>
<addaction name="actionRueckgabemodus"/>
<addaction name="actionNutzer"/>
</widget>
<addaction name="menuDatei"/>
<addaction name="menuShortkeys"/>
@@ -205,7 +220,7 @@
<string>Beenden</string>
</property>
</action>
<action name="actionR_ckgabemodus">
<action name="actionRueckgabemodus">
<property name="text">
<string>Rückgabemodus</string>
</property>
@@ -213,6 +228,14 @@
<string>F5</string>
</property>
</action>
<action name="actionNutzer">
<property name="text">
<string>Nutzer</string>
</property>
<property name="shortcut">
<string>U</string>
</property>
</action>
</widget>
<tabstops>
<tabstop>input_userno</tabstop>

View File

@@ -191,6 +191,9 @@
</item>
<item>
<widget class="QPushButton" name="btn_extendSelectedMedia">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>Ausgewählte Verlängern</string>
</property>
@@ -229,7 +232,7 @@
</attribute>
<column>
<property name="text">
<string> </string>
<string/>
</property>
</column>
<column>