forked from openlp/openlp
Clean up disenablement
This commit is contained in:
parent
34062ab7b9
commit
85a0c245ea
@ -44,11 +44,11 @@ class MediaDockManager(object):
|
||||
for tab_index in range(0, self.mediaDock.count()):
|
||||
#print self.mediaDock.widget(tab_index).ConfigSection, name
|
||||
if self.mediaDock.widget(tab_index).ConfigSection == name.lower():
|
||||
self.mediaDock.widget(tab_index).setEnabled(True)
|
||||
self.mediaDock.setItemEnabled(tab_index, True)
|
||||
|
||||
def removeDock(self, name):
|
||||
log.debug(u'remove %s dock' % name)
|
||||
for tab_index in range(0, self.mediaDock.count()):
|
||||
#print self.mediaDock.widget(tab_index).ConfigSection, name
|
||||
if self.mediaDock.widget(tab_index).ConfigSection == name.lower():
|
||||
self.mediaDock.widget(tab_index).setEnabled(False)
|
||||
self.mediaDock.setItemEnabled(tab_index, False)
|
||||
|
@ -59,7 +59,7 @@ class SettingsForm(QtGui.QDialog, Ui_SettingsDialog):
|
||||
if self.SettingsTabWidget.widget(tab_index).title() == name:
|
||||
#print "Insert match"
|
||||
#print self.SettingsTabWidget.widget(tab_index).isVisible()
|
||||
self.SettingsTabWidget.widget(tab_index).setEnabled(True)
|
||||
self.SettingsTabWidget.setTabEnabled(tab_index, True)
|
||||
#print self.SettingsTabWidget.widget(tab_index).isVisible()
|
||||
|
||||
|
||||
@ -71,7 +71,7 @@ class SettingsForm(QtGui.QDialog, Ui_SettingsDialog):
|
||||
if self.SettingsTabWidget.widget(tab_index).title() == name:
|
||||
#print "remove match"
|
||||
#print self.SettingsTabWidget.widget(tab_index).isVisible()
|
||||
self.SettingsTabWidget.widget(tab_index).setEnabled(False)
|
||||
self.SettingsTabWidget.setTabEnabled(tab_index, False)
|
||||
#print self.SettingsTabWidget.widget(tab_index).isVisible()
|
||||
|
||||
def accept(self):
|
||||
|
@ -46,9 +46,10 @@ class MediaMediaItem(MediaManagerItem):
|
||||
self.TranslationContext = u'MediaPlugin'
|
||||
self.IconPath = u'images/image'
|
||||
self.PluginTextShort = u'Media'
|
||||
self.ConfigSection = u'images'
|
||||
self.ConfigSection = u'media'
|
||||
self.OnNewPrompt = u'Select Media(s)'
|
||||
self.OnNewFileMasks = u'Videos (*.avi *.mpeg *.mpg *.mp4);;Audio (*.ogg *.mp3 *.wma);;All files (*)'
|
||||
self.OnNewFileMasks = \
|
||||
u'Videos (*.avi *.mpeg *.mpg *.mp4);;Audio (*.ogg *.mp3 *.wma);;All files (*)'
|
||||
# this next is a class, not an instance of a class - it will
|
||||
# be instanced by the base MediaManagerItem
|
||||
self.ListViewWithDnD_class = MediaListView
|
||||
|
Loading…
Reference in New Issue
Block a user