³ò æbFc@s0dZddklZdefd„ƒYZdS(s This module exposes a class that creates the text editor's findbar's match word check 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ÿÿÿÿ(t CheckButtontFindWordButtoncBs_eZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z d „Z RS( s This class creates a check button for the text editor's findbar. The class defines the behavior and default properties of the check button. cCsîddkl}ti||dtƒ|i|ƒ|id|iƒ|_|i id|i ƒ|_ |i id|i ƒ|_|i id|iƒ|_|i id|iƒ|_|i id |iƒ|_|id |iƒ|_d S( sÛ Initialize the check button. @param self: Reference to the FindWordButton instance. @type self: A FindWordButton object. @param findbar: The text editor's findbar. @type findbar: A ScribesFindBar object. iÿÿÿÿ(tmsg0002t use_underlinettoggledsshow-bart searchings matches-foundsno-matches-foundtcanceltdeleteN(ti18nRRt__init__tTruet _FindWordButton__init_attributestconnectt&_FindWordButton__wordbutton_toggled_cbt_FindWordButton__signal_id_1t_FindWordButton__editort'_FindWordButton__wordbutton_show_bar_cbt_FindWordButton__signal_id_2t_FindWordButton__searchmanagert(_FindWordButton__wordbutton_searching_cbt_FindWordButton__signal_id_3t,_FindWordButton__wordbutton_matches_found_cbt_FindWordButton__signal_id_4t/_FindWordButton__wordbutton_no_matches_found_cbt_FindWordButton__signal_id_5t%_FindWordButton__wordbutton_cancel_cbt_FindWordButton__signal_id_6t_FindWordButton__destroy_cbt_FindWordButton__signal_id_7(tselftfindbarR((s$plugins/IncrementalBar/WordButton.pyR 's  cCsf|i|_|i|_ddkl}|ƒ|_d|_|_ |_ d|_ |_ |_ dS(sè Initialize the check button's attributes. @param self: Reference to the FindWordButton instance. @type self: A FindWordButton object. @param findbar: The text editor's findbar. @type findbar: A ScribesFindBar object. iÿÿÿÿ(tclient_get_defaultN(teditorRtsearch_replace_managerRtgconfRt_FindWordButton__clienttNoneRRRRRR(RRR((s$plugins/IncrementalBar/WordButton.pyt__init_attributes<s   cCsC|iiƒ|idƒ}|iid|ƒ|iidƒtS(s Handles callback when the "toggled" signal is emitted. @param self: Reference to the FindWordButton instance. @type self: A FindWordButton object. @param togglebutton: The findbar's case check button. @type togglebutton: A CheckButton object. tactives/apps/scribes/match_word(Rtresett get_propertyR#tset_booltnotifyR (Rt togglebuttontvalue((s$plugins/IncrementalBar/WordButton.pyt__wordbutton_toggled_cbNs cCsP|idtƒ|iidƒ}|idƒ|j o|id|ƒndS(s@ Handles callback when the "show-bar" signal is emitted. @param self: Reference to the FindWordButton instance. @type self: A FindWordButton object. @param editor: Reference to the text editor. @type editor: An Editor object. @param bar: One of the text editor's bars. @type bar: A ScribesBar object. t sensitives/apps/scribes/match_wordR&N(t set_propertyR R#tget_boolR((RR tbarR,((s$plugins/IncrementalBar/WordButton.pyt__wordbutton_show_bar_cb^s cCs|idtƒdS(s  Handles callback when the "searching" signal is emitted. @param self: Reference to the FindWordButton instance. @type self: A FindWordButton object. @param searchmanager: The text editor's search processor. @type searchmanager: A SearchProcessor object. R.N(R/tFalse(Rt searchmanager((s$plugins/IncrementalBar/WordButton.pyt__wordbutton_searching_cbqs cCs|idtƒdS(s Handles callback when the "matches-found" signal is emitted. @param self: Reference to the FindWordButton instance. @type self: A FindWordButton object. @param searchmanager: The text editor's search processor. @type searchmanager: A SearchProcessor object. R.N(R/R (RR4((s$plugins/IncrementalBar/WordButton.pyt__wordbutton_matches_found_cb~s cCs|idtƒdS(s Handles callback when the "no-matches-found" signal is emitted. @param self: Reference to the FindWordButton instance. @type self: A FindWordButton object. @param searchmanager: The text editor's search processor. @type searchmanager: A SearchProcessor object. R.N(R/R (RR4((s$plugins/IncrementalBar/WordButton.pyt __wordbutton_no_matches_found_cb‹s cCs|idtƒdS(s  Handles callback when the "cancel" signal is emitted. @param self: Reference to the FindWordButton instance. @type self: A FindWordButton object. @param searchmanager: The text editor's search processor. @type searchmanager: A SearchProcessor object. R.N(R/R (RR4((s$plugins/IncrementalBar/WordButton.pyt__wordbutton_cancel_cb˜s cCs¶ddkl}l}||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 FindWordButton instance. @type self: A FindWordButton object. @param findbar: Reference to the FindBar instance. @type findbar: A FindBar object. iÿÿÿÿ(tdisconnect_signaltdelete_attributesN(t SCRIBES.utilsR9R:RRRRRRRRRtdestroyR$(RRR9R:((s$plugins/IncrementalBar/WordButton.pyt __destroy_cb¥s   ( t__name__t __module__t__doc__R R R RRRRRR(((s$plugins/IncrementalBar/WordButton.pyR!s     N(R@tgtkRR(((s$plugins/IncrementalBar/WordButton.pyss