³ò £õEc@s0dZddklZdefd„ƒYZdS(sî This module exposes a class that creates the findbar's next button. @author: Lateef Alabi-Oki @organization: The Scribes Project @copyright: Copyright © 2005 Lateef Alabi-Oki @license: GNU GPLv2 or Later @contact: mystilleef@gmail.com iÿÿÿÿ(tButtontFindNextButtoncBs•eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z d „Z d „Z d „Zd „Zd„Zd„ZRS(sw This class creates a button for the text editor's findbar. The button allows users to cycle through found matches. cCsDti|ƒ|i|ƒ|iƒ|iƒ|id|iƒ|_|iid|i ƒ|_ |iid|i ƒ|_ |i id|iƒ|_|iid|iƒ|_|iid|iƒ|_|iid|iƒ|_|iid|iƒ|_|iid|iƒ|_|id |iƒ|_|iƒd S( sê Initialize the button object. @param self: Reference to the ScribesFindNextButton instance. @type self: A ScribesFindNextButton object. @param findbar: The text editor's findbar. @type findbar: A ScribesFindBar object. tclickedsshow-barshide-bartchangedtnexttpreviouss matches-foundttoggledtdeleteN( Rt__init__t _FindNextButton__init_attributest_FindNextButton__set_propertiest_FindNextButton__create_buttontconnectt&_FindNextButton__nextbutton_clicked_cbt_FindNextButton__signal_id_4t_FindNextButton__editort'_FindNextButton__nextbutton_show_bar_cbt_FindNextButton__signal_id_5t'_FindNextButton__nextbutton_hide_bar_cbt_FindNextButton__signal_id_6t_FindNextButton__entryt&_FindNextButton__nextbutton_changed_cbt_FindNextButton__signal_id_7t_FindNextButton__searchmanagert connect_aftert#_FindNextButton__nextbutton_next_cbt_FindNextButton__signal_id_1t'_FindNextButton__nextbutton_previous_cbt_FindNextButton__signal_id_2t,_FindNextButton__nextbutton_matches_found_cbt_FindNextButton__signal_id_3t"_FindNextButton__word_check_buttont&_FindNextButton__nextbutton_toggled_cbt_FindNextButton__signal_id_8t"_FindNextButton__case_check_buttont_FindNextButton__signal_id_9t_FindNextButton__destroy_cbt_FindNextButton__signal_id_10t-_FindNextButton__block_search_replace_signals(tselftfindbar((splugins/FindBar/NextButton.pyR&s    cCsŽ|i|_|i|_|i|_d|_|_|_ d|_ |_ |_ d|_ |_|_d|_|i|_|i|_dS(sð Initialize the button's attributes. @param self: Reference to the ScribesFindNextButton instance. @type self: A ScribesFindNextButton object. @param findbar: The text editor's findbar. @type findbar: A ScribesFindBar object. N(teditorRtfind_text_entryRtsearch_replace_managerRtNoneRR!R#RRRRRRR%tmatch_word_buttonRtmatch_case_buttonR"(R'R(((splugins/FindBar/NextButton.pyt__init_attributes@s      cCs|idtƒdS(s™ Set the button's default properties. @param self: Reference to the ScribesFindNextButton instance. @type self: A ScribesFindNextButton object. t sensitiveN(t set_propertytFalse(R'((splugins/FindBar/NextButton.pyt__set_propertiesUscCsPddkl}ddkl}ddkl}|||ƒ}|i|ƒdS(sŠ Customize the button. @param self: Reference to the ScribesFindNextButton instance. @type self: A ScribesFindNextButton object. iÿÿÿÿ(t create_button(tmsg0004(tSTOCK_GO_FORWARDN(t SCRIBES.utilsR4ti18nR5tgtkR6tadd(R'R4R5R6thbox((splugins/FindBar/NextButton.pyt__create_button_s  cCs2|ii|iidjon|iiƒtS(s[ Handles callback when the "clicked" signal is emitted. @param self: Reference to the ScribesFindNextButton instance. @type self: A ScribesFindNextButton object. @param button: The next button for the findbar. @type button: A ScribesFindBar object. @return: True to propagate signals to parent widgets. @type: A Boolean Object. i(Rtindextnumber_of_matchesRtTrue(R'tbutton((splugins/FindBar/NextButton.pyt__nextbutton_clicked_cbms  cCsB|iƒ|iiƒo|idtƒn|idtƒdS(sN Handles callback when the "show-bar" signal is emitted. @param self: Reference to the ScribesFindNextButton instance. @type self: A ScribesFindNextButton 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. R0N(t/_FindNextButton__unblock_search_replace_signalsRtget_textR1R?R2(R'R)tbar((splugins/FindBar/NextButton.pyt__nextbutton_show_bar_cb€s cCs|iƒdS(sN Handles callback when the "hide-bar" signal is emitted. @param self: Reference to the ScribesFindNextButton instance. @type self: A ScribesFindNextButton 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. N(R&(R'R)RD((splugins/FindBar/NextButton.pyt__nextbutton_hide_bar_cb”s cCs5|iƒo|idtƒn|idtƒtS(sV Handles callback when the "changed" signal is emitted. @param self: Reference to the ScribesFindNextButton instance. @type self: A ScribesFindNextButton object. @param entry: The findbar's entry object. @type entry: A ScribesFindEntry object. @return: True to propagate signals to parent widgets. @type: A Boolean Object. R0(RCR1R?R2(R'tentry((splugins/FindBar/NextButton.pyt__nextbutton_changed_cb¤s cCs/|i|idjo|idtƒndS(s Handles callback when the "next" signal is emitted. @param self: Reference to the ScribesFindNextButton instance. @type self: A ScribesFindNextButton object. @param searchmanager: The text editor's search processor @type searchmanager: A SearchProcessor object. iR0N(R=R>R1R2(R't searchmanager((splugins/FindBar/NextButton.pyt__nextbutton_next_cb·s cCs/|i|idjo|idtƒndS(s Handles callback when the "previous" signal is emitted. @param self: Reference to the ScribesFindNextButton instance. @type self: A ScribesFindNextButton object. @param searchmanager: The text editor's search processor @type searchmanager: A SearchProcessor object. iR0N(R=R>R1R?(R'RI((splugins/FindBar/NextButton.pyt__nextbutton_previous_cbÅs cCs|idtƒdS(s Handles callback when the "matches-found" signal is emitted. @param self: Reference to the ScribesFindNextButton instance. @type self: A ScribesFindNextButton object. @param searchmanager: The text editor's search processor @type searchmanager: A SearchProcessor object. R0N(R1R?(R'RI((splugins/FindBar/NextButton.pyt__nextbutton_matches_found_cbÓs cCstS(sv Handles callback when the "toggled" signal is emitted. @param self: Reference to the ScribesFindNextButton instance. @type self: A ScribesFindNextButton object. @param togglebutton: The check buttons on the findbar. @type togglebutton: A gtk.CheckButton object. @return: True to prevent propagation of signals to parent widgets. @type: A Boolean Object. (R?(R't togglebutton((splugins/FindBar/NextButton.pyt__nextbutton_toggled_cbàs cCs=|ii|iƒ|ii|iƒ|ii|iƒdS(N(Rt handler_blockRRR(R'((splugins/FindBar/NextButton.pyt__block_search_replace_signalsïscCs=|ii|iƒ|ii|iƒ|ii|iƒdS(N(Rthandler_unblockRRR(R'((splugins/FindBar/NextButton.pyt __unblock_search_replace_signalsõscCsïddkl}l}||i|iƒ||i|iƒ||i|iƒ||i|ƒ||i|i ƒ||i |i ƒ||i |i ƒ||i |iƒ||i|iƒ||i|ƒ|iƒ||ƒ~d}dS(sö Handles callback when the "destroy" signal is emitted. @param self: Reference to the FindNextButton instance. @type self: A FindNextButton object. @param findbar: Reference to the FindBar instance. @type findbar: A FindBar object. iÿÿÿÿ(tdisconnect_signaltdelete_attributesN(R7RSRTRRRRRRRRRRR!RR#R"R%tdestroyR,(R'R(RSRT((splugins/FindBar/NextButton.pyt __destroy_cbûs   (t__name__t __module__t__doc__RR R R R RRRRRRR R&RBR$(((splugins/FindBar/NextButton.pyR s             N(RYR9RR(((splugins/FindBar/NextButton.pyss