openlp/openlp/core/ui/__init__.py

112 lines
4.4 KiB
Python
Raw Normal View History

# -*- coding: utf-8 -*-
2012-12-29 09:35:24 +00:00
# vim: autoindent shiftwidth=4 expandtab textwidth=120 tabstop=4 softtabstop=4
###############################################################################
# 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 #
# 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, #
# Frode Woldsund, Martin Zibricky, Patrick Zimmermann #
# --------------------------------------------------------------------------- #
# 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
from PyQt4 import QtGui
2011-02-03 15:57:36 +00:00
from openlp.core.lib import translate
2010-04-29 20:56:27 +00:00
class HideMode(object):
"""
This is an enumeration class which specifies the different modes of hiding
the display.
2011-01-05 09:37:11 +00:00
``Blank``
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``
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``
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
2011-10-29 19:13:11 +00:00
class AlertLocation(object):
2011-10-29 13:21:54 +00:00
"""
2011-10-29 19:13: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
2012-10-20 19:52:04 +00:00
class DisplayControllerType(object):
"""
2012-11-04 20:11:10 +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
from starttimeform import StartTimeForm
from screen import ScreenList
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
from splashscreen import SplashScreen
from generaltab import GeneralTab
from themestab import ThemesTab
2010-07-09 21:32:32 +00:00
from advancedtab import AdvancedTab
from aboutform import AboutForm
2009-10-06 21:07:12 +00:00
from pluginform import PluginForm
from settingsform import SettingsForm
from formattingtagform import FormattingTagForm
2010-10-07 21:27:26 +00:00
from shortcutlistform import ShortcutListForm
from mediadockmanager import MediaDockManager
from servicemanager import ServiceManager
2009-03-22 07:11:05 +00:00
from thememanager import ThemeManager
__all__ = ['SplashScreen', 'AboutForm', 'SettingsForm', 'MainDisplay',
'SlideController', 'ServiceManager', 'ThemeManager', 'MediaDockManager',
2012-11-04 20:11:10 +00:00
'ServiceItemEditForm', 'FirstTimeForm']