Fixed up the code to work with the new module/directory layout.

bzr-revno: 134
This commit is contained in:
Raoul Snyman 2008-11-28 14:05:41 +00:00
parent 297d8b4a67
commit 518fd4985d
10 changed files with 1327 additions and 1331 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE UserProject SYSTEM "UserProject-4.0.dtd">
<!-- eric4 user project file for project openlp.org 2.0 -->
<!-- Saved: 2008-11-27, 22:05:12 -->
<!-- Saved: 2008-11-28, 16:03:21 -->
<!-- Copyright (C) 2008 Raoul Snyman, raoulsnyman@openlp.org -->
<UserProject version="4.0">
</UserProject>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Tasks SYSTEM "Tasks-4.2.dtd">
<!-- eric4 tasks file for project openlp.org 2.0 -->
<!-- Saved: 2008-11-27, 22:05:12 -->
<!-- Saved: 2008-11-28, 16:03:25 -->
<Tasks version="4.2">
<Task priority="1" completed="False" bugfix="False">
<Summary>TODO: what is the tags for bridge, pre-chorus?</Summary>

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Project SYSTEM "Project-4.4.dtd">
<!-- eric4 project file for project openlp.org 2.0 -->
<!-- Saved: 2008-11-27, 22:05:01 -->
<!-- Saved: 2008-11-28, 16:03:20 -->
<!-- Copyright (C) 2008 Raoul Snyman, raoulsnyman@openlp.org -->
<Project version="4.4">
<ProgLanguage mixed="0">Python</ProgLanguage>
@ -21,8 +21,6 @@
<Source>openlp/__init__.py</Source>
<Source>demo.py</Source>
<Source>openlp/core/settingsmanager.py</Source>
<Source>openlp/resources/openlp_rc.py</Source>
<Source>openlp/resources/__init__.py</Source>
<Source>openlp/core/plugin.py</Source>
<Source>openlp/core/xmlrootclass.py</Source>
<Source>openlp/plugins/biblemanager/__init__.py</Source>
@ -75,24 +73,10 @@
<Source>openlp/core/event.py</Source>
</Sources>
<Forms>
<Form>openlp/resources/forms/mainwindow.ui</Form>
<Form>openlp/resources/forms/settings.ui</Form>
<Form>openlp/resources/forms/themewizard.ui</Form>
<Form>openlp/resources/forms/about.ui</Form>
<Form>openlp/resources/forms/editsongform.ui</Form>
<Form>openlp/resources/forms/alertform.ui</Form>
<Form>openlp/resources/forms/openlpimportform.ui</Form>
<Form>openlp/resources/forms/openlpexportform.ui</Form>
<Form>openlp/resources/forms/opensongimportform.ui</Form>
<Form>openlp/resources/forms/opensongexportform.ui</Form>
<Form>openlp/resources/forms/splashscreen.ui</Form>
<Form>openlp/resources/forms/songexport.ui</Form>
<Form>openlp/resources/forms/bibleimport.ui</Form>
</Forms>
<Translations>
</Translations>
<Resources>
<Resource>openlp/resources/images/openlp-2.qrc</Resource>
</Resources>
<Interfaces>
</Interfaces>

View File

@ -1,6 +1,5 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=80
"""
OpenLP - Open Source Lyrics Projection
Copyright (c) 2008 Raoul Snyman
@ -22,7 +21,7 @@ Place, Suite 330, Boston, MA 02111-1307 USA
import sys
from PyQt4 import QtCore, QtGui
from openlp.resources import *
from openlp.core.resources import *
from openlp.core.ui import MainWindow, SplashScreen
class OpenLP(QtGui.QApplication):

View File

@ -1,3 +1,5 @@
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
"""
OpenLP - Open Source Lyrics Projection
Copyright (c) 2008 Raoul Snyman
@ -15,13 +17,10 @@ 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
"""
# vim: autoindent shiftwidth=4 expandtab textwidth=80
# import openlp.plugins
import os, sys
import logging
# Shouldn't this be a core class? i.e. from openlp.core import Plugin
from openlp.core import Plugin
# Not sure what this is for. I prefer keeping as much code in the class as possible.

View File

@ -1,227 +1,238 @@
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Project Folders\Personal Projects\openlp-2\trunk\openlp\resources\forms\about.ui'
#
# Created: Wed Nov 05 20:52:55 2008
# by: PyQt4 UI code generator 4.4.4-snapshot-20080918
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
from openlp.resources import *
class AboutForm(object):
def __init__(self):
self.AboutDialog = QtGui.QDialog()
self.setupUi()
def setupUi(self):
self.AboutDialog.setObjectName("AboutDialog")
self.AboutDialog.resize(470, 481)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icon/openlp.org-icon-32.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.AboutDialog.setWindowIcon(icon)
self.AboutDialogLayout = QtGui.QVBoxLayout(self.AboutDialog)
self.AboutDialogLayout.setSpacing(8)
self.AboutDialogLayout.setMargin(8)
self.AboutDialogLayout.setObjectName("AboutDialogLayout")
self.Logo = QtGui.QLabel(self.AboutDialog)
self.Logo.setAutoFillBackground(False)
self.Logo.setStyleSheet("background-color: rgb(255, 255, 255);")
self.Logo.setFrameShape(QtGui.QFrame.StyledPanel)
self.Logo.setLineWidth(1)
self.Logo.setPixmap(QtGui.QPixmap(":/graphics/about-new.bmp"))
self.Logo.setScaledContents(False)
self.Logo.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Logo.setObjectName("Logo")
self.AboutDialogLayout.addWidget(self.Logo)
self.AboutNotebook = QtGui.QTabWidget(self.AboutDialog)
self.AboutNotebook.setObjectName("AboutNotebook")
self.LicenseTab = QtGui.QWidget()
self.LicenseTab.setObjectName("LicenseTab")
self.LicenseTabLayout = QtGui.QVBoxLayout(self.LicenseTab)
self.LicenseTabLayout.setSpacing(8)
self.LicenseTabLayout.setMargin(8)
self.LicenseTabLayout.setObjectName("LicenseTabLayout")
self.CopyrightLabel = QtGui.QLabel(self.LicenseTab)
self.CopyrightLabel.setObjectName("CopyrightLabel")
self.LicenseTabLayout.addWidget(self.CopyrightLabel)
self.AboutAuthors = QtGui.QLabel(self.LicenseTab)
self.AboutAuthors.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter)
self.AboutAuthors.setWordWrap(True)
self.AboutAuthors.setObjectName("AboutAuthors")
self.LicenseTabLayout.addWidget(self.AboutAuthors)
self.License1Label = QtGui.QLabel(self.LicenseTab)
self.License1Label.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter)
self.License1Label.setWordWrap(True)
self.License1Label.setObjectName("License1Label")
self.LicenseTabLayout.addWidget(self.License1Label)
self.License2Label = QtGui.QLabel(self.LicenseTab)
self.License2Label.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter)
self.License2Label.setWordWrap(True)
self.License2Label.setObjectName("License2Label")
self.LicenseTabLayout.addWidget(self.License2Label)
self.License3Label = QtGui.QLabel(self.LicenseTab)
self.License3Label.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter)
self.License3Label.setWordWrap(True)
self.License3Label.setObjectName("License3Label")
self.LicenseTabLayout.addWidget(self.License3Label)
self.AboutNotebook.addTab(self.LicenseTab, "")
self.CreditsTab = QtGui.QWidget()
self.CreditsTab.setObjectName("CreditsTab")
self.CreditsTabLayout = QtGui.QVBoxLayout(self.CreditsTab)
self.CreditsTabLayout.setObjectName("CreditsTabLayout")
self.CreditsScrollArea = QtGui.QScrollArea(self.CreditsTab)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.CreditsScrollArea.sizePolicy().hasHeightForWidth())
self.CreditsScrollArea.setSizePolicy(sizePolicy)
self.CreditsScrollArea.setSizeIncrement(QtCore.QSize(10, 10))
self.CreditsScrollArea.setBaseSize(QtCore.QSize(372, 391))
self.CreditsScrollArea.setMouseTracking(True)
self.CreditsScrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
self.CreditsScrollArea.setWidgetResizable(False)
self.CreditsScrollArea.setAlignment(QtCore.Qt.AlignCenter)
self.CreditsScrollArea.setObjectName("CreditsScrollArea")
self.CreditsScrollContent = QtGui.QWidget(self.CreditsScrollArea)
self.CreditsScrollContent.setGeometry(QtCore.QRect(6, 0, 400, 760))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.CreditsScrollContent.sizePolicy().hasHeightForWidth())
self.CreditsScrollContent.setSizePolicy(sizePolicy)
self.CreditsScrollContent.setBaseSize(QtCore.QSize(400, 760))
self.CreditsScrollContent.setObjectName("CreditsScrollContent")
self.CreditsScrollContentLayout = QtGui.QVBoxLayout(self.CreditsScrollContent)
self.CreditsScrollContentLayout.setSpacing(0)
self.CreditsScrollContentLayout.setMargin(8)
self.CreditsScrollContentLayout.setObjectName("CreditsScrollContentLayout")
self.CreditsLabel = QtGui.QLabel(self.CreditsScrollContent)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.CreditsLabel.sizePolicy().hasHeightForWidth())
self.CreditsLabel.setSizePolicy(sizePolicy)
self.CreditsLabel.setMinimumSize(QtCore.QSize(369, 391))
self.CreditsLabel.setSizeIncrement(QtCore.QSize(10, 10))
self.CreditsLabel.setBaseSize(QtCore.QSize(369, 760))
font = QtGui.QFont()
font.setPointSize(12)
self.CreditsLabel.setFont(font)
self.CreditsLabel.setObjectName("CreditsLabel")
self.CreditsScrollContentLayout.addWidget(self.CreditsLabel)
self.CreditsScrollArea.setWidget(self.CreditsScrollContent)
self.CreditsTabLayout.addWidget(self.CreditsScrollArea)
self.AboutNotebook.addTab(self.CreditsTab, "")
self.AboutDialogLayout.addWidget(self.AboutNotebook)
self.ButtonWidget = QtGui.QWidget(self.AboutDialog)
self.ButtonWidget.setObjectName("ButtonWidget")
self.ButtonWidgetLayout = QtGui.QHBoxLayout(self.ButtonWidget)
self.ButtonWidgetLayout.setSpacing(8)
self.ButtonWidgetLayout.setMargin(0)
self.ButtonWidgetLayout.setObjectName("ButtonWidgetLayout")
spacerItem = QtGui.QSpacerItem(275, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.ButtonWidgetLayout.addItem(spacerItem)
self.ContributeButton = QtGui.QPushButton(self.ButtonWidget)
self.ContributeButton.setObjectName("ContributeButton")
self.ButtonWidgetLayout.addWidget(self.ContributeButton)
self.CloseButton = QtGui.QPushButton(self.ButtonWidget)
self.CloseButton.setObjectName("CloseButton")
self.ButtonWidgetLayout.addWidget(self.CloseButton)
self.AboutDialogLayout.addWidget(self.ButtonWidget)
self.extContributeItem = QtGui.QAction(self.AboutDialog)
self.extContributeItem.setObjectName("extContributeItem")
self.retranslateUi()
self.AboutNotebook.setCurrentIndex(1)
QtCore.QObject.connect(self.CloseButton, QtCore.SIGNAL("clicked()"), self.AboutDialog.close)
QtCore.QMetaObject.connectSlotsByName(self.AboutDialog)
self.AboutDialog.setTabOrder(self.CreditsScrollArea, self.ContributeButton)
QtCore.QObject.connect(self.ContributeButton, QtCore.SIGNAL("clicked()"), self.onContributeButtonClicked)
def retranslateUi(self):
self.AboutDialog.setWindowTitle(QtGui.QApplication.translate("AboutDialog", "About openlp.org", None, QtGui.QApplication.UnicodeUTF8))
self.CopyrightLabel.setText(QtGui.QApplication.translate("AboutDialog", "Copyright © 2004-2008 openlp.org Foundation", None, QtGui.QApplication.UnicodeUTF8))
self.AboutAuthors.setText(QtGui.QApplication.translate("AboutDialog", "openlp.org is written and maintained by volunteers. If you would like to see more free Christian software being written, please consider contributing by using the button below.", None, QtGui.QApplication.UnicodeUTF8))
self.License1Label.setText(QtGui.QApplication.translate("AboutDialog", "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; either version 2 of the License, or (at your option) any later version.", None, QtGui.QApplication.UnicodeUTF8))
self.License2Label.setText(QtGui.QApplication.translate("AboutDialog", "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.", None, QtGui.QApplication.UnicodeUTF8))
self.License3Label.setText(QtGui.QApplication.translate("AboutDialog", "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.", None, QtGui.QApplication.UnicodeUTF8))
self.AboutNotebook.setTabText(self.AboutNotebook.indexOf(self.LicenseTab), QtGui.QApplication.translate("AboutDialog", "License", None, QtGui.QApplication.UnicodeUTF8))
self.CreditsLabel.setText(QtGui.QApplication.translate("AboutDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:12pt; font-weight:400; font-style:normal;\">\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:8pt;\"><span style=\" font-size:10pt; font-weight:600; text-decoration: underline;\">openlp.org 2.0.0</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Copyright © 2004-2008 openlp.org Foundation</p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-weight:600;\">- Lead Developer -</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Raoul Snyman</p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-weight:600;\">- Original Development -</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Tim Ebenezer</p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-weight:600;\">- Additional Development -</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Derek Scotney</p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-weight:600;\">- Testing -</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Jonathan Corwin</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Scott Hileard</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Ken Marshall</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Duane Pearce</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Andrew (thealok)</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Les Norbo</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Many others in the community</p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-weight:600;\">- Documentation -</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Raoul Snyman</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Hannah Snyman</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">David Bunce</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Seth Mayo</p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-weight:600;\">- Components Used -</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">JCL &amp; JVCL - Project Jedi</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">Mozilla Public License</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Toolbar2000 - JR Software</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">GNU General Public License</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">TBX - Alex Denisov</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">Custom Freeware License</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Graphics 32 - Alex Denisov</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">Mozilla Public License</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Saturn Component Pack - Saturn Laboratories</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">Mozilla Public License</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-weight:600;\">- Final Credit -</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">\"For God so loved the world that He gave</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">His one and only Son, so that whoever</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">believes in Him will not perish but inherit</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">eternal life.\" -- John 3:16</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">And last but not least, final credit goes to</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">God our Father, for sending His Son to die</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">on the cross, setting us free from sin. We</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">bring this software to you for free because</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">He has set us free.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
self.AboutNotebook.setTabText(self.AboutNotebook.indexOf(self.CreditsTab), QtGui.QApplication.translate("AboutDialog", "Credits", None, QtGui.QApplication.UnicodeUTF8))
self.ContributeButton.setText(QtGui.QApplication.translate("AboutDialog", "Contribute", None, QtGui.QApplication.UnicodeUTF8))
self.CloseButton.setText(QtGui.QApplication.translate("AboutDialog", "Close", None, QtGui.QApplication.UnicodeUTF8))
self.extContributeItem.setText(QtGui.QApplication.translate("AboutDialog", "&Contribute", None, QtGui.QApplication.UnicodeUTF8))
def show(self):
self.AboutDialog.show()
def onContributeButtonClicked(self):
''' This routine will open the default
web-browser to the contribute page
of openlp.org as did the original
button on the About form
'''
import webbrowser
url = "http://www.openlp.org/en/documentation/introduction/contributing.html"
webbrowser.open_new(url)
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
"""
OpenLP - Open Source Lyrics Projection
Copyright (c) 2008 Raoul Snyman
Portions copyright (c) 2008 Martin Thompson, Tim Bentley,
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.resources import *
class AboutForm(object):
def __init__(self):
self.AboutDialog = QtGui.QDialog()
self.setupUi()
def setupUi(self):
self.AboutDialog.setObjectName("AboutDialog")
self.AboutDialog.resize(470, 481)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icon/openlp.org-icon-32.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.AboutDialog.setWindowIcon(icon)
self.AboutDialogLayout = QtGui.QVBoxLayout(self.AboutDialog)
self.AboutDialogLayout.setSpacing(8)
self.AboutDialogLayout.setMargin(8)
self.AboutDialogLayout.setObjectName("AboutDialogLayout")
self.Logo = QtGui.QLabel(self.AboutDialog)
self.Logo.setAutoFillBackground(False)
self.Logo.setStyleSheet("background-color: rgb(255, 255, 255);")
self.Logo.setFrameShape(QtGui.QFrame.StyledPanel)
self.Logo.setLineWidth(1)
self.Logo.setPixmap(QtGui.QPixmap(":/graphics/about-new.bmp"))
self.Logo.setScaledContents(False)
self.Logo.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.Logo.setObjectName("Logo")
self.AboutDialogLayout.addWidget(self.Logo)
self.AboutNotebook = QtGui.QTabWidget(self.AboutDialog)
self.AboutNotebook.setObjectName("AboutNotebook")
self.LicenseTab = QtGui.QWidget()
self.LicenseTab.setObjectName("LicenseTab")
self.LicenseTabLayout = QtGui.QVBoxLayout(self.LicenseTab)
self.LicenseTabLayout.setSpacing(8)
self.LicenseTabLayout.setMargin(8)
self.LicenseTabLayout.setObjectName("LicenseTabLayout")
self.CopyrightLabel = QtGui.QLabel(self.LicenseTab)
self.CopyrightLabel.setObjectName("CopyrightLabel")
self.LicenseTabLayout.addWidget(self.CopyrightLabel)
self.AboutAuthors = QtGui.QLabel(self.LicenseTab)
self.AboutAuthors.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter)
self.AboutAuthors.setWordWrap(True)
self.AboutAuthors.setObjectName("AboutAuthors")
self.LicenseTabLayout.addWidget(self.AboutAuthors)
self.License1Label = QtGui.QLabel(self.LicenseTab)
self.License1Label.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter)
self.License1Label.setWordWrap(True)
self.License1Label.setObjectName("License1Label")
self.LicenseTabLayout.addWidget(self.License1Label)
self.License2Label = QtGui.QLabel(self.LicenseTab)
self.License2Label.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter)
self.License2Label.setWordWrap(True)
self.License2Label.setObjectName("License2Label")
self.LicenseTabLayout.addWidget(self.License2Label)
self.License3Label = QtGui.QLabel(self.LicenseTab)
self.License3Label.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter)
self.License3Label.setWordWrap(True)
self.License3Label.setObjectName("License3Label")
self.LicenseTabLayout.addWidget(self.License3Label)
self.AboutNotebook.addTab(self.LicenseTab, "")
self.CreditsTab = QtGui.QWidget()
self.CreditsTab.setObjectName("CreditsTab")
self.CreditsTabLayout = QtGui.QVBoxLayout(self.CreditsTab)
self.CreditsTabLayout.setObjectName("CreditsTabLayout")
self.CreditsScrollArea = QtGui.QScrollArea(self.CreditsTab)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.CreditsScrollArea.sizePolicy().hasHeightForWidth())
self.CreditsScrollArea.setSizePolicy(sizePolicy)
self.CreditsScrollArea.setSizeIncrement(QtCore.QSize(10, 10))
self.CreditsScrollArea.setBaseSize(QtCore.QSize(372, 391))
self.CreditsScrollArea.setMouseTracking(True)
self.CreditsScrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
self.CreditsScrollArea.setWidgetResizable(False)
self.CreditsScrollArea.setAlignment(QtCore.Qt.AlignCenter)
self.CreditsScrollArea.setObjectName("CreditsScrollArea")
self.CreditsScrollContent = QtGui.QWidget(self.CreditsScrollArea)
self.CreditsScrollContent.setGeometry(QtCore.QRect(6, 0, 400, 760))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.CreditsScrollContent.sizePolicy().hasHeightForWidth())
self.CreditsScrollContent.setSizePolicy(sizePolicy)
self.CreditsScrollContent.setBaseSize(QtCore.QSize(400, 760))
self.CreditsScrollContent.setObjectName("CreditsScrollContent")
self.CreditsScrollContentLayout = QtGui.QVBoxLayout(self.CreditsScrollContent)
self.CreditsScrollContentLayout.setSpacing(0)
self.CreditsScrollContentLayout.setMargin(8)
self.CreditsScrollContentLayout.setObjectName("CreditsScrollContentLayout")
self.CreditsLabel = QtGui.QLabel(self.CreditsScrollContent)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.CreditsLabel.sizePolicy().hasHeightForWidth())
self.CreditsLabel.setSizePolicy(sizePolicy)
self.CreditsLabel.setMinimumSize(QtCore.QSize(369, 391))
self.CreditsLabel.setSizeIncrement(QtCore.QSize(10, 10))
self.CreditsLabel.setBaseSize(QtCore.QSize(369, 760))
font = QtGui.QFont()
font.setPointSize(12)
self.CreditsLabel.setFont(font)
self.CreditsLabel.setObjectName("CreditsLabel")
self.CreditsScrollContentLayout.addWidget(self.CreditsLabel)
self.CreditsScrollArea.setWidget(self.CreditsScrollContent)
self.CreditsTabLayout.addWidget(self.CreditsScrollArea)
self.AboutNotebook.addTab(self.CreditsTab, "")
self.AboutDialogLayout.addWidget(self.AboutNotebook)
self.ButtonWidget = QtGui.QWidget(self.AboutDialog)
self.ButtonWidget.setObjectName("ButtonWidget")
self.ButtonWidgetLayout = QtGui.QHBoxLayout(self.ButtonWidget)
self.ButtonWidgetLayout.setSpacing(8)
self.ButtonWidgetLayout.setMargin(0)
self.ButtonWidgetLayout.setObjectName("ButtonWidgetLayout")
spacerItem = QtGui.QSpacerItem(275, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.ButtonWidgetLayout.addItem(spacerItem)
self.ContributeButton = QtGui.QPushButton(self.ButtonWidget)
self.ContributeButton.setObjectName("ContributeButton")
self.ButtonWidgetLayout.addWidget(self.ContributeButton)
self.CloseButton = QtGui.QPushButton(self.ButtonWidget)
self.CloseButton.setObjectName("CloseButton")
self.ButtonWidgetLayout.addWidget(self.CloseButton)
self.AboutDialogLayout.addWidget(self.ButtonWidget)
self.extContributeItem = QtGui.QAction(self.AboutDialog)
self.extContributeItem.setObjectName("extContributeItem")
self.retranslateUi()
self.AboutNotebook.setCurrentIndex(1)
QtCore.QObject.connect(self.CloseButton, QtCore.SIGNAL("clicked()"), self.AboutDialog.close)
QtCore.QMetaObject.connectSlotsByName(self.AboutDialog)
self.AboutDialog.setTabOrder(self.CreditsScrollArea, self.ContributeButton)
QtCore.QObject.connect(self.ContributeButton, QtCore.SIGNAL("clicked()"), self.onContributeButtonClicked)
def retranslateUi(self):
self.AboutDialog.setWindowTitle(QtGui.QApplication.translate("AboutDialog", "About openlp.org", None, QtGui.QApplication.UnicodeUTF8))
self.CopyrightLabel.setText(QtGui.QApplication.translate("AboutDialog", "Copyright © 2004-2008 openlp.org Foundation", None, QtGui.QApplication.UnicodeUTF8))
self.AboutAuthors.setText(QtGui.QApplication.translate("AboutDialog", "openlp.org is written and maintained by volunteers. If you would like to see more free Christian software being written, please consider contributing by using the button below.", None, QtGui.QApplication.UnicodeUTF8))
self.License1Label.setText(QtGui.QApplication.translate("AboutDialog", "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; either version 2 of the License, or (at your option) any later version.", None, QtGui.QApplication.UnicodeUTF8))
self.License2Label.setText(QtGui.QApplication.translate("AboutDialog", "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.", None, QtGui.QApplication.UnicodeUTF8))
self.License3Label.setText(QtGui.QApplication.translate("AboutDialog", "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.", None, QtGui.QApplication.UnicodeUTF8))
self.AboutNotebook.setTabText(self.AboutNotebook.indexOf(self.LicenseTab), QtGui.QApplication.translate("AboutDialog", "License", None, QtGui.QApplication.UnicodeUTF8))
self.CreditsLabel.setText(QtGui.QApplication.translate("AboutDialog", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:12pt; font-weight:400; font-style:normal;\">\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:8pt;\"><span style=\" font-size:10pt; font-weight:600; text-decoration: underline;\">openlp.org 2.0.0</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Copyright © 2004-2008 openlp.org Foundation</p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-weight:600;\">- Lead Developer -</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Raoul Snyman</p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-weight:600;\">- Original Development -</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Tim Ebenezer</p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-weight:600;\">- Additional Development -</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Derek Scotney</p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-weight:600;\">- Testing -</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Jonathan Corwin</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Scott Hileard</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Ken Marshall</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Duane Pearce</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Andrew (thealok)</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Les Norbo</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Many others in the community</p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-weight:600;\">- Documentation -</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Raoul Snyman</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Hannah Snyman</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">David Bunce</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Seth Mayo</p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-weight:600;\">- Components Used -</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">JCL &amp; JVCL - Project Jedi</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">Mozilla Public License</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Toolbar2000 - JR Software</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">GNU General Public License</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">TBX - Alex Denisov</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">Custom Freeware License</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Graphics 32 - Alex Denisov</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">Mozilla Public License</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">Saturn Component Pack - Saturn Laboratories</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">Mozilla Public License</span></p>\n"
"<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-weight:600;\">- Final Credit -</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">\"For God so loved the world that He gave</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">His one and only Son, so that whoever</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">believes in Him will not perish but inherit</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\"><span style=\" font-style:italic;\">eternal life.\" -- John 3:16</span></p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">And last but not least, final credit goes to</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">God our Father, for sending His Son to die</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">on the cross, setting us free from sin. We</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">bring this software to you for free because</p>\n"
"<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:10pt;\">He has set us free.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
self.AboutNotebook.setTabText(self.AboutNotebook.indexOf(self.CreditsTab), QtGui.QApplication.translate("AboutDialog", "Credits", None, QtGui.QApplication.UnicodeUTF8))
self.ContributeButton.setText(QtGui.QApplication.translate("AboutDialog", "Contribute", None, QtGui.QApplication.UnicodeUTF8))
self.CloseButton.setText(QtGui.QApplication.translate("AboutDialog", "Close", None, QtGui.QApplication.UnicodeUTF8))
self.extContributeItem.setText(QtGui.QApplication.translate("AboutDialog", "&Contribute", None, QtGui.QApplication.UnicodeUTF8))
def show(self):
self.AboutDialog.show()
def onContributeButtonClicked(self):
''' This routine will open the default
web-browser to the contribute page
of openlp.org as did the original
button on the About form
'''
import webbrowser
url = "http://www.openlp.org/en/documentation/introduction/contributing.html"
webbrowser.open_new(url)

View File

@ -1,81 +1,92 @@
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Project Folders\Personal Projects\openlp-2\trunk\openlp\resources\forms\alertform.ui'
#
# Created: Wed Nov 05 20:54:20 2008
# by: PyQt4 UI code generator 4.4.4-snapshot-20080918
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
from openlp.resources import *
class AlertForm(object):
def __init__(self):
self.AlertForm = QtGui.QWidget()
self.setupUi()
def setupUi(self):
self.AlertForm.setObjectName("AlertForm")
self.AlertForm.resize(370, 105)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icon/openlp.org-icon-32.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.AlertForm.setWindowIcon(icon)
self.AlertFormLayout = QtGui.QVBoxLayout(self.AlertForm)
self.AlertFormLayout.setSpacing(8)
self.AlertFormLayout.setMargin(8)
self.AlertFormLayout.setObjectName("AlertFormLayout")
self.AlertEntryWidget = QtGui.QWidget(self.AlertForm)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.AlertEntryWidget.sizePolicy().hasHeightForWidth())
self.AlertEntryWidget.setSizePolicy(sizePolicy)
self.AlertEntryWidget.setObjectName("AlertEntryWidget")
self.AlertEntryLabel = QtGui.QLabel(self.AlertEntryWidget)
self.AlertEntryLabel.setGeometry(QtCore.QRect(0, 0, 353, 16))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.AlertEntryLabel.sizePolicy().hasHeightForWidth())
self.AlertEntryLabel.setSizePolicy(sizePolicy)
self.AlertEntryLabel.setObjectName("AlertEntryLabel")
self.AlertEntryEditItem = QtGui.QLineEdit(self.AlertEntryWidget)
self.AlertEntryEditItem.setGeometry(QtCore.QRect(0, 20, 353, 21))
self.AlertEntryEditItem.setObjectName("AlertEntryEditItem")
self.AlertFormLayout.addWidget(self.AlertEntryWidget)
self.ButtonBoxWidget = QtGui.QWidget(self.AlertForm)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.ButtonBoxWidget.sizePolicy().hasHeightForWidth())
self.ButtonBoxWidget.setSizePolicy(sizePolicy)
self.ButtonBoxWidget.setObjectName("ButtonBoxWidget")
self.horizontalLayout = QtGui.QHBoxLayout(self.ButtonBoxWidget)
self.horizontalLayout.setSpacing(8)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem = QtGui.QSpacerItem(267, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.DisplayButton = QtGui.QPushButton(self.ButtonBoxWidget)
self.DisplayButton.setObjectName("DisplayButton")
self.horizontalLayout.addWidget(self.DisplayButton)
self.CancelButton = QtGui.QPushButton(self.ButtonBoxWidget)
self.CancelButton.setObjectName("CancelButton")
self.horizontalLayout.addWidget(self.CancelButton)
self.AlertFormLayout.addWidget(self.ButtonBoxWidget)
self.retranslateUi()
QtCore.QObject.connect(self.CancelButton, QtCore.SIGNAL("clicked()"), self.AlertForm.close)
QtCore.QMetaObject.connectSlotsByName(self.AlertForm)
def retranslateUi(self):
self.AlertForm.setWindowTitle(QtGui.QApplication.translate("AlertForm", "Alert Message", None, QtGui.QApplication.UnicodeUTF8))
self.AlertEntryLabel.setText(QtGui.QApplication.translate("AlertForm", "Alert Text:", None, QtGui.QApplication.UnicodeUTF8))
self.DisplayButton.setText(QtGui.QApplication.translate("AlertForm", "Display", None, QtGui.QApplication.UnicodeUTF8))
self.CancelButton.setText(QtGui.QApplication.translate("AlertForm", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
def show(self):
self.AlertForm.show()
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
"""
OpenLP - Open Source Lyrics Projection
Copyright (c) 2008 Raoul Snyman
Portions copyright (c) 2008 Martin Thompson, Tim Bentley,
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.resources import *
class AlertForm(object):
def __init__(self):
self.AlertForm = QtGui.QWidget()
self.setupUi()
def setupUi(self):
self.AlertForm.setObjectName("AlertForm")
self.AlertForm.resize(370, 105)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/icon/openlp.org-icon-32.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.AlertForm.setWindowIcon(icon)
self.AlertFormLayout = QtGui.QVBoxLayout(self.AlertForm)
self.AlertFormLayout.setSpacing(8)
self.AlertFormLayout.setMargin(8)
self.AlertFormLayout.setObjectName("AlertFormLayout")
self.AlertEntryWidget = QtGui.QWidget(self.AlertForm)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.AlertEntryWidget.sizePolicy().hasHeightForWidth())
self.AlertEntryWidget.setSizePolicy(sizePolicy)
self.AlertEntryWidget.setObjectName("AlertEntryWidget")
self.AlertEntryLabel = QtGui.QLabel(self.AlertEntryWidget)
self.AlertEntryLabel.setGeometry(QtCore.QRect(0, 0, 353, 16))
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.AlertEntryLabel.sizePolicy().hasHeightForWidth())
self.AlertEntryLabel.setSizePolicy(sizePolicy)
self.AlertEntryLabel.setObjectName("AlertEntryLabel")
self.AlertEntryEditItem = QtGui.QLineEdit(self.AlertEntryWidget)
self.AlertEntryEditItem.setGeometry(QtCore.QRect(0, 20, 353, 21))
self.AlertEntryEditItem.setObjectName("AlertEntryEditItem")
self.AlertFormLayout.addWidget(self.AlertEntryWidget)
self.ButtonBoxWidget = QtGui.QWidget(self.AlertForm)
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.ButtonBoxWidget.sizePolicy().hasHeightForWidth())
self.ButtonBoxWidget.setSizePolicy(sizePolicy)
self.ButtonBoxWidget.setObjectName("ButtonBoxWidget")
self.horizontalLayout = QtGui.QHBoxLayout(self.ButtonBoxWidget)
self.horizontalLayout.setSpacing(8)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem = QtGui.QSpacerItem(267, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.DisplayButton = QtGui.QPushButton(self.ButtonBoxWidget)
self.DisplayButton.setObjectName("DisplayButton")
self.horizontalLayout.addWidget(self.DisplayButton)
self.CancelButton = QtGui.QPushButton(self.ButtonBoxWidget)
self.CancelButton.setObjectName("CancelButton")
self.horizontalLayout.addWidget(self.CancelButton)
self.AlertFormLayout.addWidget(self.ButtonBoxWidget)
self.retranslateUi()
QtCore.QObject.connect(self.CancelButton, QtCore.SIGNAL("clicked()"), self.AlertForm.close)
QtCore.QMetaObject.connectSlotsByName(self.AlertForm)
def retranslateUi(self):
self.AlertForm.setWindowTitle(QtGui.QApplication.translate("AlertForm", "Alert Message", None, QtGui.QApplication.UnicodeUTF8))
self.AlertEntryLabel.setText(QtGui.QApplication.translate("AlertForm", "Alert Text:", None, QtGui.QApplication.UnicodeUTF8))
self.DisplayButton.setText(QtGui.QApplication.translate("AlertForm", "Display", None, QtGui.QApplication.UnicodeUTF8))
self.CancelButton.setText(QtGui.QApplication.translate("AlertForm", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
def show(self):
self.AlertForm.show()

View File

@ -1,6 +1,5 @@
#!/usr/bin/env pythonw
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=80
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
"""
OpenLP - Open Source Lyrics Projection
Copyright (c) 2008 Raoul Snyman
@ -19,27 +18,14 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA
"""
# Form implementation generated from reading ui file 'openlp/resources/forms/mainwindow.ui'
#
# Created: Wed Oct 29 21:07:26 2008
# by: PyQt4 UI code generator 4.4.3
#
# WARNING! All changes made in this file will be lost!
from time import sleep
from PyQt4 import QtCore, QtGui
from openlp.ui.forms.about import AboutForm
from openlp.ui.forms.alertform import AlertForm
from openlp.ui.forms.editsongform import EditSongForm
from openlp.ui.forms.openlpexportform import OpenLPExportForm
from openlp.ui.forms.openlpimportform import OpenLPImportForm
from openlp.ui.forms.opensongexportform import OpenSongExportForm
from openlp.ui.forms.opensongimportform import OpenSongImportForm
from openlp.ui.forms.settings import SettingsDialog
from openlp.resources import *
from openlp.core.resources import *
from openlp.core.ui.about import AboutForm
from openlp.core.ui.alertform import AlertForm
from openlp.core.ui.settings import SettingsDialog
from openlp.core import Plugin, PluginManager, MediaManagerItem, SettingsTab
class MainWindow(object):
@ -48,12 +34,13 @@ class MainWindow(object):
self.setupUi()
self.about_form = AboutForm()
self.alert_form = AlertForm()
self.edit_song_form = EditSongForm()
self.openlpexportform = OpenLPExportForm()
self.openlpimportform = OpenLPImportForm()
self.opensongexportform = OpenSongExportForm()
self.opensongimportform = OpenSongImportForm()
#self.edit_song_form = EditSongForm()
#self.openlpexportform = OpenLPExportForm()
#self.openlpimportform = OpenLPImportForm()
#self.opensongexportform = OpenSongExportForm()
#self.opensongimportform = OpenSongImportForm()
self.settings_form = SettingsDialog()
self.plugin_manager = PluginManager()
def setupUi(self):
self.main_window.setObjectName("main_window")
@ -177,395 +164,6 @@ class MainWindow(object):
self.MediaToolBox.setObjectName("MediaToolBox")
# This is where we will eventually get the Plugin Manager to pull in
# the media manager items.
self.SongPage = QtGui.QWidget()
self.SongPage.setGeometry(QtCore.QRect(0, 0, 267, 609))
self.SongPage.setObjectName("SongPage")
self.SongsPageLayout = QtGui.QVBoxLayout(self.SongPage)
self.SongsPageLayout.setSpacing(0)
self.SongsPageLayout.setMargin(0)
self.SongsPageLayout.setObjectName("SongsPageLayout")
self.SongToolbar = QtGui.QWidget(self.SongPage)
self.SongToolbar.setObjectName("SongToolbar")
self.SongToolbarLayout = QtGui.QHBoxLayout(self.SongToolbar)
self.SongToolbarLayout.setSpacing(0)
self.SongToolbarLayout.setMargin(0)
self.SongToolbarLayout.setObjectName("SongToolbarLayout")
self.SongNewItem = QtGui.QToolButton(self.SongToolbar)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/songs/song_new.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.SongNewItem.setIcon(icon1)
self.SongNewItem.setIconSize(QtCore.QSize(20, 20))
self.SongNewItem.setAutoRaise(True)
self.SongNewItem.setObjectName("SongNewItem")
self.SongToolbarLayout.addWidget(self.SongNewItem)
self.SongEditItem = QtGui.QToolButton(self.SongToolbar)
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/songs/song_edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.SongEditItem.setIcon(icon2)
self.SongEditItem.setIconSize(QtCore.QSize(20, 20))
self.SongEditItem.setAutoRaise(True)
self.SongEditItem.setObjectName("SongEditItem")
self.SongToolbarLayout.addWidget(self.SongEditItem)
self.SongDeleteItem = QtGui.QToolButton(self.SongToolbar)
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(":/songs/song_delete.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.SongDeleteItem.setIcon(icon3)
self.SongDeleteItem.setIconSize(QtCore.QSize(20, 20))
self.SongDeleteItem.setAutoRaise(True)
self.SongDeleteItem.setObjectName("SongDeleteItem")
self.SongToolbarLayout.addWidget(self.SongDeleteItem)
self.SongLine = QtGui.QFrame(self.SongToolbar)
self.SongLine.setMinimumSize(QtCore.QSize(0, 0))
self.SongLine.setFrameShadow(QtGui.QFrame.Sunken)
self.SongLine.setLineWidth(1)
self.SongLine.setMidLineWidth(0)
self.SongLine.setFrameShape(QtGui.QFrame.VLine)
self.SongLine.setFrameShadow(QtGui.QFrame.Sunken)
self.SongLine.setObjectName("SongLine")
self.SongToolbarLayout.addWidget(self.SongLine)
self.SongPreviewItem = QtGui.QToolButton(self.SongToolbar)
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(":/system/system_preview.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.SongPreviewItem.setIcon(icon4)
self.SongPreviewItem.setIconSize(QtCore.QSize(20, 20))
self.SongPreviewItem.setAutoRaise(True)
self.SongPreviewItem.setObjectName("SongPreviewItem")
self.SongToolbarLayout.addWidget(self.SongPreviewItem)
self.SongLiveItem = QtGui.QToolButton(self.SongToolbar)
icon5 = QtGui.QIcon()
icon5.addPixmap(QtGui.QPixmap(":/system/system_live.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.SongLiveItem.setIcon(icon5)
self.SongLiveItem.setIconSize(QtCore.QSize(20, 20))
self.SongLiveItem.setAutoRaise(True)
self.SongLiveItem.setObjectName("SongLiveItem")
self.SongToolbarLayout.addWidget(self.SongLiveItem)
self.SongAddItem = QtGui.QToolButton(self.SongToolbar)
icon6 = QtGui.QIcon()
icon6.addPixmap(QtGui.QPixmap(":/system/system_add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.SongAddItem.setIcon(icon6)
self.SongAddItem.setIconSize(QtCore.QSize(20, 20))
self.SongAddItem.setAutoRaise(True)
self.SongAddItem.setObjectName("SongAddItem")
self.SongToolbarLayout.addWidget(self.SongAddItem)
spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.SongToolbarLayout.addItem(spacerItem)
self.SongsPageLayout.addWidget(self.SongToolbar)
self.SongList = QtGui.QTableWidget(self.SongPage)
self.SongList.setObjectName("SongList")
self.SongList.setColumnCount(0)
self.SongList.setRowCount(0)
self.SongsPageLayout.addWidget(self.SongList)
icon7 = QtGui.QIcon()
icon7.addPixmap(QtGui.QPixmap(":/media/media_song.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.MediaToolBox.addItem(self.SongPage, icon7, "")
self.VersePage = QtGui.QWidget()
self.VersePage.setGeometry(QtCore.QRect(0, 0, 267, 609))
self.VersePage.setObjectName("VersePage")
self.VersesPageLayout = QtGui.QVBoxLayout(self.VersePage)
self.VersesPageLayout.setSpacing(0)
self.VersesPageLayout.setMargin(0)
self.VersesPageLayout.setObjectName("VersesPageLayout")
self.VerseToolbar = QtGui.QWidget(self.VersePage)
self.VerseToolbar.setObjectName("VerseToolbar")
self.VerseToolbarLayout = QtGui.QHBoxLayout(self.VerseToolbar)
self.VerseToolbarLayout.setSpacing(0)
self.VerseToolbarLayout.setMargin(0)
self.VerseToolbarLayout.setObjectName("VerseToolbarLayout")
self.VersePreviewItem = QtGui.QToolButton(self.VerseToolbar)
self.VersePreviewItem.setIcon(icon4)
self.VersePreviewItem.setIconSize(QtCore.QSize(20, 20))
self.VersePreviewItem.setAutoRaise(True)
self.VersePreviewItem.setObjectName("VersePreviewItem")
self.VerseToolbarLayout.addWidget(self.VersePreviewItem)
self.VerseLiveItem = QtGui.QToolButton(self.VerseToolbar)
self.VerseLiveItem.setIcon(icon5)
self.VerseLiveItem.setIconSize(QtCore.QSize(20, 20))
self.VerseLiveItem.setAutoRaise(True)
self.VerseLiveItem.setObjectName("VerseLiveItem")
self.VerseToolbarLayout.addWidget(self.VerseLiveItem)
self.VerseAddItem = QtGui.QToolButton(self.VerseToolbar)
self.VerseAddItem.setIcon(icon6)
self.VerseAddItem.setIconSize(QtCore.QSize(20, 20))
self.VerseAddItem.setAutoRaise(True)
self.VerseAddItem.setObjectName("VerseAddItem")
self.VerseToolbarLayout.addWidget(self.VerseAddItem)
spacerItem1 = QtGui.QSpacerItem(166, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.VerseToolbarLayout.addItem(spacerItem1)
self.VersesPageLayout.addWidget(self.VerseToolbar)
self.line = QtGui.QFrame(self.VersePage)
self.line.setFrameShape(QtGui.QFrame.HLine)
self.line.setFrameShadow(QtGui.QFrame.Sunken)
self.line.setObjectName("line")
self.VersesPageLayout.addWidget(self.line)
self.VerseSearchWidget = QtGui.QWidget(self.VersePage)
self.VerseSearchWidget.setObjectName("VerseSearchWidget")
self.VerseSearchLayout = QtGui.QGridLayout(self.VerseSearchWidget)
self.VerseSearchLayout.setMargin(8)
self.VerseSearchLayout.setSpacing(8)
self.VerseSearchLayout.setObjectName("VerseSearchLayout")
self.label = QtGui.QLabel(self.VerseSearchWidget)
self.label.setObjectName("label")
self.VerseSearchLayout.addWidget(self.label, 0, 0, 1, 1)
self.comboBox = QtGui.QComboBox(self.VerseSearchWidget)
self.comboBox.setObjectName("comboBox")
self.VerseSearchLayout.addWidget(self.comboBox, 0, 1, 1, 1)
self.label_2 = QtGui.QLabel(self.VerseSearchWidget)
self.label_2.setObjectName("label_2")
self.VerseSearchLayout.addWidget(self.label_2, 1, 0, 1, 1)
self.lineEdit = QtGui.QLineEdit(self.VerseSearchWidget)
self.lineEdit.setObjectName("lineEdit")
self.VerseSearchLayout.addWidget(self.lineEdit, 1, 1, 1, 1)
self.widget = QtGui.QWidget(self.VerseSearchWidget)
self.widget.setObjectName("widget")
self.horizontalLayout = QtGui.QHBoxLayout(self.widget)
self.horizontalLayout.setSpacing(0)
self.horizontalLayout.setMargin(0)
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem2 = QtGui.QSpacerItem(83, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem2)
self.pushButton = QtGui.QPushButton(self.widget)
self.pushButton.setObjectName("pushButton")
self.horizontalLayout.addWidget(self.pushButton)
self.VerseSearchLayout.addWidget(self.widget, 2, 1, 1, 1)
self.VersesPageLayout.addWidget(self.VerseSearchWidget)
self.VerseList = QtGui.QTableWidget(self.VersePage)
self.VerseList.setObjectName("VerseList")
self.VerseList.setColumnCount(0)
self.VerseList.setRowCount(0)
self.VersesPageLayout.addWidget(self.VerseList)
icon8 = QtGui.QIcon()
icon8.addPixmap(QtGui.QPixmap(":/media/media_verse.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.MediaToolBox.addItem(self.VersePage, icon8, "")
self.CustomSlidePage = QtGui.QWidget()
self.CustomSlidePage.setGeometry(QtCore.QRect(0, 0, 267, 609))
self.CustomSlidePage.setObjectName("CustomSlidePage")
self.verticalLayout = QtGui.QVBoxLayout(self.CustomSlidePage)
self.verticalLayout.setSpacing(0)
self.verticalLayout.setMargin(0)
self.verticalLayout.setObjectName("verticalLayout")
self.CustomSlideToolbar = QtGui.QWidget(self.CustomSlidePage)
self.CustomSlideToolbar.setObjectName("CustomSlideToolbar")
self.horizontalLayout_2 = QtGui.QHBoxLayout(self.CustomSlideToolbar)
self.horizontalLayout_2.setSpacing(0)
self.horizontalLayout_2.setContentsMargins(0, 2, 0, 0)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.CustomNewButton = QtGui.QToolButton(self.CustomSlideToolbar)
icon9 = QtGui.QIcon()
icon9.addPixmap(QtGui.QPixmap(":/custom/custom_new.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.CustomNewButton.setIcon(icon9)
self.CustomNewButton.setIconSize(QtCore.QSize(20, 20))
self.CustomNewButton.setAutoRaise(True)
self.CustomNewButton.setObjectName("CustomNewButton")
self.horizontalLayout_2.addWidget(self.CustomNewButton)
self.CustomEditButton = QtGui.QToolButton(self.CustomSlideToolbar)
icon10 = QtGui.QIcon()
icon10.addPixmap(QtGui.QPixmap(":/custom/custom_edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.CustomEditButton.setIcon(icon10)
self.CustomEditButton.setIconSize(QtCore.QSize(20, 20))
self.CustomEditButton.setAutoRaise(True)
self.CustomEditButton.setObjectName("CustomEditButton")
self.horizontalLayout_2.addWidget(self.CustomEditButton)
self.CustomDeleteButton = QtGui.QToolButton(self.CustomSlideToolbar)
icon11 = QtGui.QIcon()
icon11.addPixmap(QtGui.QPixmap(":/custom/custom_delete.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.CustomDeleteButton.setIcon(icon11)
self.CustomDeleteButton.setIconSize(QtCore.QSize(20, 20))
self.CustomDeleteButton.setAutoRaise(True)
self.CustomDeleteButton.setObjectName("CustomDeleteButton")
self.horizontalLayout_2.addWidget(self.CustomDeleteButton)
self.CustomToolbarLine = QtGui.QFrame(self.CustomSlideToolbar)
self.CustomToolbarLine.setFrameShape(QtGui.QFrame.VLine)
self.CustomToolbarLine.setFrameShadow(QtGui.QFrame.Sunken)
self.CustomToolbarLine.setObjectName("CustomToolbarLine")
self.horizontalLayout_2.addWidget(self.CustomToolbarLine)
self.CustomPreviewButton = QtGui.QToolButton(self.CustomSlideToolbar)
self.CustomPreviewButton.setIcon(icon4)
self.CustomPreviewButton.setIconSize(QtCore.QSize(20, 20))
self.CustomPreviewButton.setAutoRaise(True)
self.CustomPreviewButton.setObjectName("CustomPreviewButton")
self.horizontalLayout_2.addWidget(self.CustomPreviewButton)
self.CustomLiveButton = QtGui.QToolButton(self.CustomSlideToolbar)
self.CustomLiveButton.setIcon(icon5)
self.CustomLiveButton.setIconSize(QtCore.QSize(20, 20))
self.CustomLiveButton.setAutoRaise(True)
self.CustomLiveButton.setObjectName("CustomLiveButton")
self.horizontalLayout_2.addWidget(self.CustomLiveButton)
self.CustomAddButton = QtGui.QToolButton(self.CustomSlideToolbar)
self.CustomAddButton.setIcon(icon6)
self.CustomAddButton.setIconSize(QtCore.QSize(20, 20))
self.CustomAddButton.setAutoRaise(True)
self.CustomAddButton.setObjectName("CustomAddButton")
self.horizontalLayout_2.addWidget(self.CustomAddButton)
spacerItem3 = QtGui.QSpacerItem(84, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.horizontalLayout_2.addItem(spacerItem3)
self.verticalLayout.addWidget(self.CustomSlideToolbar)
self.CustomSlideList = QtGui.QListWidget(self.CustomSlidePage)
self.CustomSlideList.setObjectName("CustomSlideList")
self.verticalLayout.addWidget(self.CustomSlideList)
icon12 = QtGui.QIcon()
icon12.addPixmap(QtGui.QPixmap(":/media/media_custom.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.MediaToolBox.addItem(self.CustomSlidePage, icon12, "")
self.PresentationPage = QtGui.QWidget()
self.PresentationPage.setGeometry(QtCore.QRect(0, 0, 267, 609))
self.PresentationPage.setObjectName("PresentationPage")
self.PresentationsLayout = QtGui.QVBoxLayout(self.PresentationPage)
self.PresentationsLayout.setSpacing(0)
self.PresentationsLayout.setMargin(0)
self.PresentationsLayout.setObjectName("PresentationsLayout")
self.PresentationToolbar = QtGui.QWidget(self.PresentationPage)
self.PresentationToolbar.setObjectName("PresentationToolbar")
self.PresentationToolbarLayout = QtGui.QHBoxLayout(self.PresentationToolbar)
self.PresentationToolbarLayout.setSpacing(0)
self.PresentationToolbarLayout.setMargin(0)
self.PresentationToolbarLayout.setObjectName("PresentationToolbarLayout")
self.PresentationLoadItem = QtGui.QToolButton(self.PresentationToolbar)
icon13 = QtGui.QIcon()
icon13.addPixmap(QtGui.QPixmap(":/videos/video_load.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.PresentationLoadItem.setIcon(icon13)
self.PresentationLoadItem.setIconSize(QtCore.QSize(20, 20))
self.PresentationLoadItem.setAutoRaise(True)
self.PresentationLoadItem.setObjectName("PresentationLoadItem")
self.PresentationToolbarLayout.addWidget(self.PresentationLoadItem)
self.PresentationDeleteItem = QtGui.QToolButton(self.PresentationToolbar)
icon14 = QtGui.QIcon()
icon14.addPixmap(QtGui.QPixmap(":/videos/video_delete.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.PresentationDeleteItem.setIcon(icon14)
self.PresentationDeleteItem.setIconSize(QtCore.QSize(20, 20))
self.PresentationDeleteItem.setAutoRaise(True)
self.PresentationDeleteItem.setObjectName("PresentationDeleteItem")
self.PresentationToolbarLayout.addWidget(self.PresentationDeleteItem)
self.PresentationLine = QtGui.QFrame(self.PresentationToolbar)
self.PresentationLine.setFrameShape(QtGui.QFrame.VLine)
self.PresentationLine.setFrameShadow(QtGui.QFrame.Sunken)
self.PresentationLine.setObjectName("PresentationLine")
self.PresentationToolbarLayout.addWidget(self.PresentationLine)
self.PresentationLiveItem = QtGui.QToolButton(self.PresentationToolbar)
self.PresentationLiveItem.setIcon(icon5)
self.PresentationLiveItem.setIconSize(QtCore.QSize(20, 20))
self.PresentationLiveItem.setAutoRaise(True)
self.PresentationLiveItem.setObjectName("PresentationLiveItem")
self.PresentationToolbarLayout.addWidget(self.PresentationLiveItem)
self.PresentationAddItem = QtGui.QToolButton(self.PresentationToolbar)
self.PresentationAddItem.setIcon(icon6)
self.PresentationAddItem.setIconSize(QtCore.QSize(20, 20))
self.PresentationAddItem.setAutoRaise(True)
self.PresentationAddItem.setObjectName("PresentationAddItem")
self.PresentationToolbarLayout.addWidget(self.PresentationAddItem)
spacerItem4 = QtGui.QSpacerItem(166, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.PresentationToolbarLayout.addItem(spacerItem4)
self.PresentationsLayout.addWidget(self.PresentationToolbar)
self.listWidget_2 = QtGui.QListWidget(self.PresentationPage)
self.listWidget_2.setObjectName("listWidget_2")
self.PresentationsLayout.addWidget(self.listWidget_2)
icon15 = QtGui.QIcon()
icon15.addPixmap(QtGui.QPixmap(":/media/media_presentation.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.MediaToolBox.addItem(self.PresentationPage, icon15, "")
self.VideoPage = QtGui.QWidget()
self.VideoPage.setGeometry(QtCore.QRect(0, 0, 267, 609))
self.VideoPage.setObjectName("VideoPage")
self.VideosLayout = QtGui.QVBoxLayout(self.VideoPage)
self.VideosLayout.setSpacing(0)
self.VideosLayout.setMargin(0)
self.VideosLayout.setObjectName("VideosLayout")
self.VideoToolbar = QtGui.QWidget(self.VideoPage)
self.VideoToolbar.setObjectName("VideoToolbar")
self.VideoToolbarLayout = QtGui.QHBoxLayout(self.VideoToolbar)
self.VideoToolbarLayout.setSpacing(0)
self.VideoToolbarLayout.setMargin(0)
self.VideoToolbarLayout.setObjectName("VideoToolbarLayout")
self.VideoLoadItem = QtGui.QToolButton(self.VideoToolbar)
self.VideoLoadItem.setIcon(icon13)
self.VideoLoadItem.setIconSize(QtCore.QSize(20, 20))
self.VideoLoadItem.setAutoRaise(True)
self.VideoLoadItem.setObjectName("VideoLoadItem")
self.VideoToolbarLayout.addWidget(self.VideoLoadItem)
self.VideoDeleteItem = QtGui.QToolButton(self.VideoToolbar)
self.VideoDeleteItem.setIcon(icon14)
self.VideoDeleteItem.setIconSize(QtCore.QSize(20, 20))
self.VideoDeleteItem.setAutoRaise(True)
self.VideoDeleteItem.setObjectName("VideoDeleteItem")
self.VideoToolbarLayout.addWidget(self.VideoDeleteItem)
self.VideoLine = QtGui.QFrame(self.VideoToolbar)
self.VideoLine.setFrameShape(QtGui.QFrame.VLine)
self.VideoLine.setFrameShadow(QtGui.QFrame.Sunken)
self.VideoLine.setObjectName("VideoLine")
self.VideoToolbarLayout.addWidget(self.VideoLine)
self.VideoLiveItem = QtGui.QToolButton(self.VideoToolbar)
self.VideoLiveItem.setIcon(icon5)
self.VideoLiveItem.setIconSize(QtCore.QSize(20, 20))
self.VideoLiveItem.setAutoRaise(True)
self.VideoLiveItem.setObjectName("VideoLiveItem")
self.VideoToolbarLayout.addWidget(self.VideoLiveItem)
self.VideoAddItem = QtGui.QToolButton(self.VideoToolbar)
self.VideoAddItem.setIcon(icon6)
self.VideoAddItem.setIconSize(QtCore.QSize(20, 20))
self.VideoAddItem.setAutoRaise(True)
self.VideoAddItem.setObjectName("VideoAddItem")
self.VideoToolbarLayout.addWidget(self.VideoAddItem)
spacerItem5 = QtGui.QSpacerItem(166, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.VideoToolbarLayout.addItem(spacerItem5)
self.VideosLayout.addWidget(self.VideoToolbar)
self.listWidget = QtGui.QListWidget(self.VideoPage)
self.listWidget.setObjectName("listWidget")
self.VideosLayout.addWidget(self.listWidget)
icon16 = QtGui.QIcon()
icon16.addPixmap(QtGui.QPixmap(":/media/media_video.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.MediaToolBox.addItem(self.VideoPage, icon16, "")
self.ImagePage = QtGui.QWidget()
self.ImagePage.setGeometry(QtCore.QRect(0, 0, 267, 609))
self.ImagePage.setObjectName("ImagePage")
self.ImagesLayout = QtGui.QVBoxLayout(self.ImagePage)
self.ImagesLayout.setSpacing(0)
self.ImagesLayout.setMargin(0)
self.ImagesLayout.setObjectName("ImagesLayout")
self.ImageToolbar = QtGui.QWidget(self.ImagePage)
self.ImageToolbar.setObjectName("ImageToolbar")
self.ImageToolbarLayout = QtGui.QHBoxLayout(self.ImageToolbar)
self.ImageToolbarLayout.setSpacing(0)
self.ImageToolbarLayout.setMargin(0)
self.ImageToolbarLayout.setObjectName("ImageToolbarLayout")
self.ImageLoadItem = QtGui.QToolButton(self.ImageToolbar)
icon17 = QtGui.QIcon()
icon17.addPixmap(QtGui.QPixmap(":/images/image_load.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.ImageLoadItem.setIcon(icon17)
self.ImageLoadItem.setIconSize(QtCore.QSize(20, 20))
self.ImageLoadItem.setAutoRaise(True)
self.ImageLoadItem.setObjectName("ImageLoadItem")
self.ImageToolbarLayout.addWidget(self.ImageLoadItem)
self.ImageDeleteItem = QtGui.QToolButton(self.ImageToolbar)
icon18 = QtGui.QIcon()
icon18.addPixmap(QtGui.QPixmap(":/images/image_delete.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.ImageDeleteItem.setIcon(icon18)
self.ImageDeleteItem.setIconSize(QtCore.QSize(20, 20))
self.ImageDeleteItem.setAutoRaise(True)
self.ImageDeleteItem.setObjectName("ImageDeleteItem")
self.ImageToolbarLayout.addWidget(self.ImageDeleteItem)
self.ImageLine = QtGui.QFrame(self.ImageToolbar)
self.ImageLine.setFrameShape(QtGui.QFrame.VLine)
self.ImageLine.setFrameShadow(QtGui.QFrame.Sunken)
self.ImageLine.setObjectName("ImageLine")
self.ImageToolbarLayout.addWidget(self.ImageLine)
self.ImageLiveItem = QtGui.QToolButton(self.ImageToolbar)
self.ImageLiveItem.setIcon(icon5)
self.ImageLiveItem.setIconSize(QtCore.QSize(20, 20))
self.ImageLiveItem.setAutoRaise(True)
self.ImageLiveItem.setObjectName("ImageLiveItem")
self.ImageToolbarLayout.addWidget(self.ImageLiveItem)
self.ImageAddItem = QtGui.QToolButton(self.ImageToolbar)
self.ImageAddItem.setIcon(icon6)
self.ImageAddItem.setIconSize(QtCore.QSize(20, 20))
self.ImageAddItem.setAutoRaise(True)
self.ImageAddItem.setObjectName("ImageAddItem")
self.ImageToolbarLayout.addWidget(self.ImageAddItem)
spacerItem6 = QtGui.QSpacerItem(105, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
self.ImageToolbarLayout.addItem(spacerItem6)
self.ImagesLayout.addWidget(self.ImageToolbar)
self.ImageListView = QtGui.QListWidget(self.ImagePage)
self.ImageListView.setObjectName("ImageListView")
self.ImagesLayout.addWidget(self.ImageListView)
icon19 = QtGui.QIcon()
icon19.addPixmap(QtGui.QPixmap(":/media/media_image.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.MediaToolBox.addItem(self.ImagePage, icon19, "")
self.MediaManagerLayout.addWidget(self.MediaToolBox)
self.MediaManagerDock.setWidget(self.MediaManagerContents)
self.main_window.addDockWidget(QtCore.Qt.DockWidgetArea(1), self.MediaManagerDock)
@ -890,11 +488,11 @@ class MainWindow(object):
QtCore.QObject.connect(self.HelpAboutItem, QtCore.SIGNAL("triggered()"), self.onHelpAboutItemClicked)
QtCore.QObject.connect(self.ToolsAlertItem, QtCore.SIGNAL("triggered()"), self.onToolsAlertItemClicked)
QtCore.QObject.connect(self.OptionsSettingsItem, QtCore.SIGNAL("triggered()"), self.onOptionsSettingsItemClicked)
QtCore.QObject.connect(self.SongEditItem, QtCore.SIGNAL("clicked()"), self.onSongEditItemClicked)
QtCore.QObject.connect(self.ImportOpenlp1Item, QtCore.SIGNAL("triggered()"), self.onImportOpenlp1ItemClicked)
QtCore.QObject.connect(self.ExportOpenlp1Item, QtCore.SIGNAL("triggered()"), self.onExportOpenlp1ItemClicked)
QtCore.QObject.connect(self.ImportOpenSongItem, QtCore.SIGNAL("triggered()"), self.onImportOpenSongItemClicked)
QtCore.QObject.connect(self.ExportOpenSongItem, QtCore.SIGNAL("triggered()"), self.onExportOpenSongItemClicked)
#QtCore.QObject.connect(self.SongEditItem, QtCore.SIGNAL("clicked()"), self.onSongEditItemClicked)
#QtCore.QObject.connect(self.ImportOpenlp1Item, QtCore.SIGNAL("triggered()"), self.onImportOpenlp1ItemClicked)
#QtCore.QObject.connect(self.ExportOpenlp1Item, QtCore.SIGNAL("triggered()"), self.onExportOpenlp1ItemClicked)
#QtCore.QObject.connect(self.ImportOpenSongItem, QtCore.SIGNAL("triggered()"), self.onImportOpenSongItemClicked)
#QtCore.QObject.connect(self.ExportOpenSongItem, QtCore.SIGNAL("triggered()"), self.onExportOpenSongItemClicked)
def retranslateUi(self):
self.main_window.setWindowTitle(QtGui.QApplication.translate("main_window", "openlp.org 2.0", None, QtGui.QApplication.UnicodeUTF8))
@ -910,51 +508,6 @@ class MainWindow(object):
self.ToolsMenu.setTitle(QtGui.QApplication.translate("main_window", "&Tools", None, QtGui.QApplication.UnicodeUTF8))
self.HelpMenu.setTitle(QtGui.QApplication.translate("main_window", "&Help", None, QtGui.QApplication.UnicodeUTF8))
self.MediaManagerDock.setWindowTitle(QtGui.QApplication.translate("main_window", "Media Manager", None, QtGui.QApplication.UnicodeUTF8))
self.SongNewItem.setText(QtGui.QApplication.translate("main_window", "New Song", None, QtGui.QApplication.UnicodeUTF8))
self.SongEditItem.setText(QtGui.QApplication.translate("main_window", "Edit Song", None, QtGui.QApplication.UnicodeUTF8))
self.SongDeleteItem.setText(QtGui.QApplication.translate("main_window", "Delete Song", None, QtGui.QApplication.UnicodeUTF8))
self.SongPreviewItem.setText(QtGui.QApplication.translate("main_window", "Send to Preview", None, QtGui.QApplication.UnicodeUTF8))
self.SongLiveItem.setText(QtGui.QApplication.translate("main_window", "Send to Live", None, QtGui.QApplication.UnicodeUTF8))
self.SongAddItem.setText(QtGui.QApplication.translate("main_window", "Add to Service", None, QtGui.QApplication.UnicodeUTF8))
self.MediaToolBox.setItemText(self.MediaToolBox.indexOf(self.SongPage), QtGui.QApplication.translate("main_window", "Songs", None, QtGui.QApplication.UnicodeUTF8))
self.VersePreviewItem.setText(QtGui.QApplication.translate("main_window", "Send to Preview", None, QtGui.QApplication.UnicodeUTF8))
self.VerseLiveItem.setText(QtGui.QApplication.translate("main_window", "Send to Live", None, QtGui.QApplication.UnicodeUTF8))
self.VerseAddItem.setText(QtGui.QApplication.translate("main_window", "Add to Service", None, QtGui.QApplication.UnicodeUTF8))
self.label.setText(QtGui.QApplication.translate("main_window", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
self.label_2.setText(QtGui.QApplication.translate("main_window", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
self.pushButton.setText(QtGui.QApplication.translate("main_window", "Search", None, QtGui.QApplication.UnicodeUTF8))
self.MediaToolBox.setItemText(self.MediaToolBox.indexOf(self.VersePage), QtGui.QApplication.translate("main_window", "Bible Verses", None, QtGui.QApplication.UnicodeUTF8))
self.CustomNewButton.setText(QtGui.QApplication.translate("main_window", "New Custom Slide", None, QtGui.QApplication.UnicodeUTF8))
self.CustomEditButton.setText(QtGui.QApplication.translate("main_window", "Edit Custom Slide", None, QtGui.QApplication.UnicodeUTF8))
self.CustomDeleteButton.setText(QtGui.QApplication.translate("main_window", "Delete Custom Slide", None, QtGui.QApplication.UnicodeUTF8))
self.CustomPreviewButton.setText(QtGui.QApplication.translate("main_window", "Preview Custom Slide", None, QtGui.QApplication.UnicodeUTF8))
self.CustomLiveButton.setText(QtGui.QApplication.translate("main_window", "Send Live", None, QtGui.QApplication.UnicodeUTF8))
self.CustomAddButton.setText(QtGui.QApplication.translate("main_window", "Add To Service", None, QtGui.QApplication.UnicodeUTF8))
self.MediaToolBox.setItemText(self.MediaToolBox.indexOf(self.CustomSlidePage), QtGui.QApplication.translate("main_window", "Custom Slides", None, QtGui.QApplication.UnicodeUTF8))
self.PresentationLoadItem.setToolTip(QtGui.QApplication.translate("main_window", "Load Video", None, QtGui.QApplication.UnicodeUTF8))
self.PresentationLoadItem.setStatusTip(QtGui.QApplication.translate("main_window", "Load a video", None, QtGui.QApplication.UnicodeUTF8))
self.PresentationLoadItem.setText(QtGui.QApplication.translate("main_window", "Load Video", None, QtGui.QApplication.UnicodeUTF8))
self.PresentationDeleteItem.setToolTip(QtGui.QApplication.translate("main_window", "Remove Video", None, QtGui.QApplication.UnicodeUTF8))
self.PresentationDeleteItem.setText(QtGui.QApplication.translate("main_window", "RI", None, QtGui.QApplication.UnicodeUTF8))
self.PresentationLiveItem.setText(QtGui.QApplication.translate("main_window", "Send to Live", None, QtGui.QApplication.UnicodeUTF8))
self.PresentationAddItem.setText(QtGui.QApplication.translate("main_window", "Add to Service", None, QtGui.QApplication.UnicodeUTF8))
self.MediaToolBox.setItemText(self.MediaToolBox.indexOf(self.PresentationPage), QtGui.QApplication.translate("main_window", "Presentations", None, QtGui.QApplication.UnicodeUTF8))
self.VideoLoadItem.setToolTip(QtGui.QApplication.translate("main_window", "Load Video", None, QtGui.QApplication.UnicodeUTF8))
self.VideoLoadItem.setStatusTip(QtGui.QApplication.translate("main_window", "Load a video", None, QtGui.QApplication.UnicodeUTF8))
self.VideoLoadItem.setText(QtGui.QApplication.translate("main_window", "Load Video", None, QtGui.QApplication.UnicodeUTF8))
self.VideoDeleteItem.setToolTip(QtGui.QApplication.translate("main_window", "Remove Video", None, QtGui.QApplication.UnicodeUTF8))
self.VideoDeleteItem.setText(QtGui.QApplication.translate("main_window", "RI", None, QtGui.QApplication.UnicodeUTF8))
self.VideoLiveItem.setToolTip(QtGui.QApplication.translate("main_window", "Go Live!", None, QtGui.QApplication.UnicodeUTF8))
self.VideoAddItem.setToolTip(QtGui.QApplication.translate("main_window", "Add to Order of Service", None, QtGui.QApplication.UnicodeUTF8))
self.MediaToolBox.setItemText(self.MediaToolBox.indexOf(self.VideoPage), QtGui.QApplication.translate("main_window", "Videos", None, QtGui.QApplication.UnicodeUTF8))
self.ImageLoadItem.setToolTip(QtGui.QApplication.translate("main_window", "Load Video", None, QtGui.QApplication.UnicodeUTF8))
self.ImageLoadItem.setStatusTip(QtGui.QApplication.translate("main_window", "Load a video", None, QtGui.QApplication.UnicodeUTF8))
self.ImageLoadItem.setText(QtGui.QApplication.translate("main_window", "Load Image", None, QtGui.QApplication.UnicodeUTF8))
self.ImageDeleteItem.setToolTip(QtGui.QApplication.translate("main_window", "Remove Video", None, QtGui.QApplication.UnicodeUTF8))
self.ImageDeleteItem.setText(QtGui.QApplication.translate("main_window", "Delete Image", None, QtGui.QApplication.UnicodeUTF8))
self.ImageLiveItem.setToolTip(QtGui.QApplication.translate("main_window", "Go Live!", None, QtGui.QApplication.UnicodeUTF8))
self.ImageAddItem.setToolTip(QtGui.QApplication.translate("main_window", "Add to Order of Service", None, QtGui.QApplication.UnicodeUTF8))
self.MediaToolBox.setItemText(self.MediaToolBox.indexOf(self.ImagePage), QtGui.QApplication.translate("main_window", "Images", None, QtGui.QApplication.UnicodeUTF8))
self.ServiceManagerDock.setWindowTitle(QtGui.QApplication.translate("main_window", "Service Manager", None, QtGui.QApplication.UnicodeUTF8))
self.MoveTopButton.setText(QtGui.QApplication.translate("main_window", "Move To Top", None, QtGui.QApplication.UnicodeUTF8))
self.MoveUpButton.setText(QtGui.QApplication.translate("main_window", "Move Up", None, QtGui.QApplication.UnicodeUTF8))
@ -1049,20 +602,455 @@ class MainWindow(object):
def onToolsAlertItemClicked(self):
self.alert_form.show()
def onSongEditItemClicked(self):
self.edit_song_form.show()
#def onSongEditItemClicked(self):
# self.edit_song_form.show()
def onExportOpenlp1ItemClicked(self):
self.openlpexportform.show()
#def onExportOpenlp1ItemClicked(self):
# self.openlpexportform.show()
def onImportOpenlp1ItemClicked(self):
self.openlpimportform.show()
#def onImportOpenlp1ItemClicked(self):
# self.openlpimportform.show()
def onExportOpenSongItemClicked(self):
self.opensongexportform.show()
#def onExportOpenSongItemClicked(self):
# self.opensongexportform.show()
def onImportOpenSongItemClicked(self):
self.opensongimportform.show()
#def onImportOpenSongItemClicked(self):
# self.opensongimportform.show()
def onOptionsSettingsItemClicked(self):
self.settings_form.show()
# self.SongPage = QtGui.QWidget()
# self.SongPage.setGeometry(QtCore.QRect(0, 0, 267, 609))
# self.SongPage.setObjectName("SongPage")
# self.SongsPageLayout = QtGui.QVBoxLayout(self.SongPage)
# self.SongsPageLayout.setSpacing(0)
# self.SongsPageLayout.setMargin(0)
# self.SongsPageLayout.setObjectName("SongsPageLayout")
# self.SongToolbar = QtGui.QWidget(self.SongPage)
# self.SongToolbar.setObjectName("SongToolbar")
# self.SongToolbarLayout = QtGui.QHBoxLayout(self.SongToolbar)
# self.SongToolbarLayout.setSpacing(0)
# self.SongToolbarLayout.setMargin(0)
# self.SongToolbarLayout.setObjectName("SongToolbarLayout")
# self.SongNewItem = QtGui.QToolButton(self.SongToolbar)
# icon1 = QtGui.QIcon()
# icon1.addPixmap(QtGui.QPixmap(":/songs/song_new.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.SongNewItem.setIcon(icon1)
# self.SongNewItem.setIconSize(QtCore.QSize(20, 20))
# self.SongNewItem.setAutoRaise(True)
# self.SongNewItem.setObjectName("SongNewItem")
# self.SongToolbarLayout.addWidget(self.SongNewItem)
# self.SongEditItem = QtGui.QToolButton(self.SongToolbar)
# icon2 = QtGui.QIcon()
# icon2.addPixmap(QtGui.QPixmap(":/songs/song_edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.SongEditItem.setIcon(icon2)
# self.SongEditItem.setIconSize(QtCore.QSize(20, 20))
# self.SongEditItem.setAutoRaise(True)
# self.SongEditItem.setObjectName("SongEditItem")
# self.SongToolbarLayout.addWidget(self.SongEditItem)
# self.SongDeleteItem = QtGui.QToolButton(self.SongToolbar)
# icon3 = QtGui.QIcon()
# icon3.addPixmap(QtGui.QPixmap(":/songs/song_delete.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.SongDeleteItem.setIcon(icon3)
# self.SongDeleteItem.setIconSize(QtCore.QSize(20, 20))
# self.SongDeleteItem.setAutoRaise(True)
# self.SongDeleteItem.setObjectName("SongDeleteItem")
# self.SongToolbarLayout.addWidget(self.SongDeleteItem)
# self.SongLine = QtGui.QFrame(self.SongToolbar)
# self.SongLine.setMinimumSize(QtCore.QSize(0, 0))
# self.SongLine.setFrameShadow(QtGui.QFrame.Sunken)
# self.SongLine.setLineWidth(1)
# self.SongLine.setMidLineWidth(0)
# self.SongLine.setFrameShape(QtGui.QFrame.VLine)
# self.SongLine.setFrameShadow(QtGui.QFrame.Sunken)
# self.SongLine.setObjectName("SongLine")
# self.SongToolbarLayout.addWidget(self.SongLine)
# self.SongPreviewItem = QtGui.QToolButton(self.SongToolbar)
# icon4 = QtGui.QIcon()
# icon4.addPixmap(QtGui.QPixmap(":/system/system_preview.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.SongPreviewItem.setIcon(icon4)
# self.SongPreviewItem.setIconSize(QtCore.QSize(20, 20))
# self.SongPreviewItem.setAutoRaise(True)
# self.SongPreviewItem.setObjectName("SongPreviewItem")
# self.SongToolbarLayout.addWidget(self.SongPreviewItem)
# self.SongLiveItem = QtGui.QToolButton(self.SongToolbar)
# icon5 = QtGui.QIcon()
# icon5.addPixmap(QtGui.QPixmap(":/system/system_live.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.SongLiveItem.setIcon(icon5)
# self.SongLiveItem.setIconSize(QtCore.QSize(20, 20))
# self.SongLiveItem.setAutoRaise(True)
# self.SongLiveItem.setObjectName("SongLiveItem")
# self.SongToolbarLayout.addWidget(self.SongLiveItem)
# self.SongAddItem = QtGui.QToolButton(self.SongToolbar)
# icon6 = QtGui.QIcon()
# icon6.addPixmap(QtGui.QPixmap(":/system/system_add.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.SongAddItem.setIcon(icon6)
# self.SongAddItem.setIconSize(QtCore.QSize(20, 20))
# self.SongAddItem.setAutoRaise(True)
# self.SongAddItem.setObjectName("SongAddItem")
# self.SongToolbarLayout.addWidget(self.SongAddItem)
# spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
# self.SongToolbarLayout.addItem(spacerItem)
# self.SongsPageLayout.addWidget(self.SongToolbar)
# self.SongList = QtGui.QTableWidget(self.SongPage)
# self.SongList.setObjectName("SongList")
# self.SongList.setColumnCount(0)
# self.SongList.setRowCount(0)
# self.SongsPageLayout.addWidget(self.SongList)
# icon7 = QtGui.QIcon()
# icon7.addPixmap(QtGui.QPixmap(":/media/media_song.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.MediaToolBox.addItem(self.SongPage, icon7, "")
# self.VersePage = QtGui.QWidget()
# self.VersePage.setGeometry(QtCore.QRect(0, 0, 267, 609))
# self.VersePage.setObjectName("VersePage")
# self.VersesPageLayout = QtGui.QVBoxLayout(self.VersePage)
# self.VersesPageLayout.setSpacing(0)
# self.VersesPageLayout.setMargin(0)
# self.VersesPageLayout.setObjectName("VersesPageLayout")
# self.VerseToolbar = QtGui.QWidget(self.VersePage)
# self.VerseToolbar.setObjectName("VerseToolbar")
# self.VerseToolbarLayout = QtGui.QHBoxLayout(self.VerseToolbar)
# self.VerseToolbarLayout.setSpacing(0)
# self.VerseToolbarLayout.setMargin(0)
# self.VerseToolbarLayout.setObjectName("VerseToolbarLayout")
# self.VersePreviewItem = QtGui.QToolButton(self.VerseToolbar)
# self.VersePreviewItem.setIcon(icon4)
# self.VersePreviewItem.setIconSize(QtCore.QSize(20, 20))
# self.VersePreviewItem.setAutoRaise(True)
# self.VersePreviewItem.setObjectName("VersePreviewItem")
# self.VerseToolbarLayout.addWidget(self.VersePreviewItem)
# self.VerseLiveItem = QtGui.QToolButton(self.VerseToolbar)
# self.VerseLiveItem.setIcon(icon5)
# self.VerseLiveItem.setIconSize(QtCore.QSize(20, 20))
# self.VerseLiveItem.setAutoRaise(True)
# self.VerseLiveItem.setObjectName("VerseLiveItem")
# self.VerseToolbarLayout.addWidget(self.VerseLiveItem)
# self.VerseAddItem = QtGui.QToolButton(self.VerseToolbar)
# self.VerseAddItem.setIcon(icon6)
# self.VerseAddItem.setIconSize(QtCore.QSize(20, 20))
# self.VerseAddItem.setAutoRaise(True)
# self.VerseAddItem.setObjectName("VerseAddItem")
# self.VerseToolbarLayout.addWidget(self.VerseAddItem)
# spacerItem1 = QtGui.QSpacerItem(166, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
# self.VerseToolbarLayout.addItem(spacerItem1)
# self.VersesPageLayout.addWidget(self.VerseToolbar)
# self.line = QtGui.QFrame(self.VersePage)
# self.line.setFrameShape(QtGui.QFrame.HLine)
# self.line.setFrameShadow(QtGui.QFrame.Sunken)
# self.line.setObjectName("line")
# self.VersesPageLayout.addWidget(self.line)
# self.VerseSearchWidget = QtGui.QWidget(self.VersePage)
# self.VerseSearchWidget.setObjectName("VerseSearchWidget")
# self.VerseSearchLayout = QtGui.QGridLayout(self.VerseSearchWidget)
# self.VerseSearchLayout.setMargin(8)
# self.VerseSearchLayout.setSpacing(8)
# self.VerseSearchLayout.setObjectName("VerseSearchLayout")
# self.label = QtGui.QLabel(self.VerseSearchWidget)
# self.label.setObjectName("label")
# self.VerseSearchLayout.addWidget(self.label, 0, 0, 1, 1)
# self.comboBox = QtGui.QComboBox(self.VerseSearchWidget)
# self.comboBox.setObjectName("comboBox")
# self.VerseSearchLayout.addWidget(self.comboBox, 0, 1, 1, 1)
# self.label_2 = QtGui.QLabel(self.VerseSearchWidget)
# self.label_2.setObjectName("label_2")
# self.VerseSearchLayout.addWidget(self.label_2, 1, 0, 1, 1)
# self.lineEdit = QtGui.QLineEdit(self.VerseSearchWidget)
# self.lineEdit.setObjectName("lineEdit")
# self.VerseSearchLayout.addWidget(self.lineEdit, 1, 1, 1, 1)
# self.widget = QtGui.QWidget(self.VerseSearchWidget)
# self.widget.setObjectName("widget")
# self.horizontalLayout = QtGui.QHBoxLayout(self.widget)
# self.horizontalLayout.setSpacing(0)
# self.horizontalLayout.setMargin(0)
# self.horizontalLayout.setObjectName("horizontalLayout")
# spacerItem2 = QtGui.QSpacerItem(83, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
# self.horizontalLayout.addItem(spacerItem2)
# self.pushButton = QtGui.QPushButton(self.widget)
# self.pushButton.setObjectName("pushButton")
# self.horizontalLayout.addWidget(self.pushButton)
# self.VerseSearchLayout.addWidget(self.widget, 2, 1, 1, 1)
# self.VersesPageLayout.addWidget(self.VerseSearchWidget)
# self.VerseList = QtGui.QTableWidget(self.VersePage)
# self.VerseList.setObjectName("VerseList")
# self.VerseList.setColumnCount(0)
# self.VerseList.setRowCount(0)
# self.VersesPageLayout.addWidget(self.VerseList)
# icon8 = QtGui.QIcon()
# icon8.addPixmap(QtGui.QPixmap(":/media/media_verse.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.MediaToolBox.addItem(self.VersePage, icon8, "")
# self.CustomSlidePage = QtGui.QWidget()
# self.CustomSlidePage.setGeometry(QtCore.QRect(0, 0, 267, 609))
# self.CustomSlidePage.setObjectName("CustomSlidePage")
# self.verticalLayout = QtGui.QVBoxLayout(self.CustomSlidePage)
# self.verticalLayout.setSpacing(0)
# self.verticalLayout.setMargin(0)
# self.verticalLayout.setObjectName("verticalLayout")
# self.CustomSlideToolbar = QtGui.QWidget(self.CustomSlidePage)
# self.CustomSlideToolbar.setObjectName("CustomSlideToolbar")
# self.horizontalLayout_2 = QtGui.QHBoxLayout(self.CustomSlideToolbar)
# self.horizontalLayout_2.setSpacing(0)
# self.horizontalLayout_2.setContentsMargins(0, 2, 0, 0)
# self.horizontalLayout_2.setObjectName("horizontalLayout_2")
# self.CustomNewButton = QtGui.QToolButton(self.CustomSlideToolbar)
# icon9 = QtGui.QIcon()
# icon9.addPixmap(QtGui.QPixmap(":/custom/custom_new.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.CustomNewButton.setIcon(icon9)
# self.CustomNewButton.setIconSize(QtCore.QSize(20, 20))
# self.CustomNewButton.setAutoRaise(True)
# self.CustomNewButton.setObjectName("CustomNewButton")
# self.horizontalLayout_2.addWidget(self.CustomNewButton)
# self.CustomEditButton = QtGui.QToolButton(self.CustomSlideToolbar)
# icon10 = QtGui.QIcon()
# icon10.addPixmap(QtGui.QPixmap(":/custom/custom_edit.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.CustomEditButton.setIcon(icon10)
# self.CustomEditButton.setIconSize(QtCore.QSize(20, 20))
# self.CustomEditButton.setAutoRaise(True)
# self.CustomEditButton.setObjectName("CustomEditButton")
# self.horizontalLayout_2.addWidget(self.CustomEditButton)
# self.CustomDeleteButton = QtGui.QToolButton(self.CustomSlideToolbar)
# icon11 = QtGui.QIcon()
# icon11.addPixmap(QtGui.QPixmap(":/custom/custom_delete.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.CustomDeleteButton.setIcon(icon11)
# self.CustomDeleteButton.setIconSize(QtCore.QSize(20, 20))
# self.CustomDeleteButton.setAutoRaise(True)
# self.CustomDeleteButton.setObjectName("CustomDeleteButton")
# self.horizontalLayout_2.addWidget(self.CustomDeleteButton)
# self.CustomToolbarLine = QtGui.QFrame(self.CustomSlideToolbar)
# self.CustomToolbarLine.setFrameShape(QtGui.QFrame.VLine)
# self.CustomToolbarLine.setFrameShadow(QtGui.QFrame.Sunken)
# self.CustomToolbarLine.setObjectName("CustomToolbarLine")
# self.horizontalLayout_2.addWidget(self.CustomToolbarLine)
# self.CustomPreviewButton = QtGui.QToolButton(self.CustomSlideToolbar)
# self.CustomPreviewButton.setIcon(icon4)
# self.CustomPreviewButton.setIconSize(QtCore.QSize(20, 20))
# self.CustomPreviewButton.setAutoRaise(True)
# self.CustomPreviewButton.setObjectName("CustomPreviewButton")
# self.horizontalLayout_2.addWidget(self.CustomPreviewButton)
# self.CustomLiveButton = QtGui.QToolButton(self.CustomSlideToolbar)
# self.CustomLiveButton.setIcon(icon5)
# self.CustomLiveButton.setIconSize(QtCore.QSize(20, 20))
# self.CustomLiveButton.setAutoRaise(True)
# self.CustomLiveButton.setObjectName("CustomLiveButton")
# self.horizontalLayout_2.addWidget(self.CustomLiveButton)
# self.CustomAddButton = QtGui.QToolButton(self.CustomSlideToolbar)
# self.CustomAddButton.setIcon(icon6)
# self.CustomAddButton.setIconSize(QtCore.QSize(20, 20))
# self.CustomAddButton.setAutoRaise(True)
# self.CustomAddButton.setObjectName("CustomAddButton")
# self.horizontalLayout_2.addWidget(self.CustomAddButton)
# spacerItem3 = QtGui.QSpacerItem(84, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
# self.horizontalLayout_2.addItem(spacerItem3)
# self.verticalLayout.addWidget(self.CustomSlideToolbar)
# self.CustomSlideList = QtGui.QListWidget(self.CustomSlidePage)
# self.CustomSlideList.setObjectName("CustomSlideList")
# self.verticalLayout.addWidget(self.CustomSlideList)
# icon12 = QtGui.QIcon()
# icon12.addPixmap(QtGui.QPixmap(":/media/media_custom.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.MediaToolBox.addItem(self.CustomSlidePage, icon12, "")
# self.PresentationPage = QtGui.QWidget()
# self.PresentationPage.setGeometry(QtCore.QRect(0, 0, 267, 609))
# self.PresentationPage.setObjectName("PresentationPage")
# self.PresentationsLayout = QtGui.QVBoxLayout(self.PresentationPage)
# self.PresentationsLayout.setSpacing(0)
# self.PresentationsLayout.setMargin(0)
# self.PresentationsLayout.setObjectName("PresentationsLayout")
# self.PresentationToolbar = QtGui.QWidget(self.PresentationPage)
# self.PresentationToolbar.setObjectName("PresentationToolbar")
# self.PresentationToolbarLayout = QtGui.QHBoxLayout(self.PresentationToolbar)
# self.PresentationToolbarLayout.setSpacing(0)
# self.PresentationToolbarLayout.setMargin(0)
# self.PresentationToolbarLayout.setObjectName("PresentationToolbarLayout")
# self.PresentationLoadItem = QtGui.QToolButton(self.PresentationToolbar)
# icon13 = QtGui.QIcon()
# icon13.addPixmap(QtGui.QPixmap(":/videos/video_load.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.PresentationLoadItem.setIcon(icon13)
# self.PresentationLoadItem.setIconSize(QtCore.QSize(20, 20))
# self.PresentationLoadItem.setAutoRaise(True)
# self.PresentationLoadItem.setObjectName("PresentationLoadItem")
# self.PresentationToolbarLayout.addWidget(self.PresentationLoadItem)
# self.PresentationDeleteItem = QtGui.QToolButton(self.PresentationToolbar)
# icon14 = QtGui.QIcon()
# icon14.addPixmap(QtGui.QPixmap(":/videos/video_delete.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.PresentationDeleteItem.setIcon(icon14)
# self.PresentationDeleteItem.setIconSize(QtCore.QSize(20, 20))
# self.PresentationDeleteItem.setAutoRaise(True)
# self.PresentationDeleteItem.setObjectName("PresentationDeleteItem")
# self.PresentationToolbarLayout.addWidget(self.PresentationDeleteItem)
# self.PresentationLine = QtGui.QFrame(self.PresentationToolbar)
# self.PresentationLine.setFrameShape(QtGui.QFrame.VLine)
# self.PresentationLine.setFrameShadow(QtGui.QFrame.Sunken)
# self.PresentationLine.setObjectName("PresentationLine")
# self.PresentationToolbarLayout.addWidget(self.PresentationLine)
# self.PresentationLiveItem = QtGui.QToolButton(self.PresentationToolbar)
# self.PresentationLiveItem.setIcon(icon5)
# self.PresentationLiveItem.setIconSize(QtCore.QSize(20, 20))
# self.PresentationLiveItem.setAutoRaise(True)
# self.PresentationLiveItem.setObjectName("PresentationLiveItem")
# self.PresentationToolbarLayout.addWidget(self.PresentationLiveItem)
# self.PresentationAddItem = QtGui.QToolButton(self.PresentationToolbar)
# self.PresentationAddItem.setIcon(icon6)
# self.PresentationAddItem.setIconSize(QtCore.QSize(20, 20))
# self.PresentationAddItem.setAutoRaise(True)
# self.PresentationAddItem.setObjectName("PresentationAddItem")
# self.PresentationToolbarLayout.addWidget(self.PresentationAddItem)
# spacerItem4 = QtGui.QSpacerItem(166, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
# self.PresentationToolbarLayout.addItem(spacerItem4)
# self.PresentationsLayout.addWidget(self.PresentationToolbar)
# self.listWidget_2 = QtGui.QListWidget(self.PresentationPage)
# self.listWidget_2.setObjectName("listWidget_2")
# self.PresentationsLayout.addWidget(self.listWidget_2)
# icon15 = QtGui.QIcon()
# icon15.addPixmap(QtGui.QPixmap(":/media/media_presentation.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.MediaToolBox.addItem(self.PresentationPage, icon15, "")
# self.VideoPage = QtGui.QWidget()
# self.VideoPage.setGeometry(QtCore.QRect(0, 0, 267, 609))
# self.VideoPage.setObjectName("VideoPage")
# self.VideosLayout = QtGui.QVBoxLayout(self.VideoPage)
# self.VideosLayout.setSpacing(0)
# self.VideosLayout.setMargin(0)
# self.VideosLayout.setObjectName("VideosLayout")
# self.VideoToolbar = QtGui.QWidget(self.VideoPage)
# self.VideoToolbar.setObjectName("VideoToolbar")
# self.VideoToolbarLayout = QtGui.QHBoxLayout(self.VideoToolbar)
# self.VideoToolbarLayout.setSpacing(0)
# self.VideoToolbarLayout.setMargin(0)
# self.VideoToolbarLayout.setObjectName("VideoToolbarLayout")
# self.VideoLoadItem = QtGui.QToolButton(self.VideoToolbar)
# self.VideoLoadItem.setIcon(icon13)
# self.VideoLoadItem.setIconSize(QtCore.QSize(20, 20))
# self.VideoLoadItem.setAutoRaise(True)
# self.VideoLoadItem.setObjectName("VideoLoadItem")
# self.VideoToolbarLayout.addWidget(self.VideoLoadItem)
# self.VideoDeleteItem = QtGui.QToolButton(self.VideoToolbar)
# self.VideoDeleteItem.setIcon(icon14)
# self.VideoDeleteItem.setIconSize(QtCore.QSize(20, 20))
# self.VideoDeleteItem.setAutoRaise(True)
# self.VideoDeleteItem.setObjectName("VideoDeleteItem")
# self.VideoToolbarLayout.addWidget(self.VideoDeleteItem)
# self.VideoLine = QtGui.QFrame(self.VideoToolbar)
# self.VideoLine.setFrameShape(QtGui.QFrame.VLine)
# self.VideoLine.setFrameShadow(QtGui.QFrame.Sunken)
# self.VideoLine.setObjectName("VideoLine")
# self.VideoToolbarLayout.addWidget(self.VideoLine)
# self.VideoLiveItem = QtGui.QToolButton(self.VideoToolbar)
# self.VideoLiveItem.setIcon(icon5)
# self.VideoLiveItem.setIconSize(QtCore.QSize(20, 20))
# self.VideoLiveItem.setAutoRaise(True)
# self.VideoLiveItem.setObjectName("VideoLiveItem")
# self.VideoToolbarLayout.addWidget(self.VideoLiveItem)
# self.VideoAddItem = QtGui.QToolButton(self.VideoToolbar)
# self.VideoAddItem.setIcon(icon6)
# self.VideoAddItem.setIconSize(QtCore.QSize(20, 20))
# self.VideoAddItem.setAutoRaise(True)
# self.VideoAddItem.setObjectName("VideoAddItem")
# self.VideoToolbarLayout.addWidget(self.VideoAddItem)
# spacerItem5 = QtGui.QSpacerItem(166, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
# self.VideoToolbarLayout.addItem(spacerItem5)
# self.VideosLayout.addWidget(self.VideoToolbar)
# self.listWidget = QtGui.QListWidget(self.VideoPage)
# self.listWidget.setObjectName("listWidget")
# self.VideosLayout.addWidget(self.listWidget)
# icon16 = QtGui.QIcon()
# icon16.addPixmap(QtGui.QPixmap(":/media/media_video.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.MediaToolBox.addItem(self.VideoPage, icon16, "")
# self.ImagePage = QtGui.QWidget()
# self.ImagePage.setGeometry(QtCore.QRect(0, 0, 267, 609))
# self.ImagePage.setObjectName("ImagePage")
# self.ImagesLayout = QtGui.QVBoxLayout(self.ImagePage)
# self.ImagesLayout.setSpacing(0)
# self.ImagesLayout.setMargin(0)
# self.ImagesLayout.setObjectName("ImagesLayout")
# self.ImageToolbar = QtGui.QWidget(self.ImagePage)
# self.ImageToolbar.setObjectName("ImageToolbar")
# self.ImageToolbarLayout = QtGui.QHBoxLayout(self.ImageToolbar)
# self.ImageToolbarLayout.setSpacing(0)
# self.ImageToolbarLayout.setMargin(0)
# self.ImageToolbarLayout.setObjectName("ImageToolbarLayout")
# self.ImageLoadItem = QtGui.QToolButton(self.ImageToolbar)
# icon17 = QtGui.QIcon()
# icon17.addPixmap(QtGui.QPixmap(":/images/image_load.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.ImageLoadItem.setIcon(icon17)
# self.ImageLoadItem.setIconSize(QtCore.QSize(20, 20))
# self.ImageLoadItem.setAutoRaise(True)
# self.ImageLoadItem.setObjectName("ImageLoadItem")
# self.ImageToolbarLayout.addWidget(self.ImageLoadItem)
# self.ImageDeleteItem = QtGui.QToolButton(self.ImageToolbar)
# icon18 = QtGui.QIcon()
# icon18.addPixmap(QtGui.QPixmap(":/images/image_delete.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.ImageDeleteItem.setIcon(icon18)
# self.ImageDeleteItem.setIconSize(QtCore.QSize(20, 20))
# self.ImageDeleteItem.setAutoRaise(True)
# self.ImageDeleteItem.setObjectName("ImageDeleteItem")
# self.ImageToolbarLayout.addWidget(self.ImageDeleteItem)
# self.ImageLine = QtGui.QFrame(self.ImageToolbar)
# self.ImageLine.setFrameShape(QtGui.QFrame.VLine)
# self.ImageLine.setFrameShadow(QtGui.QFrame.Sunken)
# self.ImageLine.setObjectName("ImageLine")
# self.ImageToolbarLayout.addWidget(self.ImageLine)
# self.ImageLiveItem = QtGui.QToolButton(self.ImageToolbar)
# self.ImageLiveItem.setIcon(icon5)
# self.ImageLiveItem.setIconSize(QtCore.QSize(20, 20))
# self.ImageLiveItem.setAutoRaise(True)
# self.ImageLiveItem.setObjectName("ImageLiveItem")
# self.ImageToolbarLayout.addWidget(self.ImageLiveItem)
# self.ImageAddItem = QtGui.QToolButton(self.ImageToolbar)
# self.ImageAddItem.setIcon(icon6)
# self.ImageAddItem.setIconSize(QtCore.QSize(20, 20))
# self.ImageAddItem.setAutoRaise(True)
# self.ImageAddItem.setObjectName("ImageAddItem")
# self.ImageToolbarLayout.addWidget(self.ImageAddItem)
# spacerItem6 = QtGui.QSpacerItem(105, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
# self.ImageToolbarLayout.addItem(spacerItem6)
# self.ImagesLayout.addWidget(self.ImageToolbar)
# self.ImageListView = QtGui.QListWidget(self.ImagePage)
# self.ImageListView.setObjectName("ImageListView")
# self.ImagesLayout.addWidget(self.ImageListView)
# icon19 = QtGui.QIcon()
# icon19.addPixmap(QtGui.QPixmap(":/media/media_image.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
# self.MediaToolBox.addItem(self.ImagePage, icon19, "")
# self.SongNewItem.setText(QtGui.QApplication.translate("main_window", "New Song", None, QtGui.QApplication.UnicodeUTF8))
# self.SongEditItem.setText(QtGui.QApplication.translate("main_window", "Edit Song", None, QtGui.QApplication.UnicodeUTF8))
# self.SongDeleteItem.setText(QtGui.QApplication.translate("main_window", "Delete Song", None, QtGui.QApplication.UnicodeUTF8))
# self.SongPreviewItem.setText(QtGui.QApplication.translate("main_window", "Send to Preview", None, QtGui.QApplication.UnicodeUTF8))
# self.SongLiveItem.setText(QtGui.QApplication.translate("main_window", "Send to Live", None, QtGui.QApplication.UnicodeUTF8))
# self.SongAddItem.setText(QtGui.QApplication.translate("main_window", "Add to Service", None, QtGui.QApplication.UnicodeUTF8))
# self.MediaToolBox.setItemText(self.MediaToolBox.indexOf(self.SongPage), QtGui.QApplication.translate("main_window", "Songs", None, QtGui.QApplication.UnicodeUTF8))
# self.VersePreviewItem.setText(QtGui.QApplication.translate("main_window", "Send to Preview", None, QtGui.QApplication.UnicodeUTF8))
# self.VerseLiveItem.setText(QtGui.QApplication.translate("main_window", "Send to Live", None, QtGui.QApplication.UnicodeUTF8))
# self.VerseAddItem.setText(QtGui.QApplication.translate("main_window", "Add to Service", None, QtGui.QApplication.UnicodeUTF8))
# self.label.setText(QtGui.QApplication.translate("main_window", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
# self.label_2.setText(QtGui.QApplication.translate("main_window", "TextLabel", None, QtGui.QApplication.UnicodeUTF8))
# self.pushButton.setText(QtGui.QApplication.translate("main_window", "Search", None, QtGui.QApplication.UnicodeUTF8))
# self.MediaToolBox.setItemText(self.MediaToolBox.indexOf(self.VersePage), QtGui.QApplication.translate("main_window", "Bible Verses", None, QtGui.QApplication.UnicodeUTF8))
# self.CustomNewButton.setText(QtGui.QApplication.translate("main_window", "New Custom Slide", None, QtGui.QApplication.UnicodeUTF8))
# self.CustomEditButton.setText(QtGui.QApplication.translate("main_window", "Edit Custom Slide", None, QtGui.QApplication.UnicodeUTF8))
# self.CustomDeleteButton.setText(QtGui.QApplication.translate("main_window", "Delete Custom Slide", None, QtGui.QApplication.UnicodeUTF8))
# self.CustomPreviewButton.setText(QtGui.QApplication.translate("main_window", "Preview Custom Slide", None, QtGui.QApplication.UnicodeUTF8))
# self.CustomLiveButton.setText(QtGui.QApplication.translate("main_window", "Send Live", None, QtGui.QApplication.UnicodeUTF8))
# self.CustomAddButton.setText(QtGui.QApplication.translate("main_window", "Add To Service", None, QtGui.QApplication.UnicodeUTF8))
# self.MediaToolBox.setItemText(self.MediaToolBox.indexOf(self.CustomSlidePage), QtGui.QApplication.translate("main_window", "Custom Slides", None, QtGui.QApplication.UnicodeUTF8))
# self.PresentationLoadItem.setToolTip(QtGui.QApplication.translate("main_window", "Load Video", None, QtGui.QApplication.UnicodeUTF8))
# self.PresentationLoadItem.setStatusTip(QtGui.QApplication.translate("main_window", "Load a video", None, QtGui.QApplication.UnicodeUTF8))
# self.PresentationLoadItem.setText(QtGui.QApplication.translate("main_window", "Load Video", None, QtGui.QApplication.UnicodeUTF8))
# self.PresentationDeleteItem.setToolTip(QtGui.QApplication.translate("main_window", "Remove Video", None, QtGui.QApplication.UnicodeUTF8))
# self.PresentationDeleteItem.setText(QtGui.QApplication.translate("main_window", "RI", None, QtGui.QApplication.UnicodeUTF8))
# self.PresentationLiveItem.setText(QtGui.QApplication.translate("main_window", "Send to Live", None, QtGui.QApplication.UnicodeUTF8))
# self.PresentationAddItem.setText(QtGui.QApplication.translate("main_window", "Add to Service", None, QtGui.QApplication.UnicodeUTF8))
# self.MediaToolBox.setItemText(self.MediaToolBox.indexOf(self.PresentationPage), QtGui.QApplication.translate("main_window", "Presentations", None, QtGui.QApplication.UnicodeUTF8))
# self.VideoLoadItem.setToolTip(QtGui.QApplication.translate("main_window", "Load Video", None, QtGui.QApplication.UnicodeUTF8))
# self.VideoLoadItem.setStatusTip(QtGui.QApplication.translate("main_window", "Load a video", None, QtGui.QApplication.UnicodeUTF8))
# self.VideoLoadItem.setText(QtGui.QApplication.translate("main_window", "Load Video", None, QtGui.QApplication.UnicodeUTF8))
# self.VideoDeleteItem.setToolTip(QtGui.QApplication.translate("main_window", "Remove Video", None, QtGui.QApplication.UnicodeUTF8))
# self.VideoDeleteItem.setText(QtGui.QApplication.translate("main_window", "RI", None, QtGui.QApplication.UnicodeUTF8))
# self.VideoLiveItem.setToolTip(QtGui.QApplication.translate("main_window", "Go Live!", None, QtGui.QApplication.UnicodeUTF8))
# self.VideoAddItem.setToolTip(QtGui.QApplication.translate("main_window", "Add to Order of Service", None, QtGui.QApplication.UnicodeUTF8))
# self.MediaToolBox.setItemText(self.MediaToolBox.indexOf(self.VideoPage), QtGui.QApplication.translate("main_window", "Videos", None, QtGui.QApplication.UnicodeUTF8))
# self.ImageLoadItem.setToolTip(QtGui.QApplication.translate("main_window", "Load Video", None, QtGui.QApplication.UnicodeUTF8))
# self.ImageLoadItem.setStatusTip(QtGui.QApplication.translate("main_window", "Load a video", None, QtGui.QApplication.UnicodeUTF8))
# self.ImageLoadItem.setText(QtGui.QApplication.translate("main_window", "Load Image", None, QtGui.QApplication.UnicodeUTF8))
# self.ImageDeleteItem.setToolTip(QtGui.QApplication.translate("main_window", "Remove Video", None, QtGui.QApplication.UnicodeUTF8))
# self.ImageDeleteItem.setText(QtGui.QApplication.translate("main_window", "Delete Image", None, QtGui.QApplication.UnicodeUTF8))
# self.ImageLiveItem.setToolTip(QtGui.QApplication.translate("main_window", "Go Live!", None, QtGui.QApplication.UnicodeUTF8))
# self.ImageAddItem.setToolTip(QtGui.QApplication.translate("main_window", "Add to Order of Service", None, QtGui.QApplication.UnicodeUTF8))
# self.MediaToolBox.setItemText(self.MediaToolBox.indexOf(self.ImagePage), QtGui.QApplication.translate("main_window", "Images", None, QtGui.QApplication.UnicodeUTF8))

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# vim: autoindent shiftwidth=4 expandtab textwidth=80 tabstop=4 softtabstop=4
"""
OpenLP - Open Source Lyrics Projection
Copyright (c) 2008 Raoul Snyman
@ -18,16 +18,9 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA
"""
# Form implementation generated from reading ui file 'openlp/resources/forms/self.splash_screen.ui'
#
# Created: Mon Nov 3 20:17:05 2008
# by: PyQt4 UI code generator 4.4.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
from openlp.resources import *
from openlp.core.resources import *
class SplashScreen(object):
def __init__(self):