UI-Dateien für "kleine" Dialoge erstellt
This commit is contained in:
@@ -0,0 +1,119 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>ApacheFopConfigDialog</class>
|
||||||
|
<widget class="QDialog" name="ApacheFopConfigDialog">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>500</width>
|
||||||
|
<height>130</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Apache FOP Konfiguration</string>
|
||||||
|
</property>
|
||||||
|
<property name="modal">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<layout class="QFormLayout" name="formLayout">
|
||||||
|
<property name="sizeConstraint">
|
||||||
|
<enum>QLayout::SizeConstraint::SetMaximumSize</enum>
|
||||||
|
</property>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="versionLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Version:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QLineEdit" name="versionEdit"/>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="pathLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string> FOP-Verzeichnis:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<layout class="QHBoxLayout" name="pathLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="pathEdit"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="browseButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Durchsuchen...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="extensionLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Output-Dateierweiterung:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QLineEdit" name="extensionEdit">
|
||||||
|
<property name="text">
|
||||||
|
<string>pdf</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Orientation::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="standardButtons">
|
||||||
|
<set>QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections>
|
||||||
|
<connection>
|
||||||
|
<sender>buttonBox</sender>
|
||||||
|
<signal>accepted()</signal>
|
||||||
|
<receiver>ApacheFopConfigDialog</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>ApacheFopConfigDialog</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>
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'ApacheFopConfigDialog.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.9.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
||||||
|
QMetaObject, QObject, QPoint, QRect,
|
||||||
|
QSize, QTime, QUrl, Qt)
|
||||||
|
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
||||||
|
QFont, QFontDatabase, QGradient, QIcon,
|
||||||
|
QImage, QKeySequence, QLinearGradient, QPainter,
|
||||||
|
QPalette, QPixmap, QRadialGradient, QTransform)
|
||||||
|
from PySide6.QtWidgets import (QAbstractButton, QApplication, QDialog, QDialogButtonBox,
|
||||||
|
QFormLayout, QHBoxLayout, QLabel, QLayout,
|
||||||
|
QLineEdit, QPushButton, QSizePolicy, QVBoxLayout,
|
||||||
|
QWidget)
|
||||||
|
|
||||||
|
class Ui_ApacheFopConfigDialog(object):
|
||||||
|
def setupUi(self, ApacheFopConfigDialog):
|
||||||
|
if not ApacheFopConfigDialog.objectName():
|
||||||
|
ApacheFopConfigDialog.setObjectName(u"ApacheFopConfigDialog")
|
||||||
|
ApacheFopConfigDialog.resize(500, 130)
|
||||||
|
ApacheFopConfigDialog.setModal(True)
|
||||||
|
self.verticalLayout = QVBoxLayout(ApacheFopConfigDialog)
|
||||||
|
self.verticalLayout.setObjectName(u"verticalLayout")
|
||||||
|
self.formLayout = QFormLayout()
|
||||||
|
self.formLayout.setObjectName(u"formLayout")
|
||||||
|
self.formLayout.setSizeConstraint(QLayout.SizeConstraint.SetMaximumSize)
|
||||||
|
self.versionLabel = QLabel(ApacheFopConfigDialog)
|
||||||
|
self.versionLabel.setObjectName(u"versionLabel")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(0, QFormLayout.ItemRole.LabelRole, self.versionLabel)
|
||||||
|
|
||||||
|
self.versionEdit = QLineEdit(ApacheFopConfigDialog)
|
||||||
|
self.versionEdit.setObjectName(u"versionEdit")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(0, QFormLayout.ItemRole.FieldRole, self.versionEdit)
|
||||||
|
|
||||||
|
self.pathLabel = QLabel(ApacheFopConfigDialog)
|
||||||
|
self.pathLabel.setObjectName(u"pathLabel")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(1, QFormLayout.ItemRole.LabelRole, self.pathLabel)
|
||||||
|
|
||||||
|
self.pathLayout = QHBoxLayout()
|
||||||
|
self.pathLayout.setObjectName(u"pathLayout")
|
||||||
|
self.pathEdit = QLineEdit(ApacheFopConfigDialog)
|
||||||
|
self.pathEdit.setObjectName(u"pathEdit")
|
||||||
|
|
||||||
|
self.pathLayout.addWidget(self.pathEdit)
|
||||||
|
|
||||||
|
self.browseButton = QPushButton(ApacheFopConfigDialog)
|
||||||
|
self.browseButton.setObjectName(u"browseButton")
|
||||||
|
|
||||||
|
self.pathLayout.addWidget(self.browseButton)
|
||||||
|
|
||||||
|
|
||||||
|
self.formLayout.setLayout(1, QFormLayout.ItemRole.FieldRole, self.pathLayout)
|
||||||
|
|
||||||
|
self.extensionLabel = QLabel(ApacheFopConfigDialog)
|
||||||
|
self.extensionLabel.setObjectName(u"extensionLabel")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(2, QFormLayout.ItemRole.LabelRole, self.extensionLabel)
|
||||||
|
|
||||||
|
self.extensionEdit = QLineEdit(ApacheFopConfigDialog)
|
||||||
|
self.extensionEdit.setObjectName(u"extensionEdit")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(2, QFormLayout.ItemRole.FieldRole, self.extensionEdit)
|
||||||
|
|
||||||
|
|
||||||
|
self.verticalLayout.addLayout(self.formLayout)
|
||||||
|
|
||||||
|
self.buttonBox = QDialogButtonBox(ApacheFopConfigDialog)
|
||||||
|
self.buttonBox.setObjectName(u"buttonBox")
|
||||||
|
self.buttonBox.setOrientation(Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QDialogButtonBox.StandardButton.Cancel|QDialogButtonBox.StandardButton.Ok)
|
||||||
|
|
||||||
|
self.verticalLayout.addWidget(self.buttonBox)
|
||||||
|
|
||||||
|
|
||||||
|
self.retranslateUi(ApacheFopConfigDialog)
|
||||||
|
self.buttonBox.accepted.connect(ApacheFopConfigDialog.accept)
|
||||||
|
self.buttonBox.rejected.connect(ApacheFopConfigDialog.reject)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(ApacheFopConfigDialog)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, ApacheFopConfigDialog):
|
||||||
|
ApacheFopConfigDialog.setWindowTitle(QCoreApplication.translate("ApacheFopConfigDialog", u"Apache FOP Konfiguration", None))
|
||||||
|
self.versionLabel.setText(QCoreApplication.translate("ApacheFopConfigDialog", u"Version:", None))
|
||||||
|
self.pathLabel.setText(QCoreApplication.translate("ApacheFopConfigDialog", u" FOP-Verzeichnis:", None))
|
||||||
|
self.browseButton.setText(QCoreApplication.translate("ApacheFopConfigDialog", u"Durchsuchen...", None))
|
||||||
|
self.extensionLabel.setText(QCoreApplication.translate("ApacheFopConfigDialog", u"Output-Dateierweiterung:", None))
|
||||||
|
self.extensionEdit.setText(QCoreApplication.translate("ApacheFopConfigDialog", u"pdf", None))
|
||||||
|
# retranslateUi
|
||||||
|
|
||||||
+55
-185
@@ -1,9 +1,14 @@
|
|||||||
from PySide6.QtWidgets import QDialog, QTableWidgetItem, QMessageBox, QLineEdit, QPushButton, QFileDialog, QTextEdit, QVBoxLayout, QHBoxLayout, QFormLayout, QDialogButtonBox
|
from PySide6.QtWidgets import QDialog, QTableWidgetItem, QMessageBox, QFileDialog
|
||||||
from PySide6.QtCore import Qt
|
from PySide6.QtCore import Qt
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from ui.AppSettings_ui import Ui_Dialog
|
from ui.AppSettings_ui import Ui_Dialog
|
||||||
|
from ui.JavaVmConfigDialog_ui import Ui_JavaVmConfigDialog
|
||||||
|
from ui.DiffPdfConfigDialog_ui import Ui_DiffPdfConfigDialog
|
||||||
|
from ui.SaxonJarConfigDialog_ui import Ui_SaxonJarConfigDialog
|
||||||
|
from ui.ApacheFopConfigDialog_ui import Ui_ApacheFopConfigDialog
|
||||||
|
from ui.XslDirConfigDialog_ui import Ui_XslDirConfigDialog
|
||||||
from conf import AppSettings, JavaVm, DiffPdf, SaxonJar, ApacheFop, XslDir
|
from conf import AppSettings, JavaVm, DiffPdf, SaxonJar, ApacheFop, XslDir
|
||||||
|
|
||||||
|
|
||||||
@@ -13,36 +18,13 @@ class JavaVmConfigDialog(QDialog):
|
|||||||
|
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self.setWindowTitle("Java VM Konfiguration")
|
|
||||||
self.setModal(True)
|
|
||||||
self.resize(500, 200)
|
|
||||||
|
|
||||||
# Layout erstellen
|
# UI einrichten
|
||||||
layout = QVBoxLayout()
|
self.ui = Ui_JavaVmConfigDialog()
|
||||||
form_layout = QFormLayout()
|
self.ui.setupUi(self)
|
||||||
|
|
||||||
# Version Eingabefeld
|
# Signale verbinden
|
||||||
self.version_edit = QLineEdit()
|
self.ui.browseButton.clicked.connect(self.browse_binary_file)
|
||||||
form_layout.addRow("Version:", self.version_edit)
|
|
||||||
|
|
||||||
# Pfad zur Binary-Datei
|
|
||||||
path_layout = QHBoxLayout()
|
|
||||||
self.path_edit = QLineEdit()
|
|
||||||
self.browse_button = QPushButton("Durchsuchen...")
|
|
||||||
self.browse_button.clicked.connect(self.browse_binary_file)
|
|
||||||
path_layout.addWidget(self.path_edit)
|
|
||||||
path_layout.addWidget(self.browse_button)
|
|
||||||
form_layout.addRow("Pfad zur Binary-Datei:", path_layout)
|
|
||||||
|
|
||||||
layout.addLayout(form_layout)
|
|
||||||
|
|
||||||
# Dialog-Buttons
|
|
||||||
button_box = QDialogButtonBox(QDialogButtonBox.StandardButton.Ok | QDialogButtonBox.StandardButton.Cancel)
|
|
||||||
button_box.accepted.connect(self.accept)
|
|
||||||
button_box.rejected.connect(self.reject)
|
|
||||||
layout.addWidget(button_box)
|
|
||||||
|
|
||||||
self.setLayout(layout)
|
|
||||||
|
|
||||||
def browse_binary_file(self):
|
def browse_binary_file(self):
|
||||||
"""Öffnet einen Dateidialog für die Binary-Datei."""
|
"""Öffnet einen Dateidialog für die Binary-Datei."""
|
||||||
@@ -51,16 +33,16 @@ class JavaVmConfigDialog(QDialog):
|
|||||||
"Executable Files (*.exe);;All Files (*)"
|
"Executable Files (*.exe);;All Files (*)"
|
||||||
)
|
)
|
||||||
if file_path:
|
if file_path:
|
||||||
self.path_edit.setText(file_path)
|
self.ui.pathEdit.setText(file_path)
|
||||||
|
|
||||||
def get_data(self):
|
def get_data(self):
|
||||||
"""Gibt die eingegebenen Daten zurück."""
|
"""Gibt die eingegebenen Daten zurück."""
|
||||||
if not self.version_edit.text().strip() or not self.path_edit.text().strip():
|
if not self.ui.versionEdit.text().strip() or not self.ui.pathEdit.text().strip():
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'version': self.version_edit.text().strip(),
|
'version': self.ui.versionEdit.text().strip(),
|
||||||
'path_to_binary_file': Path(self.path_edit.text().strip())
|
'path_to_binary_file': Path(self.ui.pathEdit.text().strip())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -69,46 +51,13 @@ class DiffPdfConfigDialog(QDialog):
|
|||||||
|
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self.setWindowTitle("DiffPdf Konfiguration")
|
|
||||||
self.setModal(True)
|
|
||||||
self.resize(500, 300)
|
|
||||||
|
|
||||||
# Layout erstellen
|
# UI einrichten
|
||||||
layout = QVBoxLayout()
|
self.ui = Ui_DiffPdfConfigDialog()
|
||||||
form_layout = QFormLayout()
|
self.ui.setupUi(self)
|
||||||
|
|
||||||
# Version Eingabefeld
|
# Signale verbinden
|
||||||
self.version_edit = QLineEdit()
|
self.ui.browseButton.clicked.connect(self.browse_binary_file)
|
||||||
form_layout.addRow("Version:", self.version_edit)
|
|
||||||
|
|
||||||
# Pfad zur Binary-Datei
|
|
||||||
path_layout = QHBoxLayout()
|
|
||||||
self.path_edit = QLineEdit()
|
|
||||||
self.browse_button = QPushButton("Durchsuchen...")
|
|
||||||
self.browse_button.clicked.connect(self.browse_binary_file)
|
|
||||||
path_layout.addWidget(self.path_edit)
|
|
||||||
path_layout.addWidget(self.browse_button)
|
|
||||||
form_layout.addRow("Pfad zur Binary-Datei:", path_layout)
|
|
||||||
|
|
||||||
# Standard-Parameter (als mehrzeiliger Text)
|
|
||||||
self.params_edit = QTextEdit()
|
|
||||||
self.params_edit.setMaximumHeight(80)
|
|
||||||
form_layout.addRow("Standard-Parameter\n(ein Parameter pro Zeile):", self.params_edit)
|
|
||||||
|
|
||||||
# Output-Dateierweiterung
|
|
||||||
self.extension_edit = QLineEdit()
|
|
||||||
self.extension_edit.setText("pdf")
|
|
||||||
form_layout.addRow("Output-Dateierweiterung:", self.extension_edit)
|
|
||||||
|
|
||||||
layout.addLayout(form_layout)
|
|
||||||
|
|
||||||
# Dialog-Buttons
|
|
||||||
button_box = QDialogButtonBox(QDialogButtonBox.StandardButton.Ok | QDialogButtonBox.StandardButton.Cancel)
|
|
||||||
button_box.accepted.connect(self.accept)
|
|
||||||
button_box.rejected.connect(self.reject)
|
|
||||||
layout.addWidget(button_box)
|
|
||||||
|
|
||||||
self.setLayout(layout)
|
|
||||||
|
|
||||||
def browse_binary_file(self):
|
def browse_binary_file(self):
|
||||||
"""Öffnet einen Dateidialog für die Binary-Datei."""
|
"""Öffnet einen Dateidialog für die Binary-Datei."""
|
||||||
@@ -117,22 +66,22 @@ class DiffPdfConfigDialog(QDialog):
|
|||||||
"Executable Files (*.exe);;All Files (*)"
|
"Executable Files (*.exe);;All Files (*)"
|
||||||
)
|
)
|
||||||
if file_path:
|
if file_path:
|
||||||
self.path_edit.setText(file_path)
|
self.ui.pathEdit.setText(file_path)
|
||||||
|
|
||||||
def get_data(self):
|
def get_data(self):
|
||||||
"""Gibt die eingegebenen Daten zurück."""
|
"""Gibt die eingegebenen Daten zurück."""
|
||||||
if not self.version_edit.text().strip() or not self.path_edit.text().strip():
|
if not self.ui.versionEdit.text().strip() or not self.ui.pathEdit.text().strip():
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# Parameter aus dem Text extrahieren
|
# Parameter aus dem Text extrahieren
|
||||||
params_text = self.params_edit.toPlainText().strip()
|
params_text = self.ui.paramsEdit.toPlainText().strip()
|
||||||
params = [line.strip() for line in params_text.split('\n') if line.strip()] if params_text else []
|
params = [line.strip() for line in params_text.split('\n') if line.strip()] if params_text else []
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'version': self.version_edit.text().strip(),
|
'version': self.ui.versionEdit.text().strip(),
|
||||||
'path_to_binary_file': Path(self.path_edit.text().strip()),
|
'path_to_binary_file': Path(self.ui.pathEdit.text().strip()),
|
||||||
'default_params': params,
|
'default_params': params,
|
||||||
'output_file_extension': self.extension_edit.text().strip() or "pdf"
|
'output_file_extension': self.ui.extensionEdit.text().strip() or "pdf"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -141,41 +90,13 @@ class SaxonJarConfigDialog(QDialog):
|
|||||||
|
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self.setWindowTitle("Saxon JAR Konfiguration")
|
|
||||||
self.setModal(True)
|
|
||||||
self.resize(500, 200)
|
|
||||||
|
|
||||||
# Layout erstellen
|
# UI einrichten
|
||||||
layout = QVBoxLayout()
|
self.ui = Ui_SaxonJarConfigDialog()
|
||||||
form_layout = QFormLayout()
|
self.ui.setupUi(self)
|
||||||
|
|
||||||
# Version Eingabefeld
|
# Signale verbinden
|
||||||
self.version_edit = QLineEdit()
|
self.ui.browseButton.clicked.connect(self.browse_jar_file)
|
||||||
form_layout.addRow("Version:", self.version_edit)
|
|
||||||
|
|
||||||
# Pfad zur JAR-Datei
|
|
||||||
path_layout = QHBoxLayout()
|
|
||||||
self.path_edit = QLineEdit()
|
|
||||||
self.browse_button = QPushButton("Durchsuchen...")
|
|
||||||
self.browse_button.clicked.connect(self.browse_jar_file)
|
|
||||||
path_layout.addWidget(self.path_edit)
|
|
||||||
path_layout.addWidget(self.browse_button)
|
|
||||||
form_layout.addRow("Pfad zur JAR-Datei:", path_layout)
|
|
||||||
|
|
||||||
# Output-Dateierweiterung
|
|
||||||
self.extension_edit = QLineEdit()
|
|
||||||
self.extension_edit.setText("fo")
|
|
||||||
form_layout.addRow("Output-Dateierweiterung:", self.extension_edit)
|
|
||||||
|
|
||||||
layout.addLayout(form_layout)
|
|
||||||
|
|
||||||
# Dialog-Buttons
|
|
||||||
button_box = QDialogButtonBox(QDialogButtonBox.StandardButton.Ok | QDialogButtonBox.StandardButton.Cancel)
|
|
||||||
button_box.accepted.connect(self.accept)
|
|
||||||
button_box.rejected.connect(self.reject)
|
|
||||||
layout.addWidget(button_box)
|
|
||||||
|
|
||||||
self.setLayout(layout)
|
|
||||||
|
|
||||||
def browse_jar_file(self):
|
def browse_jar_file(self):
|
||||||
"""Öffnet einen Dateidialog für die JAR-Datei."""
|
"""Öffnet einen Dateidialog für die JAR-Datei."""
|
||||||
@@ -184,17 +105,17 @@ class SaxonJarConfigDialog(QDialog):
|
|||||||
"JAR Files (*.jar);;All Files (*)"
|
"JAR Files (*.jar);;All Files (*)"
|
||||||
)
|
)
|
||||||
if file_path:
|
if file_path:
|
||||||
self.path_edit.setText(file_path)
|
self.ui.pathEdit.setText(file_path)
|
||||||
|
|
||||||
def get_data(self):
|
def get_data(self):
|
||||||
"""Gibt die eingegebenen Daten zurück."""
|
"""Gibt die eingegebenen Daten zurück."""
|
||||||
if not self.version_edit.text().strip() or not self.path_edit.text().strip():
|
if not self.ui.versionEdit.text().strip() or not self.ui.pathEdit.text().strip():
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'version': self.version_edit.text().strip(),
|
'version': self.ui.versionEdit.text().strip(),
|
||||||
'path_to_jar_file': Path(self.path_edit.text().strip()),
|
'path_to_jar_file': Path(self.ui.pathEdit.text().strip()),
|
||||||
'output_file_extension': self.extension_edit.text().strip() or "fo"
|
'output_file_extension': self.ui.extensionEdit.text().strip() or "fo"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -203,41 +124,13 @@ class ApacheFopConfigDialog(QDialog):
|
|||||||
|
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self.setWindowTitle("Apache FOP Konfiguration")
|
|
||||||
self.setModal(True)
|
|
||||||
self.resize(500, 200)
|
|
||||||
|
|
||||||
# Layout erstellen
|
# UI einrichten
|
||||||
layout = QVBoxLayout()
|
self.ui = Ui_ApacheFopConfigDialog()
|
||||||
form_layout = QFormLayout()
|
self.ui.setupUi(self)
|
||||||
|
|
||||||
# Version Eingabefeld
|
# Signale verbinden
|
||||||
self.version_edit = QLineEdit()
|
self.ui.browseButton.clicked.connect(self.browse_directory)
|
||||||
form_layout.addRow("Version:", self.version_edit)
|
|
||||||
|
|
||||||
# Pfad zum Verzeichnis
|
|
||||||
path_layout = QHBoxLayout()
|
|
||||||
self.path_edit = QLineEdit()
|
|
||||||
self.browse_button = QPushButton("Durchsuchen...")
|
|
||||||
self.browse_button.clicked.connect(self.browse_directory)
|
|
||||||
path_layout.addWidget(self.path_edit)
|
|
||||||
path_layout.addWidget(self.browse_button)
|
|
||||||
form_layout.addRow("Pfad zum FOP-Verzeichnis:", path_layout)
|
|
||||||
|
|
||||||
# Output-Dateierweiterung
|
|
||||||
self.extension_edit = QLineEdit()
|
|
||||||
self.extension_edit.setText("pdf")
|
|
||||||
form_layout.addRow("Output-Dateierweiterung:", self.extension_edit)
|
|
||||||
|
|
||||||
layout.addLayout(form_layout)
|
|
||||||
|
|
||||||
# Dialog-Buttons
|
|
||||||
button_box = QDialogButtonBox(QDialogButtonBox.StandardButton.Ok | QDialogButtonBox.StandardButton.Cancel)
|
|
||||||
button_box.accepted.connect(self.accept)
|
|
||||||
button_box.rejected.connect(self.reject)
|
|
||||||
layout.addWidget(button_box)
|
|
||||||
|
|
||||||
self.setLayout(layout)
|
|
||||||
|
|
||||||
def browse_directory(self):
|
def browse_directory(self):
|
||||||
"""Öffnet einen Verzeichnisdialog."""
|
"""Öffnet einen Verzeichnisdialog."""
|
||||||
@@ -245,17 +138,17 @@ class ApacheFopConfigDialog(QDialog):
|
|||||||
self, "Apache FOP Verzeichnis auswählen"
|
self, "Apache FOP Verzeichnis auswählen"
|
||||||
)
|
)
|
||||||
if dir_path:
|
if dir_path:
|
||||||
self.path_edit.setText(dir_path)
|
self.ui.pathEdit.setText(dir_path)
|
||||||
|
|
||||||
def get_data(self):
|
def get_data(self):
|
||||||
"""Gibt die eingegebenen Daten zurück."""
|
"""Gibt die eingegebenen Daten zurück."""
|
||||||
if not self.version_edit.text().strip() or not self.path_edit.text().strip():
|
if not self.ui.versionEdit.text().strip() or not self.ui.pathEdit.text().strip():
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'version': self.version_edit.text().strip(),
|
'version': self.ui.versionEdit.text().strip(),
|
||||||
'path_to_dir': Path(self.path_edit.text().strip()),
|
'path_to_dir': Path(self.ui.pathEdit.text().strip()),
|
||||||
'output_file_extension': self.extension_edit.text().strip() or "pdf"
|
'output_file_extension': self.ui.extensionEdit.text().strip() or "pdf"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -264,36 +157,13 @@ class XslDirConfigDialog(QDialog):
|
|||||||
|
|
||||||
def __init__(self, parent=None):
|
def __init__(self, parent=None):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self.setWindowTitle("XSL-Verzeichnis Konfiguration")
|
|
||||||
self.setModal(True)
|
|
||||||
self.resize(500, 150)
|
|
||||||
|
|
||||||
# Layout erstellen
|
# UI einrichten
|
||||||
layout = QVBoxLayout()
|
self.ui = Ui_XslDirConfigDialog()
|
||||||
form_layout = QFormLayout()
|
self.ui.setupUi(self)
|
||||||
|
|
||||||
# Name Eingabefeld
|
# Signale verbinden
|
||||||
self.name_edit = QLineEdit()
|
self.ui.browseButton.clicked.connect(self.browse_directory)
|
||||||
form_layout.addRow("Name:", self.name_edit)
|
|
||||||
|
|
||||||
# Pfad zum Root-Verzeichnis
|
|
||||||
path_layout = QHBoxLayout()
|
|
||||||
self.path_edit = QLineEdit()
|
|
||||||
self.browse_button = QPushButton("Durchsuchen...")
|
|
||||||
self.browse_button.clicked.connect(self.browse_directory)
|
|
||||||
path_layout.addWidget(self.path_edit)
|
|
||||||
path_layout.addWidget(self.browse_button)
|
|
||||||
form_layout.addRow("Pfad zum Root-Verzeichnis:", path_layout)
|
|
||||||
|
|
||||||
layout.addLayout(form_layout)
|
|
||||||
|
|
||||||
# Dialog-Buttons
|
|
||||||
button_box = QDialogButtonBox(QDialogButtonBox.StandardButton.Ok | QDialogButtonBox.StandardButton.Cancel)
|
|
||||||
button_box.accepted.connect(self.accept)
|
|
||||||
button_box.rejected.connect(self.reject)
|
|
||||||
layout.addWidget(button_box)
|
|
||||||
|
|
||||||
self.setLayout(layout)
|
|
||||||
|
|
||||||
def browse_directory(self):
|
def browse_directory(self):
|
||||||
"""Öffnet einen Verzeichnisdialog."""
|
"""Öffnet einen Verzeichnisdialog."""
|
||||||
@@ -301,16 +171,16 @@ class XslDirConfigDialog(QDialog):
|
|||||||
self, "XSL Root-Verzeichnis auswählen"
|
self, "XSL Root-Verzeichnis auswählen"
|
||||||
)
|
)
|
||||||
if dir_path:
|
if dir_path:
|
||||||
self.path_edit.setText(dir_path)
|
self.ui.pathEdit.setText(dir_path)
|
||||||
|
|
||||||
def get_data(self):
|
def get_data(self):
|
||||||
"""Gibt die eingegebenen Daten zurück."""
|
"""Gibt die eingegebenen Daten zurück."""
|
||||||
if not self.name_edit.text().strip() or not self.path_edit.text().strip():
|
if not self.ui.nameEdit.text().strip() or not self.ui.pathEdit.text().strip():
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'name': self.name_edit.text().strip(),
|
'name': self.ui.nameEdit.text().strip(),
|
||||||
'path_to_root_dir': Path(self.path_edit.text().strip())
|
'path_to_root_dir': Path(self.ui.pathEdit.text().strip())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,140 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>DiffPdfConfigDialog</class>
|
||||||
|
<widget class="QDialog" name="DiffPdfConfigDialog">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>500</width>
|
||||||
|
<height>211</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>DiffPdf Konfiguration</string>
|
||||||
|
</property>
|
||||||
|
<property name="modal">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<layout class="QFormLayout" name="formLayout">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="versionLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Version:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QLineEdit" name="versionEdit"/>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="pathLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Pfad zur Binary-Datei:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<layout class="QHBoxLayout" name="pathLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="pathEdit"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="browseButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Durchsuchen...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="paramsLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Standard-Parameter
|
||||||
|
(ein Parameter pro Zeile):</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QTextEdit" name="paramsEdit">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Expanding" vsizetype="Maximum">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="maximumSize">
|
||||||
|
<size>
|
||||||
|
<width>16777215</width>
|
||||||
|
<height>80</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0">
|
||||||
|
<widget class="QLabel" name="extensionLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Output-Dateierweiterung:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QLineEdit" name="extensionEdit">
|
||||||
|
<property name="text">
|
||||||
|
<string>pdf</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Orientation::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="standardButtons">
|
||||||
|
<set>QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections>
|
||||||
|
<connection>
|
||||||
|
<sender>buttonBox</sender>
|
||||||
|
<signal>accepted()</signal>
|
||||||
|
<receiver>DiffPdfConfigDialog</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>DiffPdfConfigDialog</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>
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'DiffPdfConfigDialog.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.9.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
||||||
|
QMetaObject, QObject, QPoint, QRect,
|
||||||
|
QSize, QTime, QUrl, Qt)
|
||||||
|
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
||||||
|
QFont, QFontDatabase, QGradient, QIcon,
|
||||||
|
QImage, QKeySequence, QLinearGradient, QPainter,
|
||||||
|
QPalette, QPixmap, QRadialGradient, QTransform)
|
||||||
|
from PySide6.QtWidgets import (QAbstractButton, QApplication, QDialog, QDialogButtonBox,
|
||||||
|
QFormLayout, QHBoxLayout, QLabel, QLineEdit,
|
||||||
|
QPushButton, QSizePolicy, QTextEdit, QVBoxLayout,
|
||||||
|
QWidget)
|
||||||
|
|
||||||
|
class Ui_DiffPdfConfigDialog(object):
|
||||||
|
def setupUi(self, DiffPdfConfigDialog):
|
||||||
|
if not DiffPdfConfigDialog.objectName():
|
||||||
|
DiffPdfConfigDialog.setObjectName(u"DiffPdfConfigDialog")
|
||||||
|
DiffPdfConfigDialog.resize(500, 211)
|
||||||
|
DiffPdfConfigDialog.setModal(True)
|
||||||
|
self.verticalLayout = QVBoxLayout(DiffPdfConfigDialog)
|
||||||
|
self.verticalLayout.setObjectName(u"verticalLayout")
|
||||||
|
self.formLayout = QFormLayout()
|
||||||
|
self.formLayout.setObjectName(u"formLayout")
|
||||||
|
self.versionLabel = QLabel(DiffPdfConfigDialog)
|
||||||
|
self.versionLabel.setObjectName(u"versionLabel")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(0, QFormLayout.ItemRole.LabelRole, self.versionLabel)
|
||||||
|
|
||||||
|
self.versionEdit = QLineEdit(DiffPdfConfigDialog)
|
||||||
|
self.versionEdit.setObjectName(u"versionEdit")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(0, QFormLayout.ItemRole.FieldRole, self.versionEdit)
|
||||||
|
|
||||||
|
self.pathLabel = QLabel(DiffPdfConfigDialog)
|
||||||
|
self.pathLabel.setObjectName(u"pathLabel")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(1, QFormLayout.ItemRole.LabelRole, self.pathLabel)
|
||||||
|
|
||||||
|
self.pathLayout = QHBoxLayout()
|
||||||
|
self.pathLayout.setObjectName(u"pathLayout")
|
||||||
|
self.pathEdit = QLineEdit(DiffPdfConfigDialog)
|
||||||
|
self.pathEdit.setObjectName(u"pathEdit")
|
||||||
|
|
||||||
|
self.pathLayout.addWidget(self.pathEdit)
|
||||||
|
|
||||||
|
self.browseButton = QPushButton(DiffPdfConfigDialog)
|
||||||
|
self.browseButton.setObjectName(u"browseButton")
|
||||||
|
|
||||||
|
self.pathLayout.addWidget(self.browseButton)
|
||||||
|
|
||||||
|
|
||||||
|
self.formLayout.setLayout(1, QFormLayout.ItemRole.FieldRole, self.pathLayout)
|
||||||
|
|
||||||
|
self.paramsLabel = QLabel(DiffPdfConfigDialog)
|
||||||
|
self.paramsLabel.setObjectName(u"paramsLabel")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(2, QFormLayout.ItemRole.LabelRole, self.paramsLabel)
|
||||||
|
|
||||||
|
self.paramsEdit = QTextEdit(DiffPdfConfigDialog)
|
||||||
|
self.paramsEdit.setObjectName(u"paramsEdit")
|
||||||
|
sizePolicy = QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Maximum)
|
||||||
|
sizePolicy.setHorizontalStretch(0)
|
||||||
|
sizePolicy.setVerticalStretch(0)
|
||||||
|
sizePolicy.setHeightForWidth(self.paramsEdit.sizePolicy().hasHeightForWidth())
|
||||||
|
self.paramsEdit.setSizePolicy(sizePolicy)
|
||||||
|
self.paramsEdit.setMaximumSize(QSize(16777215, 80))
|
||||||
|
|
||||||
|
self.formLayout.setWidget(2, QFormLayout.ItemRole.FieldRole, self.paramsEdit)
|
||||||
|
|
||||||
|
self.extensionLabel = QLabel(DiffPdfConfigDialog)
|
||||||
|
self.extensionLabel.setObjectName(u"extensionLabel")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(3, QFormLayout.ItemRole.LabelRole, self.extensionLabel)
|
||||||
|
|
||||||
|
self.extensionEdit = QLineEdit(DiffPdfConfigDialog)
|
||||||
|
self.extensionEdit.setObjectName(u"extensionEdit")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(3, QFormLayout.ItemRole.FieldRole, self.extensionEdit)
|
||||||
|
|
||||||
|
|
||||||
|
self.verticalLayout.addLayout(self.formLayout)
|
||||||
|
|
||||||
|
self.buttonBox = QDialogButtonBox(DiffPdfConfigDialog)
|
||||||
|
self.buttonBox.setObjectName(u"buttonBox")
|
||||||
|
self.buttonBox.setOrientation(Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QDialogButtonBox.StandardButton.Cancel|QDialogButtonBox.StandardButton.Ok)
|
||||||
|
|
||||||
|
self.verticalLayout.addWidget(self.buttonBox)
|
||||||
|
|
||||||
|
|
||||||
|
self.retranslateUi(DiffPdfConfigDialog)
|
||||||
|
self.buttonBox.accepted.connect(DiffPdfConfigDialog.accept)
|
||||||
|
self.buttonBox.rejected.connect(DiffPdfConfigDialog.reject)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(DiffPdfConfigDialog)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, DiffPdfConfigDialog):
|
||||||
|
DiffPdfConfigDialog.setWindowTitle(QCoreApplication.translate("DiffPdfConfigDialog", u"DiffPdf Konfiguration", None))
|
||||||
|
self.versionLabel.setText(QCoreApplication.translate("DiffPdfConfigDialog", u"Version:", None))
|
||||||
|
self.pathLabel.setText(QCoreApplication.translate("DiffPdfConfigDialog", u"Pfad zur Binary-Datei:", None))
|
||||||
|
self.browseButton.setText(QCoreApplication.translate("DiffPdfConfigDialog", u"Durchsuchen...", None))
|
||||||
|
self.paramsLabel.setText(QCoreApplication.translate("DiffPdfConfigDialog", u"Standard-Parameter\n"
|
||||||
|
"(ein Parameter pro Zeile):", None))
|
||||||
|
self.extensionLabel.setText(QCoreApplication.translate("DiffPdfConfigDialog", u"Output-Dateierweiterung:", None))
|
||||||
|
self.extensionEdit.setText(QCoreApplication.translate("DiffPdfConfigDialog", u"pdf", None))
|
||||||
|
# retranslateUi
|
||||||
|
|
||||||
@@ -0,0 +1,102 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>JavaVmConfigDialog</class>
|
||||||
|
<widget class="QDialog" name="JavaVmConfigDialog">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>500</width>
|
||||||
|
<height>103</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Java VM Konfiguration</string>
|
||||||
|
</property>
|
||||||
|
<property name="modal">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<layout class="QFormLayout" name="formLayout">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="versionLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Version:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QLineEdit" name="versionEdit"/>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="pathLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Pfad zur Binary-Datei:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<layout class="QHBoxLayout" name="pathLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="pathEdit"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="browseButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Durchsuchen...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Orientation::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="standardButtons">
|
||||||
|
<set>QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections>
|
||||||
|
<connection>
|
||||||
|
<sender>buttonBox</sender>
|
||||||
|
<signal>accepted()</signal>
|
||||||
|
<receiver>JavaVmConfigDialog</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>JavaVmConfigDialog</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>
|
||||||
@@ -0,0 +1,86 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'JavaVmConfigDialog.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.9.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
||||||
|
QMetaObject, QObject, QPoint, QRect,
|
||||||
|
QSize, QTime, QUrl, Qt)
|
||||||
|
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
||||||
|
QFont, QFontDatabase, QGradient, QIcon,
|
||||||
|
QImage, QKeySequence, QLinearGradient, QPainter,
|
||||||
|
QPalette, QPixmap, QRadialGradient, QTransform)
|
||||||
|
from PySide6.QtWidgets import (QAbstractButton, QApplication, QDialog, QDialogButtonBox,
|
||||||
|
QFormLayout, QHBoxLayout, QLabel, QLineEdit,
|
||||||
|
QPushButton, QSizePolicy, QVBoxLayout, QWidget)
|
||||||
|
|
||||||
|
class Ui_JavaVmConfigDialog(object):
|
||||||
|
def setupUi(self, JavaVmConfigDialog):
|
||||||
|
if not JavaVmConfigDialog.objectName():
|
||||||
|
JavaVmConfigDialog.setObjectName(u"JavaVmConfigDialog")
|
||||||
|
JavaVmConfigDialog.resize(500, 103)
|
||||||
|
JavaVmConfigDialog.setModal(True)
|
||||||
|
self.verticalLayout = QVBoxLayout(JavaVmConfigDialog)
|
||||||
|
self.verticalLayout.setObjectName(u"verticalLayout")
|
||||||
|
self.formLayout = QFormLayout()
|
||||||
|
self.formLayout.setObjectName(u"formLayout")
|
||||||
|
self.versionLabel = QLabel(JavaVmConfigDialog)
|
||||||
|
self.versionLabel.setObjectName(u"versionLabel")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(0, QFormLayout.ItemRole.LabelRole, self.versionLabel)
|
||||||
|
|
||||||
|
self.versionEdit = QLineEdit(JavaVmConfigDialog)
|
||||||
|
self.versionEdit.setObjectName(u"versionEdit")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(0, QFormLayout.ItemRole.FieldRole, self.versionEdit)
|
||||||
|
|
||||||
|
self.pathLabel = QLabel(JavaVmConfigDialog)
|
||||||
|
self.pathLabel.setObjectName(u"pathLabel")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(1, QFormLayout.ItemRole.LabelRole, self.pathLabel)
|
||||||
|
|
||||||
|
self.pathLayout = QHBoxLayout()
|
||||||
|
self.pathLayout.setObjectName(u"pathLayout")
|
||||||
|
self.pathEdit = QLineEdit(JavaVmConfigDialog)
|
||||||
|
self.pathEdit.setObjectName(u"pathEdit")
|
||||||
|
|
||||||
|
self.pathLayout.addWidget(self.pathEdit)
|
||||||
|
|
||||||
|
self.browseButton = QPushButton(JavaVmConfigDialog)
|
||||||
|
self.browseButton.setObjectName(u"browseButton")
|
||||||
|
|
||||||
|
self.pathLayout.addWidget(self.browseButton)
|
||||||
|
|
||||||
|
|
||||||
|
self.formLayout.setLayout(1, QFormLayout.ItemRole.FieldRole, self.pathLayout)
|
||||||
|
|
||||||
|
|
||||||
|
self.verticalLayout.addLayout(self.formLayout)
|
||||||
|
|
||||||
|
self.buttonBox = QDialogButtonBox(JavaVmConfigDialog)
|
||||||
|
self.buttonBox.setObjectName(u"buttonBox")
|
||||||
|
self.buttonBox.setOrientation(Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QDialogButtonBox.StandardButton.Cancel|QDialogButtonBox.StandardButton.Ok)
|
||||||
|
|
||||||
|
self.verticalLayout.addWidget(self.buttonBox)
|
||||||
|
|
||||||
|
|
||||||
|
self.retranslateUi(JavaVmConfigDialog)
|
||||||
|
self.buttonBox.accepted.connect(JavaVmConfigDialog.accept)
|
||||||
|
self.buttonBox.rejected.connect(JavaVmConfigDialog.reject)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(JavaVmConfigDialog)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, JavaVmConfigDialog):
|
||||||
|
JavaVmConfigDialog.setWindowTitle(QCoreApplication.translate("JavaVmConfigDialog", u"Java VM Konfiguration", None))
|
||||||
|
self.versionLabel.setText(QCoreApplication.translate("JavaVmConfigDialog", u"Version:", None))
|
||||||
|
self.pathLabel.setText(QCoreApplication.translate("JavaVmConfigDialog", u"Pfad zur Binary-Datei:", None))
|
||||||
|
self.browseButton.setText(QCoreApplication.translate("JavaVmConfigDialog", u"Durchsuchen...", None))
|
||||||
|
# retranslateUi
|
||||||
|
|
||||||
@@ -0,0 +1,116 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>SaxonJarConfigDialog</class>
|
||||||
|
<widget class="QDialog" name="SaxonJarConfigDialog">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>500</width>
|
||||||
|
<height>130</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>Saxon JAR Konfiguration</string>
|
||||||
|
</property>
|
||||||
|
<property name="modal">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<layout class="QFormLayout" name="formLayout">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="versionLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Version:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QLineEdit" name="versionEdit"/>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="pathLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Pfad zur JAR-Datei:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<layout class="QHBoxLayout" name="pathLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="pathEdit"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="browseButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Durchsuchen...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="extensionLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Output-Dateierweiterung:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<widget class="QLineEdit" name="extensionEdit">
|
||||||
|
<property name="text">
|
||||||
|
<string>fo</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Orientation::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="standardButtons">
|
||||||
|
<set>QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections>
|
||||||
|
<connection>
|
||||||
|
<sender>buttonBox</sender>
|
||||||
|
<signal>accepted()</signal>
|
||||||
|
<receiver>SaxonJarConfigDialog</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>SaxonJarConfigDialog</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>
|
||||||
@@ -0,0 +1,98 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'SaxonJarConfigDialog.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.9.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
||||||
|
QMetaObject, QObject, QPoint, QRect,
|
||||||
|
QSize, QTime, QUrl, Qt)
|
||||||
|
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
||||||
|
QFont, QFontDatabase, QGradient, QIcon,
|
||||||
|
QImage, QKeySequence, QLinearGradient, QPainter,
|
||||||
|
QPalette, QPixmap, QRadialGradient, QTransform)
|
||||||
|
from PySide6.QtWidgets import (QAbstractButton, QApplication, QDialog, QDialogButtonBox,
|
||||||
|
QFormLayout, QHBoxLayout, QLabel, QLineEdit,
|
||||||
|
QPushButton, QSizePolicy, QVBoxLayout, QWidget)
|
||||||
|
|
||||||
|
class Ui_SaxonJarConfigDialog(object):
|
||||||
|
def setupUi(self, SaxonJarConfigDialog):
|
||||||
|
if not SaxonJarConfigDialog.objectName():
|
||||||
|
SaxonJarConfigDialog.setObjectName(u"SaxonJarConfigDialog")
|
||||||
|
SaxonJarConfigDialog.resize(500, 130)
|
||||||
|
SaxonJarConfigDialog.setModal(True)
|
||||||
|
self.verticalLayout = QVBoxLayout(SaxonJarConfigDialog)
|
||||||
|
self.verticalLayout.setObjectName(u"verticalLayout")
|
||||||
|
self.formLayout = QFormLayout()
|
||||||
|
self.formLayout.setObjectName(u"formLayout")
|
||||||
|
self.versionLabel = QLabel(SaxonJarConfigDialog)
|
||||||
|
self.versionLabel.setObjectName(u"versionLabel")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(0, QFormLayout.ItemRole.LabelRole, self.versionLabel)
|
||||||
|
|
||||||
|
self.versionEdit = QLineEdit(SaxonJarConfigDialog)
|
||||||
|
self.versionEdit.setObjectName(u"versionEdit")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(0, QFormLayout.ItemRole.FieldRole, self.versionEdit)
|
||||||
|
|
||||||
|
self.pathLabel = QLabel(SaxonJarConfigDialog)
|
||||||
|
self.pathLabel.setObjectName(u"pathLabel")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(1, QFormLayout.ItemRole.LabelRole, self.pathLabel)
|
||||||
|
|
||||||
|
self.pathLayout = QHBoxLayout()
|
||||||
|
self.pathLayout.setObjectName(u"pathLayout")
|
||||||
|
self.pathEdit = QLineEdit(SaxonJarConfigDialog)
|
||||||
|
self.pathEdit.setObjectName(u"pathEdit")
|
||||||
|
|
||||||
|
self.pathLayout.addWidget(self.pathEdit)
|
||||||
|
|
||||||
|
self.browseButton = QPushButton(SaxonJarConfigDialog)
|
||||||
|
self.browseButton.setObjectName(u"browseButton")
|
||||||
|
|
||||||
|
self.pathLayout.addWidget(self.browseButton)
|
||||||
|
|
||||||
|
|
||||||
|
self.formLayout.setLayout(1, QFormLayout.ItemRole.FieldRole, self.pathLayout)
|
||||||
|
|
||||||
|
self.extensionLabel = QLabel(SaxonJarConfigDialog)
|
||||||
|
self.extensionLabel.setObjectName(u"extensionLabel")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(2, QFormLayout.ItemRole.LabelRole, self.extensionLabel)
|
||||||
|
|
||||||
|
self.extensionEdit = QLineEdit(SaxonJarConfigDialog)
|
||||||
|
self.extensionEdit.setObjectName(u"extensionEdit")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(2, QFormLayout.ItemRole.FieldRole, self.extensionEdit)
|
||||||
|
|
||||||
|
|
||||||
|
self.verticalLayout.addLayout(self.formLayout)
|
||||||
|
|
||||||
|
self.buttonBox = QDialogButtonBox(SaxonJarConfigDialog)
|
||||||
|
self.buttonBox.setObjectName(u"buttonBox")
|
||||||
|
self.buttonBox.setOrientation(Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QDialogButtonBox.StandardButton.Cancel|QDialogButtonBox.StandardButton.Ok)
|
||||||
|
|
||||||
|
self.verticalLayout.addWidget(self.buttonBox)
|
||||||
|
|
||||||
|
|
||||||
|
self.retranslateUi(SaxonJarConfigDialog)
|
||||||
|
self.buttonBox.accepted.connect(SaxonJarConfigDialog.accept)
|
||||||
|
self.buttonBox.rejected.connect(SaxonJarConfigDialog.reject)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(SaxonJarConfigDialog)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, SaxonJarConfigDialog):
|
||||||
|
SaxonJarConfigDialog.setWindowTitle(QCoreApplication.translate("SaxonJarConfigDialog", u"Saxon JAR Konfiguration", None))
|
||||||
|
self.versionLabel.setText(QCoreApplication.translate("SaxonJarConfigDialog", u"Version:", None))
|
||||||
|
self.pathLabel.setText(QCoreApplication.translate("SaxonJarConfigDialog", u"Pfad zur JAR-Datei:", None))
|
||||||
|
self.browseButton.setText(QCoreApplication.translate("SaxonJarConfigDialog", u"Durchsuchen...", None))
|
||||||
|
self.extensionLabel.setText(QCoreApplication.translate("SaxonJarConfigDialog", u"Output-Dateierweiterung:", None))
|
||||||
|
self.extensionEdit.setText(QCoreApplication.translate("SaxonJarConfigDialog", u"fo", None))
|
||||||
|
# retranslateUi
|
||||||
|
|
||||||
@@ -0,0 +1,102 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
|
<class>XslDirConfigDialog</class>
|
||||||
|
<widget class="QDialog" name="XslDirConfigDialog">
|
||||||
|
<property name="geometry">
|
||||||
|
<rect>
|
||||||
|
<x>0</x>
|
||||||
|
<y>0</y>
|
||||||
|
<width>500</width>
|
||||||
|
<height>103</height>
|
||||||
|
</rect>
|
||||||
|
</property>
|
||||||
|
<property name="windowTitle">
|
||||||
|
<string>XSL-Verzeichnis Konfiguration</string>
|
||||||
|
</property>
|
||||||
|
<property name="modal">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
<item>
|
||||||
|
<layout class="QFormLayout" name="formLayout">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="nameLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Name:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="1">
|
||||||
|
<widget class="QLineEdit" name="nameEdit"/>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QLabel" name="pathLabel">
|
||||||
|
<property name="text">
|
||||||
|
<string>Pfad zum Root-Verzeichnis:</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<layout class="QHBoxLayout" name="pathLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QLineEdit" name="pathEdit"/>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="browseButton">
|
||||||
|
<property name="text">
|
||||||
|
<string>Durchsuchen...</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Orientation::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="standardButtons">
|
||||||
|
<set>QDialogButtonBox::StandardButton::Cancel|QDialogButtonBox::StandardButton::Ok</set>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
<resources/>
|
||||||
|
<connections>
|
||||||
|
<connection>
|
||||||
|
<sender>buttonBox</sender>
|
||||||
|
<signal>accepted()</signal>
|
||||||
|
<receiver>XslDirConfigDialog</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>XslDirConfigDialog</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>
|
||||||
@@ -0,0 +1,86 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
################################################################################
|
||||||
|
## Form generated from reading UI file 'XslDirConfigDialog.ui'
|
||||||
|
##
|
||||||
|
## Created by: Qt User Interface Compiler version 6.9.0
|
||||||
|
##
|
||||||
|
## WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||||
|
################################################################################
|
||||||
|
|
||||||
|
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
|
||||||
|
QMetaObject, QObject, QPoint, QRect,
|
||||||
|
QSize, QTime, QUrl, Qt)
|
||||||
|
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
|
||||||
|
QFont, QFontDatabase, QGradient, QIcon,
|
||||||
|
QImage, QKeySequence, QLinearGradient, QPainter,
|
||||||
|
QPalette, QPixmap, QRadialGradient, QTransform)
|
||||||
|
from PySide6.QtWidgets import (QAbstractButton, QApplication, QDialog, QDialogButtonBox,
|
||||||
|
QFormLayout, QHBoxLayout, QLabel, QLineEdit,
|
||||||
|
QPushButton, QSizePolicy, QVBoxLayout, QWidget)
|
||||||
|
|
||||||
|
class Ui_XslDirConfigDialog(object):
|
||||||
|
def setupUi(self, XslDirConfigDialog):
|
||||||
|
if not XslDirConfigDialog.objectName():
|
||||||
|
XslDirConfigDialog.setObjectName(u"XslDirConfigDialog")
|
||||||
|
XslDirConfigDialog.resize(500, 103)
|
||||||
|
XslDirConfigDialog.setModal(True)
|
||||||
|
self.verticalLayout = QVBoxLayout(XslDirConfigDialog)
|
||||||
|
self.verticalLayout.setObjectName(u"verticalLayout")
|
||||||
|
self.formLayout = QFormLayout()
|
||||||
|
self.formLayout.setObjectName(u"formLayout")
|
||||||
|
self.nameLabel = QLabel(XslDirConfigDialog)
|
||||||
|
self.nameLabel.setObjectName(u"nameLabel")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(0, QFormLayout.ItemRole.LabelRole, self.nameLabel)
|
||||||
|
|
||||||
|
self.nameEdit = QLineEdit(XslDirConfigDialog)
|
||||||
|
self.nameEdit.setObjectName(u"nameEdit")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(0, QFormLayout.ItemRole.FieldRole, self.nameEdit)
|
||||||
|
|
||||||
|
self.pathLabel = QLabel(XslDirConfigDialog)
|
||||||
|
self.pathLabel.setObjectName(u"pathLabel")
|
||||||
|
|
||||||
|
self.formLayout.setWidget(1, QFormLayout.ItemRole.LabelRole, self.pathLabel)
|
||||||
|
|
||||||
|
self.pathLayout = QHBoxLayout()
|
||||||
|
self.pathLayout.setObjectName(u"pathLayout")
|
||||||
|
self.pathEdit = QLineEdit(XslDirConfigDialog)
|
||||||
|
self.pathEdit.setObjectName(u"pathEdit")
|
||||||
|
|
||||||
|
self.pathLayout.addWidget(self.pathEdit)
|
||||||
|
|
||||||
|
self.browseButton = QPushButton(XslDirConfigDialog)
|
||||||
|
self.browseButton.setObjectName(u"browseButton")
|
||||||
|
|
||||||
|
self.pathLayout.addWidget(self.browseButton)
|
||||||
|
|
||||||
|
|
||||||
|
self.formLayout.setLayout(1, QFormLayout.ItemRole.FieldRole, self.pathLayout)
|
||||||
|
|
||||||
|
|
||||||
|
self.verticalLayout.addLayout(self.formLayout)
|
||||||
|
|
||||||
|
self.buttonBox = QDialogButtonBox(XslDirConfigDialog)
|
||||||
|
self.buttonBox.setObjectName(u"buttonBox")
|
||||||
|
self.buttonBox.setOrientation(Qt.Orientation.Horizontal)
|
||||||
|
self.buttonBox.setStandardButtons(QDialogButtonBox.StandardButton.Cancel|QDialogButtonBox.StandardButton.Ok)
|
||||||
|
|
||||||
|
self.verticalLayout.addWidget(self.buttonBox)
|
||||||
|
|
||||||
|
|
||||||
|
self.retranslateUi(XslDirConfigDialog)
|
||||||
|
self.buttonBox.accepted.connect(XslDirConfigDialog.accept)
|
||||||
|
self.buttonBox.rejected.connect(XslDirConfigDialog.reject)
|
||||||
|
|
||||||
|
QMetaObject.connectSlotsByName(XslDirConfigDialog)
|
||||||
|
# setupUi
|
||||||
|
|
||||||
|
def retranslateUi(self, XslDirConfigDialog):
|
||||||
|
XslDirConfigDialog.setWindowTitle(QCoreApplication.translate("XslDirConfigDialog", u"XSL-Verzeichnis Konfiguration", None))
|
||||||
|
self.nameLabel.setText(QCoreApplication.translate("XslDirConfigDialog", u"Name:", None))
|
||||||
|
self.pathLabel.setText(QCoreApplication.translate("XslDirConfigDialog", u"Pfad zum Root-Verzeichnis:", None))
|
||||||
|
self.browseButton.setText(QCoreApplication.translate("XslDirConfigDialog", u"Durchsuchen...", None))
|
||||||
|
# retranslateUi
|
||||||
|
|
||||||
Reference in New Issue
Block a user