openlp/openlp/core/ui/serviceitemeditdialog.py

77 lines
4.3 KiB
Python
Raw Normal View History

2010-03-17 21:08:18 +00:00
# -*- coding: utf-8 -*-
2010-03-19 07:23:48 +00:00
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
2010-03-17 21:08:18 +00:00
2010-03-19 07:23:48 +00:00
###############################################################################
# OpenLP - Open Source Lyrics Projection #
# --------------------------------------------------------------------------- #
# Copyright (c) 2008-2010 Raoul Snyman #
# Portions copyright (c) 2008-2010 Tim Bentley, Jonathan Corwin, Michael #
2010-03-27 10:12:11 +00:00
# Gorven, Scott Guerrieri, Christian Richter, Maikel Stuivenberg, Martin #
# Thompson, Jon Tibble, Carsten Tinggaard #
2010-03-19 07:23:48 +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 #
###############################################################################
2010-03-17 21:08:18 +00:00
from PyQt4 import QtCore, QtGui
2010-04-27 20:54:55 +00:00
from openlp.core.lib import translate
2010-03-17 21:08:18 +00:00
class Ui_ServiceItemEditDialog(object):
2010-05-01 19:45:06 +00:00
def setupUi(self, ServiceItemEditDialog):
ServiceItemEditDialog.setObjectName(u'ServiceItemEditDialog')
ServiceItemEditDialog.resize(386, 272)
self.layoutWidget = QtGui.QWidget(ServiceItemEditDialog)
2010-03-18 22:06:51 +00:00
self.layoutWidget.setGeometry(QtCore.QRect(20, 20, 351, 241))
2010-03-19 07:23:48 +00:00
self.layoutWidget.setObjectName(u'layoutWidget')
2010-03-18 22:06:51 +00:00
self.outerLayout = QtGui.QVBoxLayout(self.layoutWidget)
2010-03-19 07:23:48 +00:00
self.outerLayout.setObjectName(u'outerLayout')
2010-03-18 22:06:51 +00:00
self.topLayout = QtGui.QHBoxLayout()
2010-03-19 07:23:48 +00:00
self.topLayout.setObjectName(u'topLayout')
2010-03-18 22:06:51 +00:00
self.listWidget = QtGui.QListWidget(self.layoutWidget)
2010-03-17 21:08:18 +00:00
self.listWidget.setAlternatingRowColors(True)
2010-03-19 07:23:48 +00:00
self.listWidget.setObjectName(u'listWidget')
2010-03-18 22:06:51 +00:00
self.topLayout.addWidget(self.listWidget)
self.buttonLayout = QtGui.QVBoxLayout()
2010-03-19 07:23:48 +00:00
self.buttonLayout.setObjectName(u'buttonLayout')
2010-03-18 22:06:51 +00:00
self.upButton = QtGui.QPushButton(self.layoutWidget)
2010-03-19 07:23:48 +00:00
self.upButton.setObjectName(u'upButton')
2010-03-18 22:06:51 +00:00
self.buttonLayout.addWidget(self.upButton)
2010-03-19 07:23:48 +00:00
spacerItem = QtGui.QSpacerItem(20, 40,
QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
2010-03-18 22:06:51 +00:00
self.buttonLayout.addItem(spacerItem)
self.deleteButton = QtGui.QPushButton(self.layoutWidget)
2010-03-19 07:23:48 +00:00
self.deleteButton.setObjectName(u'deleteButton')
2010-03-18 22:06:51 +00:00
self.buttonLayout.addWidget(self.deleteButton)
self.downButton = QtGui.QPushButton(self.layoutWidget)
2010-03-19 07:23:48 +00:00
self.downButton.setObjectName(u'downButton')
2010-03-18 22:06:51 +00:00
self.buttonLayout.addWidget(self.downButton)
self.topLayout.addLayout(self.buttonLayout)
self.outerLayout.addLayout(self.topLayout)
self.buttonBox = QtGui.QDialogButtonBox(self.layoutWidget)
2010-03-19 07:23:48 +00:00
self.buttonBox.setStandardButtons(
QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Save)
self.buttonBox.setObjectName(u'buttonBox')
2010-03-18 22:06:51 +00:00
self.outerLayout.addWidget(self.buttonBox)
2010-03-17 21:08:18 +00:00
2010-05-01 19:45:06 +00:00
self.retranslateUi(ServiceItemEditDialog)
QtCore.QMetaObject.connectSlotsByName(ServiceItemEditDialog)
2010-03-17 21:08:18 +00:00
2010-05-01 19:45:06 +00:00
def retranslateUi(self, ServiceItemEditDialog):
ServiceItemEditDialog.setWindowTitle(
translate('ServiceItemEditForm', 'Service Item Maintenance'))
self.upButton.setText(translate('ServiceItemEditForm', 'Up'))
self.deleteButton.setText(translate('ServiceItemEditForm', 'Delete'))
self.downButton.setText(translate('ServiceItemEditForm', 'Down'))
2010-03-17 21:08:18 +00:00