2009-02-28 23:19:45 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2012-12-29 13:35:16 +00:00
|
|
|
# vim: autoindent shiftwidth=4 expandtab textwidth=120 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 #
|
|
|
|
# --------------------------------------------------------------------------- #
|
2012-12-29 20:56:56 +00:00
|
|
|
# Copyright (c) 2008-2013 Raoul Snyman #
|
|
|
|
# Portions copyright (c) 2008-2013 Tim Bentley, Gerald Britton, Jonathan #
|
2012-06-22 14:14:53 +00:00
|
|
|
# Corwin, Samuel Findlay, Michael Gorven, Scott Guerrieri, Matthias Hub, #
|
2012-11-11 21:16:14 +00:00
|
|
|
# Meinert Jordan, Armin Köhler, Erik Lundin, Edwin Lunando, Brian T. Meyer. #
|
2012-10-21 13:16:22 +00:00
|
|
|
# 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, #
|
2012-12-01 07:57:54 +00:00
|
|
|
# Frode Woldsund, Martin Zibricky, Patrick Zimmermann #
|
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)
|
2012-12-29 13:35:16 +00:00
|
|
|
settingsDialog.setWindowIcon(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))
|
2012-12-29 13:35:16 +00:00
|
|
|
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-12-29 13:35:16 +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)
|
2012-12-29 13:35:16 +00:00
|
|
|
QtCore.QObject.connect(self.settingListWidget, QtCore.SIGNAL(u'currentRowChanged(int)'), self.tabChanged)
|
2009-02-28 23:19:45 +00:00
|
|
|
|
2010-07-27 12:18:10 +00:00
|
|
|
def retranslateUi(self, settingsDialog):
|
2012-12-29 13:35:16 +00:00
|
|
|
settingsDialog.setWindowTitle(translate('OpenLP.SettingsForm', 'Configure OpenLP'))
|