2009-02-28 23:19:45 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2009-06-16 18:21:24 +00:00
|
|
|
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
|
2009-02-28 23:19:45 +00:00
|
|
|
|
2009-09-08 19:58:05 +00:00
|
|
|
###############################################################################
|
|
|
|
# OpenLP - Open Source Lyrics Projection #
|
|
|
|
# --------------------------------------------------------------------------- #
|
2011-12-27 10:33:55 +00:00
|
|
|
# Copyright (c) 2008-2012 Raoul Snyman #
|
|
|
|
# Portions copyright (c) 2008-2012 Tim Bentley, Gerald Britton, Jonathan #
|
2011-05-26 16:25:54 +00:00
|
|
|
# Corwin, Michael Gorven, Scott Guerrieri, Matthias Hub, Meinert Jordan, #
|
2011-05-26 17:11:22 +00:00
|
|
|
# Armin Köhler, Joshua Miller, Stevan Pettit, Andreas Preikschat, Mattias #
|
2011-06-12 16:02:52 +00:00
|
|
|
# Põldaru, Christian Richter, Philip Ridout, Simon Scudder, Jeffrey Smith, #
|
2011-06-12 15:41:01 +00:00
|
|
|
# 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-02-28 23:19:45 +00:00
|
|
|
|
|
|
|
from PyQt4 import QtCore, QtGui
|
2010-07-14 20:37:54 +00:00
|
|
|
|
|
|
|
from openlp.core.lib import translate, build_icon
|
2012-04-01 21:19:56 +00:00
|
|
|
from openlp.core.lib.ui import create_button_box
|
2009-02-28 23:19:45 +00:00
|
|
|
|
|
|
|
class Ui_SettingsDialog(object):
|
2010-07-27 12:18:10 +00:00
|
|
|
def setupUi(self, settingsDialog):
|
|
|
|
settingsDialog.setObjectName(u'settingsDialog')
|
2011-04-12 17:45:32 +00:00
|
|
|
settingsDialog.resize(800, 500)
|
2010-07-27 12:18:10 +00:00
|
|
|
settingsDialog.setWindowIcon(
|
2010-07-14 20:37:54 +00:00
|
|
|
build_icon(u':/system/system_settings.png'))
|
2011-04-13 18:40:09 +00:00
|
|
|
self.dialogLayout = QtGui.QGridLayout(settingsDialog)
|
|
|
|
self.dialogLayout.setObjectName(u'dialogLayout')
|
2011-04-15 22:46:24 +00:00
|
|
|
self.dialogLayout.setMargin(8)
|
2011-04-12 17:45:32 +00:00
|
|
|
self.settingListWidget = QtGui.QListWidget(settingsDialog)
|
2011-04-13 19:12:47 +00:00
|
|
|
self.settingListWidget.setUniformItemSizes(True)
|
2011-04-13 04:55:00 +00:00
|
|
|
self.settingListWidget.setMinimumSize(QtCore.QSize(150, 0))
|
|
|
|
self.settingListWidget.setHorizontalScrollBarPolicy(
|
|
|
|
QtCore.Qt.ScrollBarAlwaysOff)
|
2011-04-12 17:45:32 +00:00
|
|
|
self.settingListWidget.setObjectName(u'settingListWidget')
|
2011-04-13 18:40:09 +00:00
|
|
|
self.dialogLayout.addWidget(self.settingListWidget, 0, 0, 1, 1)
|
2011-04-12 19:32:17 +00:00
|
|
|
self.stackedLayout = QtGui.QStackedLayout()
|
|
|
|
self.stackedLayout.setObjectName(u'stackedLayout')
|
2011-04-13 18:40:09 +00:00
|
|
|
self.dialogLayout.addLayout(self.stackedLayout, 0, 1, 1, 1)
|
2012-04-01 22:44:09 +00:00
|
|
|
self.buttonBox = create_button_box(settingsDialog, u'buttonBox',
|
|
|
|
[u'cancel', u'ok'])
|
2011-04-13 18:40:09 +00:00
|
|
|
self.dialogLayout.addWidget(self.buttonBox, 1, 1, 1, 1)
|
2010-07-27 12:18:10 +00:00
|
|
|
self.retranslateUi(settingsDialog)
|
2011-04-12 19:32:17 +00:00
|
|
|
QtCore.QObject.connect(self.settingListWidget,
|
|
|
|
QtCore.SIGNAL(u'currentRowChanged(int)'),
|
2011-12-11 21:59:10 +00:00
|
|
|
self.tabChanged)
|
2009-02-28 23:19:45 +00:00
|
|
|
|
2010-07-27 12:18:10 +00:00
|
|
|
def retranslateUi(self, settingsDialog):
|
|
|
|
settingsDialog.setWindowTitle(translate('OpenLP.SettingsForm',
|
2011-01-02 22:24:14 +00:00
|
|
|
'Configure OpenLP'))
|