Added replace buttons

This commit is contained in:
Marcel Kapfer 2020-05-01 21:42:58 +02:00
parent b4cdee2c62
commit 57ed8566c4
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09
2 changed files with 57 additions and 2 deletions

View file

@ -214,6 +214,9 @@ class Ui_MainWindow(object):
self.b_step_edit = QtWidgets.QPushButton(self.t_steps) self.b_step_edit = QtWidgets.QPushButton(self.t_steps)
self.b_step_edit.setObjectName("b_step_edit") self.b_step_edit.setObjectName("b_step_edit")
self.horizontalLayout_10.addWidget(self.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 = QtWidgets.QPushButton(self.t_steps)
self.b_step_remove.setObjectName("b_step_remove") self.b_step_remove.setObjectName("b_step_remove")
self.horizontalLayout_10.addWidget(self.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 = QtWidgets.QPushButton(self.t_notes)
self.b_note_edit.setObjectName("b_note_edit") self.b_note_edit.setObjectName("b_note_edit")
self.horizontalLayout_8.addWidget(self.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 = QtWidgets.QPushButton(self.t_notes)
self.b_note_remove.setObjectName("b_note_remove") self.b_note_remove.setObjectName("b_note_remove")
self.horizontalLayout_8.addWidget(self.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 = QtWidgets.QPushButton(self.t_tips)
self.b_tip_edit.setObjectName("b_tip_edit") self.b_tip_edit.setObjectName("b_tip_edit")
self.horizontalLayout_6.addWidget(self.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 = QtWidgets.QPushButton(self.t_tips)
self.e_tip_remove.setObjectName("e_tip_remove") self.e_tip_remove.setObjectName("e_tip_remove")
self.horizontalLayout_6.addWidget(self.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 = QtWidgets.QPushButton(self.t_variations)
self.b_variation_edit.setObjectName("b_variation_edit") self.b_variation_edit.setObjectName("b_variation_edit")
self.horizontalLayout_4.addWidget(self.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 = QtWidgets.QPushButton(self.t_variations)
self.b_variation_remove.setObjectName("b_variation_remove") self.b_variation_remove.setObjectName("b_variation_remove")
self.horizontalLayout_4.addWidget(self.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 = QtWidgets.QPushButton(self.t_rating)
self.b_rating_edit.setObjectName("b_rating_edit") self.b_rating_edit.setObjectName("b_rating_edit")
self.horizontalLayout.addWidget(self.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 = QtWidgets.QPushButton(self.t_rating)
self.b_rating_remove.setObjectName("b_rating_remove") self.b_rating_remove.setObjectName("b_rating_remove")
self.horizontalLayout.addWidget(self.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.menuBar.addAction(self.menuMen.menuAction())
self.retranslateUi(MainWindow) self.retranslateUi(MainWindow)
self.tabWidget.setCurrentIndex(1) self.tabWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow)
MainWindow.setTabOrder(self.e_recipe_name, self.e_servings) MainWindow.setTabOrder(self.e_recipe_name, self.e_servings)
MainWindow.setTabOrder(self.e_servings, self.e_time) 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.tabWidget.setTabText(self.tabWidget.indexOf(self.t_utensils), _translate("MainWindow", "Küchenutensilien"))
self.b_step_add.setText(_translate("MainWindow", "Hinzufügen")) self.b_step_add.setText(_translate("MainWindow", "Hinzufügen"))
self.b_step_edit.setText(_translate("MainWindow", "Bearbeiten")) 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.b_step_remove.setText(_translate("MainWindow", "Entfernen"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_steps), _translate("MainWindow", "Zubereitung")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_steps), _translate("MainWindow", "Zubereitung"))
self.b_note_add.setText(_translate("MainWindow", "Hinzufügen")) self.b_note_add.setText(_translate("MainWindow", "Hinzufügen"))
self.b_note_edit.setText(_translate("MainWindow", "Bearbeiten")) 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.b_note_remove.setText(_translate("MainWindow", "Entfernen"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_notes), _translate("MainWindow", "Notizen")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_notes), _translate("MainWindow", "Notizen"))
self.e_tip_add.setText(_translate("MainWindow", "Hinzufügen")) self.e_tip_add.setText(_translate("MainWindow", "Hinzufügen"))
self.b_tip_edit.setText(_translate("MainWindow", "Bearbeiten")) 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.e_tip_remove.setText(_translate("MainWindow", "Entfernen"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_tips), _translate("MainWindow", "Tipps")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_tips), _translate("MainWindow", "Tipps"))
self.b_variation_add.setText(_translate("MainWindow", "Hinzufügen")) self.b_variation_add.setText(_translate("MainWindow", "Hinzufügen"))
self.b_variation_edit.setText(_translate("MainWindow", "Bearbeiten")) 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.b_variation_remove.setText(_translate("MainWindow", "Entfernen"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_variations), _translate("MainWindow", "Variantionen")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_variations), _translate("MainWindow", "Variantionen"))
self.b_rating_add.setText(_translate("MainWindow", "Hinzufügen")) self.b_rating_add.setText(_translate("MainWindow", "Hinzufügen"))
self.b_rating_edit.setText(_translate("MainWindow", "Bearbeiten")) self.b_rating_edit.setText(_translate("MainWindow", "Bearbeiten"))
self.pushButton.setText(_translate("MainWindow", "Ersetzen"))
self.b_rating_remove.setText(_translate("MainWindow", "Entfernen")) self.b_rating_remove.setText(_translate("MainWindow", "Entfernen"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_rating), _translate("MainWindow", "Bewertung")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_rating), _translate("MainWindow", "Bewertung"))
self.menuMen.setTitle(_translate("MainWindow", "Me&nü")) self.menuMen.setTitle(_translate("MainWindow", "Me&nü"))

View file

@ -68,7 +68,7 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="currentIndex"> <property name="currentIndex">
<number>1</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="t_basics"> <widget class="QWidget" name="t_basics">
<attribute name="title"> <attribute name="title">
@ -448,6 +448,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="b_step_replace">
<property name="text">
<string>Ersetzen</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="b_step_remove"> <widget class="QPushButton" name="b_step_remove">
<property name="text"> <property name="text">
@ -516,6 +523,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="b_note_replace">
<property name="text">
<string>Ersetzen</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="b_note_remove"> <widget class="QPushButton" name="b_note_remove">
<property name="text"> <property name="text">
@ -584,6 +598,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="b_tip_replace">
<property name="text">
<string>Ersetzen</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="e_tip_remove"> <widget class="QPushButton" name="e_tip_remove">
<property name="text"> <property name="text">
@ -652,6 +673,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="b_variation_replace">
<property name="text">
<string>Ersetzen</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="b_variation_remove"> <widget class="QPushButton" name="b_variation_remove">
<property name="text"> <property name="text">
@ -720,6 +748,13 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>Ersetzen</string>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="b_rating_remove"> <widget class="QPushButton" name="b_rating_remove">
<property name="text"> <property name="text">