³ò ¢õEc@s0dZddklZdefd„ƒYZdS(sð Documents a class that creates the window for the preferences dialog. @author: Lateef Alabi-Oki @organization: The Scribes Project @copyright: Copyright © 2006 Lateef Alabi-Oki @license: GNU GPLv2 or Later @contact: mystilleef@gmail.com iÿÿÿÿ(tDialogtPreferencesWindowcBsDeZdZd„Zd„Zd„Zd„Zd„Zd„ZRS(s= This class creates the window for the preferences dialog. cCsFti|ƒ|i||ƒ|iƒ|iid|iƒ|_dS(sR Initialize an instance of this class. @param self: Reference to the PreferencesWindow instance. @type self: A PreferencesWindow object. @param manager: Reference to the PreferencesManager instance @type manager: A PreferencesManager object. @param editor: Reference to the text editor. @type editor: An Editor object. tdestroyN(Rt__init__t#_PreferencesWindow__init_attributest"_PreferencesWindow__set_propertiest_PreferencesWindow__managertconnectt%_PreferencesWindow__window_destroy_cbt_PreferencesWindow__signal_id(tselftmanagerteditor((splugins/Preferences/Window.pyR&s  cCsO|iid|ƒddkl}|iii|dƒ|_ti|ƒdS(s‡ Show the document browser. @param self: Reference to the PreferencesWindow instance. @type self: A PreferencesWindow object. s show-dialogiÿÿÿÿ(tmsg0009t preferencesN( t_PreferencesWindow__editortemitti18nR tfeedbacktset_modal_messaget_PreferencesWindow__status_idRt show_dialog(R R ((splugins/Preferences/Window.pyR8s  cCs:|iid|ƒ|iii|iƒti|ƒdS(s‡ Hide the document browser. @param self: Reference to the PreferencesWindow instance. @type self: A PreferencesWindow object. s hide-dialogN(RRRtunset_modal_messageRRt hide_dialog(R ((splugins/Preferences/Window.pyREs cCsJddkl}l}||i|iƒ|iƒ||ƒ~d}dS(s Handles callback when "destroy" signal is emitted. @param self: Reference to the PreferencesWindow instance. @type self: An PreferencesWindow object. @param manager: Reference to the PreferencesManager. @type manager: An PreferencesManager object. iÿÿÿÿ(tdisconnect_signaltdelete_attributesN(t SCRIBES.utilsRRR RRtNone(R R RR((splugins/Preferences/Window.pyt__window_destroy_cbQs   cCs(||_||_d|_d|_dS(sH Initialize data attributes. @param self: Reference to the PreferencesWindow instance. @type self: A PreferencesWindow object. @param manager: Reference to the PreferencesManager instance @type manager: A PreferencesManager object. @param editor: Reference to the text editor. @type editor: An Editor object. N(RRRR R(R R R ((splugins/Preferences/Window.pyt__init_attributescs    cCs…|iddƒddkl}|id|ƒddkl}||iiddƒ\}}|id|ƒ|i|iiƒd S( s— Define the default behavior of the dialog. @param self: Reference to the PreferencesWindow instance. @type self: A PreferencesWindow object. tnametPreferencesDialogiÿÿÿÿ(tmsg0010ttitle(t!calculate_resolution_independenceg{®Gáz@s default-widthN(t set_propertyRR RR"Rtwindowtset_transient_for(R R R"twidththeight((splugins/Preferences/Window.pyt__set_propertiesvs( t__name__t __module__t__doc__RRRRRR(((splugins/Preferences/Window.pyR!s   N(R+tSCRIBES.sdialogRR(((splugins/Preferences/Window.pyss