settings.py

Go to the documentation of this file.
00001 # Copyright 2005, 2006  Timo Savola
00002 #
00003 # This program is free software; you can redistribute it and/or modify
00004 # it under the terms of the GNU Lesser General Public License as published
00005 # by the Free Software Foundation; either version 2.1 of the License, or
00006 # (at your option) any later version.
00007 
00008 import gobject
00009 import extension
00010 
00011 class SettingsExtension (extension.Extension):
00012         '''Preferences GUI element.'''
00013 
00014         accept = True
00015 
00016         def __init__(self):
00017                 extension.Extension.__init__(self)
00018 
00019         def get_widget(self):
00020                 '''Return the gtk.Widget which is the root of the widget hierarchy that
00021                    should be attached to the preferences window.  The
00022                    settings object is responsible for setting the "visible"
00023                    property of the widget.'''
00024                 return None
00025 
00026         def apply(self):
00027                 '''Save all values that have been changed by the user.'''
00028                 pass
00029 
00030         def revert(self):
00031                 '''Restore the user interface to the saved state.'''
00032                 pass
00033 
00034         def modified(self):
00035                 '''Emits the "modified" signal.'''
00036                 self.emit('modified')
00037 
00038 gobject.type_register(SettingsExtension)
00039 gobject.signal_new('modified', SettingsExtension, 0, gobject.TYPE_NONE, [])

Generated on Thu Jan 18 09:47:40 2007 for Encode by  doxygen 1.4.7