forked from openlp/openlp
Moved Service Item Advance enumeration to slidecontroller
This commit is contained in:
parent
d686799035
commit
6487a3248a
@ -56,15 +56,6 @@ class SlideAdvance(object):
|
|||||||
Wrap = 2
|
Wrap = 2
|
||||||
Next = 3
|
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):
|
class ItemCapabilities(object):
|
||||||
"""
|
"""
|
||||||
Provides an enumeration of a serviceitem's capabilities
|
Provides an enumeration of a serviceitem's capabilities
|
||||||
|
@ -35,7 +35,7 @@ from PyQt4 import QtCore, QtGui
|
|||||||
from openlp.core.lib import OpenLPToolbar, Receiver, ItemCapabilities, \
|
from openlp.core.lib import OpenLPToolbar, Receiver, ItemCapabilities, \
|
||||||
translate, build_icon, ServiceItem, build_html, PluginManager, ServiceItem
|
translate, build_icon, ServiceItem, build_html, PluginManager, ServiceItem
|
||||||
from openlp.core.lib.ui import UiStrings, shortcut_action
|
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.ui import HideMode, MainDisplay, Display, ScreenList
|
||||||
from openlp.core.utils.actions import ActionList, CategoryOrder
|
from openlp.core.utils.actions import ActionList, CategoryOrder
|
||||||
|
|
||||||
@ -49,6 +49,15 @@ class SlideList(QtGui.QTableWidget):
|
|||||||
def __init__(self, parent=None, name=None):
|
def __init__(self, parent=None, name=None):
|
||||||
QtGui.QTableWidget.__init__(self, parent.controller)
|
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):
|
class Controller(QtGui.QWidget):
|
||||||
"""
|
"""
|
||||||
Controller is a general controller widget.
|
Controller is a general controller widget.
|
||||||
|
Loading…
Reference in New Issue
Block a user