From 57ed8566c40cb29887e012115c9a2bc73c2dd6a8 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Fri, 1 May 2020 21:42:58 +0200 Subject: [PATCH] Added replace buttons --- ui_mainwindow.py | 22 +++++++++++++++++++++- ui_mainwindow.ui | 37 ++++++++++++++++++++++++++++++++++++- 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/ui_mainwindow.py b/ui_mainwindow.py index 1db73a0..ae63d54 100644 --- a/ui_mainwindow.py +++ b/ui_mainwindow.py @@ -214,6 +214,9 @@ class Ui_MainWindow(object): self.b_step_edit = QtWidgets.QPushButton(self.t_steps) self.b_step_edit.setObjectName("b_step_edit") self.horizontalLayout_10.addWidget(self.b_step_edit) + self.b_step_replace = QtWidgets.QPushButton(self.t_steps) + self.b_step_replace.setObjectName("b_step_replace") + self.horizontalLayout_10.addWidget(self.b_step_replace) self.b_step_remove = QtWidgets.QPushButton(self.t_steps) self.b_step_remove.setObjectName("b_step_remove") self.horizontalLayout_10.addWidget(self.b_step_remove) @@ -244,6 +247,9 @@ class Ui_MainWindow(object): self.b_note_edit = QtWidgets.QPushButton(self.t_notes) self.b_note_edit.setObjectName("b_note_edit") self.horizontalLayout_8.addWidget(self.b_note_edit) + self.b_note_replace = QtWidgets.QPushButton(self.t_notes) + self.b_note_replace.setObjectName("b_note_replace") + self.horizontalLayout_8.addWidget(self.b_note_replace) self.b_note_remove = QtWidgets.QPushButton(self.t_notes) self.b_note_remove.setObjectName("b_note_remove") self.horizontalLayout_8.addWidget(self.b_note_remove) @@ -274,6 +280,9 @@ class Ui_MainWindow(object): self.b_tip_edit = QtWidgets.QPushButton(self.t_tips) self.b_tip_edit.setObjectName("b_tip_edit") self.horizontalLayout_6.addWidget(self.b_tip_edit) + self.b_tip_replace = QtWidgets.QPushButton(self.t_tips) + self.b_tip_replace.setObjectName("b_tip_replace") + self.horizontalLayout_6.addWidget(self.b_tip_replace) self.e_tip_remove = QtWidgets.QPushButton(self.t_tips) self.e_tip_remove.setObjectName("e_tip_remove") self.horizontalLayout_6.addWidget(self.e_tip_remove) @@ -304,6 +313,9 @@ class Ui_MainWindow(object): self.b_variation_edit = QtWidgets.QPushButton(self.t_variations) self.b_variation_edit.setObjectName("b_variation_edit") self.horizontalLayout_4.addWidget(self.b_variation_edit) + self.b_variation_replace = QtWidgets.QPushButton(self.t_variations) + self.b_variation_replace.setObjectName("b_variation_replace") + self.horizontalLayout_4.addWidget(self.b_variation_replace) self.b_variation_remove = QtWidgets.QPushButton(self.t_variations) self.b_variation_remove.setObjectName("b_variation_remove") self.horizontalLayout_4.addWidget(self.b_variation_remove) @@ -334,6 +346,9 @@ class Ui_MainWindow(object): self.b_rating_edit = QtWidgets.QPushButton(self.t_rating) self.b_rating_edit.setObjectName("b_rating_edit") self.horizontalLayout.addWidget(self.b_rating_edit) + self.pushButton = QtWidgets.QPushButton(self.t_rating) + self.pushButton.setObjectName("pushButton") + self.horizontalLayout.addWidget(self.pushButton) self.b_rating_remove = QtWidgets.QPushButton(self.t_rating) self.b_rating_remove.setObjectName("b_rating_remove") self.horizontalLayout.addWidget(self.b_rating_remove) @@ -357,7 +372,7 @@ class Ui_MainWindow(object): self.menuBar.addAction(self.menuMen.menuAction()) self.retranslateUi(MainWindow) - self.tabWidget.setCurrentIndex(1) + self.tabWidget.setCurrentIndex(0) QtCore.QMetaObject.connectSlotsByName(MainWindow) MainWindow.setTabOrder(self.e_recipe_name, self.e_servings) MainWindow.setTabOrder(self.e_servings, self.e_time) @@ -411,22 +426,27 @@ class Ui_MainWindow(object): self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_utensils), _translate("MainWindow", "Küchenutensilien")) self.b_step_add.setText(_translate("MainWindow", "Hinzufügen")) self.b_step_edit.setText(_translate("MainWindow", "Bearbeiten")) + self.b_step_replace.setText(_translate("MainWindow", "Ersetzen")) self.b_step_remove.setText(_translate("MainWindow", "Entfernen")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_steps), _translate("MainWindow", "Zubereitung")) self.b_note_add.setText(_translate("MainWindow", "Hinzufügen")) self.b_note_edit.setText(_translate("MainWindow", "Bearbeiten")) + self.b_note_replace.setText(_translate("MainWindow", "Ersetzen")) self.b_note_remove.setText(_translate("MainWindow", "Entfernen")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_notes), _translate("MainWindow", "Notizen")) self.e_tip_add.setText(_translate("MainWindow", "Hinzufügen")) self.b_tip_edit.setText(_translate("MainWindow", "Bearbeiten")) + self.b_tip_replace.setText(_translate("MainWindow", "Ersetzen")) self.e_tip_remove.setText(_translate("MainWindow", "Entfernen")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_tips), _translate("MainWindow", "Tipps")) self.b_variation_add.setText(_translate("MainWindow", "Hinzufügen")) self.b_variation_edit.setText(_translate("MainWindow", "Bearbeiten")) + self.b_variation_replace.setText(_translate("MainWindow", "Ersetzen")) self.b_variation_remove.setText(_translate("MainWindow", "Entfernen")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_variations), _translate("MainWindow", "Variantionen")) self.b_rating_add.setText(_translate("MainWindow", "Hinzufügen")) self.b_rating_edit.setText(_translate("MainWindow", "Bearbeiten")) + self.pushButton.setText(_translate("MainWindow", "Ersetzen")) self.b_rating_remove.setText(_translate("MainWindow", "Entfernen")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_rating), _translate("MainWindow", "Bewertung")) self.menuMen.setTitle(_translate("MainWindow", "Me&nü")) diff --git a/ui_mainwindow.ui b/ui_mainwindow.ui index 396fb81..e8e7d0b 100644 --- a/ui_mainwindow.ui +++ b/ui_mainwindow.ui @@ -68,7 +68,7 @@ - 1 + 0 @@ -448,6 +448,13 @@ + + + + Ersetzen + + + @@ -516,6 +523,13 @@ + + + + Ersetzen + + + @@ -584,6 +598,13 @@ + + + + Ersetzen + + + @@ -652,6 +673,13 @@ + + + + Ersetzen + + + @@ -720,6 +748,13 @@ + + + + Ersetzen + + +