łň ˘őEc@s0dZddklZdefd„ƒYZdS(sý The modules exposes a class that creates the text editor's findbar's entry widget. @author: Lateef Alabi-Oki @organization: The Scribes Project @copyright: Copyright Š 2005 Lateef Alabi-Oki @license: GNU GPLv2 or Later @contact: mystilleef@gmail.com i˙˙˙˙(tEntryt FindEntrycBs_eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z RS( sŒ This class creates the findbar's entry for the text editor. The class defines, the behavior and default properties of the entry widget. cCsÇti|ƒ|i|ƒ|iƒ|iid|iƒ|_|ii d|i ƒ|_ |ii d|i ƒ|_ |ii d|iƒ|_|ii d|iƒ|_|i d|iƒ|_dS(sß Initialize the entry object. @param self: Reference to the ScribesFindEntry instance. @type self: A ScribesFindEntry object. @param findbar: The text editor's findbar. @type findbar: A ScribesFindBar object. sshow-bart searchings matches-foundsno-matches-foundtcanceltdeleteN(Rt__init__t_FindEntry__init_attributest_FindEntry__set_propertiest_FindEntry__editort connect_aftert!_FindEntry__findentry_show_bar_cbt_FindEntry__signal_id_1t_FindEntry__searchmanagertconnectt"_FindEntry__findentry_searching_cbt_FindEntry__signal_id_2t&_FindEntry__findentry_matches_found_cbt_FindEntry__signal_id_3t)_FindEntry__findentry_no_matches_found_cbt_FindEntry__signal_id_4t_FindEntry__findentry_cancel_cbt_FindEntry__signal_id_5t_FindEntry__destroy_cbt_FindEntry__signal_id_6(tselftfindbar((splugins/IncrementalBar/Entry.pyR's   cCse|i|_|i|_ddkl}||iƒ|_d|_|_ |_ d|_ |_ dS(sĺ Initialize the entry's attributes. @param self: Reference to the ScribesFindEntry instance. @type self: A ScribesFindEntry object. @param findbar: The text editor's findbar. @type findbar: A ScribesFindBar object. i˙˙˙˙(tFindEntryCompletionN( teditorRtsearch_replace_managerR tEntryCompletionRt_FindEntry__completiontNoneR RRRR(RRR((splugins/IncrementalBar/Entry.pyt__init_attributes;s  cCs|i|iƒdS(s• Define the text entry object's properties. @param self: Reference to the ScribesFindEntry instance. @type self: A ScribesFindEntry object. N(tset_completionR(R((splugins/IncrementalBar/Entry.pyt__set_propertiesMscCs |idtƒ|iiiƒ}|oiddkl}||diƒ|diƒƒo1|iii|d|dƒ}|i |ƒq’n|i ƒdS(sD Handels callback when the "show-bar" signal is emitted. @param self: Reference to the ScribesFindEntry instance. @type self: A ScribesFindEntry object. @param editor: Reference to the text editor. @type editor: An Editor object. @param bar: The text editor's findbar. @type bar: A ScribesFindBar object. t sensitivei˙˙˙˙(teqiiN( t set_propertytTrueRt textbuffertget_selection_boundstoperatorR$tget_linetget_texttset_textt grab_focus(RRtbart selectionR$ttext((splugins/IncrementalBar/Entry.pyt__findentry_show_bar_cbWs $  cCs|idtƒ|iƒdS(s Handels callback when the "searching" signal is emitted. @param self: Reference to the ScribesFindEntry instance. @type self: A ScribesFindEntry object. @param searchmanager: The text editor's searcing processing object. @type searchmanager: A SearchProcessor object. R#N(R%tFalseR-(Rt searchmanager((splugins/IncrementalBar/Entry.pyt__findentry_searching_cbns  cCs|idtƒ|iƒdS(s Handels callback when the "matches-found" signal is emitted. @param self: Reference to the ScribesFindEntry instance. @type self: A ScribesFindEntry object. @param searchmanager: The text editor's searcing processing object. @type searchmanager: A SearchProcessor object. R#N(R%R&R-(RR3((splugins/IncrementalBar/Entry.pyt__findentry_matches_found_cb|s  cCs|idtƒ|iƒdS(s" Handels callback when the "no-matches-found" signal is emitted. @param self: Reference to the ScribesFindEntry instance. @type self: A ScribesFindEntry object. @param searchmanager: The text editor's searcing processing object. @type searchmanager: A SearchProcessor object. R#N(R%R&R-(RR3((splugins/IncrementalBar/Entry.pyt__findentry_no_matches_found_cbŠs  cCs|idtƒ|iƒdS(s Handels callback when the "cancel" signal is emitted. @param self: Reference to the ScribesFindEntry instance. @type self: A ScribesFindEntry object. @param searchmanager: The text editor's searcing processing object. @type searchmanager: A SearchProcessor object. R#N(R%R&R-(RR3((splugins/IncrementalBar/Entry.pyt__findentry_cancel_cb˜s  cCsÁddkl}l}||i|iƒ||i|iƒ||i|iƒ||i|iƒ||i |iƒ||i |ƒ|i o|i i ƒn|i ƒ||ƒ~d}dS(sě Handles callback when the "destroy" signal is emitted. @param self: Reference to the FindEntry instance. @type self: A FindEntry object. @param findbar: Reference to the FindBar instance. @type findbar: A FindBar object. i˙˙˙˙(tdisconnect_signaltdelete_attributesN(t SCRIBES.utilsR8R9R RRR RRRRRtdestroy_objecttdestroyR(RRR8R9((splugins/IncrementalBar/Entry.pyt __destroy_cbŚs    ( t__name__t __module__t__doc__RRRR RRRRR(((splugins/IncrementalBar/Entry.pyR!s       N(R@tgtkRR(((splugins/IncrementalBar/Entry.pyss