Einige Variablen umbennant
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
from PySide6.QtWidgets import QDialog, QTableWidgetItem, QFileDialog, QHeaderView
|
from PySide6.QtWidgets import QDialog, QTableWidgetItem, QHeaderView
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from ui.AppSettings_ui import Ui_Dialog
|
from ui.AppSettings_ui import Ui_Dialog
|
||||||
@@ -56,7 +56,7 @@ class AppSettingsDlg(QDialog):
|
|||||||
|
|
||||||
# Saxon Tab
|
# Saxon Tab
|
||||||
self.ui.addSaxon.clicked.connect(self._add_saxon)
|
self.ui.addSaxon.clicked.connect(self._add_saxon)
|
||||||
self.ui.removveSaxon.clicked.connect(self._remove_saxon)
|
self.ui.removeSaxon.clicked.connect(self._remove_saxon)
|
||||||
self.ui.tableSaxons.itemSelectionChanged.connect(self._update_saxon_buttons)
|
self.ui.tableSaxons.itemSelectionChanged.connect(self._update_saxon_buttons)
|
||||||
|
|
||||||
# Apache FOP Tab
|
# Apache FOP Tab
|
||||||
@@ -238,7 +238,7 @@ class AppSettingsDlg(QDialog):
|
|||||||
def _update_saxon_buttons(self):
|
def _update_saxon_buttons(self):
|
||||||
"""Aktualisiert den Status der Saxon-Buttons."""
|
"""Aktualisiert den Status der Saxon-Buttons."""
|
||||||
has_selection = self.ui.tableSaxons.currentRow() >= 0
|
has_selection = self.ui.tableSaxons.currentRow() >= 0
|
||||||
self.ui.removveSaxon.setEnabled(has_selection)
|
self.ui.removeSaxon.setEnabled(has_selection)
|
||||||
|
|
||||||
# Apache FOP Methoden
|
# Apache FOP Methoden
|
||||||
def _add_apache_fop(self):
|
def _add_apache_fop(self):
|
||||||
|
|||||||
@@ -216,7 +216,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="removveSaxon">
|
<widget class="QPushButton" name="removeSaxon">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
@@ -380,7 +380,7 @@
|
|||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_7">
|
<layout class="QVBoxLayout" name="verticalLayout_7">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QTableWidget" name="tablePdfProjekts">
|
<widget class="QTableWidget" name="tablePdfProjects">
|
||||||
<property name="columnCount">
|
<property name="columnCount">
|
||||||
<number>1</number>
|
<number>1</number>
|
||||||
</property>
|
</property>
|
||||||
|
|||||||
+12
-12
@@ -139,12 +139,12 @@ class Ui_Dialog(object):
|
|||||||
|
|
||||||
self.horizontalLayout_4.addWidget(self.addSaxon)
|
self.horizontalLayout_4.addWidget(self.addSaxon)
|
||||||
|
|
||||||
self.removveSaxon = QPushButton(self.frame_4)
|
self.removeSaxon = QPushButton(self.frame_4)
|
||||||
self.removveSaxon.setObjectName(u"removveSaxon")
|
self.removeSaxon.setObjectName(u"removeSaxon")
|
||||||
self.removveSaxon.setEnabled(False)
|
self.removeSaxon.setEnabled(False)
|
||||||
self.removveSaxon.setIcon(icon1)
|
self.removeSaxon.setIcon(icon1)
|
||||||
|
|
||||||
self.horizontalLayout_4.addWidget(self.removveSaxon)
|
self.horizontalLayout_4.addWidget(self.removeSaxon)
|
||||||
|
|
||||||
|
|
||||||
self.verticalLayout_4.addWidget(self.frame_4)
|
self.verticalLayout_4.addWidget(self.frame_4)
|
||||||
@@ -230,13 +230,13 @@ class Ui_Dialog(object):
|
|||||||
self.tabPdfProject.setObjectName(u"tabPdfProject")
|
self.tabPdfProject.setObjectName(u"tabPdfProject")
|
||||||
self.verticalLayout_7 = QVBoxLayout(self.tabPdfProject)
|
self.verticalLayout_7 = QVBoxLayout(self.tabPdfProject)
|
||||||
self.verticalLayout_7.setObjectName(u"verticalLayout_7")
|
self.verticalLayout_7.setObjectName(u"verticalLayout_7")
|
||||||
self.tablePdfProjekts = QTableWidget(self.tabPdfProject)
|
self.tablePdfProjects = QTableWidget(self.tabPdfProject)
|
||||||
if (self.tablePdfProjekts.columnCount() < 1):
|
if (self.tablePdfProjects.columnCount() < 1):
|
||||||
self.tablePdfProjekts.setColumnCount(1)
|
self.tablePdfProjects.setColumnCount(1)
|
||||||
self.tablePdfProjekts.setObjectName(u"tablePdfProjekts")
|
self.tablePdfProjects.setObjectName(u"tablePdfProjects")
|
||||||
self.tablePdfProjekts.setColumnCount(1)
|
self.tablePdfProjects.setColumnCount(1)
|
||||||
|
|
||||||
self.verticalLayout_7.addWidget(self.tablePdfProjekts)
|
self.verticalLayout_7.addWidget(self.tablePdfProjects)
|
||||||
|
|
||||||
self.frame_6 = QFrame(self.tabPdfProject)
|
self.frame_6 = QFrame(self.tabPdfProject)
|
||||||
self.frame_6.setObjectName(u"frame_6")
|
self.frame_6.setObjectName(u"frame_6")
|
||||||
@@ -295,7 +295,7 @@ class Ui_Dialog(object):
|
|||||||
self.removeJavaVm.setText(QCoreApplication.translate("Dialog", u"Entfernen", None))
|
self.removeJavaVm.setText(QCoreApplication.translate("Dialog", u"Entfernen", None))
|
||||||
self.tabSettings.setTabText(self.tabSettings.indexOf(self.tabJavaVm), QCoreApplication.translate("Dialog", u"Java VM", None))
|
self.tabSettings.setTabText(self.tabSettings.indexOf(self.tabJavaVm), QCoreApplication.translate("Dialog", u"Java VM", None))
|
||||||
self.addSaxon.setText(QCoreApplication.translate("Dialog", u"Hinzuf\u00fcgen", None))
|
self.addSaxon.setText(QCoreApplication.translate("Dialog", u"Hinzuf\u00fcgen", None))
|
||||||
self.removveSaxon.setText(QCoreApplication.translate("Dialog", u"Entfernen", None))
|
self.removeSaxon.setText(QCoreApplication.translate("Dialog", u"Entfernen", None))
|
||||||
self.tabSettings.setTabText(self.tabSettings.indexOf(self.tabSaxon), QCoreApplication.translate("Dialog", u"Saxon", None))
|
self.tabSettings.setTabText(self.tabSettings.indexOf(self.tabSaxon), QCoreApplication.translate("Dialog", u"Saxon", None))
|
||||||
self.addApacheFop.setText(QCoreApplication.translate("Dialog", u"Hinzuf\u00fcgen", None))
|
self.addApacheFop.setText(QCoreApplication.translate("Dialog", u"Hinzuf\u00fcgen", None))
|
||||||
self.removeApacheFop.setText(QCoreApplication.translate("Dialog", u"Entfernen", None))
|
self.removeApacheFop.setText(QCoreApplication.translate("Dialog", u"Entfernen", None))
|
||||||
|
|||||||
Reference in New Issue
Block a user