changed attributes to camelCase

This commit is contained in:
Andreas Preikschat 2012-06-04 12:51:50 +02:00
parent b43004aced
commit ad3edd4e10
3 changed files with 7 additions and 7 deletions

View File

@ -55,7 +55,7 @@ class Renderer(object):
"""
log.info(u'Renderer Loaded')
def __init__(self, image_manager, themeManager):
def __init__(self, image_manager, theme_manager):
"""
Initialise the renderer.
@ -63,11 +63,11 @@ class Renderer(object):
A image_manager instance which takes care of e. g. caching and
resizing images.
``themeManager``
The themeManager instance, used to get the current theme details.
``theme_manager``
The theme_manager instance, used to get the current theme details.
"""
log.debug(u'Initialisation started')
self.themeManager = themeManager
self.theme_manager = theme_manager
self.image_manager = image_manager
self.screens = ScreenList()
self.theme_level = ThemeLevel.Global
@ -126,7 +126,7 @@ class Renderer(object):
The theme name.
"""
if theme_name not in self._theme_dimensions:
theme_data = self.themeManager.getThemeData(theme_name)
theme_data = self.theme_manager.getThemeData(theme_name)
main_rect = self.get_main_rectangle(theme_data)
footer_rect = self.get_footer_rectangle(theme_data)
self._theme_dimensions[theme_name] = \

View File

@ -216,7 +216,7 @@ class ServiceItem(object):
self.image_border = background
self.service_item_type = ServiceItemType.Image
self._raw_frames.append({u'title': title, u'path': path})
self.renderer.imageManager.addImage(title, path, u'image',
self.renderer.image_manager.addImage(title, path, u'image',
self.image_border)
self._new_item()

View File

@ -97,7 +97,7 @@ class EditSongForm(QtGui.QDialog, Ui_EditSongDialog):
self.onVerseOrderTextChanged)
QtCore.QObject.connect(self.themeAddButton,
QtCore.SIGNAL(u'clicked()'),
self.mediaitem.plugin.renderer.themeManager.onAddTheme)
self.mediaitem.plugin.renderer.theme_manager.onAddTheme)
QtCore.QObject.connect(self.maintenanceButton,
QtCore.SIGNAL(u'clicked()'), self.onMaintenanceButtonClicked)
QtCore.QObject.connect(self.audioAddFromFileButton,