diff --git a/.eric4project/openlp.org 2.0.e4q b/.eric4project/openlp.org 2.0.e4q
index 4a92dfa4d..c6ed798c5 100644
--- a/.eric4project/openlp.org 2.0.e4q
+++ b/.eric4project/openlp.org 2.0.e4q
@@ -1,7 +1,7 @@
-
+
\ No newline at end of file
diff --git a/.eric4project/openlp.org 2.0.e4t b/.eric4project/openlp.org 2.0.e4t
index 48ea174cf..3b80600ce 100644
--- a/.eric4project/openlp.org 2.0.e4t
+++ b/.eric4project/openlp.org 2.0.e4t
@@ -1,7 +1,7 @@
-
+
TODO: what is the tags for bridge, pre-chorus?
diff --git a/openlp.org 2.0.e4p b/openlp.org 2.0.e4p
index 7225ae572..cb6b4b928 100644
--- a/openlp.org 2.0.e4p
+++ b/openlp.org 2.0.e4p
@@ -1,7 +1,7 @@
-
+
Python
@@ -118,9 +118,10 @@
-
+
+
@@ -134,12 +135,12 @@
-
+
diff --git a/openlp/plugins/songs/forms/authorsform.py b/openlp/plugins/songs/forms/authorsform.py
index 0cd97e9e4..95877f18e 100644
--- a/openlp/plugins/songs/forms/authorsform.py
+++ b/openlp/plugins/songs/forms/authorsform.py
@@ -35,35 +35,40 @@ class AuthorsForm(QDialog, Ui_AuthorsDialog):
"""
QDialog.__init__(self, parent)
self.setupUi(self)
- self.songmanager = songmanager
+ self.songmanager = songmanager
self.AuthorListView.setColumnCount(2)
self.AuthorListView.setColumnHidden(0, True)
self.AuthorListView.setColumnWidth(1, 300)
- self.AuthorListView.setHorizontalHeaderLabels(QtCore.QStringList([" ","Author"]))
+ #self.AuthorListView.setHorizontalHeaderLabels(QtCore.QStringList([" ","Author"]))
+ self.AuthorListView.horizontalHeader().setVisible(False)
+ self.AuthorListView.verticalHeader().setVisible(False)
self.currentrow = 0
self.author = None
-
+
def load_form(self):
"""
Refresh the screen and rest fields
- """
+ """
self.on_ClearButton_clicked() # tidy up screen
authors = self.songmanager.get_authors()
self.AuthorListView.clear() # clear the results
- self.AuthorListView.setHorizontalHeaderLabels(QtCore.QStringList([" ","Author"]))
+ #self.AuthorListView.setHorizontalHeaderLabels(QtCore.QStringList([" ","Author"]))
+ self.AuthorListView.horizontalHeader().setVisible(False)
+ self.AuthorListView.verticalHeader().setVisible(False)
self.AuthorListView.setRowCount(0)
for author in authors:
- c = self.AuthorListView.rowCount()
- self.AuthorListView.setRowCount(c+1)
- twi = QtGui.QTableWidgetItem(str(author.id))
- self.AuthorListView.setItem(c , 0, twi)
- twi = QtGui.QTableWidgetItem(str(author.display_name))
- twi.setFlags(QtCore.Qt.ItemIsSelectable)
- self.AuthorListView.setItem(c , 1, twi)
- self.AuthorListView.setRowHeight(c, 20)
- c = self.AuthorListView.rowCount()
- if self.currentrow > c: # incase we have delete the last row of the table
- self.currentrow = c
+ row_count = self.AuthorListView.rowCount()
+ self.AuthorListView.setRowCount(row_count + 1)
+ author_id = QtGui.QTableWidgetItem(str(author.id))
+ self.AuthorListView.setItem(row_count, 0, author_id)
+ display_name = QtGui.QTableWidgetItem(author.display_name)
+ display_name.setFlags(QtCore.Qt.ItemIsSelectable)
+ self.AuthorListView.setItem(row_count, 1, display_name)
+ self.AuthorListView.setRowHeight(row_count, 20)
+ row_count = self.AuthorListView.rowCount()
+ if self.currentrow > row_count:
+ # in case we have delete the last row of the table
+ self.currentrow = row_count
self.AuthorListView.selectRow(self.currentrow) # set selected row to previous selected row
self._validate_form()
@@ -75,11 +80,11 @@ class AuthorsForm(QDialog, Ui_AuthorsDialog):
self.songmanager.delete_author(self.author.id)
self.on_ClearButton_clicked()
self.load_form()
-
+
@pyqtSignature("")
- def on_DisplayEdit_lostFocus(self):
+ def on_DisplayEdit_lostFocus(self):
self._validate_form()
-
+
@pyqtSignature("")
def on_AddUpdateButton_clicked(self):
"""
@@ -93,9 +98,9 @@ class AuthorsForm(QDialog, Ui_AuthorsDialog):
self.songmanager.save_author(self.author)
self.on_ClearButton_clicked()
self.load_form()
- self._validate_form()
-
-
+ self._validate_form()
+
+
@pyqtSignature("")
def on_ClearButton_clicked(self):
"""
@@ -107,8 +112,8 @@ class AuthorsForm(QDialog, Ui_AuthorsDialog):
self.MessageLabel.setText("")
self.DeleteButton.setEnabled(False)
self.author = None
- self._validate_form()
-
+ self._validate_form()
+
@pyqtSignature("QTableWidgetItem*")
def on_AuthorListView_itemClicked(self, item):
"""
@@ -122,15 +127,15 @@ class AuthorsForm(QDialog, Ui_AuthorsDialog):
self.DisplayEdit.setText(self.author.display_name)
self.FirstNameEdit.setText(self.author.first_name)
self.LastNameEdit.setText(self.author.last_name)
- songs = self.songmanager.get_song_authors_for_author(id)
- if len(songs) > 0:
+ #songs = self.songmanager.get_song_authors_for_author(id)
+ if len(self.author.songs) > 0:
self.MessageLabel.setText("Author in use 'Delete' is disabled")
self.DeleteButton.setEnabled(False)
else:
self.MessageLabel.setText("Author is not used")
- self.DeleteButton.setEnabled(True)
- self._validate_form()
-
+ self.DeleteButton.setEnabled(True)
+ self._validate_form()
+
def _validate_form(self):
if len(self.DisplayEdit.displayText()) == 0: # We need at lease a display name
self.AddUpdateButton.setEnabled(False)
diff --git a/openlp/plugins/songs/forms/editsongdialog.py b/openlp/plugins/songs/forms/editsongdialog.py
index 30544427b..70c501e15 100644
--- a/openlp/plugins/songs/forms/editsongdialog.py
+++ b/openlp/plugins/songs/forms/editsongdialog.py
@@ -2,7 +2,7 @@
# Form implementation generated from reading ui file '/home/raoul/Projects/openlp-2/resources/forms/editsongdialog.ui'
#
-# Created: Tue Feb 17 22:32:47 2009
+# Created: Thu Feb 19 23:35:35 2009
# by: PyQt4 UI code generator 4.4.4
#
# WARNING! All changes made in this file will be lost!
@@ -11,29 +11,29 @@ from PyQt4 import QtCore, QtGui
class Ui_EditSongDialog(object):
def setupUi(self, EditSongDialog):
- EditSongDialog.setObjectName('EditSongDialog')
- EditSongDialog.resize(786, 634)
+ EditSongDialog.setObjectName("EditSongDialog")
+ EditSongDialog.resize(786, 669)
icon = QtGui.QIcon()
- icon.addPixmap(QtGui.QPixmap(':/icon/openlp.org-icon-32.bmp'), 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)
self.EditSongLayout = QtGui.QVBoxLayout(EditSongDialog)
self.EditSongLayout.setSpacing(8)
self.EditSongLayout.setMargin(8)
- self.EditSongLayout.setObjectName('EditSongLayout')
+ self.EditSongLayout.setObjectName("EditSongLayout")
self.TopWidget = QtGui.QWidget(EditSongDialog)
- self.TopWidget.setObjectName('TopWidget')
+ self.TopWidget.setObjectName("TopWidget")
self.TopLayout = QtGui.QHBoxLayout(self.TopWidget)
self.TopLayout.setSpacing(8)
self.TopLayout.setMargin(0)
- self.TopLayout.setObjectName('TopLayout')
+ self.TopLayout.setObjectName("TopLayout")
self.TextWidget = QtGui.QWidget(self.TopWidget)
- self.TextWidget.setObjectName('TextWidget')
+ self.TextWidget.setObjectName("TextWidget")
self.DetailsLayout = QtGui.QVBoxLayout(self.TextWidget)
self.DetailsLayout.setSpacing(8)
self.DetailsLayout.setMargin(0)
- self.DetailsLayout.setObjectName('DetailsLayout')
+ self.DetailsLayout.setObjectName("DetailsLayout")
self.TitleLabel = QtGui.QLabel(self.TextWidget)
- self.TitleLabel.setObjectName('TitleLabel')
+ self.TitleLabel.setObjectName("TitleLabel")
self.DetailsLayout.addWidget(self.TitleLabel)
self.TitleEditItem = QtGui.QLineEdit(self.TextWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed)
@@ -41,67 +41,83 @@ class Ui_EditSongDialog(object):
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.TitleEditItem.sizePolicy().hasHeightForWidth())
self.TitleEditItem.setSizePolicy(sizePolicy)
- self.TitleEditItem.setObjectName('TitleEditItem')
+ self.TitleEditItem.setObjectName("TitleEditItem")
self.DetailsLayout.addWidget(self.TitleEditItem)
self.AlternativeTitleLabel = QtGui.QLabel(self.TextWidget)
- self.AlternativeTitleLabel.setObjectName('AlternativeTitleLabel')
+ self.AlternativeTitleLabel.setObjectName("AlternativeTitleLabel")
self.DetailsLayout.addWidget(self.AlternativeTitleLabel)
self.AlternativeEdit = QtGui.QLineEdit(self.TextWidget)
- self.AlternativeEdit.setObjectName('AlternativeEdit')
+ self.AlternativeEdit.setObjectName("AlternativeEdit")
self.DetailsLayout.addWidget(self.AlternativeEdit)
self.LyricsLabel = QtGui.QLabel(self.TextWidget)
- self.LyricsLabel.setObjectName('LyricsLabel')
+ self.LyricsLabel.setObjectName("LyricsLabel")
self.DetailsLayout.addWidget(self.LyricsLabel)
self.LyricsTextEdit = QtGui.QTextEdit(self.TextWidget)
+ sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.MinimumExpanding)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.LyricsTextEdit.sizePolicy().hasHeightForWidth())
+ self.LyricsTextEdit.setSizePolicy(sizePolicy)
self.LyricsTextEdit.setLineWrapMode(QtGui.QTextEdit.NoWrap)
self.LyricsTextEdit.setAcceptRichText(False)
- self.LyricsTextEdit.setObjectName('LyricsTextEdit')
+ self.LyricsTextEdit.setObjectName("LyricsTextEdit")
self.DetailsLayout.addWidget(self.LyricsTextEdit)
self.VerseOrderLabel = QtGui.QLabel(self.TextWidget)
- self.VerseOrderLabel.setObjectName('VerseOrderLabel')
+ self.VerseOrderLabel.setObjectName("VerseOrderLabel")
self.DetailsLayout.addWidget(self.VerseOrderLabel)
self.VerseOrderEdit = QtGui.QLineEdit(self.TextWidget)
- self.VerseOrderEdit.setObjectName('VerseOrderEdit')
+ self.VerseOrderEdit.setObjectName("VerseOrderEdit")
self.DetailsLayout.addWidget(self.VerseOrderEdit)
self.CommentsLabel = QtGui.QLabel(self.TextWidget)
- self.CommentsLabel.setObjectName('CommentsLabel')
+ self.CommentsLabel.setObjectName("CommentsLabel")
self.DetailsLayout.addWidget(self.CommentsLabel)
self.CommentsEdit = QtGui.QTextEdit(self.TextWidget)
- self.CommentsEdit.setObjectName('CommentsEdit')
+ sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.CommentsEdit.sizePolicy().hasHeightForWidth())
+ self.CommentsEdit.setSizePolicy(sizePolicy)
+ self.CommentsEdit.setObjectName("CommentsEdit")
self.DetailsLayout.addWidget(self.CommentsEdit)
self.ThemeGroupBox = QtGui.QGroupBox(self.TextWidget)
- self.ThemeGroupBox.setObjectName('ThemeGroupBox')
+ self.ThemeGroupBox.setObjectName("ThemeGroupBox")
self.ThemeLayout = QtGui.QHBoxLayout(self.ThemeGroupBox)
self.ThemeLayout.setSpacing(8)
self.ThemeLayout.setMargin(8)
- self.ThemeLayout.setObjectName('ThemeLayout')
+ self.ThemeLayout.setObjectName("ThemeLayout")
self.ThemeSelectionComboItem = QtGui.QComboBox(self.ThemeGroupBox)
- self.ThemeSelectionComboItem.setObjectName('ThemeSelectionComboItem')
+ self.ThemeSelectionComboItem.setObjectName("ThemeSelectionComboItem")
self.ThemeLayout.addWidget(self.ThemeSelectionComboItem)
self.ThemeAddItem = QtGui.QPushButton(self.ThemeGroupBox)
self.ThemeAddItem.setMaximumSize(QtCore.QSize(110, 16777215))
- self.ThemeAddItem.setObjectName('ThemeAddItem')
+ self.ThemeAddItem.setObjectName("ThemeAddItem")
self.ThemeLayout.addWidget(self.ThemeAddItem)
self.DetailsLayout.addWidget(self.ThemeGroupBox)
self.TopLayout.addWidget(self.TextWidget)
self.AdditionalWidget = QtGui.QWidget(self.TopWidget)
- self.AdditionalWidget.setObjectName('AdditionalWidget')
+ 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("AdditionalWidget")
self.AdditionalLayout = QtGui.QVBoxLayout(self.AdditionalWidget)
self.AdditionalLayout.setSpacing(8)
self.AdditionalLayout.setMargin(0)
- self.AdditionalLayout.setObjectName('AdditionalLayout')
+ self.AdditionalLayout.setObjectName("AdditionalLayout")
self.AuthorsGroupBox = QtGui.QGroupBox(self.AdditionalWidget)
- self.AuthorsGroupBox.setObjectName('AuthorsGroupBox')
+ self.AuthorsGroupBox.setObjectName("AuthorsGroupBox")
self.AuthorsLayout = QtGui.QVBoxLayout(self.AuthorsGroupBox)
self.AuthorsLayout.setSpacing(8)
self.AuthorsLayout.setMargin(8)
- self.AuthorsLayout.setObjectName('AuthorsLayout')
+ self.AuthorsLayout.setObjectName("AuthorsLayout")
self.AuthorAddWidget = QtGui.QWidget(self.AuthorsGroupBox)
- self.AuthorAddWidget.setObjectName('AuthorAddWidget')
+ self.AuthorAddWidget.setObjectName("AuthorAddWidget")
self.AddAuthorLayout = QtGui.QHBoxLayout(self.AuthorAddWidget)
self.AddAuthorLayout.setSpacing(8)
self.AddAuthorLayout.setMargin(0)
- self.AddAuthorLayout.setObjectName('AddAuthorLayout')
+ self.AddAuthorLayout.setObjectName("AddAuthorLayout")
self.AuthorsSelectionComboItem = QtGui.QComboBox(self.AuthorAddWidget)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
@@ -112,43 +128,48 @@ class Ui_EditSongDialog(object):
self.AuthorsSelectionComboItem.setInsertPolicy(QtGui.QComboBox.InsertAlphabetically)
self.AuthorsSelectionComboItem.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLength)
self.AuthorsSelectionComboItem.setMinimumContentsLength(8)
- self.AuthorsSelectionComboItem.setObjectName('AuthorsSelectionComboItem')
+ self.AuthorsSelectionComboItem.setObjectName("AuthorsSelectionComboItem")
self.AddAuthorLayout.addWidget(self.AuthorsSelectionComboItem)
- self.AddAuthorsButton = QtGui.QPushButton(self.AuthorAddWidget)
- self.AddAuthorsButton.setObjectName('AddAuthorsButton')
- self.AddAuthorLayout.addWidget(self.AddAuthorsButton)
self.AuthorAddtoSongItem = QtGui.QPushButton(self.AuthorAddWidget)
self.AuthorAddtoSongItem.setMaximumSize(QtCore.QSize(110, 16777215))
- self.AuthorAddtoSongItem.setObjectName('AuthorAddtoSongItem')
+ self.AuthorAddtoSongItem.setObjectName("AuthorAddtoSongItem")
self.AddAuthorLayout.addWidget(self.AuthorAddtoSongItem)
self.AuthorsLayout.addWidget(self.AuthorAddWidget)
self.AuthorsListView = QtGui.QTableWidget(self.AuthorsGroupBox)
self.AuthorsListView.setAlternatingRowColors(True)
- self.AuthorsListView.setObjectName('AuthorsListView')
+ self.AuthorsListView.setObjectName("AuthorsListView")
self.AuthorsListView.setColumnCount(0)
self.AuthorsListView.setRowCount(0)
self.AuthorsLayout.addWidget(self.AuthorsListView)
self.AuthorRemoveWidget = QtGui.QWidget(self.AuthorsGroupBox)
- self.AuthorRemoveWidget.setObjectName('AuthorRemoveWidget')
+ self.AuthorRemoveWidget.setObjectName("AuthorRemoveWidget")
self.AuthorRemoveLayout = QtGui.QHBoxLayout(self.AuthorRemoveWidget)
self.AuthorRemoveLayout.setSpacing(8)
self.AuthorRemoveLayout.setMargin(0)
- self.AuthorRemoveLayout.setObjectName('AuthorRemoveLayout')
- spacerItem = QtGui.QSpacerItem(263, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
+ self.AuthorRemoveLayout.setObjectName("AuthorRemoveLayout")
+ spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.AuthorRemoveLayout.addItem(spacerItem)
self.AuthorRemoveItem = QtGui.QPushButton(self.AuthorRemoveWidget)
- self.AuthorRemoveItem.setObjectName('AuthorRemoveItem')
+ self.AuthorRemoveItem.setObjectName("AuthorRemoveItem")
self.AuthorRemoveLayout.addWidget(self.AuthorRemoveItem)
+ self.AddAuthorsButton = QtGui.QPushButton(self.AuthorRemoveWidget)
+ self.AddAuthorsButton.setObjectName("AddAuthorsButton")
+ self.AuthorRemoveLayout.addWidget(self.AddAuthorsButton)
self.AuthorsLayout.addWidget(self.AuthorRemoveWidget)
self.AdditionalLayout.addWidget(self.AuthorsGroupBox)
self.SongBookGroup = QtGui.QGroupBox(self.AdditionalWidget)
- self.SongBookGroup.setObjectName('SongBookGroup')
+ self.SongBookGroup.setObjectName("SongBookGroup")
self.SongbookLayout = QtGui.QGridLayout(self.SongBookGroup)
self.SongbookLayout.setMargin(8)
self.SongbookLayout.setSpacing(8)
- self.SongbookLayout.setObjectName('SongbookLayout')
+ self.SongbookLayout.setObjectName("SongbookLayout")
self.SongbookCombo = QtGui.QComboBox(self.SongBookGroup)
- self.SongbookCombo.setObjectName('SongbookCombo')
+ 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.AddSongBookButton = QtGui.QPushButton(self.SongBookGroup)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Minimum)
@@ -156,81 +177,96 @@ class Ui_EditSongDialog(object):
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.AddSongBookButton.sizePolicy().hasHeightForWidth())
self.AddSongBookButton.setSizePolicy(sizePolicy)
- self.AddSongBookButton.setObjectName('AddSongBookButton')
+ self.AddSongBookButton.setObjectName("AddSongBookButton")
self.SongbookLayout.addWidget(self.AddSongBookButton, 0, 1, 1, 1)
self.AdditionalLayout.addWidget(self.SongBookGroup)
self.TopicGroupBox = QtGui.QGroupBox(self.AdditionalWidget)
- self.TopicGroupBox.setObjectName('TopicGroupBox')
+ sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.TopicGroupBox.sizePolicy().hasHeightForWidth())
+ self.TopicGroupBox.setSizePolicy(sizePolicy)
+ self.TopicGroupBox.setObjectName("TopicGroupBox")
self.TopicLayout = QtGui.QVBoxLayout(self.TopicGroupBox)
self.TopicLayout.setSpacing(8)
self.TopicLayout.setMargin(8)
- self.TopicLayout.setObjectName('TopicLayout')
+ self.TopicLayout.setObjectName("TopicLayout")
self.TopicAddWidget = QtGui.QWidget(self.TopicGroupBox)
- self.TopicAddWidget.setObjectName('TopicAddWidget')
+ self.TopicAddWidget.setObjectName("TopicAddWidget")
self.TopicAddLayout = QtGui.QHBoxLayout(self.TopicAddWidget)
self.TopicAddLayout.setSpacing(8)
self.TopicAddLayout.setMargin(0)
- self.TopicAddLayout.setObjectName('TopicAddLayout')
+ self.TopicAddLayout.setObjectName("TopicAddLayout")
self.SongTopicCombo = QtGui.QComboBox(self.TopicAddWidget)
- self.SongTopicCombo.setObjectName('SongTopicCombo')
+ sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.MinimumExpanding, QtGui.QSizePolicy.Fixed)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.SongTopicCombo.sizePolicy().hasHeightForWidth())
+ self.SongTopicCombo.setSizePolicy(sizePolicy)
+ self.SongTopicCombo.setObjectName("SongTopicCombo")
self.TopicAddLayout.addWidget(self.SongTopicCombo)
self.AddTopicsToSongButton = QtGui.QPushButton(self.TopicAddWidget)
- self.AddTopicsToSongButton.setObjectName('AddTopicsToSongButton')
+ sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
+ sizePolicy.setHorizontalStretch(0)
+ sizePolicy.setVerticalStretch(0)
+ sizePolicy.setHeightForWidth(self.AddTopicsToSongButton.sizePolicy().hasHeightForWidth())
+ self.AddTopicsToSongButton.setSizePolicy(sizePolicy)
+ self.AddTopicsToSongButton.setObjectName("AddTopicsToSongButton")
self.TopicAddLayout.addWidget(self.AddTopicsToSongButton)
- self.AddTopicButton = QtGui.QPushButton(self.TopicAddWidget)
- self.AddTopicButton.setObjectName('AddTopicButton')
- self.TopicAddLayout.addWidget(self.AddTopicButton)
self.TopicLayout.addWidget(self.TopicAddWidget)
self.ToticsListView = QtGui.QTableWidget(self.TopicGroupBox)
self.ToticsListView.setAlternatingRowColors(True)
- self.ToticsListView.setObjectName('ToticsListView')
+ self.ToticsListView.setObjectName("ToticsListView")
self.ToticsListView.setColumnCount(0)
self.ToticsListView.setRowCount(0)
self.TopicLayout.addWidget(self.ToticsListView)
self.TopicRemoveWidget = QtGui.QWidget(self.TopicGroupBox)
- self.TopicRemoveWidget.setObjectName('TopicRemoveWidget')
+ self.TopicRemoveWidget.setObjectName("TopicRemoveWidget")
self.TopicRemoveLayout = QtGui.QHBoxLayout(self.TopicRemoveWidget)
self.TopicRemoveLayout.setSpacing(8)
self.TopicRemoveLayout.setMargin(0)
- self.TopicRemoveLayout.setObjectName('TopicRemoveLayout')
- spacerItem1 = QtGui.QSpacerItem(263, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
+ self.TopicRemoveLayout.setObjectName("TopicRemoveLayout")
+ spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.TopicRemoveLayout.addItem(spacerItem1)
self.pushButton = QtGui.QPushButton(self.TopicRemoveWidget)
- self.pushButton.setObjectName('pushButton')
+ self.pushButton.setObjectName("pushButton")
self.TopicRemoveLayout.addWidget(self.pushButton)
+ self.AddTopicButton = QtGui.QPushButton(self.TopicRemoveWidget)
+ self.AddTopicButton.setObjectName("AddTopicButton")
+ self.TopicRemoveLayout.addWidget(self.AddTopicButton)
self.TopicLayout.addWidget(self.TopicRemoveWidget)
self.AdditionalLayout.addWidget(self.TopicGroupBox)
self.CopyrightgroupBox = QtGui.QGroupBox(self.AdditionalWidget)
- self.CopyrightgroupBox.setObjectName('CopyrightgroupBox')
+ self.CopyrightgroupBox.setObjectName("CopyrightgroupBox")
self.CopyrightLayout = QtGui.QVBoxLayout(self.CopyrightgroupBox)
self.CopyrightLayout.setSpacing(8)
self.CopyrightLayout.setMargin(8)
- self.CopyrightLayout.setObjectName('CopyrightLayout')
+ self.CopyrightLayout.setObjectName("CopyrightLayout")
self.CopyrightWidget = QtGui.QWidget(self.CopyrightgroupBox)
- self.CopyrightWidget.setObjectName('CopyrightWidget')
+ self.CopyrightWidget.setObjectName("CopyrightWidget")
self.CopyLayout = QtGui.QHBoxLayout(self.CopyrightWidget)
self.CopyLayout.setSpacing(8)
self.CopyLayout.setMargin(0)
- self.CopyLayout.setObjectName('CopyLayout')
+ self.CopyLayout.setObjectName("CopyLayout")
self.CopyrightEditItem = QtGui.QLineEdit(self.CopyrightWidget)
- self.CopyrightEditItem.setObjectName('CopyrightEditItem')
+ self.CopyrightEditItem.setObjectName("CopyrightEditItem")
self.CopyLayout.addWidget(self.CopyrightEditItem)
self.CopyrightInsertItem = QtGui.QPushButton(self.CopyrightWidget)
self.CopyrightInsertItem.setMaximumSize(QtCore.QSize(29, 16777215))
- self.CopyrightInsertItem.setObjectName('CopyrightInsertItem')
+ self.CopyrightInsertItem.setObjectName("CopyrightInsertItem")
self.CopyLayout.addWidget(self.CopyrightInsertItem)
self.CopyrightLayout.addWidget(self.CopyrightWidget)
self.CcliWidget = QtGui.QWidget(self.CopyrightgroupBox)
- self.CcliWidget.setObjectName('CcliWidget')
+ self.CcliWidget.setObjectName("CcliWidget")
self.CCLILayout = QtGui.QHBoxLayout(self.CcliWidget)
self.CCLILayout.setSpacing(8)
self.CCLILayout.setMargin(0)
- self.CCLILayout.setObjectName('CCLILayout')
+ self.CCLILayout.setObjectName("CCLILayout")
self.CCLILabel = QtGui.QLabel(self.CcliWidget)
- self.CCLILabel.setObjectName('CCLILabel')
+ self.CCLILabel.setObjectName("CCLILabel")
self.CCLILayout.addWidget(self.CCLILabel)
self.CCLNumberEdit = QtGui.QLineEdit(self.CcliWidget)
- self.CCLNumberEdit.setObjectName('CCLNumberEdit')
+ self.CCLNumberEdit.setObjectName("CCLNumberEdit")
self.CCLILayout.addWidget(self.CCLNumberEdit)
self.CopyrightLayout.addWidget(self.CcliWidget)
self.AdditionalLayout.addWidget(self.CopyrightgroupBox)
@@ -238,12 +274,12 @@ class Ui_EditSongDialog(object):
self.EditSongLayout.addWidget(self.TopWidget)
self.ButtonBox = QtGui.QDialogButtonBox(EditSongDialog)
self.ButtonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Save)
- self.ButtonBox.setObjectName('ButtonBox')
+ self.ButtonBox.setObjectName("ButtonBox")
self.EditSongLayout.addWidget(self.ButtonBox)
self.retranslateUi(EditSongDialog)
- QtCore.QObject.connect(self.ButtonBox, QtCore.SIGNAL('rejected()'), EditSongDialog.close)
- QtCore.QObject.connect(self.ButtonBox, QtCore.SIGNAL('accepted()'), EditSongDialog.close)
+ QtCore.QObject.connect(self.ButtonBox, QtCore.SIGNAL("rejected()"), EditSongDialog.close)
+ QtCore.QObject.connect(self.ButtonBox, QtCore.SIGNAL("accepted()"), EditSongDialog.close)
QtCore.QMetaObject.connectSlotsByName(EditSongDialog)
EditSongDialog.setTabOrder(self.TitleEditItem, self.AlternativeEdit)
EditSongDialog.setTabOrder(self.AlternativeEdit, self.LyricsTextEdit)
@@ -251,17 +287,13 @@ class Ui_EditSongDialog(object):
EditSongDialog.setTabOrder(self.VerseOrderEdit, self.CommentsEdit)
EditSongDialog.setTabOrder(self.CommentsEdit, self.ThemeSelectionComboItem)
EditSongDialog.setTabOrder(self.ThemeSelectionComboItem, self.ThemeAddItem)
- EditSongDialog.setTabOrder(self.ThemeAddItem, self.AuthorsSelectionComboItem)
- EditSongDialog.setTabOrder(self.AuthorsSelectionComboItem, self.AddAuthorsButton)
- EditSongDialog.setTabOrder(self.AddAuthorsButton, self.AuthorAddtoSongItem)
+ EditSongDialog.setTabOrder(self.ThemeAddItem, self.AuthorAddtoSongItem)
EditSongDialog.setTabOrder(self.AuthorAddtoSongItem, self.AuthorsListView)
EditSongDialog.setTabOrder(self.AuthorsListView, self.AuthorRemoveItem)
EditSongDialog.setTabOrder(self.AuthorRemoveItem, self.SongbookCombo)
EditSongDialog.setTabOrder(self.SongbookCombo, self.AddSongBookButton)
EditSongDialog.setTabOrder(self.AddSongBookButton, self.SongTopicCombo)
- EditSongDialog.setTabOrder(self.SongTopicCombo, self.AddTopicsToSongButton)
- EditSongDialog.setTabOrder(self.AddTopicsToSongButton, self.AddTopicButton)
- EditSongDialog.setTabOrder(self.AddTopicButton, self.ToticsListView)
+ EditSongDialog.setTabOrder(self.SongTopicCombo, self.ToticsListView)
EditSongDialog.setTabOrder(self.ToticsListView, self.pushButton)
EditSongDialog.setTabOrder(self.pushButton, self.CopyrightEditItem)
EditSongDialog.setTabOrder(self.CopyrightEditItem, self.CopyrightInsertItem)
@@ -269,24 +301,24 @@ class Ui_EditSongDialog(object):
EditSongDialog.setTabOrder(self.CCLNumberEdit, self.ButtonBox)
def retranslateUi(self, EditSongDialog):
- EditSongDialog.setWindowTitle(QtGui.QApplication.translate('EditSongDialog', 'Song Editor', None, QtGui.QApplication.UnicodeUTF8))
- self.TitleLabel.setText(QtGui.QApplication.translate('EditSongDialog', 'Title:', None, QtGui.QApplication.UnicodeUTF8))
- self.AlternativeTitleLabel.setText(QtGui.QApplication.translate('EditSongDialog', 'Alternative Title:', None, QtGui.QApplication.UnicodeUTF8))
- self.LyricsLabel.setText(QtGui.QApplication.translate('EditSongDialog', 'Lyrics:', None, QtGui.QApplication.UnicodeUTF8))
- self.VerseOrderLabel.setText(QtGui.QApplication.translate('EditSongDialog', 'Verse Order:', None, QtGui.QApplication.UnicodeUTF8))
- self.CommentsLabel.setText(QtGui.QApplication.translate('EditSongDialog', 'Comments:', None, QtGui.QApplication.UnicodeUTF8))
- self.ThemeGroupBox.setTitle(QtGui.QApplication.translate('EditSongDialog', 'Theme', None, QtGui.QApplication.UnicodeUTF8))
- self.ThemeAddItem.setText(QtGui.QApplication.translate('EditSongDialog', 'Add a Theme', None, QtGui.QApplication.UnicodeUTF8))
- self.AuthorsGroupBox.setTitle(QtGui.QApplication.translate('EditSongDialog', 'Authors', None, QtGui.QApplication.UnicodeUTF8))
- self.AddAuthorsButton.setText(QtGui.QApplication.translate('EditSongDialog', 'New Author', None, QtGui.QApplication.UnicodeUTF8))
- self.AuthorAddtoSongItem.setText(QtGui.QApplication.translate('EditSongDialog', 'Add to Song', None, QtGui.QApplication.UnicodeUTF8))
- self.AuthorRemoveItem.setText(QtGui.QApplication.translate('EditSongDialog', 'Remove', None, QtGui.QApplication.UnicodeUTF8))
- self.SongBookGroup.setTitle(QtGui.QApplication.translate('EditSongDialog', 'Song Book', None, QtGui.QApplication.UnicodeUTF8))
- self.AddSongBookButton.setText(QtGui.QApplication.translate('EditSongDialog', 'Add Song Book', None, QtGui.QApplication.UnicodeUTF8))
- self.TopicGroupBox.setTitle(QtGui.QApplication.translate('EditSongDialog', 'Topic', None, QtGui.QApplication.UnicodeUTF8))
- self.AddTopicsToSongButton.setText(QtGui.QApplication.translate('EditSongDialog', 'Add to Song', None, QtGui.QApplication.UnicodeUTF8))
- self.AddTopicButton.setText(QtGui.QApplication.translate('EditSongDialog', 'Add Topic', None, QtGui.QApplication.UnicodeUTF8))
- self.pushButton.setText(QtGui.QApplication.translate('EditSongDialog', 'Remove', None, QtGui.QApplication.UnicodeUTF8))
- self.CopyrightgroupBox.setTitle(QtGui.QApplication.translate('EditSongDialog', 'Copyright Infomaton', None, QtGui.QApplication.UnicodeUTF8))
- self.CopyrightInsertItem.setText(QtGui.QApplication.translate('EditSongDialog', '©', None, QtGui.QApplication.UnicodeUTF8))
- self.CCLILabel.setText(QtGui.QApplication.translate('EditSongDialog', 'CCLI Number:', None, QtGui.QApplication.UnicodeUTF8))
+ EditSongDialog.setWindowTitle(QtGui.QApplication.translate("EditSongDialog", "Song Editor", None, QtGui.QApplication.UnicodeUTF8))
+ self.TitleLabel.setText(QtGui.QApplication.translate("EditSongDialog", "Title:", None, QtGui.QApplication.UnicodeUTF8))
+ self.AlternativeTitleLabel.setText(QtGui.QApplication.translate("EditSongDialog", "Alternative Title:", None, QtGui.QApplication.UnicodeUTF8))
+ self.LyricsLabel.setText(QtGui.QApplication.translate("EditSongDialog", "Lyrics:", None, QtGui.QApplication.UnicodeUTF8))
+ self.VerseOrderLabel.setText(QtGui.QApplication.translate("EditSongDialog", "Verse Order:", None, QtGui.QApplication.UnicodeUTF8))
+ self.CommentsLabel.setText(QtGui.QApplication.translate("EditSongDialog", "Comments:", None, QtGui.QApplication.UnicodeUTF8))
+ self.ThemeGroupBox.setTitle(QtGui.QApplication.translate("EditSongDialog", "Theme", None, QtGui.QApplication.UnicodeUTF8))
+ self.ThemeAddItem.setText(QtGui.QApplication.translate("EditSongDialog", "Add a Theme", None, QtGui.QApplication.UnicodeUTF8))
+ self.AuthorsGroupBox.setTitle(QtGui.QApplication.translate("EditSongDialog", "Authors", None, QtGui.QApplication.UnicodeUTF8))
+ self.AuthorAddtoSongItem.setText(QtGui.QApplication.translate("EditSongDialog", "Add to Song", None, QtGui.QApplication.UnicodeUTF8))
+ self.AuthorRemoveItem.setText(QtGui.QApplication.translate("EditSongDialog", "Remove", None, QtGui.QApplication.UnicodeUTF8))
+ self.AddAuthorsButton.setText(QtGui.QApplication.translate("EditSongDialog", "Manage Authors", None, QtGui.QApplication.UnicodeUTF8))
+ self.SongBookGroup.setTitle(QtGui.QApplication.translate("EditSongDialog", "Song Book", None, QtGui.QApplication.UnicodeUTF8))
+ self.AddSongBookButton.setText(QtGui.QApplication.translate("EditSongDialog", "Manage Song Books", None, QtGui.QApplication.UnicodeUTF8))
+ self.TopicGroupBox.setTitle(QtGui.QApplication.translate("EditSongDialog", "Topic", None, QtGui.QApplication.UnicodeUTF8))
+ self.AddTopicsToSongButton.setText(QtGui.QApplication.translate("EditSongDialog", "Add to Song", None, QtGui.QApplication.UnicodeUTF8))
+ self.pushButton.setText(QtGui.QApplication.translate("EditSongDialog", "Remove", None, QtGui.QApplication.UnicodeUTF8))
+ self.AddTopicButton.setText(QtGui.QApplication.translate("EditSongDialog", "Manage Topics", None, QtGui.QApplication.UnicodeUTF8))
+ self.CopyrightgroupBox.setTitle(QtGui.QApplication.translate("EditSongDialog", "Copyright Infomaton", None, QtGui.QApplication.UnicodeUTF8))
+ self.CopyrightInsertItem.setText(QtGui.QApplication.translate("EditSongDialog", "©", None, QtGui.QApplication.UnicodeUTF8))
+ self.CCLILabel.setText(QtGui.QApplication.translate("EditSongDialog", "CCLI Number:", None, QtGui.QApplication.UnicodeUTF8))
diff --git a/openlp/plugins/songs/forms/editsongform.py b/openlp/plugins/songs/forms/editsongform.py
index 4f44139f1..d4b824ac2 100644
--- a/openlp/plugins/songs/forms/editsongform.py
+++ b/openlp/plugins/songs/forms/editsongform.py
@@ -37,6 +37,11 @@ class EditSongForm(QDialog, Ui_EditSongDialog):
"""
QDialog.__init__(self, parent)
self.setupUi(self)
+ # Connecting signals and slots
+ QtCore.QObject.connect(self.AddAuthorsButton, QtCore.SIGNAL('clicked()'), self.onAddAuthorsButtonClicked)
+ QtCore.QObject.connect(self.AddTopicButton, QtCore.SIGNAL('clicked()'), self.onAddTopicButtonClicked)
+ QtCore.QObject.connect(self.CopyrightInsertItem, QtCore.SIGNAL('clicked()'), self.onCopyrightInsertItemTriggered)
+ # Create other objects and forms
self.songmanager = songmanager
self.authors_form = AuthorsForm(self.songmanager)
self.topics_form = TopicsForm(self.songmanager)
@@ -57,8 +62,8 @@ class EditSongForm(QDialog, Ui_EditSongDialog):
for i in list:
self.AuthorsSelectionComboItem.addItem( i.display_name)
- def load_song(self, songid):
- self.song = self.songmanager.get_song(songid)
+ def loadSong(self, id):
+ self.song = self.songmanager.get_song(id)
self.TitleEditItem.setText(self.song.title)
self.LyricsTextEdit.setText(self.song.lyrics)
self.CopyrightEditItem.setText(self.song.copyright)
@@ -70,30 +75,28 @@ class EditSongForm(QDialog, Ui_EditSongDialog):
self.AuthorsListView.verticalHeader().setVisible(False)
self.AuthorsListView.setRowCount(0)
for author in self.song.authors:
- c = self.AuthorsListView.rowCount()
- self.AuthorsListView.setRowCount(c+1)
+ row_count = self.AuthorsListView.rowCount()
+ self.AuthorsListView.setRowCount(row_count + 1)
author_id = QtGui.QTableWidgetItem(str(author.id))
- self.AuthorsListView.setItem(c , 0, author_id)
+ self.AuthorsListView.setItem(row_count, 0, author_id)
author_name = QtGui.QTableWidgetItem(str(author.display_name))
- self.AuthorsListView.setItem(c , 1, author_name)
- self.AuthorsListView.setRowHeight(c, 20)
+ self.AuthorsListView.setItem(row_count, 1, author_name)
+ self.AuthorsListView.setRowHeight(row_count, 20)
self._validate_song()
- @pyqtSignature("")
- def on_AddAuthorsButton_clicked(self):
+ def onAddAuthorsButtonClicked(self):
"""
Slot documentation goes here.
"""
self.authors_form.load_form()
- self.authors_form.show()
+ self.authors_form.exec_()
- @pyqtSignature("")
- def on_AddTopicButton_clicked(self):
+ def onAddTopicButtonClicked(self):
"""
Slot documentation goes here.
"""
self.topics_form.load_form()
- self.topics_form.show()
+ self.topics_form.exec_()
@pyqtSignature("")
def on_AddSongBookButton_clicked(self):
@@ -101,7 +104,7 @@ class EditSongForm(QDialog, Ui_EditSongDialog):
Slot documentation goes here.
"""
self.song_book_form.load_form()
- self.song_book_form.show()
+ self.song_book_form.exec_()
def _validate_song(self):
"""
@@ -137,6 +140,10 @@ class EditSongForm(QDialog, Ui_EditSongDialog):
#self._validate_song()
pass
- def on_CopyrightEditItem_lostFocus(self):
- #self._validate_song()
- pass
+ def onCopyrightInsertItemTriggered(self):
+ text = self.CopyrightEditItem.displayText()
+ pos = self.CopyrightEditItem.cursorPosition()
+ text = text[:pos] + u'©' + text[pos:]
+ self.CopyrightEditItem.setText(text)
+ self.CopyrightEditItem.setFocus()
+ self.CopyrightEditItem.setCursorPosition(pos + 1)
diff --git a/openlp/plugins/songs/forms/topicsform.py b/openlp/plugins/songs/forms/topicsform.py
index 458ea3227..bc66219fb 100644
--- a/openlp/plugins/songs/forms/topicsform.py
+++ b/openlp/plugins/songs/forms/topicsform.py
@@ -35,19 +35,20 @@ class TopicsForm(QDialog, Ui_TopicsDialog):
QDialog.__init__(self, parent)
self.setupUi(self)
self.songmanager = songmanager
-
+ #self.connect()
+
def load_form(self):
A = 1
-
- @pyqtSignature("")
- def on_DeleteButton_clicked(self):
+
+ #@pyqtSignature("")
+ def onDeleteButtonClicked(self):
"""
Slot documentation goes here.
"""
print "db clicked"
-
- @pyqtSignature("")
- def on_AddUpdateButton_clicked(self):
+
+ #@pyqtSignature("")
+ def onAddUpdateButtonClicked(self):
"""
Slot documentation goes here.
"""
diff --git a/openlp/plugins/songs/lib/manager.py b/openlp/plugins/songs/lib/manager.py
index d709e19cb..2dcc600c9 100644
--- a/openlp/plugins/songs/lib/manager.py
+++ b/openlp/plugins/songs/lib/manager.py
@@ -73,13 +73,13 @@ class SongManager():
"""
Searches the song title for keywords.
"""
- return self.session.query(Song).filter(Song.search_title.like(u'%' + keywords + u'%'))
+ return self.session.query(Song).filter(Song.search_title.like(u'%' + keywords + u'%')).order_by(Song.search_title.asc()).all()
def search_song_lyrics(self, keywords):
"""
Searches the song lyrics for keywords.
"""
- return self.session.query(Song).filter(Song.search_lyrics.like(u'%' + keywords + u'%'))
+ return self.session.query(Song).filter(Song.search_lyrics.like(u'%' + keywords + u'%')).order_by(Song.search_lyrics.asc()).all()
def get_song(self, id=None):
"""
diff --git a/openlp/plugins/songs/songsplugin.py b/openlp/plugins/songs/songsplugin.py
index 66617d695..cdb8d0cf9 100644
--- a/openlp/plugins/songs/songsplugin.py
+++ b/openlp/plugins/songs/songsplugin.py
@@ -235,9 +235,9 @@ class SongsPlugin(Plugin, PluginUtils):
self.edit_song_form.exec_()
def onSongEditClick(self):
- cr = self.SongListView.currentRow()
- id = int(self.SongListView.item(cr, 0).text())
- self.edit_song_form.load_song(id)
+ current_row = self.SongListView.currentRow()
+ id = int(self.SongListView.item(current_row, 0).text())
+ self.edit_song_form.loadSong(id)
self.edit_song_form.exec_()
def onSongDeleteClick(self):
diff --git a/resources/forms/editsongdialog.ui b/resources/forms/editsongdialog.ui
index 43a72c600..dd1d247d0 100644
--- a/resources/forms/editsongdialog.ui
+++ b/resources/forms/editsongdialog.ui
@@ -6,7 +6,7 @@
0
0
786
- 634
+ 669
@@ -77,6 +77,12 @@
-
+
+
+ 0
+ 0
+
+
QTextEdit::NoWrap
@@ -103,7 +109,14 @@
-
-
+
+
+
+ 0
+ 0
+
+
+
-
@@ -141,6 +154,18 @@
-
+
+
+ 0
+ 0
+
+
+
+
+ 100
+ 0
+
+
8
@@ -191,13 +216,6 @@
- -
-
-
- New Author
-
-
-
-
@@ -231,13 +249,13 @@
0
-
-
+
Qt::Horizontal
- 263
+ 40
20
@@ -250,6 +268,13 @@
+ -
+
+
+ Manage Authors
+
+
+
@@ -269,7 +294,14 @@
8
-
-
+
+
+
+ 0
+ 0
+
+
+
-
@@ -280,7 +312,7 @@
- Add Song Book
+ Manage Song Books
@@ -289,6 +321,12 @@
-
+
+
+ 0
+ 0
+
+
Topic
@@ -309,19 +347,25 @@
0
-
-
-
- -
-
-
- Add to Song
+
+
+
+ 0
+ 0
+
-
-
+
+
+
+ 0
+ 0
+
+
- Add Topic
+ Add to Song
@@ -345,13 +389,13 @@
0
-
-
+
Qt::Horizontal
- 263
+ 40
20
@@ -364,6 +408,13 @@
+ -
+
+
+ Manage Topics
+
+
+
@@ -458,16 +509,12 @@
CommentsEdit
ThemeSelectionComboItem
ThemeAddItem
- AuthorsSelectionComboItem
- AddAuthorsButton
AuthorAddtoSongItem
AuthorsListView
AuthorRemoveItem
SongbookCombo
AddSongBookButton
SongTopicCombo
- AddTopicsToSongButton
- AddTopicButton
ToticsListView
pushButton
CopyrightEditItem
diff --git a/resources/forms/topicsdialog.ui b/resources/forms/topicsdialog.ui
index 200c90572..d09f2db2b 100644
--- a/resources/forms/topicsdialog.ui
+++ b/resources/forms/topicsdialog.ui
@@ -1,41 +1,52 @@
-
-
+
TopicsDialog
-
-
+
+
0
0
- 387
- 463
+ 471
+ 470
-
+
Topic Maintenance
-
- -
-
-
- Topic
+
+
+ 8
+
+
+ 8
+
+
-
+
+
+ Topic Details
-
-
-
-
-
+
+
+ 8
+
+
+ 8
+
+
-
+
+
Topic Name:
- -
-
+
-
+
- -
-
-
+
-
+
+
Qt::Horizontal
-
+
198
20
@@ -43,44 +54,44 @@
- -
-
-
+
-
+
+
Delete Author
-
-
+
+ Delete
-
-
+
+
:/services/service_delete.png:/services/service_delete.png
- -
-
-
+
-
+
+
Add Update Author
-
-
+
+ Add/Update
-
-
+
+
:/system/system_settings.png:/system/system_settings.png
- -
-
-
+
-
+
+
Clear Selection
-
-
+
+ Clear
-
-
+
+
:/songs/song_edit.png:/songs/song_edit.png
@@ -88,34 +99,27 @@
- -
-
-
-
+
-
+
+
+ true
- -
-
-
- -
-
-
+
-
+
+
Qt::Horizontal
-
+
QDialogButtonBox::Ok
- TopicGroupBox
- MessageLabel
- TopicsListView
- ButtonBox
-
+
@@ -124,11 +128,11 @@
TopicsDialog
accept()
-
+
248
254
-
+
157
274
@@ -140,11 +144,11 @@
TopicsDialog
reject()
-
+
316
260
-
+
286
274