Changed the layout of the Song Edit form, making it slightly easier for the average PC Joe to digest.

This commit is contained in:
Raoul Snyman 2009-08-04 22:23:33 +02:00
parent 708a62ad47
commit 8c010efe5a
4 changed files with 992 additions and 841 deletions

View File

@ -1,151 +1,111 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
"""
OpenLP - Open Source Lyrics Projection
Copyright (c) 2008 Raoul Snyman
Portions copyright (c) 2008-2009 Martin Thompson, Tim Bentley,
This program is free software; you can redistribute it and/or modify it under # Form implementation generated from reading ui file '/home/raoul/Projects/openlp/songmaintenance/resources/forms/editsongdialog.ui'
the terms of the GNU General Public License as published by the Free Software #
Foundation; version 2 of the License. # Created: Mon Jul 27 22:18:20 2009
# by: PyQt4 UI code generator 4.4.4
#
# WARNING! All changes made in this file will be lost!
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA
"""
from openlp.core.lib import translate
from PyQt4 import QtCore, QtGui from PyQt4 import QtCore, QtGui
class Ui_EditSongDialog(object): class Ui_EditSongDialog(object):
def setupUi(self, EditSongDialog): def setupUi(self, EditSongDialog):
EditSongDialog.setObjectName(u'EditSongDialog') EditSongDialog.setObjectName("EditSongDialog")
EditSongDialog.resize(786, 704) EditSongDialog.resize(645, 417)
icon = QtGui.QIcon() icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(u':/icon/openlp-logo-16x16.png'), QtGui.QIcon.Normal, QtGui.QIcon.Off) icon.addPixmap(QtGui.QPixmap(":/icon/openlp.org-icon-32.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
EditSongDialog.setWindowIcon(icon) EditSongDialog.setWindowIcon(icon)
EditSongDialog.setModal(True) EditSongDialog.setModal(True)
self.EditSongLayout = QtGui.QVBoxLayout(EditSongDialog) self.verticalLayout = QtGui.QVBoxLayout(EditSongDialog)
self.EditSongLayout.setSpacing(8) self.verticalLayout.setMargin(8)
self.EditSongLayout.setMargin(8) self.verticalLayout.setObjectName("verticalLayout")
self.EditSongLayout.setObjectName(u'EditSongLayout') self.SongTabWidget = QtGui.QTabWidget(EditSongDialog)
self.TopWidget = QtGui.QWidget(EditSongDialog) self.SongTabWidget.setObjectName("SongTabWidget")
self.TopWidget.setObjectName(u'TopWidget') self.LyricsTab = QtGui.QWidget()
self.TopLayout = QtGui.QHBoxLayout(self.TopWidget) self.LyricsTab.setObjectName("LyricsTab")
self.TopLayout.setSpacing(8) self.LyricsTabLayout = QtGui.QGridLayout(self.LyricsTab)
self.TopLayout.setMargin(0) self.LyricsTabLayout.setMargin(8)
self.TopLayout.setObjectName(u'TopLayout') self.LyricsTabLayout.setSpacing(8)
self.TextWidget = QtGui.QWidget(self.TopWidget) self.LyricsTabLayout.setObjectName("LyricsTabLayout")
self.TextWidget.setObjectName(u'TextWidget') self.TitleLabel = QtGui.QLabel(self.LyricsTab)
self.DetailsLayout = QtGui.QVBoxLayout(self.TextWidget) self.TitleLabel.setObjectName("TitleLabel")
self.DetailsLayout.setSpacing(8) self.LyricsTabLayout.addWidget(self.TitleLabel, 0, 0, 1, 1)
self.DetailsLayout.setMargin(0) self.TitleEditItem = QtGui.QLineEdit(self.LyricsTab)
self.DetailsLayout.setObjectName(u'DetailsLayout')
self.TitleLabel = QtGui.QLabel(self.TextWidget)
self.TitleLabel.setObjectName(u'TitleLabel')
self.DetailsLayout.addWidget(self.TitleLabel)
self.TitleEditItem = QtGui.QLineEdit(self.TextWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0) sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0) sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.TitleEditItem.sizePolicy().hasHeightForWidth()) sizePolicy.setHeightForWidth(self.TitleEditItem.sizePolicy().hasHeightForWidth())
self.TitleEditItem.setSizePolicy(sizePolicy) self.TitleEditItem.setSizePolicy(sizePolicy)
self.TitleEditItem.setObjectName(u'TitleEditItem') self.TitleEditItem.setObjectName("TitleEditItem")
self.DetailsLayout.addWidget(self.TitleEditItem) self.LyricsTabLayout.addWidget(self.TitleEditItem, 0, 1, 1, 2)
self.AlternativeTitleLabel = QtGui.QLabel(self.TextWidget) self.AlternativeTitleLabel = QtGui.QLabel(self.LyricsTab)
self.AlternativeTitleLabel.setObjectName(u'AlternativeTitleLabel') self.AlternativeTitleLabel.setObjectName("AlternativeTitleLabel")
self.DetailsLayout.addWidget(self.AlternativeTitleLabel) self.LyricsTabLayout.addWidget(self.AlternativeTitleLabel, 1, 0, 1, 1)
self.AlternativeEdit = QtGui.QLineEdit(self.TextWidget) self.AlternativeEdit = QtGui.QLineEdit(self.LyricsTab)
self.AlternativeEdit.setObjectName(u'AlternativeEdit') self.AlternativeEdit.setObjectName("AlternativeEdit")
self.DetailsLayout.addWidget(self.AlternativeEdit) self.LyricsTabLayout.addWidget(self.AlternativeEdit, 1, 1, 1, 2)
self.LyricsLabel = QtGui.QLabel(self.TextWidget) self.LyricsLabel = QtGui.QLabel(self.LyricsTab)
self.LyricsLabel.setObjectName(u'LyricsLabel') self.LyricsLabel.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
self.DetailsLayout.addWidget(self.LyricsLabel) self.LyricsLabel.setObjectName("LyricsLabel")
self.VerseEditWidget = QtGui.QWidget(self.TextWidget) self.LyricsTabLayout.addWidget(self.LyricsLabel, 2, 0, 1, 1)
self.VerseEditWidget.setObjectName(u'VerseEditWidget') self.VerseListWidget = QtGui.QListWidget(self.LyricsTab)
self.VerseEditLayout = QtGui.QVBoxLayout(self.VerseEditWidget) self.VerseListWidget.setSpacing(2)
self.VerseEditLayout.setSpacing(8)
self.VerseEditLayout.setMargin(0)
self.VerseEditLayout.setObjectName(u'VerseEditLayout')
self.VerseListWidget = QtGui.QListWidget(self.VerseEditWidget)
self.VerseListWidget.setObjectName(u'VerseListWidget')
self.VerseListWidget.setAlternatingRowColors(True) self.VerseListWidget.setAlternatingRowColors(True)
self.VerseEditLayout.addWidget(self.VerseListWidget) self.VerseListWidget.setObjectName("VerseListWidget")
self.VerseButtonWidget = QtGui.QWidget(self.VerseEditWidget) self.LyricsTabLayout.addWidget(self.VerseListWidget, 2, 1, 1, 1)
self.VerseButtonWidget.setObjectName(u'VerseButtonWidget') self.VerseOrderLabel = QtGui.QLabel(self.LyricsTab)
self.VerseButtonLayout = QtGui.QHBoxLayout(self.VerseButtonWidget) self.VerseOrderLabel.setObjectName("VerseOrderLabel")
self.VerseButtonLayout.setSpacing(8) self.LyricsTabLayout.addWidget(self.VerseOrderLabel, 4, 0, 1, 1)
self.VerseButtonLayout.setMargin(0) self.VerseOrderEdit = QtGui.QLineEdit(self.LyricsTab)
self.VerseButtonLayout.setObjectName(u'VerseButtonLayout') self.VerseOrderEdit.setObjectName("VerseOrderEdit")
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.LyricsTabLayout.addWidget(self.VerseOrderEdit, 4, 1, 1, 2)
self.VerseButtonLayout.addItem(spacerItem) self.VerseButtonWidget = QtGui.QWidget(self.LyricsTab)
self.AddButton = QtGui.QPushButton(self.VerseButtonWidget) self.VerseButtonWidget.setObjectName("VerseButtonWidget")
self.AddButton.setObjectName(u'AddButton') self.VerseButtonsLayout = QtGui.QVBoxLayout(self.VerseButtonWidget)
self.VerseButtonLayout.addWidget(self.AddButton) self.VerseButtonsLayout.setSpacing(8)
self.EditButton = QtGui.QPushButton(self.VerseButtonWidget) self.VerseButtonsLayout.setMargin(0)
self.EditButton.setObjectName(u'EditButton') self.VerseButtonsLayout.setObjectName("VerseButtonsLayout")
self.VerseButtonLayout.addWidget(self.EditButton) self.VerseAddButton = QtGui.QPushButton(self.VerseButtonWidget)
self.DeleteButton = QtGui.QPushButton(self.VerseButtonWidget) self.VerseAddButton.setObjectName("VerseAddButton")
self.DeleteButton.setObjectName(u'DeleteButton') self.VerseButtonsLayout.addWidget(self.VerseAddButton)
self.VerseButtonLayout.addWidget(self.DeleteButton) self.VerseEditButton = QtGui.QPushButton(self.VerseButtonWidget)
self.VerseEditLayout.addWidget(self.VerseButtonWidget) self.VerseEditButton.setObjectName("VerseEditButton")
self.DetailsLayout.addWidget(self.VerseEditWidget) self.VerseButtonsLayout.addWidget(self.VerseEditButton)
self.VerseOrderLabel = QtGui.QLabel(self.TextWidget) self.VerseEditAllButton = QtGui.QPushButton(self.VerseButtonWidget)
self.VerseOrderLabel.setObjectName(u'VerseOrderLabel') self.VerseEditAllButton.setObjectName("VerseEditAllButton")
self.DetailsLayout.addWidget(self.VerseOrderLabel) self.VerseButtonsLayout.addWidget(self.VerseEditAllButton)
self.VerseOrderEdit = QtGui.QLineEdit(self.TextWidget) self.VerseDeleteButton = QtGui.QPushButton(self.VerseButtonWidget)
self.VerseOrderEdit.setObjectName(u'VerseOrderEdit') self.VerseDeleteButton.setObjectName("VerseDeleteButton")
self.DetailsLayout.addWidget(self.VerseOrderEdit) self.VerseButtonsLayout.addWidget(self.VerseDeleteButton)
self.CommentsLabel = QtGui.QLabel(self.TextWidget) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.CommentsLabel.setObjectName(u'CommentsLabel') self.VerseButtonsLayout.addItem(spacerItem)
self.DetailsLayout.addWidget(self.CommentsLabel) self.LyricsTabLayout.addWidget(self.VerseButtonWidget, 2, 2, 1, 1)
self.CommentsEdit = QtGui.QTextEdit(self.TextWidget) self.SongTabWidget.addTab(self.LyricsTab, "")
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) self.AuthorsTab = QtGui.QWidget()
sizePolicy.setHorizontalStretch(0) self.AuthorsTab.setObjectName("AuthorsTab")
sizePolicy.setVerticalStretch(0) self.AuthorsTabLayout = QtGui.QHBoxLayout(self.AuthorsTab)
sizePolicy.setHeightForWidth(self.CommentsEdit.sizePolicy().hasHeightForWidth()) self.AuthorsTabLayout.setSpacing(8)
self.CommentsEdit.setSizePolicy(sizePolicy) self.AuthorsTabLayout.setMargin(8)
self.CommentsEdit.setMaximumSize(QtCore.QSize(16777215, 84)) self.AuthorsTabLayout.setObjectName("AuthorsTabLayout")
self.CommentsEdit.setObjectName(u'CommentsEdit') self.AuthorsMaintenanceWidget = QtGui.QWidget(self.AuthorsTab)
self.DetailsLayout.addWidget(self.CommentsEdit) self.AuthorsMaintenanceWidget.setObjectName("AuthorsMaintenanceWidget")
self.ThemeGroupBox = QtGui.QGroupBox(self.TextWidget) self.AuthorsMaintenanceLayout = QtGui.QVBoxLayout(self.AuthorsMaintenanceWidget)
self.ThemeGroupBox.setObjectName(u'ThemeGroupBox') self.AuthorsMaintenanceLayout.setSpacing(8)
self.ThemeLayout = QtGui.QHBoxLayout(self.ThemeGroupBox) self.AuthorsMaintenanceLayout.setMargin(0)
self.ThemeLayout.setSpacing(8) self.AuthorsMaintenanceLayout.setObjectName("AuthorsMaintenanceLayout")
self.ThemeLayout.setMargin(8) self.AuthorsGroupBox = QtGui.QGroupBox(self.AuthorsMaintenanceWidget)
self.ThemeLayout.setObjectName(u'ThemeLayout') self.AuthorsGroupBox.setObjectName("AuthorsGroupBox")
self.ThemeSelectionComboItem = QtGui.QComboBox(self.ThemeGroupBox)
self.ThemeSelectionComboItem.setObjectName(u'ThemeSelectionComboItem')
self.ThemeLayout.addWidget(self.ThemeSelectionComboItem)
self.DetailsLayout.addWidget(self.ThemeGroupBox)
self.TopLayout.addWidget(self.TextWidget)
self.AdditionalWidget = QtGui.QWidget(self.TopWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.AdditionalWidget.sizePolicy().hasHeightForWidth())
self.AdditionalWidget.setSizePolicy(sizePolicy)
self.AdditionalWidget.setMinimumSize(QtCore.QSize(100, 0))
self.AdditionalWidget.setObjectName(u'AdditionalWidget')
self.AdditionalLayout = QtGui.QVBoxLayout(self.AdditionalWidget)
self.AdditionalLayout.setSpacing(8)
self.AdditionalLayout.setMargin(0)
self.AdditionalLayout.setObjectName(u'AdditionalLayout')
self.AuthorsGroupBox = QtGui.QGroupBox(self.AdditionalWidget)
self.AuthorsGroupBox.setObjectName(u'AuthorsGroupBox')
self.AuthorsLayout = QtGui.QVBoxLayout(self.AuthorsGroupBox) self.AuthorsLayout = QtGui.QVBoxLayout(self.AuthorsGroupBox)
self.AuthorsLayout.setSpacing(8) self.AuthorsLayout.setSpacing(8)
self.AuthorsLayout.setMargin(8) self.AuthorsLayout.setMargin(8)
self.AuthorsLayout.setObjectName(u'AuthorsLayout') self.AuthorsLayout.setObjectName("AuthorsLayout")
self.AuthorAddWidget = QtGui.QWidget(self.AuthorsGroupBox) self.AuthorAddWidget = QtGui.QWidget(self.AuthorsGroupBox)
self.AuthorAddWidget.setObjectName(u'AuthorAddWidget') self.AuthorAddWidget.setObjectName("AuthorAddWidget")
self.AddAuthorLayout = QtGui.QHBoxLayout(self.AuthorAddWidget) self.AuthorAddLayout = QtGui.QHBoxLayout(self.AuthorAddWidget)
self.AddAuthorLayout.setSpacing(8) self.AuthorAddLayout.setSpacing(8)
self.AddAuthorLayout.setMargin(0) self.AuthorAddLayout.setMargin(0)
self.AddAuthorLayout.setObjectName(u'AddAuthorLayout') self.AuthorAddLayout.setObjectName("AuthorAddLayout")
self.AuthorsSelectionComboItem = QtGui.QComboBox(self.AuthorAddWidget) self.AuthorsSelectionComboItem = QtGui.QComboBox(self.AuthorAddWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0) sizePolicy.setHorizontalStretch(0)
@ -156,194 +116,283 @@ class Ui_EditSongDialog(object):
self.AuthorsSelectionComboItem.setInsertPolicy(QtGui.QComboBox.InsertAlphabetically) self.AuthorsSelectionComboItem.setInsertPolicy(QtGui.QComboBox.InsertAlphabetically)
self.AuthorsSelectionComboItem.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLength) self.AuthorsSelectionComboItem.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLength)
self.AuthorsSelectionComboItem.setMinimumContentsLength(8) self.AuthorsSelectionComboItem.setMinimumContentsLength(8)
self.AuthorsSelectionComboItem.setObjectName(u'AuthorsSelectionComboItem') self.AuthorsSelectionComboItem.setObjectName("AuthorsSelectionComboItem")
self.AddAuthorLayout.addWidget(self.AuthorsSelectionComboItem) self.AuthorAddLayout.addWidget(self.AuthorsSelectionComboItem)
self.AuthorAddtoSongItem = QtGui.QPushButton(self.AuthorAddWidget) self.AuthorAddButton = QtGui.QPushButton(self.AuthorAddWidget)
self.AuthorAddtoSongItem.setMaximumSize(QtCore.QSize(110, 16777215)) self.AuthorAddButton.setMaximumSize(QtCore.QSize(110, 16777215))
self.AuthorAddtoSongItem.setObjectName(u'AuthorAddtoSongItem') self.AuthorAddButton.setObjectName("AuthorAddButton")
self.AddAuthorLayout.addWidget(self.AuthorAddtoSongItem) self.AuthorAddLayout.addWidget(self.AuthorAddButton)
self.AuthorsLayout.addWidget(self.AuthorAddWidget) self.AuthorsLayout.addWidget(self.AuthorAddWidget)
self.AuthorsListView = QtGui.QListWidget(self.AuthorsGroupBox) self.AuthorsListView = QtGui.QListWidget(self.AuthorsGroupBox)
self.AuthorsListView.setAlternatingRowColors(True) self.AuthorsListView.setAlternatingRowColors(True)
self.AuthorsListView.setObjectName(u'AuthorsListView') self.AuthorsListView.setObjectName("AuthorsListView")
self.AuthorsLayout.addWidget(self.AuthorsListView) self.AuthorsLayout.addWidget(self.AuthorsListView)
self.AuthorRemoveWidget = QtGui.QWidget(self.AuthorsGroupBox) self.AuthorRemoveWidget = QtGui.QWidget(self.AuthorsGroupBox)
self.AuthorRemoveWidget.setObjectName(u'AuthorRemoveWidget') self.AuthorRemoveWidget.setObjectName("AuthorRemoveWidget")
self.AuthorRemoveLayout = QtGui.QHBoxLayout(self.AuthorRemoveWidget) self.AuthorRemoveLayout = QtGui.QHBoxLayout(self.AuthorRemoveWidget)
self.AuthorRemoveLayout.setSpacing(8) self.AuthorRemoveLayout.setSpacing(8)
self.AuthorRemoveLayout.setMargin(0) self.AuthorRemoveLayout.setMargin(0)
self.AuthorRemoveLayout.setObjectName(u'AuthorRemoveLayout') self.AuthorRemoveLayout.setObjectName("AuthorRemoveLayout")
spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.AuthorRemoveLayout.addItem(spacerItem1) self.AuthorRemoveLayout.addItem(spacerItem1)
self.AuthorRemoveItem = QtGui.QPushButton(self.AuthorRemoveWidget) self.AuthorRemoveButton = QtGui.QPushButton(self.AuthorRemoveWidget)
self.AuthorRemoveItem.setObjectName(u'AuthorRemoveItem') self.AuthorRemoveButton.setObjectName("AuthorRemoveButton")
self.AuthorRemoveLayout.addWidget(self.AuthorRemoveItem) self.AuthorRemoveLayout.addWidget(self.AuthorRemoveButton)
# self.AddAuthorsButton = QtGui.QPushButton(self.AuthorRemoveWidget)
# self.AddAuthorsButton.setObjectName(u'AddAuthorsButton')
# self.AuthorRemoveLayout.addWidget(self.AddAuthorsButton)
self.AuthorsLayout.addWidget(self.AuthorRemoveWidget) self.AuthorsLayout.addWidget(self.AuthorRemoveWidget)
self.AdditionalLayout.addWidget(self.AuthorsGroupBox) self.AuthorsMaintenanceLayout.addWidget(self.AuthorsGroupBox)
self.SongBookGroup = QtGui.QGroupBox(self.AdditionalWidget) self.MaintenanceWidget = QtGui.QWidget(self.AuthorsMaintenanceWidget)
self.SongBookGroup.setObjectName(u'SongBookGroup') self.MaintenanceWidget.setObjectName("MaintenanceWidget")
self.SongbookLayout = QtGui.QGridLayout(self.SongBookGroup) self.MaintenanceLayout = QtGui.QHBoxLayout(self.MaintenanceWidget)
self.SongbookLayout.setMargin(8) self.MaintenanceLayout.setSpacing(0)
self.SongbookLayout.setSpacing(8) self.MaintenanceLayout.setMargin(0)
self.SongbookLayout.setObjectName(u'SongbookLayout') self.MaintenanceLayout.setObjectName("MaintenanceLayout")
self.SongbookCombo = QtGui.QComboBox(self.SongBookGroup) self.MaintenanceButton = QtGui.QPushButton(self.MaintenanceWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) self.MaintenanceButton.setObjectName("MaintenanceButton")
sizePolicy.setHorizontalStretch(0) self.MaintenanceLayout.addWidget(self.MaintenanceButton)
sizePolicy.setVerticalStretch(0) spacerItem2 = QtGui.QSpacerItem(66, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
sizePolicy.setHeightForWidth(self.SongbookCombo.sizePolicy().hasHeightForWidth()) self.MaintenanceLayout.addItem(spacerItem2)
self.SongbookCombo.setSizePolicy(sizePolicy) self.AuthorsMaintenanceLayout.addWidget(self.MaintenanceWidget)
self.SongbookCombo.setObjectName(u'SongbookCombo') self.AuthorsTabLayout.addWidget(self.AuthorsMaintenanceWidget)
self.SongbookLayout.addWidget(self.SongbookCombo, 0, 0, 1, 1) self.TopicBookWidget = QtGui.QWidget(self.AuthorsTab)
# self.AddSongBookButton = QtGui.QPushButton(self.SongBookGroup) self.TopicBookWidget.setObjectName("TopicBookWidget")
# sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum) self.TopicBookLayout = QtGui.QVBoxLayout(self.TopicBookWidget)
# sizePolicy.setHorizontalStretch(0) self.TopicBookLayout.setSpacing(8)
# sizePolicy.setVerticalStretch(0) self.TopicBookLayout.setMargin(0)
# sizePolicy.setHeightForWidth(self.AddSongBookButton.sizePolicy().hasHeightForWidth()) self.TopicBookLayout.setObjectName("TopicBookLayout")
# self.AddSongBookButton.setSizePolicy(sizePolicy) self.TopicGroupBox = QtGui.QGroupBox(self.TopicBookWidget)
# self.AddSongBookButton.setObjectName(u'AddSongBookButton')
# self.SongbookLayout.addWidget(self.AddSongBookButton, 0, 1, 1, 1)
self.AdditionalLayout.addWidget(self.SongBookGroup)
self.TopicGroupBox = QtGui.QGroupBox(self.AdditionalWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0) sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0) sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.TopicGroupBox.sizePolicy().hasHeightForWidth()) sizePolicy.setHeightForWidth(self.TopicGroupBox.sizePolicy().hasHeightForWidth())
self.TopicGroupBox.setSizePolicy(sizePolicy) self.TopicGroupBox.setSizePolicy(sizePolicy)
self.TopicGroupBox.setObjectName(u'TopicGroupBox') self.TopicGroupBox.setObjectName("TopicGroupBox")
self.TopicLayout = QtGui.QVBoxLayout(self.TopicGroupBox) self.TopicLayout = QtGui.QVBoxLayout(self.TopicGroupBox)
self.TopicLayout.setSpacing(8) self.TopicLayout.setSpacing(8)
self.TopicLayout.setMargin(8) self.TopicLayout.setMargin(8)
self.TopicLayout.setObjectName(u'TopicLayout') self.TopicLayout.setObjectName("TopicLayout")
self.TopicAddWidget = QtGui.QWidget(self.TopicGroupBox) self.TopicAddWidget = QtGui.QWidget(self.TopicGroupBox)
self.TopicAddWidget.setObjectName(u'TopicAddWidget') self.TopicAddWidget.setObjectName("TopicAddWidget")
self.TopicAddLayout = QtGui.QHBoxLayout(self.TopicAddWidget) self.TopicAddLayout = QtGui.QHBoxLayout(self.TopicAddWidget)
self.TopicAddLayout.setSpacing(8) self.TopicAddLayout.setSpacing(8)
self.TopicAddLayout.setMargin(0) self.TopicAddLayout.setMargin(0)
self.TopicAddLayout.setObjectName(u'TopicAddLayout') self.TopicAddLayout.setObjectName("TopicAddLayout")
self.SongTopicCombo = QtGui.QComboBox(self.TopicAddWidget) self.SongTopicCombo = QtGui.QComboBox(self.TopicAddWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0) sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0) sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.SongTopicCombo.sizePolicy().hasHeightForWidth()) sizePolicy.setHeightForWidth(self.SongTopicCombo.sizePolicy().hasHeightForWidth())
self.SongTopicCombo.setSizePolicy(sizePolicy) self.SongTopicCombo.setSizePolicy(sizePolicy)
self.SongTopicCombo.setObjectName(u'SongTopicCombo') self.SongTopicCombo.setObjectName("SongTopicCombo")
self.TopicAddLayout.addWidget(self.SongTopicCombo) self.TopicAddLayout.addWidget(self.SongTopicCombo)
self.AddTopicsToSongButton = QtGui.QPushButton(self.TopicAddWidget) self.TopicAddButton = QtGui.QPushButton(self.TopicAddWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0) sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0) sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.AddTopicsToSongButton.sizePolicy().hasHeightForWidth()) sizePolicy.setHeightForWidth(self.TopicAddButton.sizePolicy().hasHeightForWidth())
self.AddTopicsToSongButton.setSizePolicy(sizePolicy) self.TopicAddButton.setSizePolicy(sizePolicy)
self.AddTopicsToSongButton.setObjectName(u'AddTopicsToSongButton') self.TopicAddButton.setObjectName("TopicAddButton")
self.TopicAddLayout.addWidget(self.AddTopicsToSongButton) self.TopicAddLayout.addWidget(self.TopicAddButton)
self.TopicLayout.addWidget(self.TopicAddWidget) self.TopicLayout.addWidget(self.TopicAddWidget)
self.TopicsListView = QtGui.QListWidget(self.TopicGroupBox) self.TopicsListView = QtGui.QListWidget(self.TopicGroupBox)
self.TopicsListView.setAlternatingRowColors(True) self.TopicsListView.setAlternatingRowColors(True)
self.TopicsListView.setObjectName(u'TopicsListView') self.TopicsListView.setObjectName("TopicsListView")
self.TopicLayout.addWidget(self.TopicsListView) self.TopicLayout.addWidget(self.TopicsListView)
self.TopicRemoveWidget = QtGui.QWidget(self.TopicGroupBox) self.TopicRemoveWidget = QtGui.QWidget(self.TopicGroupBox)
self.TopicRemoveWidget.setObjectName(u'TopicRemoveWidget') self.TopicRemoveWidget.setObjectName("TopicRemoveWidget")
self.TopicRemoveLayout = QtGui.QHBoxLayout(self.TopicRemoveWidget) self.TopicRemoveLayout = QtGui.QHBoxLayout(self.TopicRemoveWidget)
self.TopicRemoveLayout.setSpacing(8) self.TopicRemoveLayout.setSpacing(8)
self.TopicRemoveLayout.setMargin(0) self.TopicRemoveLayout.setMargin(0)
self.TopicRemoveLayout.setObjectName(u'TopicRemoveLayout') self.TopicRemoveLayout.setObjectName("TopicRemoveLayout")
spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.TopicRemoveLayout.addItem(spacerItem2) self.TopicRemoveLayout.addItem(spacerItem3)
self.TopicRemoveItem = QtGui.QPushButton(self.TopicRemoveWidget) self.TopicRemoveButton = QtGui.QPushButton(self.TopicRemoveWidget)
self.TopicRemoveItem.setObjectName(u'TopicRemoveItem') self.TopicRemoveButton.setObjectName("TopicRemoveButton")
self.TopicRemoveLayout.addWidget(self.TopicRemoveItem) self.TopicRemoveLayout.addWidget(self.TopicRemoveButton)
# self.AddTopicButton = QtGui.QPushButton(self.TopicRemoveWidget)
# self.AddTopicButton.setObjectName(u'AddTopicButton')
# self.TopicRemoveLayout.addWidget(self.AddTopicButton)
self.TopicLayout.addWidget(self.TopicRemoveWidget) self.TopicLayout.addWidget(self.TopicRemoveWidget)
self.AdditionalLayout.addWidget(self.TopicGroupBox) self.TopicBookLayout.addWidget(self.TopicGroupBox)
self.CopyrightgroupBox = QtGui.QGroupBox(self.AdditionalWidget) self.SongBookGroup = QtGui.QGroupBox(self.TopicBookWidget)
self.CopyrightgroupBox.setObjectName(u'CopyrightgroupBox') self.SongBookGroup.setObjectName("SongBookGroup")
self.CopyrightLayout = QtGui.QVBoxLayout(self.CopyrightgroupBox) self.SongbookLayout = QtGui.QGridLayout(self.SongBookGroup)
self.SongbookLayout.setMargin(8)
self.SongbookLayout.setSpacing(8)
self.SongbookLayout.setObjectName("SongbookLayout")
self.SongbookCombo = QtGui.QComboBox(self.SongBookGroup)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.SongbookCombo.sizePolicy().hasHeightForWidth())
self.SongbookCombo.setSizePolicy(sizePolicy)
self.SongbookCombo.setObjectName("SongbookCombo")
self.SongbookLayout.addWidget(self.SongbookCombo, 0, 0, 1, 1)
self.TopicBookLayout.addWidget(self.SongBookGroup)
self.AuthorsTabLayout.addWidget(self.TopicBookWidget)
self.SongTabWidget.addTab(self.AuthorsTab, "")
self.ThemeTab = QtGui.QWidget()
self.ThemeTab.setObjectName("ThemeTab")
self.ThemeTabLayout = QtGui.QVBoxLayout(self.ThemeTab)
self.ThemeTabLayout.setSpacing(8)
self.ThemeTabLayout.setMargin(8)
self.ThemeTabLayout.setObjectName("ThemeTabLayout")
self.ThemeCopyCommentsWidget = QtGui.QWidget(self.ThemeTab)
self.ThemeCopyCommentsWidget.setObjectName("ThemeCopyCommentsWidget")
self.ThemeCopyCommentsLayout = QtGui.QHBoxLayout(self.ThemeCopyCommentsWidget)
self.ThemeCopyCommentsLayout.setSpacing(8)
self.ThemeCopyCommentsLayout.setMargin(0)
self.ThemeCopyCommentsLayout.setObjectName("ThemeCopyCommentsLayout")
self.TextWidget = QtGui.QWidget(self.ThemeCopyCommentsWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.TextWidget.sizePolicy().hasHeightForWidth())
self.TextWidget.setSizePolicy(sizePolicy)
self.TextWidget.setObjectName("TextWidget")
self.DetailsLayout = QtGui.QVBoxLayout(self.TextWidget)
self.DetailsLayout.setSpacing(8)
self.DetailsLayout.setMargin(0)
self.DetailsLayout.setObjectName("DetailsLayout")
self.ThemeGroupBox = QtGui.QGroupBox(self.TextWidget)
self.ThemeGroupBox.setObjectName("ThemeGroupBox")
self.ThemeLayout = QtGui.QHBoxLayout(self.ThemeGroupBox)
self.ThemeLayout.setSpacing(8)
self.ThemeLayout.setMargin(8)
self.ThemeLayout.setObjectName("ThemeLayout")
self.ThemeSelectionComboItem = QtGui.QComboBox(self.ThemeGroupBox)
self.ThemeSelectionComboItem.setObjectName("ThemeSelectionComboItem")
self.ThemeLayout.addWidget(self.ThemeSelectionComboItem)
self.ThemeAddButton = QtGui.QPushButton(self.ThemeGroupBox)
self.ThemeAddButton.setMaximumSize(QtCore.QSize(110, 16777215))
self.ThemeAddButton.setObjectName("ThemeAddButton")
self.ThemeLayout.addWidget(self.ThemeAddButton)
self.DetailsLayout.addWidget(self.ThemeGroupBox)
self.CopyrightGroupBox = QtGui.QGroupBox(self.TextWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.CopyrightGroupBox.sizePolicy().hasHeightForWidth())
self.CopyrightGroupBox.setSizePolicy(sizePolicy)
self.CopyrightGroupBox.setObjectName("CopyrightGroupBox")
self.CopyrightLayout = QtGui.QVBoxLayout(self.CopyrightGroupBox)
self.CopyrightLayout.setSpacing(8) self.CopyrightLayout.setSpacing(8)
self.CopyrightLayout.setMargin(8) self.CopyrightLayout.setMargin(8)
self.CopyrightLayout.setObjectName(u'CopyrightLayout') self.CopyrightLayout.setObjectName("CopyrightLayout")
self.CopyrightWidget = QtGui.QWidget(self.CopyrightgroupBox) self.CopyrightWidget = QtGui.QWidget(self.CopyrightGroupBox)
self.CopyrightWidget.setObjectName(u'CopyrightWidget') self.CopyrightWidget.setObjectName("CopyrightWidget")
self.CopyLayout = QtGui.QHBoxLayout(self.CopyrightWidget) self.CopyLayout = QtGui.QHBoxLayout(self.CopyrightWidget)
self.CopyLayout.setSpacing(8) self.CopyLayout.setSpacing(8)
self.CopyLayout.setMargin(0) self.CopyLayout.setMargin(0)
self.CopyLayout.setObjectName(u'CopyLayout') self.CopyLayout.setObjectName("CopyLayout")
self.CopyrightEditItem = QtGui.QLineEdit(self.CopyrightWidget) self.CopyrightEditItem = QtGui.QLineEdit(self.CopyrightWidget)
self.CopyrightEditItem.setObjectName(u'CopyrightEditItem') self.CopyrightEditItem.setObjectName("CopyrightEditItem")
self.CopyLayout.addWidget(self.CopyrightEditItem) self.CopyLayout.addWidget(self.CopyrightEditItem)
self.CopyrightInsertItem = QtGui.QPushButton(self.CopyrightWidget) self.CopyrightInsertButton = QtGui.QPushButton(self.CopyrightWidget)
self.CopyrightInsertItem.setMaximumSize(QtCore.QSize(29, 16777215)) self.CopyrightInsertButton.setMaximumSize(QtCore.QSize(29, 16777215))
self.CopyrightInsertItem.setObjectName(u'CopyrightInsertItem') self.CopyrightInsertButton.setObjectName("CopyrightInsertButton")
self.CopyLayout.addWidget(self.CopyrightInsertItem) self.CopyLayout.addWidget(self.CopyrightInsertButton)
self.CopyrightLayout.addWidget(self.CopyrightWidget) self.CopyrightLayout.addWidget(self.CopyrightWidget)
self.CcliWidget = QtGui.QWidget(self.CopyrightgroupBox) self.CcliWidget = QtGui.QWidget(self.CopyrightGroupBox)
self.CcliWidget.setObjectName(u'CcliWidget') self.CcliWidget.setObjectName("CcliWidget")
self.CCLILayout = QtGui.QHBoxLayout(self.CcliWidget) self.CCLILayout = QtGui.QHBoxLayout(self.CcliWidget)
self.CCLILayout.setSpacing(8) self.CCLILayout.setSpacing(8)
self.CCLILayout.setMargin(0) self.CCLILayout.setMargin(0)
self.CCLILayout.setObjectName(u'CCLILayout') self.CCLILayout.setObjectName("CCLILayout")
self.CCLILabel = QtGui.QLabel(self.CcliWidget) self.CCLILabel = QtGui.QLabel(self.CcliWidget)
self.CCLILabel.setObjectName(u'CCLILabel') self.CCLILabel.setObjectName("CCLILabel")
self.CCLILayout.addWidget(self.CCLILabel) self.CCLILayout.addWidget(self.CCLILabel)
self.CCLNumberEdit = QtGui.QLineEdit(self.CcliWidget) self.CCLNumberEdit = QtGui.QLineEdit(self.CcliWidget)
self.CCLNumberEdit.setObjectName(u'CCLNumberEdit') self.CCLNumberEdit.setObjectName("CCLNumberEdit")
self.CCLILayout.addWidget(self.CCLNumberEdit) self.CCLILayout.addWidget(self.CCLNumberEdit)
self.CopyrightLayout.addWidget(self.CcliWidget) self.CopyrightLayout.addWidget(self.CcliWidget)
self.AdditionalLayout.addWidget(self.CopyrightgroupBox) self.DetailsLayout.addWidget(self.CopyrightGroupBox)
self.TopLayout.addWidget(self.AdditionalWidget) spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.EditSongLayout.addWidget(self.TopWidget) self.DetailsLayout.addItem(spacerItem4)
self.ThemeCopyCommentsLayout.addWidget(self.TextWidget)
self.CommentsGroupBox = QtGui.QGroupBox(self.ThemeCopyCommentsWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.CommentsGroupBox.sizePolicy().hasHeightForWidth())
self.CommentsGroupBox.setSizePolicy(sizePolicy)
self.CommentsGroupBox.setObjectName("CommentsGroupBox")
self.CommentsLayout = QtGui.QVBoxLayout(self.CommentsGroupBox)
self.CommentsLayout.setSpacing(0)
self.CommentsLayout.setMargin(8)
self.CommentsLayout.setObjectName("CommentsLayout")
self.CommentsEdit = QtGui.QTextEdit(self.CommentsGroupBox)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.CommentsEdit.sizePolicy().hasHeightForWidth())
self.CommentsEdit.setSizePolicy(sizePolicy)
self.CommentsEdit.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.CommentsEdit.setObjectName("CommentsEdit")
self.CommentsLayout.addWidget(self.CommentsEdit)
self.ThemeCopyCommentsLayout.addWidget(self.CommentsGroupBox)
self.ThemeTabLayout.addWidget(self.ThemeCopyCommentsWidget)
spacerItem5 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
self.ThemeTabLayout.addItem(spacerItem5)
self.SongTabWidget.addTab(self.ThemeTab, "")
self.verticalLayout.addWidget(self.SongTabWidget)
self.ButtonBox = QtGui.QDialogButtonBox(EditSongDialog) self.ButtonBox = QtGui.QDialogButtonBox(EditSongDialog)
self.ButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Save) self.ButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Save)
self.ButtonBox.setObjectName(u'ButtonBox') self.ButtonBox.setObjectName("ButtonBox")
self.EditSongLayout.addWidget(self.ButtonBox) self.verticalLayout.addWidget(self.ButtonBox)
self.retranslateUi(EditSongDialog) self.retranslateUi(EditSongDialog)
QtCore.QObject.connect(self.ButtonBox, QtCore.SIGNAL(u'rejected()'), EditSongDialog.close) self.SongTabWidget.setCurrentIndex(0)
QtCore.QObject.connect(self.ButtonBox, QtCore.SIGNAL(u'accepted()'), self.onAccept) QtCore.QObject.connect(self.ButtonBox, QtCore.SIGNAL("rejected()"), EditSongDialog.close)
QtCore.QObject.connect(self.ButtonBox, QtCore.SIGNAL("accepted()"), EditSongDialog.close)
QtCore.QMetaObject.connectSlotsByName(EditSongDialog) QtCore.QMetaObject.connectSlotsByName(EditSongDialog)
EditSongDialog.setTabOrder(self.SongTabWidget, self.TitleEditItem)
EditSongDialog.setTabOrder(self.TitleEditItem, self.AlternativeEdit) EditSongDialog.setTabOrder(self.TitleEditItem, self.AlternativeEdit)
EditSongDialog.setTabOrder(self.AlternativeEdit, self.VerseOrderEdit) EditSongDialog.setTabOrder(self.AlternativeEdit, self.VerseListWidget)
EditSongDialog.setTabOrder(self.VerseOrderEdit, self.CommentsEdit) EditSongDialog.setTabOrder(self.VerseListWidget, self.VerseAddButton)
EditSongDialog.setTabOrder(self.CommentsEdit, self.ThemeSelectionComboItem) EditSongDialog.setTabOrder(self.VerseAddButton, self.VerseEditButton)
EditSongDialog.setTabOrder(self.ThemeSelectionComboItem, self.AuthorAddtoSongItem) EditSongDialog.setTabOrder(self.VerseEditButton, self.VerseEditAllButton)
EditSongDialog.setTabOrder(self.AuthorAddtoSongItem, self.AuthorsListView) EditSongDialog.setTabOrder(self.VerseEditAllButton, self.VerseDeleteButton)
EditSongDialog.setTabOrder(self.AuthorsListView, self.AuthorRemoveItem) EditSongDialog.setTabOrder(self.VerseDeleteButton, self.VerseOrderEdit)
EditSongDialog.setTabOrder(self.AuthorRemoveItem, self.SongbookCombo) EditSongDialog.setTabOrder(self.VerseOrderEdit, self.AuthorsSelectionComboItem)
#EditSongDialog.setTabOrder(self.SongbookCombo, self.AddSongBookButton) EditSongDialog.setTabOrder(self.AuthorsSelectionComboItem, self.AuthorAddButton)
#EditSongDialog.setTabOrder(self.AddSongBookButton, self.SongTopicCombo) EditSongDialog.setTabOrder(self.AuthorAddButton, self.AuthorsListView)
EditSongDialog.setTabOrder(self.SongbookCombo, self.SongTopicCombo) EditSongDialog.setTabOrder(self.AuthorsListView, self.AuthorRemoveButton)
EditSongDialog.setTabOrder(self.SongTopicCombo, self.TopicsListView) EditSongDialog.setTabOrder(self.AuthorRemoveButton, self.MaintenanceButton)
EditSongDialog.setTabOrder(self.TopicsListView, self.TopicRemoveItem) EditSongDialog.setTabOrder(self.MaintenanceButton, self.SongTopicCombo)
EditSongDialog.setTabOrder(self.TopicRemoveItem, self.CopyrightEditItem) EditSongDialog.setTabOrder(self.SongTopicCombo, self.TopicAddButton)
EditSongDialog.setTabOrder(self.CopyrightEditItem, self.CopyrightInsertItem) EditSongDialog.setTabOrder(self.TopicAddButton, self.TopicsListView)
EditSongDialog.setTabOrder(self.CopyrightInsertItem, self.CCLNumberEdit) EditSongDialog.setTabOrder(self.TopicsListView, self.TopicRemoveButton)
EditSongDialog.setTabOrder(self.CCLNumberEdit, self.ButtonBox) EditSongDialog.setTabOrder(self.TopicRemoveButton, self.SongbookCombo)
EditSongDialog.setTabOrder(self.SongbookCombo, self.ThemeSelectionComboItem)
EditSongDialog.setTabOrder(self.ThemeSelectionComboItem, self.ThemeAddButton)
EditSongDialog.setTabOrder(self.ThemeAddButton, self.CopyrightEditItem)
EditSongDialog.setTabOrder(self.CopyrightEditItem, self.CopyrightInsertButton)
EditSongDialog.setTabOrder(self.CopyrightInsertButton, self.CCLNumberEdit)
EditSongDialog.setTabOrder(self.CCLNumberEdit, self.CommentsEdit)
EditSongDialog.setTabOrder(self.CommentsEdit, self.ButtonBox)
def retranslateUi(self, EditSongDialog): def retranslateUi(self, EditSongDialog):
EditSongDialog.setWindowTitle(translate(u'EditSongDialog', u'Song Editor')) EditSongDialog.setWindowTitle(QtGui.QApplication.translate("EditSongDialog", "Song Editor", None, QtGui.QApplication.UnicodeUTF8))
self.TitleLabel.setText(translate(u'EditSongDialog', u'Title:')) self.TitleLabel.setText(QtGui.QApplication.translate("EditSongDialog", "Title:", None, QtGui.QApplication.UnicodeUTF8))
self.AlternativeTitleLabel.setText(translate(u'EditSongDialog', u'Alternative Title:')) self.AlternativeTitleLabel.setText(QtGui.QApplication.translate("EditSongDialog", "Alternative Title:", None, QtGui.QApplication.UnicodeUTF8))
self.LyricsLabel.setText(translate(u'EditSongDialog', u'Lyrics:')) self.LyricsLabel.setText(QtGui.QApplication.translate("EditSongDialog", "Lyrics:", None, QtGui.QApplication.UnicodeUTF8))
self.AddButton.setText(translate(u'EditSongDialog', u'Add')) self.VerseOrderLabel.setText(QtGui.QApplication.translate("EditSongDialog", "Verse Order:", None, QtGui.QApplication.UnicodeUTF8))
self.EditButton.setText(translate(u'EditSongDialog', u'Edit')) self.VerseAddButton.setText(QtGui.QApplication.translate("EditSongDialog", "Add", None, QtGui.QApplication.UnicodeUTF8))
self.DeleteButton.setText(translate(u'EditSongDialog', u'Delete')) self.VerseEditButton.setText(QtGui.QApplication.translate("EditSongDialog", "Edit", None, QtGui.QApplication.UnicodeUTF8))
self.VerseOrderLabel.setText(translate(u'EditSongDialog', u'Verse Order:')) self.VerseEditAllButton.setText(QtGui.QApplication.translate("EditSongDialog", "Edit All", None, QtGui.QApplication.UnicodeUTF8))
self.CommentsLabel.setText(translate(u'EditSongDialog', u'Comments:')) self.VerseDeleteButton.setText(QtGui.QApplication.translate("EditSongDialog", "Delete", None, QtGui.QApplication.UnicodeUTF8))
self.ThemeGroupBox.setTitle(translate(u'EditSongDialog', u'Theme')) self.SongTabWidget.setTabText(self.SongTabWidget.indexOf(self.LyricsTab), QtGui.QApplication.translate("EditSongDialog", "Title && Lyrics", None, QtGui.QApplication.UnicodeUTF8))
self.AuthorsGroupBox.setTitle(translate(u'EditSongDialog', u'Authors')) self.AuthorsGroupBox.setTitle(QtGui.QApplication.translate("EditSongDialog", "Authors", None, QtGui.QApplication.UnicodeUTF8))
self.AuthorAddtoSongItem.setText(translate(u'EditSongDialog', u'Add to Song')) self.AuthorAddButton.setText(QtGui.QApplication.translate("EditSongDialog", "&Add to Song", None, QtGui.QApplication.UnicodeUTF8))
self.AuthorRemoveItem.setText(translate(u'EditSongDialog', u'Remove')) self.AuthorRemoveButton.setText(QtGui.QApplication.translate("EditSongDialog", "&Remove", None, QtGui.QApplication.UnicodeUTF8))
#self.AddAuthorsButton.setText(translate(u'EditSongDialog', u'Manage Authors')) self.MaintenanceButton.setText(QtGui.QApplication.translate("EditSongDialog", "&Manage Authors, Topics, Books", None, QtGui.QApplication.UnicodeUTF8))
self.SongBookGroup.setTitle(translate(u'EditSongDialog', u'Song Book')) self.TopicGroupBox.setTitle(QtGui.QApplication.translate("EditSongDialog", "Topic", None, QtGui.QApplication.UnicodeUTF8))
#self.AddSongBookButton.setText(translate(u'EditSongDialog', u'Manage Song Books')) self.TopicAddButton.setText(QtGui.QApplication.translate("EditSongDialog", "A&dd to Song", None, QtGui.QApplication.UnicodeUTF8))
self.TopicGroupBox.setTitle(translate(u'EditSongDialog', u'Topic')) self.TopicRemoveButton.setText(QtGui.QApplication.translate("EditSongDialog", "R&emove", None, QtGui.QApplication.UnicodeUTF8))
self.AddTopicsToSongButton.setText(translate(u'EditSongDialog', u'Add to Song')) self.SongBookGroup.setTitle(QtGui.QApplication.translate("EditSongDialog", "Song Book", None, QtGui.QApplication.UnicodeUTF8))
self.TopicRemoveItem.setText(translate(u'EditSongDialog', u'Remove')) self.SongTabWidget.setTabText(self.SongTabWidget.indexOf(self.AuthorsTab), QtGui.QApplication.translate("EditSongDialog", "Authors, Topics && Book", None, QtGui.QApplication.UnicodeUTF8))
#self.AddTopicButton.setText(translate(u'EditSongDialog', u'Manage Topics')) self.ThemeGroupBox.setTitle(QtGui.QApplication.translate("EditSongDialog", "Theme", None, QtGui.QApplication.UnicodeUTF8))
self.CopyrightgroupBox.setTitle(translate(u'EditSongDialog', u'Copyright Infomaton')) self.ThemeAddButton.setText(QtGui.QApplication.translate("EditSongDialog", "Add a Theme", None, QtGui.QApplication.UnicodeUTF8))
self.CopyrightInsertItem.setText(translate(u'EditSongDialog', u'(c)')) self.CopyrightGroupBox.setTitle(QtGui.QApplication.translate("EditSongDialog", "Copyright Information", None, QtGui.QApplication.UnicodeUTF8))
self.CCLILabel.setText(translate(u'EditSongDialog', u'CCLI Number:')) self.CopyrightInsertButton.setText(QtGui.QApplication.translate("EditSongDialog", "©", None, QtGui.QApplication.UnicodeUTF8))
self.CCLILabel.setText(QtGui.QApplication.translate("EditSongDialog", "CCLI Number:", None, QtGui.QApplication.UnicodeUTF8))
self.CommentsGroupBox.setTitle(QtGui.QApplication.translate("EditSongDialog", "Comments", None, QtGui.QApplication.UnicodeUTF8))
self.SongTabWidget.setTabText(self.SongTabWidget.indexOf(self.ThemeTab), QtGui.QApplication.translate("EditSongDialog", "Theme, Copyright Info && Comments", None, QtGui.QApplication.UnicodeUTF8))

View File

@ -18,12 +18,13 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA Place, Suite 330, Boston, MA 02111-1307 USA
""" """
import logging import logging
from PyQt4 import Qt, QtCore, QtGui
from openlp.core.lib import SongXMLBuilder, SongXMLParser, Event, EventType, EventManager
from openlp.plugins.songs.forms import AuthorsForm, TopicsForm, SongBookForm, \
EditVerseForm
from openlp.plugins.songs.lib.models import Song
from PyQt4 import Qt, QtCore, QtGui
from openlp.core.lib import SongXMLBuilder, SongXMLParser, Event, \
EventType, EventManager
from openlp.plugins.songs.forms import EditVerseForm
from openlp.plugins.songs.lib.models import Song
from editsongdialog import Ui_EditSongDialog from editsongdialog import Ui_EditSongDialog
class EditSongForm(QtGui.QDialog, Ui_EditSongDialog): class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
@ -33,6 +34,7 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
global log global log
log = logging.getLogger(u'EditSongForm') log = logging.getLogger(u'EditSongForm')
log.info(u'Song Editor loaded') log.info(u'Song Editor loaded')
def __init__(self, songmanager, eventmanager, parent=None): def __init__(self, songmanager, eventmanager, parent=None):
""" """
Constructor Constructor
@ -40,32 +42,26 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
QtGui.QDialog.__init__(self, parent) QtGui.QDialog.__init__(self, parent)
self.setupUi(self) self.setupUi(self)
# Connecting signals and slots # Connecting signals and slots
# QtCore.QObject.connect(self.AddAuthorsButton, QtCore.QObject.connect(self.AuthorAddButton,
# QtCore.SIGNAL(u'clicked()'), self.onAddAuthorsButtonClicked) QtCore.SIGNAL(u'clicked()'), self.onAuthorAddButtonClicked)
QtCore.QObject.connect(self.AuthorAddtoSongItem, QtCore.QObject.connect(self.AuthorRemoveButton,
QtCore.SIGNAL(u'clicked()'), self.onAuthorAddtoSongItemClicked) QtCore.SIGNAL(u'clicked()'), self.onAuthorRemoveButtonClicked)
QtCore.QObject.connect(self.AuthorRemoveItem,
QtCore.SIGNAL(u'clicked()'), self.onAuthorRemovefromSongItemClicked)
QtCore.QObject.connect(self.AuthorsListView, QtCore.QObject.connect(self.AuthorsListView,
QtCore.SIGNAL(u'itemClicked(QListWidgetItem*)'), self.onAuthorsListViewPressed) QtCore.SIGNAL(u'itemClicked(QListWidgetItem*)'), self.onAuthorsListViewPressed)
# QtCore.QObject.connect(self.AddTopicButton, QtCore.QObject.connect(self.TopicAddButton,
# QtCore.SIGNAL(u'clicked()'), self.onAddTopicButtonClicked) QtCore.SIGNAL(u'clicked()'), self.onTopicAddButtonClicked)
QtCore.QObject.connect(self.AddTopicsToSongButton, QtCore.QObject.connect(self.TopicRemoveButton,
QtCore.SIGNAL(u'clicked()'), self.onTopicAddtoSongItemClicked) QtCore.SIGNAL(u'clicked()'), self.onTopicRemoveButtonClicked)
QtCore.QObject.connect(self.TopicRemoveItem,
QtCore.SIGNAL(u'clicked()'), self.onTopicRemovefromSongItemClicked)
QtCore.QObject.connect(self.TopicsListView, QtCore.QObject.connect(self.TopicsListView,
QtCore.SIGNAL(u'itemClicked(QListWidgetItem*)'), self.onTopicListViewPressed) QtCore.SIGNAL(u'itemClicked(QListWidgetItem*)'), self.onTopicListViewPressed)
# QtCore.QObject.connect(self.AddSongBookButton, QtCore.QObject.connect(self.CopyrightInsertButton,
# QtCore.SIGNAL(u'clicked()'), self.onAddSongBookButtonClicked) QtCore.SIGNAL(u'clicked()'), self.onCopyrightInsertButtonTriggered)
QtCore.QObject.connect(self.CopyrightInsertItem, QtCore.QObject.connect(self.VerseAddButton,
QtCore.SIGNAL(u'clicked()'), self.onCopyrightInsertItemTriggered) QtCore.SIGNAL(u'clicked()'), self.onVerseAddButtonClicked)
QtCore.QObject.connect(self.AddButton, QtCore.QObject.connect(self.VerseEditButton,
QtCore.SIGNAL(u'clicked()'), self.onAddVerseButtonClicked) QtCore.SIGNAL(u'clicked()'), self.onVerseEditButtonClicked)
QtCore.QObject.connect(self.EditButton, QtCore.QObject.connect(self.VerseDeleteButton,
QtCore.SIGNAL(u'clicked()'), self.onEditVerseButtonClicked) QtCore.SIGNAL(u'clicked()'), self.onVerseDeleteButtonClicked)
QtCore.QObject.connect(self.DeleteButton,
QtCore.SIGNAL(u'clicked()'), self.onDeleteVerseButtonClicked)
QtCore.QObject.connect(self.VerseListWidget, QtCore.QObject.connect(self.VerseListWidget,
QtCore.SIGNAL(u'itemClicked(QListWidgetItem*)'), self.onVerseListViewPressed) QtCore.SIGNAL(u'itemClicked(QListWidgetItem*)'), self.onVerseListViewPressed)
QtCore.QObject.connect(self.SongbookCombo, QtCore.QObject.connect(self.SongbookCombo,
@ -75,9 +71,6 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
# Create other objects and forms # Create other objects and forms
self.songmanager = songmanager self.songmanager = songmanager
self.eventmanager = eventmanager self.eventmanager = eventmanager
# self.authors_form = AuthorsForm(self.songmanager)
# self.topics_form = TopicsForm(self.songmanager)
# self.song_book_form = SongBookForm(self.songmanager)
self.verse_form = EditVerseForm() self.verse_form = EditVerseForm()
self.initialise() self.initialise()
self.AuthorsListView.setSortingEnabled(False) self.AuthorsListView.setSortingEnabled(False)
@ -86,10 +79,10 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
self.TopicsListView.setAlternatingRowColors(True) self.TopicsListView.setAlternatingRowColors(True)
def initialise(self): def initialise(self):
self.EditButton.setEnabled(False) self.VerseEditButton.setEnabled(False)
self.DeleteButton.setEnabled(False) self.VerseDeleteButton.setEnabled(False)
self.AuthorRemoveItem.setEnabled(False) self.AuthorRemoveButton.setEnabled(False)
self.TopicRemoveItem.setEnabled(False) self.TopicRemoveButton.setEnabled(False)
self.title_change = False self.title_change = False
def loadAuthors(self): def loadAuthors(self):
@ -208,7 +201,7 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
self.title_change = False self.title_change = False
self.TitleEditItem.setFocus(QtCore.Qt.OtherFocusReason) self.TitleEditItem.setFocus(QtCore.Qt.OtherFocusReason)
def onAuthorAddtoSongItemClicked(self): def onAuthorAddButtonClicked(self):
item = int(self.AuthorsSelectionComboItem.currentIndex()) item = int(self.AuthorsSelectionComboItem.currentIndex())
if item > -1: if item > -1:
item_id = (self.AuthorsSelectionComboItem.itemData(item)).toInt()[0] item_id = (self.AuthorsSelectionComboItem.itemData(item)).toInt()[0]
@ -220,9 +213,9 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
def onAuthorsListViewPressed(self): def onAuthorsListViewPressed(self):
if self.AuthorsListView.count() > 1: if self.AuthorsListView.count() > 1:
self.AuthorRemoveItem.setEnabled(True) self.AuthorRemoveButton.setEnabled(True)
def onAuthorRemovefromSongItemClicked(self): def onAuthorRemoveButtonClicked(self):
self.AuthorRemoveItem.setEnabled(False) self.AuthorRemoveItem.setEnabled(False)
item = self.AuthorsListView.currentItem() item = self.AuthorsListView.currentItem()
author_id = (item.data(QtCore.Qt.UserRole)).toInt()[0] author_id = (item.data(QtCore.Qt.UserRole)).toInt()[0]
@ -231,10 +224,12 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
row = self.AuthorsListView.row(item) row = self.AuthorsListView.row(item)
self.AuthorsListView.takeItem(row) self.AuthorsListView.takeItem(row)
def onTopicAddtoSongItemClicked(self): def onTopicAddButtonClicked(self):
item = int(self.SongTopicCombo.currentIndex()) item = int(self.SongTopicCombo.currentIndex())
if item > -1: if item > -1:
item_id = (self.SongTopicCombo.itemData(item)).toInt()[0] item_id = (self.SongTopicCombo.itemData(item)).toInt()[0]
print item_id
print self.TopicsListView
topic = self.songmanager.get_topic(item_id) topic = self.songmanager.get_topic(item_id)
self.song.topics.append(topic) self.song.topics.append(topic)
topic_item = QtGui.QListWidgetItem(unicode(topic.name)) topic_item = QtGui.QListWidgetItem(unicode(topic.name))
@ -242,10 +237,10 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
self.TopicsListView.addItem(topic_item) self.TopicsListView.addItem(topic_item)
def onTopicListViewPressed(self): def onTopicListViewPressed(self):
self.TopicRemoveItem.setEnabled(True) self.TopicRemoveButton.setEnabled(True)
def onTopicRemovefromSongItemClicked(self): def onTopicRemoveButtonClicked(self):
self.TopicRemoveItem.setEnabled(False) self.TopicRemoveButton.setEnabled(False)
item = self.TopicsListView.currentItem() item = self.TopicsListView.currentItem()
topic_id = (item.data(QtCore.Qt.UserRole)).toInt()[0] topic_id = (item.data(QtCore.Qt.UserRole)).toInt()[0]
topic = self.songmanager.get_topic(topic_id) topic = self.songmanager.get_topic(topic_id)
@ -293,29 +288,29 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
self.song.theme_name = them_name self.song.theme_name = them_name
def onVerseListViewPressed(self): def onVerseListViewPressed(self):
self.EditButton.setEnabled(True) self.VerseEditButton.setEnabled(True)
self.DeleteButton.setEnabled(True) self.VerseDeleteButton.setEnabled(True)
def onAddVerseButtonClicked(self): def onVerseAddButtonClicked(self):
self.verse_form.setVerse(u'') self.verse_form.setVerse(u'')
self.verse_form.exec_() self.verse_form.exec_()
self.VerseListWidget.addItem(self.verse_form.getVerse()) self.VerseListWidget.addItem(self.verse_form.getVerse())
def onEditVerseButtonClicked(self): def onVerseEditButtonClicked(self):
item = self.VerseListWidget.currentItem() item = self.VerseListWidget.currentItem()
if item is not None: if item is not None:
self.verse_form.setVerse(item.text()) self.verse_form.setVerse(item.text())
self.verse_form.exec_() self.verse_form.exec_()
item.setText(self.verse_form.getVerse()) item.setText(self.verse_form.getVerse())
self.VerseListWidget.repaint() self.VerseListWidget.repaint()
self.EditButton.setEnabled(False) self.VerseEditButton.setEnabled(False)
self.DeleteButton.setEnabled(False) self.VerseDeleteButton.setEnabled(False)
def onDeleteVerseButtonClicked(self): def onVerseDeleteButtonClicked(self):
item = self.VerseListWidget.takeItem(self.VerseListWidget.currentRow()) item = self.VerseListWidget.takeItem(self.VerseListWidget.currentRow())
item = None item = None
self.EditButton.setEnabled(False) self.VerseEditButton.setEnabled(False)
self.DeleteButton.setEnabled(False) self.VerseDeleteButton.setEnabled(False)
def _validate_song(self): def _validate_song(self):
""" """
@ -354,7 +349,7 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
def on_CCLNumberEdit_lostFocus(self): def on_CCLNumberEdit_lostFocus(self):
self.song.ccli_number = self.CCLNumberEdit.text() self.song.ccli_number = self.CCLNumberEdit.text()
def onCopyrightInsertItemTriggered(self): def onCopyrightInsertButtonTriggered(self):
text = self.CopyrightEditItem.displayText() text = self.CopyrightEditItem.displayText()
pos = self.CopyrightEditItem.cursorPosition() pos = self.CopyrightEditItem.cursorPosition()
text = text[:pos] + u'©' + text[pos:] text = text[:pos] + u'©' + text[pos:]

View File

@ -20,10 +20,10 @@ Place, Suite 330, Boston, MA 02111-1307 USA
import logging import logging
from PyQt4 import QtCore, QtGui from PyQt4 import QtCore, QtGui
from openlp.core.lib import MediaManagerItem, translate, ServiceItem, \ from openlp.core.lib import MediaManagerItem, translate, ServiceItem, \
SongXMLParser, contextMenuAction, contextMenuSeparator SongXMLParser, contextMenuAction, contextMenuSeparator
from openlp.plugins.songs.forms import EditSongForm, AuthorsForm, \ from openlp.plugins.songs.forms import EditSongForm, SongMaintenanceForm
TopicsForm, SongBookForm, SongMaintenanceForm
class SongList(QtGui.QListWidget): class SongList(QtGui.QListWidget):
@ -59,7 +59,7 @@ class SongMediaItem(MediaManagerItem):
self.PluginTextShort = u'Song' self.PluginTextShort = u'Song'
self.ConfigSection = u'song' self.ConfigSection = u'song'
MediaManagerItem.__init__(self, parent, icon, title) MediaManagerItem.__init__(self, parent, icon, title)
self.edit_song_form = EditSongForm(self.parent.songmanager, self.parent.event_manager) self.edit_song_form = EditSongForm(self.parent.songmanager, self.parent.event_manager, self)
self.song_maintenance_form = SongMaintenanceForm(self.parent.songmanager, self) self.song_maintenance_form = SongMaintenanceForm(self.parent.songmanager, self)
def setupUi(self): def setupUi(self):

View File

@ -1,3 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0"> <ui version="4.0">
<class>EditSongDialog</class> <class>EditSongDialog</class>
<widget class="QDialog" name="EditSongDialog"> <widget class="QDialog" name="EditSongDialog">
@ -5,179 +6,150 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>786</width> <width>645</width>
<height>704</height> <height>417</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Song Editor</string> <string>Song Editor</string>
</property> </property>
<property name="windowIcon"> <property name="windowIcon">
<iconset resource="../images/openlp-2.qrc" > <iconset>
<normaloff>:/icon/openlp.org-icon-32.bmp</normaloff>:/icon/openlp.org-icon-32.bmp</iconset> <normaloff>:/icon/openlp.org-icon-32.bmp</normaloff>:/icon/openlp.org-icon-32.bmp</iconset>
</property> </property>
<property name="modal"> <property name="modal">
<bool>true</bool> <bool>true</bool>
</property> </property>
<layout class="QVBoxLayout" name="EditSongLayout" > <layout class="QVBoxLayout" name="verticalLayout">
<property name="spacing" >
<number>8</number>
</property>
<property name="margin"> <property name="margin">
<number>8</number> <number>8</number>
</property> </property>
<item> <item>
<widget class="QWidget" native="1" name="TopWidget" > <widget class="QTabWidget" name="SongTabWidget">
<layout class="QHBoxLayout" name="TopLayout" > <property name="currentIndex">
<property name="spacing" >
<number>8</number>
</property>
<property name="margin" >
<number>0</number> <number>0</number>
</property> </property>
<item> <widget class="QWidget" name="LyricsTab">
<widget class="QWidget" native="1" name="TextWidget" > <attribute name="title">
<layout class="QVBoxLayout" name="DetailsLayout" > <string>Title &amp;&amp; Lyrics</string>
</attribute>
<layout class="QGridLayout" name="LyricsTabLayout">
<property name="margin">
<number>8</number>
</property>
<property name="spacing"> <property name="spacing">
<number>8</number> <number>8</number>
</property> </property>
<property name="margin" > <item row="0" column="0">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="TitleLabel"> <widget class="QLabel" name="TitleLabel">
<property name="text"> <property name="text">
<string>Title:</string> <string>Title:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="0" column="1" colspan="2">
<widget class="QLineEdit" name="TitleEditItem"> <widget class="QLineEdit" name="TitleEditItem">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Fixed" hsizetype="Expanding" > <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="0">
<widget class="QLabel" name="AlternativeTitleLabel"> <widget class="QLabel" name="AlternativeTitleLabel">
<property name="text"> <property name="text">
<string>Alternative Title:</string> <string>Alternative Title:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="1" colspan="2">
<widget class="QLineEdit" name="AlternativeEdit"/> <widget class="QLineEdit" name="AlternativeEdit"/>
</item> </item>
<item> <item row="2" column="0">
<widget class="QLabel" name="LyricsLabel"> <widget class="QLabel" name="LyricsLabel">
<property name="text"> <property name="text">
<string>Lyrics:</string> <string>Lyrics:</string>
</property> </property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
</widget> </widget>
</item> </item>
<item> <item row="2" column="1">
<widget class="QWidget" native="1" name="VerseEditWidget" >
<layout class="QVBoxLayout" name="VerseEditLayout" >
<property name="spacing" >
<number>8</number>
</property>
<property name="margin" >
<number>0</number>
</property>
<item>
<widget class="QListWidget" name="VerseListWidget"/> <widget class="QListWidget" name="VerseListWidget"/>
</item> </item>
<item> <item row="4" column="0">
<widget class="QWidget" native="1" name="VerseButtonWidget" >
<layout class="QHBoxLayout" name="VerseButtonLayout" >
<property name="spacing" >
<number>8</number>
</property>
<property name="margin" >
<number>0</number>
</property>
<item>
<spacer name="ButtonSpacer" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="AddButton" >
<property name="text" >
<string>Add</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="EditButton" >
<property name="text" >
<string>Edit</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="DeleteButton" >
<property name="text" >
<string>Delete</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QLabel" name="VerseOrderLabel"> <widget class="QLabel" name="VerseOrderLabel">
<property name="text"> <property name="text">
<string>Verse Order:</string> <string>Verse Order:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="4" column="1" colspan="2">
<widget class="QLineEdit" name="VerseOrderEdit"/> <widget class="QLineEdit" name="VerseOrderEdit"/>
</item> </item>
<item row="2" column="2">
<widget class="QWidget" name="VerseButtonWidget" native="true">
<layout class="QVBoxLayout" name="VerseButtonsLayout">
<property name="spacing">
<number>8</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item> <item>
<widget class="QLabel" name="CommentsLabel" > <widget class="QPushButton" name="VerseAddButton">
<property name="text"> <property name="text">
<string>Comments:</string> <string>Add</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QTextEdit" name="CommentsEdit" > <widget class="QPushButton" name="VerseEditButton">
<property name="sizePolicy" > <property name="text">
<sizepolicy vsizetype="Fixed" hsizetype="Preferred" > <string>Edit</string>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property> </property>
<property name="maximumSize" > </widget>
</item>
<item>
<widget class="QPushButton" name="VerseEditAllButton">
<property name="text">
<string>Edit All</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="VerseDeleteButton">
<property name="text">
<string>Delete</string>
</property>
</widget>
</item>
<item>
<spacer name="VerseSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size> <size>
<width>16777215</width> <width>20</width>
<height>84</height> <height>40</height>
</size> </size>
</property> </property>
</spacer>
</item>
</layout>
</widget> </widget>
</item> </item>
<item> </layout>
<widget class="QGroupBox" name="ThemeGroupBox" > </widget>
<property name="title" > <widget class="QWidget" name="AuthorsTab">
<string>Theme</string> <attribute name="title">
</property> <string>Authors, Topics &amp;&amp; Book</string>
<layout class="QHBoxLayout" name="ThemeLayout" > </attribute>
<layout class="QHBoxLayout" name="AuthorsTabLayout">
<property name="spacing"> <property name="spacing">
<number>8</number> <number>8</number>
</property> </property>
@ -185,42 +157,8 @@
<number>8</number> <number>8</number>
</property> </property>
<item> <item>
<widget class="QComboBox" name="ThemeSelectionComboItem" /> <widget class="QWidget" name="AuthorsMaintenanceWidget" native="true">
</item> <layout class="QVBoxLayout" name="AuthorsMaintenanceLayout">
<item>
<widget class="QPushButton" name="ThemeAddItem" >
<property name="maximumSize" >
<size>
<width>110</width>
<height>16777215</height>
</size>
</property>
<property name="text" >
<string>Add a Theme</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" native="1" name="AdditionalWidget" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize" >
<size>
<width>100</width>
<height>0</height>
</size>
</property>
<layout class="QVBoxLayout" name="AdditionalLayout" >
<property name="spacing"> <property name="spacing">
<number>8</number> <number>8</number>
</property> </property>
@ -240,8 +178,8 @@
<number>8</number> <number>8</number>
</property> </property>
<item> <item>
<widget class="QWidget" native="1" name="AuthorAddWidget" > <widget class="QWidget" name="AuthorAddWidget" native="true">
<layout class="QHBoxLayout" name="AddAuthorLayout" > <layout class="QHBoxLayout" name="AuthorAddLayout">
<property name="spacing"> <property name="spacing">
<number>8</number> <number>8</number>
</property> </property>
@ -251,7 +189,7 @@
<item> <item>
<widget class="QComboBox" name="AuthorsSelectionComboItem"> <widget class="QComboBox" name="AuthorsSelectionComboItem">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Fixed" hsizetype="Preferred" > <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
@ -271,7 +209,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="AuthorAddtoSongItem" > <widget class="QPushButton" name="AuthorAddButton">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>110</width> <width>110</width>
@ -279,7 +217,7 @@
</size> </size>
</property> </property>
<property name="text"> <property name="text">
<string>Add to Song</string> <string>&amp;Add to Song</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -287,14 +225,14 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QTableWidget" name="AuthorsListView" > <widget class="QListWidget" name="AuthorsListView">
<property name="alternatingRowColors"> <property name="alternatingRowColors">
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QWidget" native="1" name="AuthorRemoveWidget" > <widget class="QWidget" name="AuthorRemoveWidget" native="true">
<layout class="QHBoxLayout" name="AuthorRemoveLayout"> <layout class="QHBoxLayout" name="AuthorRemoveLayout">
<property name="spacing"> <property name="spacing">
<number>8</number> <number>8</number>
@ -316,16 +254,148 @@
</spacer> </spacer>
</item> </item>
<item> <item>
<widget class="QPushButton" name="AuthorRemoveItem" > <widget class="QPushButton" name="AuthorRemoveButton">
<property name="text"> <property name="text">
<string>Remove</string> <string>&amp;Remove</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="MaintenanceWidget" native="true">
<layout class="QHBoxLayout" name="MaintenanceLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QPushButton" name="MaintenanceButton">
<property name="text">
<string>&amp;Manage Authors, Topics, Books</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="AddAuthorsButton" > <spacer name="MaintenanceSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>66</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="TopicBookWidget" native="true">
<layout class="QVBoxLayout" name="TopicBookLayout">
<property name="spacing">
<number>8</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QGroupBox" name="TopicGroupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Topic</string>
</property>
<layout class="QVBoxLayout" name="TopicLayout">
<property name="spacing">
<number>8</number>
</property>
<property name="margin">
<number>8</number>
</property>
<item>
<widget class="QWidget" name="TopicAddWidget" native="true">
<layout class="QHBoxLayout" name="TopicAddLayout">
<property name="spacing">
<number>8</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QComboBox" name="SongTopicCombo">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="TopicAddButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text"> <property name="text">
<string>Manage Authors</string> <string>A&amp;dd to Song</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QListWidget" name="TopicsListView">
<property name="alternatingRowColors">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QWidget" name="TopicRemoveWidget" native="true">
<layout class="QHBoxLayout" name="TopicRemoveLayout">
<property name="spacing">
<number>8</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item>
<spacer name="TopicsSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="TopicRemoveButton">
<property name="text">
<string>R&amp;emove</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -350,41 +420,62 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QComboBox" name="SongbookCombo"> <widget class="QComboBox" name="SongbookCombo">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" > <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="1" >
<widget class="QPushButton" name="AddSongBookButton" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Minimum" hsizetype="Minimum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Manage Song Books</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
</layout>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="ThemeTab">
<attribute name="title">
<string>Theme, Copyright Info &amp;&amp; Comments</string>
</attribute>
<layout class="QVBoxLayout" name="ThemeTabLayout">
<property name="spacing">
<number>8</number>
</property>
<property name="margin">
<number>8</number>
</property>
<item> <item>
<widget class="QGroupBox" name="TopicGroupBox" > <widget class="QWidget" name="ThemeCopyCommentsWidget" native="true">
<layout class="QHBoxLayout" name="ThemeCopyCommentsLayout">
<property name="spacing">
<number>8</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QWidget" name="TextWidget" native="true">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" > <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
</property> </property>
<layout class="QVBoxLayout" name="DetailsLayout">
<property name="spacing">
<number>8</number>
</property>
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QGroupBox" name="ThemeGroupBox">
<property name="title"> <property name="title">
<string>Topic</string> <string>Theme</string>
</property> </property>
<layout class="QVBoxLayout" name="TopicLayout" > <layout class="QHBoxLayout" name="ThemeLayout">
<property name="spacing"> <property name="spacing">
<number>8</number> <number>8</number>
</property> </property>
@ -392,93 +483,34 @@
<number>8</number> <number>8</number>
</property> </property>
<item> <item>
<widget class="QWidget" native="1" name="TopicAddWidget" > <widget class="QComboBox" name="ThemeSelectionComboItem"/>
<layout class="QHBoxLayout" name="TopicAddLayout" >
<property name="spacing" >
<number>8</number>
</property>
<property name="margin" >
<number>0</number>
</property>
<item>
<widget class="QComboBox" name="SongTopicCombo" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="AddTopicsToSongButton" > <widget class="QPushButton" name="ThemeAddButton">
<property name="sizePolicy" > <property name="maximumSize">
<sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Add to Song</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QTableWidget" name="ToticsListView" >
<property name="alternatingRowColors" >
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QWidget" native="1" name="TopicRemoveWidget" >
<layout class="QHBoxLayout" name="TopicRemoveLayout" >
<property name="spacing" >
<number>8</number>
</property>
<property name="margin" >
<number>0</number>
</property>
<item>
<spacer name="TopicsSpacer" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0" >
<size> <size>
<width>40</width> <width>110</width>
<height>20</height> <height>16777215</height>
</size> </size>
</property> </property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton" >
<property name="text"> <property name="text">
<string>Remove</string> <string>Add a Theme</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="AddTopicButton" >
<property name="text" >
<string>Manage Topics</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget> </widget>
</item> </item>
</layout>
</widget>
</item>
<item> <item>
<widget class="QGroupBox" name="CopyrightgroupBox" > <widget class="QGroupBox" name="CopyrightGroupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title"> <property name="title">
<string>Copyright Infomaton</string> <string>Copyright Information</string>
</property> </property>
<layout class="QVBoxLayout" name="CopyrightLayout"> <layout class="QVBoxLayout" name="CopyrightLayout">
<property name="spacing"> <property name="spacing">
@ -488,7 +520,7 @@
<number>8</number> <number>8</number>
</property> </property>
<item> <item>
<widget class="QWidget" native="1" name="CopyrightWidget" > <widget class="QWidget" name="CopyrightWidget" native="true">
<layout class="QHBoxLayout" name="CopyLayout"> <layout class="QHBoxLayout" name="CopyLayout">
<property name="spacing"> <property name="spacing">
<number>8</number> <number>8</number>
@ -500,7 +532,7 @@
<widget class="QLineEdit" name="CopyrightEditItem"/> <widget class="QLineEdit" name="CopyrightEditItem"/>
</item> </item>
<item> <item>
<widget class="QPushButton" name="CopyrightInsertItem" > <widget class="QPushButton" name="CopyrightInsertButton">
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>29</width> <width>29</width>
@ -516,7 +548,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QWidget" native="1" name="CcliWidget" > <widget class="QWidget" name="CcliWidget" native="true">
<layout class="QHBoxLayout" name="CCLILayout"> <layout class="QHBoxLayout" name="CCLILayout">
<property name="spacing"> <property name="spacing">
<number>8</number> <number>8</number>
@ -540,12 +572,79 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item>
<spacer name="ThemeCopySpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="CommentsGroupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Comments</string>
</property>
<layout class="QVBoxLayout" name="CommentsLayout">
<property name="spacing">
<number>0</number>
</property>
<property name="margin">
<number>8</number>
</property>
<item>
<widget class="QTextEdit" name="CommentsEdit">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget> </widget>
</item> </item>
<item>
<spacer name="ThemeTabSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
</item>
<item> <item>
<widget class="QDialogButtonBox" name="ButtonBox"> <widget class="QDialogButtonBox" name="ButtonBox">
<property name="standardButtons"> <property name="standardButtons">
@ -556,23 +655,31 @@
</layout> </layout>
</widget> </widget>
<tabstops> <tabstops>
<tabstop>SongTabWidget</tabstop>
<tabstop>TitleEditItem</tabstop> <tabstop>TitleEditItem</tabstop>
<tabstop>AlternativeEdit</tabstop> <tabstop>AlternativeEdit</tabstop>
<tabstop>VerseListWidget</tabstop>
<tabstop>VerseAddButton</tabstop>
<tabstop>VerseEditButton</tabstop>
<tabstop>VerseEditAllButton</tabstop>
<tabstop>VerseDeleteButton</tabstop>
<tabstop>VerseOrderEdit</tabstop> <tabstop>VerseOrderEdit</tabstop>
<tabstop>CommentsEdit</tabstop> <tabstop>AuthorsSelectionComboItem</tabstop>
<tabstop>ThemeSelectionComboItem</tabstop> <tabstop>AuthorAddButton</tabstop>
<tabstop>ThemeAddItem</tabstop>
<tabstop>AuthorAddtoSongItem</tabstop>
<tabstop>AuthorsListView</tabstop> <tabstop>AuthorsListView</tabstop>
<tabstop>AuthorRemoveItem</tabstop> <tabstop>AuthorRemoveButton</tabstop>
<tabstop>SongbookCombo</tabstop> <tabstop>MaintenanceButton</tabstop>
<tabstop>AddSongBookButton</tabstop>
<tabstop>SongTopicCombo</tabstop> <tabstop>SongTopicCombo</tabstop>
<tabstop>ToticsListView</tabstop> <tabstop>TopicAddButton</tabstop>
<tabstop>pushButton</tabstop> <tabstop>TopicsListView</tabstop>
<tabstop>TopicRemoveButton</tabstop>
<tabstop>SongbookCombo</tabstop>
<tabstop>ThemeSelectionComboItem</tabstop>
<tabstop>ThemeAddButton</tabstop>
<tabstop>CopyrightEditItem</tabstop> <tabstop>CopyrightEditItem</tabstop>
<tabstop>CopyrightInsertItem</tabstop> <tabstop>CopyrightInsertButton</tabstop>
<tabstop>CCLNumberEdit</tabstop> <tabstop>CCLNumberEdit</tabstop>
<tabstop>CommentsEdit</tabstop>
<tabstop>ButtonBox</tabstop> <tabstop>ButtonBox</tabstop>
</tabstops> </tabstops>
<resources> <resources>