forked from openlp/openlp
99 lines
6.3 KiB
Python
99 lines
6.3 KiB
Python
# -*- coding: utf-8 -*-
|
|
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
|
|
|
|
###############################################################################
|
|
# OpenLP - Open Source Lyrics Projection #
|
|
# --------------------------------------------------------------------------- #
|
|
# Copyright (c) 2008-2013 Raoul Snyman #
|
|
# Portions copyright (c) 2008-2013 Tim Bentley, Gerald Britton, Jonathan #
|
|
# Corwin, Samuel Findlay, Michael Gorven, Scott Guerrieri, Matthias Hub, #
|
|
# Meinert Jordan, Armin Köhler, Erik Lundin, Edwin Lunando, Brian T. Meyer. #
|
|
# Joshua Miller, Stevan Pettit, Andreas Preikschat, Mattias Põldaru, #
|
|
# Christian Richter, Philip Ridout, Simon Scudder, Jeffrey Smith, #
|
|
# Maikel Stuivenberg, Martin Thompson, Jon Tibble, Dave Warnock, #
|
|
# Frode Woldsund, Martin Zibricky, Patrick Zimmermann #
|
|
# --------------------------------------------------------------------------- #
|
|
# 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 #
|
|
###############################################################################
|
|
|
|
from PyQt4 import QtCore, QtGui
|
|
|
|
from openlp.core.lib import translate
|
|
from openlp.core.lib.ui import create_button_box
|
|
|
|
class Ui_BookNameDialog(object):
|
|
def setupUi(self, book_name_dialog):
|
|
book_name_dialog.setObjectName(u'book_name_dialog')
|
|
book_name_dialog.resize(400, 271)
|
|
self.book_name_layout = QtGui.QVBoxLayout(book_name_dialog)
|
|
self.book_name_layout.setSpacing(8)
|
|
self.book_name_layout.setMargin(8)
|
|
self.book_name_layout.setObjectName(u'book_name_layout')
|
|
self.info_label = QtGui.QLabel(book_name_dialog)
|
|
self.info_label.setWordWrap(True)
|
|
self.info_label.setObjectName(u'info_label')
|
|
self.book_name_layout.addWidget(self.info_label)
|
|
self.corresponding_layout = QtGui.QGridLayout()
|
|
self.corresponding_layout.setColumnStretch(1, 1)
|
|
self.corresponding_layout.setSpacing(8)
|
|
self.corresponding_layout.setObjectName(u'corresponding_layout')
|
|
self.currentLabel = QtGui.QLabel(book_name_dialog)
|
|
self.currentLabel.setObjectName(u'currentLabel')
|
|
self.corresponding_layout.addWidget(self.currentLabel, 0, 0, 1, 1)
|
|
self.current_book_label = QtGui.QLabel(book_name_dialog)
|
|
self.current_book_label.setObjectName(u'current_book_label')
|
|
self.corresponding_layout.addWidget(self.current_book_label, 0, 1, 1, 1)
|
|
self.correspondingLabel = QtGui.QLabel(book_name_dialog)
|
|
self.correspondingLabel.setObjectName(u'correspondingLabel')
|
|
self.corresponding_layout.addWidget(self.correspondingLabel, 1, 0, 1, 1)
|
|
self.corresponding_combo_box = QtGui.QComboBox(book_name_dialog)
|
|
self.corresponding_combo_box.setObjectName(u'corresponding_combo_box')
|
|
self.corresponding_layout.addWidget(self.corresponding_combo_box, 1, 1, 1, 1)
|
|
self.book_name_layout.addLayout(self.corresponding_layout)
|
|
self.options_group_box = QtGui.QGroupBox(book_name_dialog)
|
|
self.options_group_box.setObjectName(u'options_group_box')
|
|
self.options_layout = QtGui.QVBoxLayout(self.options_group_box)
|
|
self.options_layout.setSpacing(8)
|
|
self.options_layout.setMargin(8)
|
|
self.options_layout.setObjectName(u'options_layout')
|
|
self.old_testament_check_box = QtGui.QCheckBox(self.options_group_box)
|
|
self.old_testament_check_box.setObjectName(u'old_testament_check_box')
|
|
self.old_testament_check_box.setCheckState(QtCore.Qt.Checked)
|
|
self.options_layout.addWidget(self.old_testament_check_box)
|
|
self.new_testament_check_box = QtGui.QCheckBox(self.options_group_box)
|
|
self.new_testament_check_box.setObjectName(u'new_testament_check_box')
|
|
self.new_testament_check_box.setCheckState(QtCore.Qt.Checked)
|
|
self.options_layout.addWidget(self.new_testament_check_box)
|
|
self.apocrypha_check_box = QtGui.QCheckBox(self.options_group_box)
|
|
self.apocrypha_check_box.setObjectName(u'apocrypha_check_box')
|
|
self.apocrypha_check_box.setCheckState(QtCore.Qt.Checked)
|
|
self.options_layout.addWidget(self.apocrypha_check_box)
|
|
self.book_name_layout.addWidget(self.options_group_box)
|
|
self.button_box = create_button_box(book_name_dialog, u'button_box', [u'cancel', u'ok'])
|
|
self.book_name_layout.addWidget(self.button_box)
|
|
|
|
self.retranslateUi(book_name_dialog)
|
|
|
|
def retranslateUi(self, book_name_dialog):
|
|
book_name_dialog.setWindowTitle(translate('BiblesPlugin.BookNameDialog', 'Select Book Name'))
|
|
self.info_label.setText(translate('BiblesPlugin.BookNameDialog',
|
|
'The following book name cannot be matched up internally. '
|
|
'Please select the corresponding name from the list.'))
|
|
self.currentLabel.setText(translate('BiblesPlugin.BookNameDialog', 'Current name:'))
|
|
self.correspondingLabel.setText(translate('BiblesPlugin.BookNameDialog', 'Corresponding name:'))
|
|
self.options_group_box.setTitle(translate('BiblesPlugin.BookNameDialog', 'Show Books From'))
|
|
self.old_testament_check_box.setText(translate('BiblesPlugin.BookNameDialog', 'Old Testament'))
|
|
self.new_testament_check_box.setText(translate('BiblesPlugin.BookNameDialog', 'New Testament'))
|
|
self.apocrypha_check_box.setText(translate('BiblesPlugin.BookNameDialog', 'Apocrypha'))
|