Added transpose buttons to song lyric editor - not functional yet.

This commit is contained in:
Tomas Groth 2016-06-05 22:31:23 +02:00
parent 82d5c6dcb2
commit 75e9291603

View File

@ -30,7 +30,7 @@ from openlp.plugins.songs.lib import VerseType
class Ui_EditVerseDialog(object):
def setupUi(self, edit_verse_dialog):
edit_verse_dialog.setObjectName('edit_verse_dialog')
edit_verse_dialog.setWindowIcon(build_icon(u':/icon/openlp-logo.svg'))
edit_verse_dialog.setWindowIcon(build_icon(':/icon/openlp-logo.svg'))
edit_verse_dialog.resize(400, 400)
edit_verse_dialog.setModal(True)
self.dialog_layout = QtWidgets.QVBoxLayout(edit_verse_dialog)
@ -62,6 +62,20 @@ class Ui_EditVerseDialog(object):
self.verse_type_layout.addWidget(self.insert_button)
self.verse_type_layout.addStretch()
self.dialog_layout.addLayout(self.verse_type_layout)
self.transpose_layout = QtWidgets.QHBoxLayout()
self.transpose_layout.setObjectName('transpose_layout')
self.transpose_label = QtWidgets.QLabel(edit_verse_dialog)
self.transpose_label.setObjectName('transpose_label')
self.transpose_layout.addWidget(self.transpose_label)
self.transpose_up = QtWidgets.QPushButton(edit_verse_dialog)
self.transpose_up.setIcon(build_icon(':/services/service_up.png'))
self.transpose_up.setObjectName('transpose_up')
self.transpose_layout.addWidget(self.transpose_up)
self.transpose_down = QtWidgets.QPushButton(edit_verse_dialog)
self.transpose_down.setIcon(build_icon(':/services/service_down.png'))
self.transpose_down.setObjectName('transpose_down')
self.transpose_layout.addWidget(self.transpose_down)
self.dialog_layout.addLayout(self.transpose_layout)
self.button_box = create_button_box(edit_verse_dialog, 'button_box', ['cancel', 'ok'])
self.dialog_layout.addWidget(self.button_box)
self.retranslateUi(edit_verse_dialog)
@ -81,3 +95,6 @@ class Ui_EditVerseDialog(object):
self.insert_button.setText(translate('SongsPlugin.EditVerseForm', '&Insert'))
self.insert_button.setToolTip(translate('SongsPlugin.EditVerseForm',
'Split a slide into two by inserting a verse splitter.'))
self.transpose_label.setText(translate('SongsPlugin.EditVerseForm', 'Transpose:'))
self.transpose_up.setText(translate('SongsPlugin.EditVerseForm', 'Up'))
self.transpose_down.setText(translate('SongsPlugin.EditVerseForm', 'Down'))