Neues Button

This commit is contained in:
2025-08-03 12:15:32 +02:00
parent b1042491ff
commit f5eafe436e
4 changed files with 19 additions and 4 deletions
-3
View File
@@ -201,9 +201,6 @@ class PdfProjectSettings(BaseModel):
yaml = YAML(typ='safe') yaml = YAML(typ='safe')
yaml_data = yaml.load(f) yaml_data = yaml.load(f)
return cls.model_validate(yaml_data) return cls.model_validate(yaml_data)
# yaml_content = f.read()
# Parse mit pydantic-yaml
def writeSettings(self, project_dir: Path): def writeSettings(self, project_dir: Path):
with open(project_dir / "project.yaml", "w", encoding="utf8") as f: with open(project_dir / "project.yaml", "w", encoding="utf8") as f:
+1 -1
View File
@@ -36,7 +36,7 @@ for r1 in ebene_1.rows(named=True):
id=(r3["reporttyp"], r3["report"], r3["repfile"]), id=(r3["reporttyp"], r3["report"], r3["repfile"]),
bez=r3["repfile_bez"], bez=r3["repfile_bez"],
xsl_file=Path(r3["xsl_datei"]), xsl_file=Path(r3["xsl_datei"]),
xmls=[XmlFile(xml=Path("test.xml"))], xmls=[XmlFile(xml=Path("test.xml"))], # nur als Beispiel
) )
tn_2.children.append(x) tn_2.children.append(x)
+10
View File
@@ -141,6 +141,16 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item>
<widget class="QPushButton" name="pushButton_3">
<property name="text">
<string>lade aus FN2</string>
</property>
<property name="icon">
<iconset theme="QIcon::ThemeIcon::GoDown"/>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
+8
View File
@@ -110,6 +110,13 @@ class Ui_MainWindow(object):
self.horizontalLayout_2.addItem(self.horizontalSpacer) self.horizontalLayout_2.addItem(self.horizontalSpacer)
self.pushButton_3 = QPushButton(self.frame_2)
self.pushButton_3.setObjectName(u"pushButton_3")
icon6 = QIcon(QIcon.fromTheme(QIcon.ThemeIcon.GoDown))
self.pushButton_3.setIcon(icon6)
self.horizontalLayout_2.addWidget(self.pushButton_3)
self.verticalLayout.addWidget(self.frame_2) self.verticalLayout.addWidget(self.frame_2)
@@ -279,6 +286,7 @@ class Ui_MainWindow(object):
self.actionVorhandene_Projekte.setText(QCoreApplication.translate("MainWindow", u"Vorhandene Projekte", None)) self.actionVorhandene_Projekte.setText(QCoreApplication.translate("MainWindow", u"Vorhandene Projekte", None))
self.pushButton.setText(QCoreApplication.translate("MainWindow", u"nur ge\u00e4nderte generieren", None)) self.pushButton.setText(QCoreApplication.translate("MainWindow", u"nur ge\u00e4nderte generieren", None))
self.pushButton_2.setText(QCoreApplication.translate("MainWindow", u"Alle generieren", None)) self.pushButton_2.setText(QCoreApplication.translate("MainWindow", u"Alle generieren", None))
self.pushButton_3.setText(QCoreApplication.translate("MainWindow", u"lade aus FN2", None))
self.label.setText("") self.label.setText("")
self.label_2.setText("") self.label_2.setText("")
self.label_6.setText(QCoreApplication.translate("MainWindow", u"Vorher (Referenz)", None)) self.label_6.setText(QCoreApplication.translate("MainWindow", u"Vorher (Referenz)", None))