łň ˇŇĺ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 FindEntrycBsheZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„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ƒ|_|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-foundtcanceltdeleteskey-press-eventN(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_6t_FindEntry__key_press_event_cbt_FindEntry__signal_id_7(tselftfindbar((splugins/FindBar/Entry.pyR's   cCs~|i|_||_|i|_ddkl}||iƒ|_d|_ |_ |_ 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(teditorRt_FindEntry__findbartsearch_replace_managerR tEntryCompletionRt_FindEntry__completiontNoneR RRRRRR(RRR((splugins/FindBar/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/FindBar/Entry.pyt__set_propertiesPscCs |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/FindBar/Entry.pyt__findentry_show_bar_cbZs $  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(tFalseR0(Rt searchmanager((splugins/FindBar/Entry.pyt__findentry_searching_cbqs  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)R0(RR6((splugins/FindBar/Entry.pyt__findentry_matches_found_cbs  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)R0(RR6((splugins/FindBar/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)R0(RR6((splugins/FindBar/Entry.pyt__findentry_cancel_cb›s  cCsŃddkl}l}||i|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.utilsR;R<R RRR RRRRRR!tdestroy_objecttdestroyR"(RRR;R<((splugins/FindBar/Entry.pyt __destroy_cbŠs    cCspddkl}ddkl}ddkl}|i|@o.||i|iƒo|i i i ƒt Snt S(Ni˙˙˙˙(tkeysyms(t SHIFT_MASK(R'(tgtkRAtgtk.gdkRBR,R'tstatetkeyvaltReturnRtprevious_buttontactivateR)R5(RtentryteventRARBR'((splugins/FindBar/Entry.pyt__key_press_event_cbĂs$( t__name__t __module__t__doc__RRRR RRRRRR(((splugins/FindBar/Entry.pyR!s        N(RORCRR(((splugins/FindBar/Entry.pyss