2008-11-25 20:50:19 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2012-12-29 09:35:24 +00:00
|
|
|
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
|
2008-11-25 20:50:19 +00:00
|
|
|
|
2009-09-08 19:58:05 +00:00
|
|
|
###############################################################################
|
|
|
|
# OpenLP - Open Source Lyrics Projection #
|
|
|
|
# --------------------------------------------------------------------------- #
|
2012-12-29 20:56:56 +00:00
|
|
|
# Copyright (c) 2008-2013 Raoul Snyman #
|
|
|
|
# Portions copyright (c) 2008-2013 Tim Bentley, Gerald Britton, Jonathan #
|
2012-06-22 14:14:53 +00:00
|
|
|
# Corwin, Samuel Findlay, Michael Gorven, Scott Guerrieri, Matthias Hub, #
|
2012-11-11 21:16:14 +00:00
|
|
|
# Meinert Jordan, Armin Köhler, Erik Lundin, Edwin Lunando, Brian T. Meyer. #
|
2012-10-21 13:16:22 +00:00
|
|
|
# Joshua Miller, Stevan Pettit, Andreas Preikschat, Mattias Põldaru, #
|
|
|
|
# Christian Richter, Philip Ridout, Simon Scudder, Jeffrey Smith, #
|
|
|
|
# Maikel Stuivenberg, Martin Thompson, Jon Tibble, Dave Warnock, #
|
2012-12-01 07:57:54 +00:00
|
|
|
# Frode Woldsund, Martin Zibricky, Patrick Zimmermann #
|
2009-09-08 19:58:05 +00:00
|
|
|
# --------------------------------------------------------------------------- #
|
|
|
|
# This program is free software; you can redistribute it and/or modify it #
|
|
|
|
# under the terms of the GNU General Public License as published by the Free #
|
|
|
|
# Software Foundation; version 2 of the License. #
|
|
|
|
# #
|
|
|
|
# This program is distributed in the hope that it will be useful, but WITHOUT #
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or #
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for #
|
|
|
|
# more details. #
|
|
|
|
# #
|
|
|
|
# You should have received a copy of the GNU General Public License along #
|
|
|
|
# with this program; if not, write to the Free Software Foundation, Inc., 59 #
|
|
|
|
# Temple Place, Suite 330, Boston, MA 02111-1307 USA #
|
|
|
|
###############################################################################
|
2010-06-10 19:45:02 +00:00
|
|
|
"""
|
|
|
|
The :mod:`ui` module provides the core user interface for OpenLP
|
|
|
|
"""
|
2011-01-15 00:53:12 +00:00
|
|
|
|
2008-11-25 20:50:19 +00:00
|
|
|
|
2010-04-29 20:56:27 +00:00
|
|
|
class HideMode(object):
|
|
|
|
"""
|
2013-01-11 00:19:11 +00:00
|
|
|
This is an enumeration class which specifies the different modes of hiding the display.
|
2011-01-05 09:37:11 +00:00
|
|
|
|
|
|
|
``Blank``
|
2013-01-11 00:19:11 +00:00
|
|
|
This mode is used to hide all output, specifically by covering the display with a black screen.
|
2011-01-09 17:07:17 +00:00
|
|
|
|
2011-01-05 09:37:11 +00:00
|
|
|
``Theme``
|
2013-01-11 00:19:11 +00:00
|
|
|
This mode is used to hide all output, but covers the display with the current theme background, as opposed to
|
|
|
|
black.
|
2011-01-09 17:07:17 +00:00
|
|
|
|
2011-01-05 09:37:11 +00:00
|
|
|
``Desktop``
|
2013-01-11 00:19:11 +00:00
|
|
|
This mode hides all output by minimising the display, leaving the user's desktop showing.
|
2010-04-29 20:56:27 +00:00
|
|
|
"""
|
|
|
|
Blank = 1
|
|
|
|
Theme = 2
|
|
|
|
Screen = 3
|
|
|
|
|
2013-01-10 23:07:48 +00:00
|
|
|
|
2011-10-29 19:13:11 +00:00
|
|
|
class AlertLocation(object):
|
2011-10-29 13:21:54 +00:00
|
|
|
"""
|
2013-01-11 00:19:11 +00:00
|
|
|
This is an enumeration class which controls where Alerts are placed on the screen.
|
2011-10-29 13:21:54 +00:00
|
|
|
|
|
|
|
``Top``
|
|
|
|
Place the text at the top of the screen.
|
|
|
|
|
|
|
|
``Middle``
|
|
|
|
Place the text in the middle of the screen.
|
|
|
|
|
|
|
|
``Bottom``
|
|
|
|
Place the text at the bottom of the screen.
|
|
|
|
"""
|
|
|
|
Top = 0
|
|
|
|
Middle = 1
|
|
|
|
Bottom = 2
|
|
|
|
|
2013-01-10 23:07:48 +00:00
|
|
|
|
2012-10-20 19:52:04 +00:00
|
|
|
class DisplayControllerType(object):
|
|
|
|
"""
|
2013-01-11 00:19:11 +00:00
|
|
|
This is an enumeration class which says where a display controller originated from.
|
2012-10-20 19:52:04 +00:00
|
|
|
"""
|
|
|
|
Live = 0
|
|
|
|
Preview = 1
|
|
|
|
Plugin = 2
|
|
|
|
|
|
|
|
|
2011-02-26 11:16:21 +00:00
|
|
|
from firsttimeform import FirstTimeForm
|
2011-03-02 17:44:33 +00:00
|
|
|
from firsttimelanguageform import FirstTimeLanguageForm
|
2011-10-02 07:52:28 +00:00
|
|
|
from themelayoutform import ThemeLayoutForm
|
2010-10-17 18:58:42 +00:00
|
|
|
from themeform import ThemeForm
|
2010-09-26 06:20:24 +00:00
|
|
|
from filerenameform import FileRenameForm
|
2011-02-12 10:04:10 +00:00
|
|
|
from starttimeform import StartTimeForm
|
2011-05-10 20:39:17 +00:00
|
|
|
from maindisplay import MainDisplay, Display
|
2010-03-17 21:08:18 +00:00
|
|
|
from servicenoteform import ServiceNoteForm
|
|
|
|
from serviceitemeditform import ServiceItemEditForm
|
2012-10-06 08:10:28 +00:00
|
|
|
from slidecontroller import SlideController, DisplayController
|
2008-11-30 18:36:13 +00:00
|
|
|
from splashscreen import SplashScreen
|
2009-02-28 23:19:45 +00:00
|
|
|
from generaltab import GeneralTab
|
|
|
|
from themestab import ThemesTab
|
2010-07-09 21:32:32 +00:00
|
|
|
from advancedtab import AdvancedTab
|
2009-11-29 14:07:25 +00:00
|
|
|
from aboutform import AboutForm
|
2009-10-06 21:07:12 +00:00
|
|
|
from pluginform import PluginForm
|
2009-02-28 11:18:04 +00:00
|
|
|
from settingsform import SettingsForm
|
2011-07-30 07:34:37 +00:00
|
|
|
from formattingtagform import FormattingTagForm
|
2010-10-07 21:27:26 +00:00
|
|
|
from shortcutlistform import ShortcutListForm
|
2009-10-07 05:09:35 +00:00
|
|
|
from mediadockmanager import MediaDockManager
|
2009-02-21 19:23:54 +00:00
|
|
|
from servicemanager import ServiceManager
|
2009-03-22 07:11:05 +00:00
|
|
|
from thememanager import ThemeManager
|
2008-11-25 21:03:09 +00:00
|
|
|
|
2013-02-01 19:58:18 +00:00
|
|
|
__all__ = ['SplashScreen', 'AboutForm', 'SettingsForm', 'MainDisplay', 'SlideController', 'ServiceManager',
|
|
|
|
'ThemeManager', 'MediaDockManager', 'ServiceItemEditForm', 'FirstTimeForm', 'FirstTimeLanguageForm', 'ThemeForm',
|
|
|
|
'ThemeLayoutForm', 'FileRenameForm', 'StartTimeForm', 'MainDisplay', 'Display', 'ServiceNoteForm',
|
|
|
|
'SlideController', 'DisplayController', 'GeneralTab', 'ThemesTab', 'AdvancedTab', 'PluginForm',
|
|
|
|
'FormattingTagForm', 'ShortcutListForm']
|