Moved Service Item Advance enumeration to slidecontroller

This commit is contained in:
Jonathan Stafford 2012-01-25 20:34:13 +08:00
parent d686799035
commit 6487a3248a
2 changed files with 10 additions and 10 deletions

View File

@ -56,15 +56,6 @@ class SlideAdvance(object):
Wrap = 2
Next = 3
class ServiceItemAdvance(object):
"""
Provides an enumeration for the service item advance by left/right
arrow keys
"""
Previous = 1
PreviousLastSlide = 2
Next = 3
class ItemCapabilities(object):
"""
Provides an enumeration of a serviceitem's capabilities

View File

@ -35,7 +35,7 @@ from PyQt4 import QtCore, QtGui
from openlp.core.lib import OpenLPToolbar, Receiver, ItemCapabilities, \
translate, build_icon, ServiceItem, build_html, PluginManager, ServiceItem
from openlp.core.lib.ui import UiStrings, shortcut_action
from openlp.core.lib.serviceitem import SlideAdvance, ServiceItemAdvance
from openlp.core.lib.serviceitem import SlideAdvance
from openlp.core.ui import HideMode, MainDisplay, Display, ScreenList
from openlp.core.utils.actions import ActionList, CategoryOrder
@ -48,6 +48,15 @@ class SlideList(QtGui.QTableWidget):
"""
def __init__(self, parent=None, name=None):
QtGui.QTableWidget.__init__(self, parent.controller)
class ServiceItemAdvance(object):
"""
Provides an enumeration for the service item advance by left/right
arrow keys
"""
Previous = 1
PreviousLastSlide = 2
Next = 3
class Controller(QtGui.QWidget):
"""