PreferencesDialog
index
/home/david/Projects/Jokosher/trunk/Jokosher/PreferencesDialog.py

#       THIS FILE IS PART OF THE JOKOSHER PROJECT AND LICENSED UNDER THE GPL. SEE
#       THE 'COPYING' FILE FOR DETAILS
#
#       PreferencesDialog.py
#       
#       This dialog handles the setting of preferences
#
#-------------------------------------------------------------------------------

 
Modules
       
AlsaDevices
Globals
gettext
gst
gtk
pygst

 
Classes
       
PreferencesDialog

 
class PreferencesDialog
    Creates a dialog for selecting and saving global preferences.
 
  Methods defined here:
LoadSetting(self, widget, section, property)
Sets the selected value in a combobox, to that specified by a configuration object.
 
Parameters:
        widget -- the combobox to select the value in.
        section -- the configuration section object to find the property in.
        property -- the property of the configuration section to use when 
                                selecting the combobox value.
OnCheckEncoders(self)
List the available encoders installed on the computer.
This code is not currently used, but is still here as it may 
be useful in the future.
OnClose(self, button=None)
Called when the user closes the preferences dialog.
 
Parameters:
        button -- reserved for GTK callbacks, don't use it explicitly.
OnPlaybackSinkChanged(self, comboBox=None)
Updates the selected playback audio device from the comboBox selection.
It then writes an updated settings file.
 
Parameters:
        comboBox -- reserved for GTK callbacks, don't use it explicitly.
OnSettingChanged(self, combobox=None)
Called when a setting is changed, to update the currently used settings.
It then writes an updated settings file.
 
Parameters:
        combobox -- reserved for GTK callbacks, don't use it explicitly.
__init__(self, project, mainwindow, icon=None)
Creates a new instance of PreferencesDialog.
 
Parameters:
        project -- the currently active Project.
        mainwindow -- the main Jokosher window (MainApp).
        icon -- the icon for the window manager to display for this window (optional).

 
Data
        STARTUP_LAST_PROJECT = 'lastproject'
STARTUP_NOTHING = 'nothing'
STARTUP_WELCOME_DIALOG = 'welcome'