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

#       THIS FILE IS PART OF THE JOKOSHER PROJECT AND LICENSED UNDER THE GPL. SEE
#       THE 'COPYING' FILE FOR DETAILS
#
#       Globals.py
#       
#       This module contains variable definitions that can be used across the code
#       base and also includes methods for reading and writing these settings to
#       the Jokosher configuration in ~/.jokosher/config.
#
#-------------------------------------------------------------------------------

 
Modules
       
ConfigParser
gettext
gobject
gtk
locale
os
pygtk

 
Classes
       
Settings

 
class Settings
    Handles loading/saving settings from/to a file on disk.
 
  Methods defined here:
__init__(self, filename=None)
Creates a new instance of Settings.
 
Parameters:
        filename -- path to the settings file.
                                If None, the default ~/.jokosher/config will be used.
read(self)
Reads configuration settings from the config file and loads
then into the Settings dictionaries.
write(self)
Writes configuration settings to the Settings config file.

Data and other attributes defined here:
extensions = {'extensions_blacklist': ''}
general = {'mixdownformat': 'value', 'projectfolder': '/home/david/mp3/Fourplay/The Best of Fourplay', 'recentprojects': '/home/david/tmp/Effects/Effects.jokosher|Effects...baJokosher/PruebaJokosher.jokosher|PruebaJokosher', 'startupaction': 'lastproject'}
playback = {'audiosink': 'autoaudiosink', 'device': 'C-Media PCI IEC958', 'devicecardnum': 'hw:0'}
recording = {'fileformat': 'vorbisenc ! oggmux', 'samplerate': '44100'}

 
Functions
       
PopulateEncoders()
Check if the hardcoded list of encoders is available on the system.
PrintPipelineDebug(message, pipeline)
Prints debugging information for the GStreamer pipeline.
 
Parameters:
        message -- GStreamer message to be printed as debugging output.
        pipeline -- the currently active Project's main pipeline.
debug(*listToPrint)
Global debug function to redirect all the debugging output from the other
methods.
 
Parameters:
        *listToPrint -- list of elements to append to the debugging output.
getCachedInstruments(checkForNew=False)
Creates the Instrument cache if it hasn't been created already and
return it.
 
Parameters:
        checkForNew --  True = scan the Instrument folders for new_dir.
                                        False = don't scan for new Instruments.
                                        
Returns:
        a list with the Instruments cached in memory.
idleCacheInstruments()
Loads the Instruments 'lazily' to avoid blocking the GUI.
 
Returns:
        True -- keep calling itself to load more Instruments.
        False -- stop calling itself and sort Instruments alphabetically.

 
Data
        AVAILABLE_EXTENSIONS = []
DEBUG_GST = False
DEBUG_STDOUT = False
EFFECT_PRESETS_PATH = '/home/david/Projects/Jokosher/trunk/Jokosher/../effectspresets'
EFFECT_PRESETS_VERSION = None
EXPORT_FORMATS = []
EXTENSION_PATHS = ('/home/david/Projects/Jokosher/trunk/Jokosher/../extensions', '/home/david/.jokosher/extensions/')
GLADE_PATH = '/home/david/Projects/Jokosher/trunk/Jokosher/Jokosher.glade'
HELP_PATH = '/home/david/Projects/Jokosher/trunk/Jokosher/../help/jokosher/C/jokosher.xml'
IMAGE_PATH = '/home/david/Projects/Jokosher/trunk/Jokosher/../images'
INSTRUMENT_HEADER_WIDTH = 0
INSTR_PATHS = ('/home/david/Projects/Jokosher/trunk/Jokosher/../Instruments', '/home/david/.jokosher/instruments')
LADSPA_CATEGORIES_MAP = [('', ['', ''])]
LADSPA_FACTORY_REGISTRY = None
LADSPA_NAME_MAP = []
LOCALE_APP = 'jokosher'
LOCALE_PATH = '/home/david/Projects/Jokosher/trunk/Jokosher/../locale'
SAMPLE_RATES = [8000, 11025, 22050, 32000, 44100, 48000, 96000, 192000]
USE_LOCAL_HELP = True
VERSION = '0.2'
current_locale = 'C'
data_path = '/home/david/Projects/Jokosher/trunk/Jokosher'
instrumentPropertyList = []
settings = <Globals.Settings instance>