forked from openlp/openlp
Add in maintenance page to service manager
This commit is contained in:
parent
72d2d8f83d
commit
ff8145cef1
@ -107,6 +107,7 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
#will replace the currently selected one.
|
#will replace the currently selected one.
|
||||||
self.remoteEditTriggered = False
|
self.remoteEditTriggered = False
|
||||||
self.serviceNoteForm = ServiceNoteForm()
|
self.serviceNoteForm = ServiceNoteForm()
|
||||||
|
self.serviceItemEditForm = ServiceItemEditForm()
|
||||||
#start with the layout
|
#start with the layout
|
||||||
self.Layout = QtGui.QVBoxLayout(self)
|
self.Layout = QtGui.QVBoxLayout(self)
|
||||||
self.Layout.setSpacing(0)
|
self.Layout.setSpacing(0)
|
||||||
@ -243,6 +244,8 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
action = self.menu.exec_(self.ServiceManagerList.mapToGlobal(point))
|
action = self.menu.exec_(self.ServiceManagerList.mapToGlobal(point))
|
||||||
if action == self.editAction:
|
if action == self.editAction:
|
||||||
self.remoteEdit()
|
self.remoteEdit()
|
||||||
|
if action == self.maintainAction:
|
||||||
|
self.onServiceItemEditForm()
|
||||||
if action == self.deleteAction:
|
if action == self.deleteAction:
|
||||||
self.onDeleteFromService()
|
self.onDeleteFromService()
|
||||||
if action == self.notesAction:
|
if action == self.notesAction:
|
||||||
@ -264,6 +267,12 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
self.serviceNoteForm.textEdit.toPlainText()
|
self.serviceNoteForm.textEdit.toPlainText()
|
||||||
self.repaintServiceList(item, 0)
|
self.repaintServiceList(item, 0)
|
||||||
|
|
||||||
|
def onServiceItemEditForm(self):
|
||||||
|
item, count = self.findServiceItem()
|
||||||
|
if self.serviceItemEditForm.exec_():
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def nextItem(self):
|
def nextItem(self):
|
||||||
"""
|
"""
|
||||||
Called by the SlideController to select the
|
Called by the SlideController to select the
|
||||||
|
Loading…
Reference in New Issue
Block a user