Added Python version of the MainWindow form.

bzr-revno: 48
This commit is contained in:
Raoul Snyman 2008-10-29 18:51:43 +00:00
parent 0bf6ef716e
commit fa0f97c2dc
12 changed files with 19330 additions and 5616 deletions

15
copyright.txt Normal file
View File

@ -0,0 +1,15 @@
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

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Project SYSTEM "Project-4.2.dtd">
<!-- eric4 project file for project openlp.org 2.0 -->
<!-- Saved: 2008-10-27, 22:19:28 -->
<!-- Saved: 2008-10-29, 21:35:04 -->
<!-- Copyright (C) 2008 Raoul Snyman, raoulsnyman@openlp.org -->
<Project version="4.2">
<ProgLanguage mixed="0">Python</ProgLanguage>
@ -129,6 +129,22 @@
<Dir>core</Dir>
<Name>settingsmanager.py</Name>
</Source>
<Source>
<Dir>openlp</Dir>
<Dir>resources</Dir>
<Name>openlp_rc.py</Name>
</Source>
<Source>
<Dir>openlp</Dir>
<Dir>resources</Dir>
<Name>__init__.py</Name>
</Source>
<Source>
<Dir>openlp</Dir>
<Dir>resources</Dir>
<Dir>forms</Dir>
<Name>Ui_about.py</Name>
</Source>
</Sources>
<Forms>
<Form>
@ -187,6 +203,9 @@
<Interfaces>
</Interfaces>
<Others>
<Other>
<Name>copyright.txt</Name>
</Other>
</Others>
<MainScript>
<Name>openlp.pyw</Name>

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-10-28, 22:43:48 -->
<!-- Saved: 2008-10-29, 21:40:00 -->
<!-- Copyright (C) 2008 Raoul Snyman, raoulsnyman@openlp.org -->
<UserProject version="4.0">
</UserProject>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Tasks SYSTEM "Tasks-4.1.dtd">
<!-- eric4 tasks file for project openlp.org 2.0 -->
<!-- Saved: 2008-10-28, 22:43:48 -->
<!-- Saved: 2008-10-29, 21:40:00 -->
<Tasks version="4.1">
</Tasks>

View File

@ -19,10 +19,18 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA
"""
class OpenLP(QtGui.QApplication):
pass
import sys
from PyQt4 import QtCore, QtGui
from openlp.ui.forms import MainWindow
class OpenLP(QtGui.QApplication):
def run(self):
self.main_window = MainWindow()
self.main_window.show()
sys.exit(app.exec_())
if __name__ == '__main__':
app = OpenLP(sys.argv)
sys.exit(app.exec_())
app.run()

View File

@ -0,0 +1 @@
from openlp_rc import *

18065
openlp/resources/openlp_rc.py Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,321 +0,0 @@
# -*- coding: utf-8 -*-
"""
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
"""
"""
This is the main window for openlp.org 2.0
"""
from PyQt4.QtCore import *
from PyQt4.QtGui import *
class Ui_MainWindow(object):
def setupDockWidget(self, window, name, dock_area, caption = None):
dock = QDockWidget()
dock.setObjectName(name)
dock.setFeatures(\
QDockWidget.DockWidgetFeatures(QDockWidget.AllDockWidgetFeatures))
if caption is not None:
dock.setWindowTitle(caption)
window.addDockWidget(dock_area, dock)
dock.show()
return dock
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(QSize(QRect(0,0,800,600).size()).expandedTo(MainWindow.minimumSizeHint()))
sizePolicy = QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setGeometry(QRect(0,30,800,547))
sizePolicy = QSizePolicy(QSizePolicy.Expanding,QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.centralwidget.sizePolicy().hasHeightForWidth())
self.centralwidget.setSizePolicy(sizePolicy)
self.centralwidget.setObjectName("centralwidget")
self.MediaManagerDock = self.setupDockWidget(MainWindow, "MediaManagerDock",
Qt.LeftDockWidgetArea, "Media Manager")
self.MediaManagerContents = QWidget(self.MediaManagerDock)
self.MediaManagerContents.setGeometry(QRect(0,21,790,88))
self.MediaManagerContents.setObjectName("MediaManagerContents")
self.MediaManagerLayout = QHBoxLayout(self.MediaManagerContents)
self.MediaManagerLayout.setMargin(0)
self.MediaManagerLayout.setObjectName("MediaManagerLayout")
self.MediaManagerTabs = QTabWidget(self.MediaManagerContents)
self.MediaManagerTabs.setObjectName("MediaManagerTabs")
self.SongsTab = QWidget()
self.SongsTab.setGeometry(QRect(0,0,786,60))
self.SongsTab.setObjectName("SongsTab")
self.MediaManagerTabs.addTab(self.SongsTab, "Songs")
self.BiblesTab = QWidget()
self.BiblesTab.setGeometry(QRect(0,0,786,60))
self.BiblesTab.setObjectName("BiblesTab")
self.MediaManagerTabs.addTab(self.BiblesTab, "Bibles")
self.MediaManagerDock.setWidget(self.MediaManagerContents)
self.MediaManagerLayout.addWidget(self.MediaManagerTabs)
self.OrderOfServiceDock = self.setupDockWidget(MainWindow, "ThemeManagerDock",
Qt.RightDockWidgetArea, "Theme Manager")
self.OrderOfServiceContents = QWidget(self.OrderOfServiceDock)
self.OrderOfServiceContents.setGeometry(QRect(0,21,790,192))
self.OrderOfServiceContents.setObjectName("OrderOfServiceContents")
self.OrderOfServiceLayout = QHBoxLayout(self.OrderOfServiceContents)
self.OrderOfServiceLayout.setMargin(0)
self.OrderOfServiceLayout.setObjectName("OrderOfServiceLayout")
self.OrderOfServiceListView = QListView(self.OrderOfServiceContents)
self.OrderOfServiceListView.setObjectName("OrderOfServiceListView")
self.OrderOfServiceLayout.addWidget(self.OrderOfServiceListView)
self.OrderOfServiceDock.setWidget(self.OrderOfServiceContents)
self.ThemeManagerDock = self.setupDockWidget(MainWindow, "ThemeManagerDock",
Qt.RightDockWidgetArea, "Theme Manager")
self.ThemeManagerContents = QWidget(self.ThemeManagerDock)
self.ThemeManagerContents.setGeometry(QRect(0,21,790,192))
self.ThemeManagerContents.setObjectName("ThemeManagerContents")
self.ThemeManagerLayout = QVBoxLayout(self.ThemeManagerContents)
self.ThemeManagerLayout.setMargin(0)
self.ThemeManagerLayout.setObjectName("ThemeManagerLayout")
self.ThemeManagerListView = QListView(self.ThemeManagerContents)
self.ThemeManagerListView.setObjectName("ThemeManagerListView")
self.ThemeManagerLayout.addWidget(self.ThemeManagerListView)
self.ThemeManagerDock.setWidget(self.ThemeManagerContents)
MainWindow.setCentralWidget(self.centralwidget)
# Menu bar at the top of the application
self.MenuBar = QMenuBar(MainWindow)
self.MenuBar.setGeometry(QRect(0,0,800,30))
self.MenuBar.setObjectName("MenuBar")
MainWindow.setMenuBar(self.MenuBar)
# The File menu
self.FileMenu = QMenu(self.MenuBar)
self.FileMenu.setObjectName("FileMenu")
# The Import submenu
self.FileImportMenu = QMenu(self.FileMenu)
self.FileImportMenu.setObjectName("FileImportMenu")
# The Export submenu
self.FileExportMenu = QMenu(self.FileMenu)
self.FileExportMenu.setObjectName("FileExportMenu")
# The Options menu
self.OptionsMenu = QMenu(self.MenuBar)
self.OptionsMenu.setObjectName("OptionsMenu")
# The View submenu
self.OptionsViewMenu = QMenu(self.OptionsMenu)
self.OptionsViewMenu.setObjectName("OptionsViewMenu")
# The Tools menu
self.ToolsMenu = QMenu(self.MenuBar)
self.ToolsMenu.setObjectName("ToolsMenu")
# The Help menu
self.HelpMenu = QMenu(self.MenuBar)
self.HelpMenu.setObjectName("HelpMenu")
# The status bar
self.StatusBar = QStatusBar(MainWindow)
self.StatusBar.setGeometry(QRect(0,577,800,23))
self.StatusBar.setObjectName("StatusBar")
MainWindow.setStatusBar(self.StatusBar)
self.FileNewAction = QAction(MainWindow)
self.FileNewAction.setObjectName("FileNewAction")
self.FileOpenAction = QAction(MainWindow)
self.FileOpenAction.setObjectName("FileOpenAction")
self.FileSaveAction = QAction(MainWindow)
self.FileSaveAction.setObjectName("FileSaveAction")
self.FileSaveAsAction = QAction(MainWindow)
self.FileSaveAsAction.setObjectName("FileSaveAsAction")
self.FileExitAction = QAction(MainWindow)
self.FileExitAction.setObjectName("FileExitAction")
self.FileImportSongAction = QAction(MainWindow)
self.FileImportSongAction.setObjectName("FileImportSongAction")
self.FileImportBibleAction = QAction(MainWindow)
self.FileImportBibleAction.setObjectName("FileImportBibleAction")
self.FileImportThemeAction = QAction(MainWindow)
self.FileImportThemeAction.setObjectName("FileImportThemeAction")
self.FileImportLanguageAction = QAction(MainWindow)
self.FileImportLanguageAction.setObjectName("FileImportLanguageAction")
self.FileExportSongAction = QAction(MainWindow)
self.FileExportSongAction.setObjectName("FileExportSongAction")
self.FileExportBibleAction = QAction(MainWindow)
self.FileExportBibleAction.setObjectName("FileExportBibleAction")
self.FileExportThemeAction = QAction(MainWindow)
self.FileExportThemeAction.setObjectName("FileExportThemeAction")
self.FileExportLanguageAction = QAction(MainWindow)
self.FileExportLanguageAction.setObjectName("FileExportLanguageAction")
self.OptionsLanguageAction = QAction(MainWindow)
self.OptionsLanguageAction.setObjectName("OptionsLanguageAction")
self.OptionsLookFeelAction = QAction(MainWindow)
self.OptionsLookFeelAction.setObjectName("OptionsLookFeelAction")
self.OptionsSettingsAction = QAction(MainWindow)
self.OptionsSettingsAction.setObjectName("OptionsSettingsAction")
self.OptionsViewMediaManagerAction = QAction(MainWindow)
self.OptionsViewMediaManagerAction.setObjectName("OptionsViewMediaManagerAction")
self.OptionsViewThemeManagerAction = QAction(MainWindow)
self.OptionsViewThemeManagerAction.setObjectName("OptionsViewThemeManagerAction")
self.OptionsViewOrderOfServiceAction = QAction(MainWindow)
self.OptionsViewOrderOfServiceAction.setObjectName("OptionsViewOrderOfServiceAction")
self.ToolsAlertAction = QAction(MainWindow)
self.ToolsAlertAction.setObjectName("ToolsAlertAction")
self.HelpUserGuideAction = QAction(MainWindow)
self.HelpUserGuideAction.setObjectName("HelpUserGuideAction")
self.HelpAboutAction = QAction(MainWindow)
self.HelpAboutAction.setObjectName("HelpAboutAction")
self.HelpOnlineHelpAction = QAction(MainWindow)
self.HelpOnlineHelpAction.setObjectName("HelpOnlineHelpAction")
self.HelpWebSiteAction = QAction(MainWindow)
self.HelpWebSiteAction.setObjectName("HelpWebSiteAction")
self.FileImportMenu.addAction(self.FileImportSongAction)
self.FileImportMenu.addAction(self.FileImportBibleAction)
self.FileImportMenu.addAction(self.FileImportThemeAction)
self.FileImportMenu.addAction(self.FileImportLanguageAction)
self.FileExportMenu.addAction(self.FileExportSongAction)
self.FileExportMenu.addAction(self.FileExportBibleAction)
self.FileExportMenu.addAction(self.FileExportThemeAction)
self.FileExportMenu.addAction(self.FileExportLanguageAction)
self.FileMenu.addAction(self.FileNewAction)
self.FileMenu.addAction(self.FileOpenAction)
self.FileMenu.addAction(self.FileSaveAction)
self.FileMenu.addAction(self.FileSaveAsAction)
self.FileMenu.addSeparator()
self.FileMenu.addAction(self.FileImportMenu.menuAction())
self.FileMenu.addAction(self.FileExportMenu.menuAction())
self.FileMenu.addSeparator()
self.FileMenu.addAction(self.FileExitAction)
self.OptionsViewMenu.addAction(self.OptionsViewMediaManagerAction)
self.OptionsViewMenu.addAction(self.OptionsViewThemeManagerAction)
self.OptionsViewMenu.addAction(self.OptionsViewOrderOfServiceAction)
self.OptionsMenu.addAction(self.OptionsLanguageAction)
self.OptionsMenu.addAction(self.OptionsViewMenu.menuAction())
self.OptionsMenu.addSeparator()
self.OptionsMenu.addAction(self.OptionsSettingsAction)
self.ToolsMenu.addAction(self.ToolsAlertAction)
self.HelpMenu.addAction(self.HelpUserGuideAction)
self.HelpMenu.addAction(self.HelpOnlineHelpAction)
self.HelpMenu.addSeparator()
self.HelpMenu.addAction(self.HelpWebSiteAction)
self.HelpMenu.addAction(self.HelpAboutAction)
self.MenuBar.addAction(self.FileMenu.menuAction())
self.MenuBar.addAction(self.OptionsMenu.menuAction())
self.MenuBar.addAction(self.ToolsMenu.menuAction())
self.MenuBar.addAction(self.HelpMenu.menuAction())
self.retranslateUi(MainWindow)
self.MediaManagerTabs.setCurrentIndex(0)
QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QApplication.translate("MainWindow", "openlp.org 2.0", None, QApplication.UnicodeUTF8))
self.MediaManagerDock.setWindowTitle(QApplication.translate("MainWindow", "Media Manager", None, QApplication.UnicodeUTF8))
self.MediaManagerTabs.setTabText(self.MediaManagerTabs.indexOf(self.SongsTab), QApplication.translate("MainWindow", "Songs", None, QApplication.UnicodeUTF8))
self.MediaManagerTabs.setTabText(self.MediaManagerTabs.indexOf(self.BiblesTab), QApplication.translate("MainWindow", "Bibles", None, QApplication.UnicodeUTF8))
self.OrderOfServiceDock.setWindowTitle(QApplication.translate("MainWindow", "Order of Service", None, QApplication.UnicodeUTF8))
self.FileMenu.setTitle(QApplication.translate("MainWindow", "&File", None, QApplication.UnicodeUTF8))
self.FileImportMenu.setTitle(QApplication.translate("MainWindow", "&Import", None, QApplication.UnicodeUTF8))
self.FileExportMenu.setTitle(QApplication.translate("MainWindow", "&Export", None, QApplication.UnicodeUTF8))
self.OptionsMenu.setTitle(QApplication.translate("MainWindow", "&Options", None, QApplication.UnicodeUTF8))
self.OptionsViewMenu.setTitle(QApplication.translate("MainWindow", "&View", None, QApplication.UnicodeUTF8))
self.ToolsMenu.setTitle(QApplication.translate("MainWindow", "&Tools", None, QApplication.UnicodeUTF8))
self.HelpMenu.setTitle(QApplication.translate("MainWindow", "&Help", None, QApplication.UnicodeUTF8))
self.FileNewAction.setText(QApplication.translate("MainWindow", "&New", None, QApplication.UnicodeUTF8))
self.FileOpenAction.setText(QApplication.translate("MainWindow", "&Open", None, QApplication.UnicodeUTF8))
self.FileSaveAction.setText(QApplication.translate("MainWindow", "&Save", None, QApplication.UnicodeUTF8))
self.FileSaveAsAction.setText(QApplication.translate("MainWindow", "Save &As...", None, QApplication.UnicodeUTF8))
self.FileExitAction.setText(QApplication.translate("MainWindow", "E&xit", None, QApplication.UnicodeUTF8))
self.FileImportSongAction.setText(QApplication.translate("MainWindow", "&Song", None, QApplication.UnicodeUTF8))
self.FileImportBibleAction.setText(QApplication.translate("MainWindow", "&Bible", None, QApplication.UnicodeUTF8))
self.FileImportThemeAction.setText(QApplication.translate("MainWindow", "&Theme", None, QApplication.UnicodeUTF8))
self.FileImportLanguageAction.setText(QApplication.translate("MainWindow", "&Language", None, QApplication.UnicodeUTF8))
self.FileExportSongAction.setText(QApplication.translate("MainWindow", "&Song", None, QApplication.UnicodeUTF8))
self.FileExportBibleAction.setText(QApplication.translate("MainWindow", "&Bible", None, QApplication.UnicodeUTF8))
self.FileExportThemeAction.setText(QApplication.translate("MainWindow", "&Theme", None, QApplication.UnicodeUTF8))
self.FileExportLanguageAction.setText(QApplication.translate("MainWindow", "&Language", None, QApplication.UnicodeUTF8))
self.OptionsLanguageAction.setText(QApplication.translate("MainWindow", "&Language", None, QApplication.UnicodeUTF8))
self.OptionsLookFeelAction.setText(QApplication.translate("MainWindow", "Look && &Feel", None, QApplication.UnicodeUTF8))
self.OptionsSettingsAction.setText(QApplication.translate("MainWindow", "&Settings", None, QApplication.UnicodeUTF8))
self.OptionsViewMediaManagerAction.setText(QApplication.translate("MainWindow", "&Media Manager", None, QApplication.UnicodeUTF8))
self.OptionsViewThemeManagerAction.setText(QApplication.translate("MainWindow", "&Theme Manager", None, QApplication.UnicodeUTF8))
self.OptionsViewOrderOfServiceAction.setText(QApplication.translate("MainWindow", "&Order of Service", None, QApplication.UnicodeUTF8))
self.ToolsAlertAction.setText(QApplication.translate("MainWindow", "&Alert", None, QApplication.UnicodeUTF8))
self.HelpUserGuideAction.setText(QApplication.translate("MainWindow", "&User Guide", None, QApplication.UnicodeUTF8))
self.HelpAboutAction.setText(QApplication.translate("MainWindow", "&About", None, QApplication.UnicodeUTF8))
self.HelpOnlineHelpAction.setText(QApplication.translate("MainWindow", "&Online Help", None, QApplication.UnicodeUTF8))
self.HelpWebSiteAction.setText(QApplication.translate("MainWindow", "&Web Site", None, QApplication.UnicodeUTF8))
def on_FileExitAction_triggered(self):
sys.exit(app.exec_())
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
MainWindow = QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec_())

View File

@ -16,3 +16,5 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA
"""
from mainwindow import MainWindow
from about import AboutForm

207
openlp/ui/forms/about.py Normal file
View File

@ -0,0 +1,207 @@
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/home/raoul/Projects/openlp-2/openlp/resources/forms/about.ui'
#
# Created: Wed Oct 29 21:34:51 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 *
class AboutForm(object):
def setupUi(self, AboutDialog):
AboutDialog.setObjectName("AboutDialog")
AboutDialog.resize(470, 481)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/Logo/favicon.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
AboutDialog.setWindowIcon(icon)
self.AboutDialogLayout = QtGui.QVBoxLayout(AboutDialog)
self.AboutDialogLayout.setSpacing(8)
self.AboutDialogLayout.setMargin(8)
self.AboutDialogLayout.setObjectName("AboutDialogLayout")
self.Logo = QtGui.QLabel(AboutDialog)
self.Logo.setAutoFillBackground(True)
self.Logo.setStyleSheet("background-color: rgb(255, 255, 255);")
self.Logo.setFrameShape(QtGui.QFrame.WinPanel)
self.Logo.setFrameShadow(QtGui.QFrame.Sunken)
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(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(30, 0, 353, 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(353, 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(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(AboutDialog)
self.extContributeItem.setObjectName("extContributeItem")
self.retranslateUi(AboutDialog)
self.AboutNotebook.setCurrentIndex(0)
QtCore.QObject.connect(self.CloseButton, QtCore.SIGNAL("clicked()"), AboutDialog.close)
QtCore.QMetaObject.connectSlotsByName(AboutDialog)
AboutDialog.setTabOrder(self.CreditsScrollArea, self.ContributeButton)
def retranslateUi(self, AboutDialog):
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))

File diff suppressed because it is too large Load Diff