2009-01-01 10:03:09 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2009-06-14 15:12:40 +00:00
|
|
|
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
|
2009-01-01 10:03:09 +00:00
|
|
|
|
2009-09-08 19:58:05 +00:00
|
|
|
###############################################################################
|
|
|
|
# OpenLP - Open Source Lyrics Projection #
|
|
|
|
# --------------------------------------------------------------------------- #
|
2009-12-31 12:52:01 +00:00
|
|
|
# Copyright (c) 2008-2010 Raoul Snyman #
|
|
|
|
# Portions copyright (c) 2008-2010 Tim Bentley, Jonathan Corwin, Michael #
|
2010-07-24 22:10:47 +00:00
|
|
|
# Gorven, Scott Guerrieri, Meinert Jordan, Andreas Preikschat, Christian #
|
|
|
|
# Richter, Philip Ridout, Maikel Stuivenberg, Martin Thompson, Jon Tibble, #
|
|
|
|
# Carsten Tinggaard, Frode Woldsund #
|
2009-09-08 19:58:05 +00:00
|
|
|
# --------------------------------------------------------------------------- #
|
|
|
|
# This program is free software; you can redistribute it and/or modify it #
|
|
|
|
# under the terms of the GNU General Public License as published by the Free #
|
|
|
|
# Software Foundation; version 2 of the License. #
|
|
|
|
# #
|
|
|
|
# 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 #
|
|
|
|
###############################################################################
|
2009-01-01 10:03:09 +00:00
|
|
|
|
|
|
|
from PyQt4 import QtCore, QtGui
|
2010-06-12 01:52:04 +00:00
|
|
|
|
2010-04-30 20:03:26 +00:00
|
|
|
from openlp.core.lib import translate
|
2009-01-01 10:03:09 +00:00
|
|
|
|
|
|
|
class Ui_SongBookDialog(object):
|
2010-05-01 19:45:06 +00:00
|
|
|
def setupUi(self, SongBookDialog):
|
|
|
|
SongBookDialog.setObjectName(u'SongBookDialog')
|
|
|
|
SongBookDialog.resize(367, 120)
|
|
|
|
self.SongBookLayout = QtGui.QFormLayout(SongBookDialog)
|
2009-03-09 18:47:37 +00:00
|
|
|
self.SongBookLayout.setMargin(8)
|
2009-07-24 20:40:34 +00:00
|
|
|
self.SongBookLayout.setSpacing(8)
|
2009-07-24 22:13:40 +00:00
|
|
|
self.SongBookLayout.setObjectName(u'SongBookLayout')
|
2010-05-01 19:45:06 +00:00
|
|
|
self.NameLabel = QtGui.QLabel(SongBookDialog)
|
2009-07-24 22:13:40 +00:00
|
|
|
self.NameLabel.setObjectName(u'NameLabel')
|
|
|
|
self.SongBookLayout.setWidget(0,
|
|
|
|
QtGui.QFormLayout.LabelRole, self.NameLabel)
|
2010-05-01 19:45:06 +00:00
|
|
|
self.NameEdit = QtGui.QLineEdit(SongBookDialog)
|
2009-07-24 22:13:40 +00:00
|
|
|
self.NameEdit.setObjectName(u'NameEdit')
|
2010-07-20 08:37:15 +00:00
|
|
|
self.NameLabel.setBuddy(self.NameEdit)
|
2009-07-24 22:13:40 +00:00
|
|
|
self.SongBookLayout.setWidget(0,
|
|
|
|
QtGui.QFormLayout.FieldRole, self.NameEdit)
|
2010-05-01 19:45:06 +00:00
|
|
|
self.PublisherLabel = QtGui.QLabel(SongBookDialog)
|
2009-07-24 22:13:40 +00:00
|
|
|
self.PublisherLabel.setObjectName(u'PublisherLabel')
|
|
|
|
self.SongBookLayout.setWidget(1,
|
|
|
|
QtGui.QFormLayout.LabelRole, self.PublisherLabel)
|
2010-05-01 19:45:06 +00:00
|
|
|
self.PublisherEdit = QtGui.QLineEdit(SongBookDialog)
|
2009-07-24 22:13:40 +00:00
|
|
|
self.PublisherEdit.setObjectName(u'PublisherEdit')
|
2010-07-20 08:37:15 +00:00
|
|
|
self.PublisherLabel.setBuddy(self.PublisherEdit)
|
2009-07-24 22:13:40 +00:00
|
|
|
self.SongBookLayout.setWidget(1,
|
|
|
|
QtGui.QFormLayout.FieldRole, self.PublisherEdit)
|
2010-05-01 19:45:06 +00:00
|
|
|
self.ButtonBox = QtGui.QDialogButtonBox(SongBookDialog)
|
2009-01-01 10:03:09 +00:00
|
|
|
self.ButtonBox.setOrientation(QtCore.Qt.Horizontal)
|
2009-07-24 20:40:34 +00:00
|
|
|
self.ButtonBox.setStandardButtons(
|
|
|
|
QtGui.QDialogButtonBox.Save | QtGui.QDialogButtonBox.Cancel)
|
2009-07-24 22:13:40 +00:00
|
|
|
self.ButtonBox.setObjectName(u'ButtonBox')
|
|
|
|
self.SongBookLayout.setWidget(2,
|
|
|
|
QtGui.QFormLayout.FieldRole, self.ButtonBox)
|
2009-07-24 20:40:34 +00:00
|
|
|
|
2010-05-01 19:45:06 +00:00
|
|
|
self.retranslateUi(SongBookDialog)
|
2009-07-24 22:13:40 +00:00
|
|
|
QtCore.QObject.connect(self.ButtonBox,
|
2010-05-01 19:45:06 +00:00
|
|
|
QtCore.SIGNAL(u'accepted()'), SongBookDialog.accept)
|
2009-07-24 22:13:40 +00:00
|
|
|
QtCore.QObject.connect(self.ButtonBox,
|
2010-05-01 19:45:06 +00:00
|
|
|
QtCore.SIGNAL(u'rejected()'), SongBookDialog.reject)
|
|
|
|
QtCore.QMetaObject.connectSlotsByName(SongBookDialog)
|
2009-01-01 10:03:09 +00:00
|
|
|
|
2010-05-01 19:45:06 +00:00
|
|
|
def retranslateUi(self, SongBookDialog):
|
2010-06-06 14:22:00 +00:00
|
|
|
SongBookDialog.setWindowTitle(
|
2010-07-17 16:03:59 +00:00
|
|
|
translate('SongsPlugin.SongBookForm', 'Song Book Maintenance'))
|
2010-06-21 16:43:59 +00:00
|
|
|
self.NameLabel.setText(translate('SongsPlugin.SongBookForm', '&Name:'))
|
2010-06-06 14:22:00 +00:00
|
|
|
self.PublisherLabel.setText(
|
2010-07-27 09:32:52 +00:00
|
|
|
translate('SongsPlugin.SongBookForm', '&Publisher:'))
|