³ò ÄÙEc@s dZdefd„ƒYZdS(s  This module documents a class that defines the behavior of the edit button on the template editor. @author: Lateef Alabi-Oki @organization: The Scribes Project @copyright: Copyright © 2007 Lateef Alabi-Oki @license: GNU GPLv2 or Later @contact: mystilleef@gmail.com t EditButtoncBsDeZdZd„Zd„Zd„Zd„Zd„Zd„ZRS(s7 This class defines the behavior of the edit button. cCsw|i||ƒ|id|iƒ|_|id|iƒ|_|id|iƒ|_|iid|i ƒ|_ dS(s- Initialize object. @param self: Reference to the EditButton instance. @type self: An EditButton object. @param manager: Reference to the TemplateManager instance. @type manager: A TemplateManager object. @param editor: Reference to the text editor. @type editor: An Editor object. tdestroys description-treeview-sensitivitystemplate-selectedtclickedN( t_EditButton__init_attributestconnectt_EditButton__destroy_cbt_EditButton__signal_id_1t_EditButton__sensitivity_cbt_EditButton__signal_id_2t!_EditButton__template_selected_cbt_EditButton__signal_id_3t_EditButton__buttont_EditButton__clicked_cbt_EditButton__signal_id_4(tselftmanagerteditor((s$plugins/TemplateEditor/EditButton.pyt__init__%s cCsf||_||_d|_d|_d|_|iidƒ|_d|_ |_ |_ d|_ dS(s6 Initialize data attributes. @param self: Reference to the EditButton instance. @type self: An EditButton object. @param manager: Reference to the TemplateManager instance. @type manager: A TemplateManager object. @param editor: Reference to the text editor. @type editor: An Editor object. RN( t_EditButton__managert_EditButton__editortNonet_EditButton__languaget_EditButton__triggert_EditButton__dialogtgladet get_widgetR RRR R (RRR((s$plugins/TemplateEditor/EditButton.pyt__init_attributes8s      cCs}ddkl}l}||i|ƒ||i|ƒ||i|ƒ||i|iƒ|iiƒ||ƒd}~dS(s Handles callback when the "destroy" signal is emitted. @param self: Reference to the ExportButton instance. @type self: A ExportButton object. @param manager: Reference to the TemplateManager instance. @type manager: A TemplateManager object. iÿÿÿÿ(tdelete_attributestdisconnect_signalN( t SCRIBES.utilsRRRRR R R RR(RRRR((s$plugins/TemplateEditor/EditButton.pyt __destroy_cbOs   cCs|iid|ƒdS(s~ Handles callback when the "description-treeview-sensitivity" signal is emitted. @param self: Reference to the EditButton instance. @type self: A EditButton object. @param manager: Reference to the TemplateManager instance. @type manager: A TemplateManager object. @param sensitive: The sensitivity of the description treeview. @type sensitive: A Boolean object. t sensitiveN(R t set_property(RRR((s$plugins/TemplateEditor/EditButton.pyt__sensitivity_cbds cCs|\|_|_dS(sN Handles callback when the "template-selected" signal is emitted. @param self: Reference to the EditButton instance. @type self: An EditButton object. @param manager: Reference to the TemplateManager instance. @type manager: A TemplateManager object. @param data: Selection information. @type data: A Tuple object. N(RR(RRtdata((s$plugins/TemplateEditor/EditButton.pyt__template_selected_cbts cCsly|iiƒWnTtj oHddkl}||i|i|i|iƒ|_|iiƒnXtS(sH Handles callback when the "clicked" signal is emitted. @param self: Reference to the EditButton instance. @type self: An EditButton object. @param button: Reference to the EditButton instance. @type button: An EditButton object. @return: True to propagate signals to parent widgets. @type: A Boolean Object. iÿÿÿÿ(t EditDialog( RtshowtAttributeErrorR$RRRRtTrue(RtbuttonR$((s$plugins/TemplateEditor/EditButton.pyt __clicked_cb„s $( t__name__t __module__t__doc__RRRRR R (((s$plugins/TemplateEditor/EditButton.pyR s     N(R,tobjectR(((s$plugins/TemplateEditor/EditButton.pyss