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 #
|
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_TopicsDialog(object):
|
2010-05-01 19:45:06 +00:00
|
|
|
def setupUi(self, TopicsDialog):
|
|
|
|
TopicsDialog.setObjectName(u'TopicsDialog')
|
|
|
|
TopicsDialog.resize(365, 77)
|
|
|
|
self.TopicLayout = QtGui.QFormLayout(TopicsDialog)
|
2009-07-24 22:13:40 +00:00
|
|
|
self.TopicLayout.setFieldGrowthPolicy(
|
|
|
|
QtGui.QFormLayout.ExpandingFieldsGrow)
|
2009-07-24 20:40:34 +00:00
|
|
|
self.TopicLayout.setMargin(8)
|
|
|
|
self.TopicLayout.setSpacing(8)
|
2009-07-24 22:13:40 +00:00
|
|
|
self.TopicLayout.setObjectName(u'TopicLayout')
|
2010-05-01 19:45:06 +00:00
|
|
|
self.NameLabel = QtGui.QLabel(TopicsDialog)
|
2009-07-24 22:13:40 +00:00
|
|
|
self.NameLabel.setObjectName(u'NameLabel')
|
|
|
|
self.TopicLayout.setWidget(0,
|
|
|
|
QtGui.QFormLayout.LabelRole, self.NameLabel)
|
2010-05-01 19:45:06 +00:00
|
|
|
self.NameEdit = QtGui.QLineEdit(TopicsDialog)
|
2009-07-24 22:13:40 +00:00
|
|
|
self.NameEdit.setObjectName(u'NameEdit')
|
|
|
|
self.TopicLayout.setWidget(0,
|
|
|
|
QtGui.QFormLayout.FieldRole, self.NameEdit)
|
2010-05-01 19:45:06 +00:00
|
|
|
self.TopicButtonBox = QtGui.QDialogButtonBox(TopicsDialog)
|
2009-07-24 20:40:34 +00:00
|
|
|
self.TopicButtonBox.setOrientation(QtCore.Qt.Horizontal)
|
|
|
|
self.TopicButtonBox.setStandardButtons(
|
|
|
|
QtGui.QDialogButtonBox.Save | QtGui.QDialogButtonBox.Cancel)
|
2009-07-24 22:13:40 +00:00
|
|
|
self.TopicButtonBox.setObjectName(u'TopicButtonBox')
|
|
|
|
self.TopicLayout.setWidget(1,
|
|
|
|
QtGui.QFormLayout.FieldRole, self.TopicButtonBox)
|
2009-01-01 10:03:09 +00:00
|
|
|
|
2010-05-01 19:45:06 +00:00
|
|
|
self.retranslateUi(TopicsDialog)
|
2009-07-24 22:13:40 +00:00
|
|
|
QtCore.QObject.connect(self.TopicButtonBox,
|
2010-05-01 19:45:06 +00:00
|
|
|
QtCore.SIGNAL(u'accepted()'), TopicsDialog.accept)
|
2009-07-24 22:13:40 +00:00
|
|
|
QtCore.QObject.connect(self.TopicButtonBox,
|
2010-05-01 19:45:06 +00:00
|
|
|
QtCore.SIGNAL(u'rejected()'), TopicsDialog.reject)
|
|
|
|
QtCore.QMetaObject.connectSlotsByName(TopicsDialog)
|
2009-01-01 10:03:09 +00:00
|
|
|
|
2010-05-01 19:45:06 +00:00
|
|
|
def retranslateUi(self, TopicsDialog):
|
2010-06-06 14:22:00 +00:00
|
|
|
TopicsDialog.setWindowTitle(
|
2010-06-21 16:43:59 +00:00
|
|
|
translate('SongsPlugin.TopicsForm', 'Topic Maintenance'))
|
2010-06-06 14:22:00 +00:00
|
|
|
self.NameLabel.setText(
|
2010-12-26 11:04:47 +00:00
|
|
|
translate('SongsPlugin.TopicsForm', 'Topic name:'))
|