³ò þH×Ec@s dZdefd„ƒYZdS(s This module documents a class that defines the behavior of the remove button in 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 RemoveButtoncBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(s9 This class defines the behavior of the remove button. cCs_|i||ƒ|id|iƒ|_|id|iƒ|_|iid|iƒ|_dS(s0 Initialize object. @param self: Reference to the RemoveButton instance. @type self: A RemoveButton 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. s description-treeview-sensitivitytdestroytclickedN( t_RemoveButton__init_attributestconnectt_RemoveButton__sensitivity_cbt_RemoveButton__signal_id_1t_RemoveButton__destroy_cbt_RemoveButton__signal_id_2t_RemoveButton__buttont_RemoveButton__clicked_cbt_RemoveButton__signal_id_3(tselftmanagerteditor((s&plugins/TemplateEditor/RemoveButton.pyt__init__%s cCsB||_||_|iidƒ|_d|_|_|_dS(s9 Initialize data attributes. @param self: Reference to the RemoveButton instance. @type self: A RemoveButton 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_RemoveButton__managert_RemoveButton__editortgladet get_widgetR tNoneRRR (R R R((s&plugins/TemplateEditor/RemoveButton.pyt__init_attributes7s  cCs|iid|ƒdS(s‚ Handles callback when the "description-treeview-sensitivity" signal is emitted. @param self: Reference to the RemoveButton instance. @type self: A RemoveButton 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(R R R((s&plugins/TemplateEditor/RemoveButton.pyt__sensitivity_cbJs cCsmddkl}l}||i|ƒ||i|ƒ||i|iƒ|iiƒ||ƒd}~dS(s Handles callback when the "destroy" signal is emitted. @param self: Reference to the RemoveButton instance. @type self: A RemoveButton object. @param manager: Reference to the TemplateManager instance. @type manager: A TemplateManager object. iÿÿÿÿ(tdelete_attributestdisconnect_signalN( t SCRIBES.utilsRRRRR R RR(R R RR((s&plugins/TemplateEditor/RemoveButton.pyt __destroy_cbZs   cCs|iidƒtS(sN Handles callback when the "clicked" signal is emitted. @param self: Reference to the RemoveButton instance. @type self: A RemoveButton object. @param button: Reference to the RemoveButton instance. @type button: A RemoveButton object. @return: True to propagate signals to parent widgets. @type: A Boolean Object. sremove-template(RtemittTrue(R tbutton((s&plugins/TemplateEditor/RemoveButton.pyt __clicked_cbns (t__name__t __module__t__doc__RRRRR (((s&plugins/TemplateEditor/RemoveButton.pyR s     N(R#tobjectR(((s&plugins/TemplateEditor/RemoveButton.pyss