Start to add ServiceManager

This commit is contained in:
Tim Bentley 2009-07-08 18:18:48 +01:00
parent b2f9f24120
commit db2efd386d
4 changed files with 15 additions and 10 deletions

View File

@ -17,8 +17,8 @@ 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 settingsmanager import SettingsManager
from openlp.core.lib.pluginmanager import PluginManager
__all__ = ['SettingsManager', 'PluginManager' ]
#from settingsmanager import SettingsManager
#from openlp.core.lib.pluginmanager import PluginManager
#
#__all__ = ['SettingsManager', 'PluginManager' ]

View File

@ -57,13 +57,15 @@ def contextMenuSeparator(base):
action.setSeparator(True)
return action
from settingsmanager import SettingsManager
from pluginconfig import PluginConfig
from plugin import Plugin
from eventmanager import EventManager
from pluginmanager import PluginManager
from settingstab import SettingsTab
from mediamanageritem import MediaManagerItem
from event import Event
from event import EventType
from eventmanager import EventManager
from xmlrootclass import XmlRootClass
from serviceitem import ServiceItem
from eventreceiver import Receiver
@ -79,5 +81,4 @@ from baselistwithdnd import BaseListWithDnD
from listwithpreviews import ListWithPreviews
__all__ = [ 'translate', 'file_to_xml', 'str_to_bool',
'contextMenuAction', 'contextMenuSeparator','ServiceItem'
]
'contextMenuAction', 'contextMenuSeparator','ServiceItem']

View File

@ -19,5 +19,9 @@ Place, Suite 330, Boston, MA 02111-1307 USA
"""
class SettingsManager(object):
def __init__(self):
"""
Class to control the size of the UI components so they size correctly
This class is created by the main window and then calculates the size of individual components
"""
def __init__(self, screen):
pass

View File

@ -25,8 +25,7 @@ from PyQt4 import QtCore, QtGui
from openlp.core.ui import AboutForm, SettingsForm, AlertForm, ServiceManager, \
ThemeManager, MainDisplay, SlideController
from openlp.core.lib import translate, Plugin, MediaManagerItem, SettingsTab, \
EventManager, RenderManager, PluginConfig
from openlp.core import PluginManager
EventManager, RenderManager, PluginConfig, SettingsManager, PluginManager
class MainWindow(object):
"""
@ -42,6 +41,7 @@ class MainWindow(object):
plugins.
"""
self.oosNotSaved = False
self.settingsmanager = SettingsManager(screens)
self.mainWindow = QtGui.QMainWindow()
self.mainWindow.__class__.closeEvent = self.onCloseEvent
self.mainDisplay = MainDisplay(None, screens)