Naming cleanup

This commit is contained in:
Jon Tibble 2010-07-28 14:32:12 +01:00
parent 2bd442ff4f
commit c099e6f808
2 changed files with 25 additions and 25 deletions

View File

@ -38,29 +38,29 @@ class CustomTab(SettingsTab):
def setupUi(self): def setupUi(self):
self.setObjectName(u'CustomTab') self.setObjectName(u'CustomTab')
self.tabTitleVisible = translate('CustomPlugin.CustomTab', 'Custom') self.tabTitleVisible = translate('CustomPlugin.CustomTab', 'Custom')
self.CustomLayout = QtGui.QFormLayout(self) self.customLayout = QtGui.QFormLayout(self)
self.CustomLayout.setSpacing(8) self.customLayout.setSpacing(8)
self.CustomLayout.setMargin(8) self.customLayout.setMargin(8)
self.CustomLayout.setObjectName(u'CustomLayout') self.customLayout.setObjectName(u'customLayout')
self.CustomModeGroupBox = QtGui.QGroupBox(self) self.customModeGroupBox = QtGui.QGroupBox(self)
self.CustomModeGroupBox.setObjectName(u'CustomModeGroupBox') self.customModeGroupBox.setObjectName(u'customModeGroupBox')
self.CustomModeLayout = QtGui.QVBoxLayout(self.CustomModeGroupBox) self.customModeLayout = QtGui.QVBoxLayout(self.customModeGroupBox)
self.CustomModeLayout.setSpacing(8) self.customModeLayout.setSpacing(8)
self.CustomModeLayout.setMargin(8) self.customModeLayout.setMargin(8)
self.CustomModeLayout.setObjectName(u'CustomModeLayout') self.customModeLayout.setObjectName(u'customModeLayout')
self.DisplayFooterCheckBox = QtGui.QCheckBox(self.CustomModeGroupBox) self.displayFooterCheckBox = QtGui.QCheckBox(self.customModeGroupBox)
self.DisplayFooterCheckBox.setObjectName(u'DisplayFooterCheckBox') self.displayFooterCheckBox.setObjectName(u'displayFooterCheckBox')
self.CustomModeLayout.addWidget(self.DisplayFooterCheckBox) self.customModeLayout.addWidget(self.displayFooterCheckBox)
self.CustomLayout.setWidget( self.customLayout.setWidget(
0, QtGui.QFormLayout.LabelRole, self.CustomModeGroupBox) 0, QtGui.QFormLayout.LabelRole, self.customModeGroupBox)
QtCore.QObject.connect(self.DisplayFooterCheckBox, QtCore.QObject.connect(self.displayFooterCheckBox,
QtCore.SIGNAL(u'stateChanged(int)'), QtCore.SIGNAL(u'stateChanged(int)'),
self.onDisplayFooterCheckBoxChanged) self.onDisplayFooterCheckBoxChanged)
def retranslateUi(self): def retranslateUi(self):
self.CustomModeGroupBox.setTitle(translate('CustomPlugin.CustomTab', self.customModeGroupBox.setTitle(translate('CustomPlugin.CustomTab',
'Custom Display')) 'Custom Display'))
self.DisplayFooterCheckBox.setText( self.displayFooterCheckBox.setText(
translate('CustomPlugin.CustomTab', 'Display footer')) translate('CustomPlugin.CustomTab', 'Display footer'))
def onDisplayFooterCheckBoxChanged(self, check_state): def onDisplayFooterCheckBoxChanged(self, check_state):
@ -73,7 +73,7 @@ class CustomTab(SettingsTab):
self.displayFooter = QtCore.QSettings().value( self.displayFooter = QtCore.QSettings().value(
self.settingsSection + u'/display footer', self.settingsSection + u'/display footer',
QtCore.QVariant(True)).toBool() QtCore.QVariant(True)).toBool()
self.DisplayFooterCheckBox.setChecked(self.displayFooter) self.displayFooterCheckBox.setChecked(self.displayFooter)
def save(self): def save(self):
QtCore.QSettings().setValue(self.settingsSection + u'/display footer', QtCore.QSettings().setValue(self.settingsSection + u'/display footer',

View File

@ -42,20 +42,20 @@ class SongFormat(object):
CSV = 3 CSV = 3
@staticmethod @staticmethod
def get_class(id): def get_class(format):
""" """
Return the appropriate imeplementation class. Return the appropriate imeplementation class.
``id`` ``format``
The song format. The song format.
""" """
# if id == SongFormat.OpenLyrics: # if format == SongFormat.OpenLyrics:
# return OpenLyricsSong # return OpenLyricsSong
# elif id == SongFormat.OpenSong: # elif format == SongFormat.OpenSong:
# return OpenSongSong # return OpenSongSong
# elif id == SongFormat.CCLI: # elif format == SongFormat.CCLI:
# return CCLISong # return CCLISong
# elif id == SongFormat.CSV: # elif format == SongFormat.CSV:
# return CSVSong # return CSVSong
# else: # else:
return None return None