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 #
|
|
|
|
# --------------------------------------------------------------------------- #
|
2010-12-26 11:04:47 +00:00
|
|
|
# Copyright (c) 2008-2011 Raoul Snyman #
|
|
|
|
# Portions copyright (c) 2008-2011 Tim Bentley, Jonathan Corwin, Michael #
|
2011-03-24 19:04:02 +00:00
|
|
|
# Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, Armin Köhler, #
|
|
|
|
# Andreas Preikschat, Mattias Põldaru, Christian Richter, Philip Ridout, #
|
|
|
|
# Maikel Stuivenberg, Martin Thompson, Jon Tibble, 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
|
|
|
|
2011-02-02 19:30:06 +00:00
|
|
|
from openlp.core.lib import translate
|
2011-02-10 00:36:00 +00:00
|
|
|
from openlp.core.lib.ui import create_accept_reject_button_box
|
2009-01-01 10:03:09 +00:00
|
|
|
|
|
|
|
class Ui_SongBookDialog(object):
|
2011-01-04 21:06:50 +00:00
|
|
|
def setupUi(self, songBookDialog):
|
|
|
|
songBookDialog.setObjectName(u'songBookDialog')
|
|
|
|
songBookDialog.resize(300, 10)
|
|
|
|
self.dialogLayout = QtGui.QVBoxLayout(songBookDialog)
|
|
|
|
self.dialogLayout.setObjectName(u'dialogLayout')
|
|
|
|
self.bookLayout = QtGui.QFormLayout()
|
|
|
|
self.bookLayout.setObjectName(u'bookLayout')
|
|
|
|
self.nameLabel = QtGui.QLabel(songBookDialog)
|
|
|
|
self.nameLabel.setObjectName(u'nameLabel')
|
|
|
|
self.nameEdit = QtGui.QLineEdit(songBookDialog)
|
|
|
|
self.nameEdit.setObjectName(u'nameEdit')
|
|
|
|
self.nameLabel.setBuddy(self.nameEdit)
|
|
|
|
self.bookLayout.addRow(self.nameLabel, self.nameEdit)
|
|
|
|
self.publisherLabel = QtGui.QLabel(songBookDialog)
|
|
|
|
self.publisherLabel.setObjectName(u'publisherLabel')
|
|
|
|
self.publisherEdit = QtGui.QLineEdit(songBookDialog)
|
|
|
|
self.publisherEdit.setObjectName(u'publisherEdit')
|
|
|
|
self.publisherLabel.setBuddy(self.publisherEdit)
|
|
|
|
self.bookLayout.addRow(self.publisherLabel, self.publisherEdit)
|
|
|
|
self.dialogLayout.addLayout(self.bookLayout)
|
2011-02-05 01:24:19 +00:00
|
|
|
self.dialogLayout.addWidget(
|
2011-02-10 00:36:00 +00:00
|
|
|
create_accept_reject_button_box(songBookDialog))
|
2011-01-04 21:06:50 +00:00
|
|
|
self.retranslateUi(songBookDialog)
|
|
|
|
songBookDialog.setMaximumHeight(songBookDialog.sizeHint().height())
|
|
|
|
QtCore.QMetaObject.connectSlotsByName(songBookDialog)
|
2009-07-24 20:40:34 +00:00
|
|
|
|
2011-01-04 21:06:50 +00:00
|
|
|
def retranslateUi(self, songBookDialog):
|
|
|
|
songBookDialog.setWindowTitle(
|
2010-07-17 16:03:59 +00:00
|
|
|
translate('SongsPlugin.SongBookForm', 'Song Book Maintenance'))
|
2011-01-04 21:06:50 +00:00
|
|
|
self.nameLabel.setText(translate('SongsPlugin.SongBookForm', '&Name:'))
|
|
|
|
self.publisherLabel.setText(
|
|
|
|
translate('SongsPlugin.SongBookForm', '&Publisher:'))
|