³ò ûš³Ec@s dZdefd„ƒYZdS(s This module exposes a class responsible for changing the name associated with a document. @author: Lateef Alabi-Oki @organization: The Scribes Project @copyright: Copyright © 2005 Lateef Alabi-Oki @license: GNU GPLv2 or Later @contact: mystilleef@gmail.com tNameChangeProcessorcBs2eZdZd„Zd„Zd„Zd„ZRS(sÑ This class creates an object that changes the name associated with a document. It ensures that the state and integrity of the text editor remain valid regardless of the outcome of the renaming operation. cCs|i||ƒ|iƒdS(s‘ Initialize the NameChangeProcessor object and begin the process of changing the text editor's name and state. @param self: Reference to the NameChangeProcessor instance. @type self: A NameChangeProcessor object. @param editor: Reference to the text editor. @type editor: An Editor object. @param newuri: The new URI to associate with the document. @type newuri: A String object. N(t%_NameChangeProcessor__init_attributest%_NameChangeProcessor__rename_document(tselfteditortnewuri((splugins/SaveDialog/Rename.pyt__init__&scCs"||_||_|i|_dS(sC Initialize the objects attributes @param self: Reference to the NameChangeProcessor instance. @type self: A NameChangeProcessor object. @param editor: Reference to the text editor. @type editor: An Editor object. @param newuri: The new URI to associate with the document. @type newuri: A String object. N(RRturitolduri(RRR((splugins/SaveDialog/Rename.pyt__init_attributes7s   cCs[|iid|iƒ|iio|iiidƒn|iiidƒ|iƒdS(s‡ Save the new document. @param self: Reference to the NameChangeProcessor instance. @type self: A NameChangeProcessor object. srenamed-documentttoggle_readonlyt save_fileN(RtemitRt is_readonlyttriggermanagerttriggertdestroy(R((splugins/SaveDialog/Rename.pyt__rename_documentIs   cCs'ddkl}||ƒ~d}dS(s’ Destroy the name changing object. @param self: Reference to the NameChangeProcessor instance. @type self: A NameChangeProcessor object. iÿÿÿÿ(tdelete_attributesN(t SCRIBES.utilsRtNone(RR((splugins/SaveDialog/Rename.pyRWs  (t__name__t __module__t__doc__RRRR(((splugins/SaveDialog/Rename.pyRs    N(RtobjectR(((splugins/SaveDialog/Rename.pyss