From a1bc7f9e8326b8f81c174c595114ea0017dc2724 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Thu, 23 Oct 2008 19:41:22 +0000 Subject: [PATCH] Moved some stuff, added some new images, and one or two other things. bzr-revno: 35 --- openlp.pyw | 51 +++++++++------------- openlp/core/__init__.py | 1 + plugin.py => openlp/core/plugin.py | 0 openlp/core/settingsmanager.py | 3 ++ openlp/resources/images/custom_delete.png | Bin 0 -> 666 bytes openlp/resources/images/custom_edit.png | Bin 0 -> 668 bytes openlp/resources/images/custom_new.png | Bin 0 -> 579 bytes openlp/resources/images/openlp-2.qrc | 6 +++ 8 files changed, 31 insertions(+), 30 deletions(-) rename plugin.py => openlp/core/plugin.py (100%) create mode 100644 openlp/core/settingsmanager.py create mode 100644 openlp/resources/images/custom_delete.png create mode 100644 openlp/resources/images/custom_edit.png create mode 100644 openlp/resources/images/custom_new.png diff --git a/openlp.pyw b/openlp.pyw index 1676459f3..18b4c438e 100755 --- a/openlp.pyw +++ b/openlp.pyw @@ -1,40 +1,31 @@ -#!/usr/bin/env pythonw +#!/usr/bin/env python +# vim: autoindent shiftwidth=4 expandtab textwidth=80 """ +OpenLP - Open Source Lyrics Projection +Copyright (c) 2008 Raoul Snyman +Portions copyright (c) 2008 Martin Thompson, Tim Bennet -Entry point for OpenLP wx.App +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 """ -import wx - -from openlp.ui import mainframe - - -class OpenLP(wx.PySimpleApp): - def OnInit(self): - frame = mainframe.MainFrame(None, title="openlp.org") - frame.Show() - - import sys - for f in sys.argv[1:]: - self.OpenFileMessage(f) - - return True; - - - def OpenFileMessage(self, filename): - - # TODO: OOS loading here - # rename function, too - - dlg = wx.MessageDialog(None, - "This app was just asked to open:\n%s\n"%filename, - "File Opened", wx.OK|wx.ICON_INFORMATION) +class OpenLP(object): + def __init__(self): + pass + def run(self): + pass if __name__ == '__main__': app = OpenLP() - app.MainLoop() - -# vim: autoindent shiftwidth=4 expandtab textwidth=80 + app.run() diff --git a/openlp/core/__init__.py b/openlp/core/__init__.py index 872865143..761fbb9ec 100644 --- a/openlp/core/__init__.py +++ b/openlp/core/__init__.py @@ -1 +1,2 @@ from openlp.core.render import Renderer +from openlp.core.settingsmanager import SettingsManager diff --git a/plugin.py b/openlp/core/plugin.py similarity index 100% rename from plugin.py rename to openlp/core/plugin.py diff --git a/openlp/core/settingsmanager.py b/openlp/core/settingsmanager.py new file mode 100644 index 000000000..a7fe51b57 --- /dev/null +++ b/openlp/core/settingsmanager.py @@ -0,0 +1,3 @@ +class SettingsManager(object): + def __init__(self): + pass diff --git a/openlp/resources/images/custom_delete.png b/openlp/resources/images/custom_delete.png new file mode 100644 index 0000000000000000000000000000000000000000..ef8e685e2edc2bd322bc20b3930b3b8a4a956692 GIT binary patch literal 666 zcmV;L0%iS)P)EpEu1Bn~z?SOH%W3`5?j4Qac4I15gKU`L5t>eN996dfGWy$GdT78e~1IEWxDihex7vOw4eG#$fZhali~XI|dwy2)5q7?kev-7Va?i{8#`0ED~iS znPE8+jBfgBF#tb?!0r|!;|Uxhh~`JWR^bpU8u7y9}-^q*}IfB~Nq%ySBz{^kAz z3q)BlA;{zV9S&*>ZND1?U{GxVemB-UgWbmGokGcyqSwMaQBF)n)gu5F4?Uh4@^Ycw-*5-~sCaop*i?$X&F0Mt&l~Qb zfY1*WGoB%i7sW@t*o-kS#!v>NY9h9$NM~6&ozmxk>*nk(P@GSvbVZtA)kJKs3`pjz z2QVQIGtrHEzzyrW3909E+g3AU>}ZYus}ujmzk3qv7);hk;Q#;t07*qoM6N<$f=kC8 Ao&W#< literal 0 HcmV?d00001 diff --git a/openlp/resources/images/custom_edit.png b/openlp/resources/images/custom_edit.png new file mode 100644 index 0000000000000000000000000000000000000000..d79aa515177ef7252c144f87900e3c77b9449d10 GIT binary patch literal 668 zcmV;N0%QG&P)T6hRb*|LUG4ipy2(4j2_h1WCNe;6X2X7X%do zV(?;M)I{Slc*r3}BN&7X2BHMqz+m(uxI|I#Af7zvXpe!w2qw53oWa4dt9#~IujopX zG2mj3(Zjm~2>bxsHxg#NWw7H( z^m+3gm;()ZGC7Eq{$uow{KT3t)-Xa+bDm2FIB5m3W9*bFeDYAMx#N6LP2}2R-;_*%uN6`gR>nQ@P7BM zo#DH;uP8rwfGU*=sZI+3TnylF-|3SRJiWPxRYHi_E$dUCuU24!A&6m0000VxXK$hi6FoGM6#-0&DYi+BPO7z*s9d>{0vUq8c z&G}94mG91_zoj3m9VHsT2!GA?={D6)mHkfz06td>m_bcrSPcMDDeJM*+y>fjK<#^t z=uU*oi<@Nt)FU+;02V?7_3H~3cIR1VuFMcTS6l_&FA2GV;y{3lgxXDZuxrZSS;?#* z=QUvpn-9RT!7#-`zX5oG|B7vHE(aR6zHX6znI;PO!UTD_B~KNw&}=sMyujCO=T4U( z2yTeTTYCpkegjtzCeCEM0NlE6vV;ClKoWLfLST%sZMP!song_export.png song_new.png + + custom_new.png + custom_edit.png + custom_delete.png + wizard_importbible.bmp @@ -58,6 +63,7 @@ tools_alert.png + theme_delete.png theme_new.png theme_edit.png theme_export.png