³ò zbFc@s0dZddklZdefd„ƒYZdS(s This module exposes a class that creates the text editor's findbar's case 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 CheckButtontFindCaseButtoncBs_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 FindCaseButton instance. @type self: A FindCaseButton object. @param findbar: The text editor's findbar. @type findbar: A ScribesFindBar object. iÿÿÿÿ(tmsg0001t use_underlinettoggledsshow-bart searchings matches-foundsno-matches-foundtcanceltdeleteN(ti18nRRt__init__tTruet _FindCaseButton__init_attributestconnectt&_FindCaseButton__casebutton_toggled_cbt_FindCaseButton__signal_id_7t_FindCaseButton__editort'_FindCaseButton__casebutton_show_bar_cbt_FindCaseButton__signal_id_1t_FindCaseButton__searchmanagert(_FindCaseButton__casebutton_searching_cbt_FindCaseButton__signal_id_2t,_FindCaseButton__casebutton_matches_found_cbt_FindCaseButton__signal_id_3t/_FindCaseButton__casebutton_no_matches_found_cbt_FindCaseButton__signal_id_4t%_FindCaseButton__casebutton_cancel_cbt_FindCaseButton__signal_id_5t_FindCaseButton__destroy_cbt_FindCaseButton__signal_id_6(tselftfindbarR((s$plugins/IncrementalBar/CaseButton.pyR 's  cCsq|i|_|i|_ddkl}|ƒ|_d|_|_ d|_ |_ d|_ |_ d|_dS(sè Initialize the check button's attributes. @param self: Reference to the FindCaseButton instance. @type self: A FindCaseButton object. @param findbar: The text editor's findbar. @type findbar: A ScribesFindBar object. iÿÿÿÿ(tclient_get_defaultN(teditorRtsearch_replace_managerRtgconfRt_FindCaseButton__clienttNoneRRRRRRR(RRR((s$plugins/IncrementalBar/CaseButton.pyt__init_attributes<s    cCsC|iiƒ|idƒ}|iid|ƒ|iidƒtS(s Handles callback when the "toggled" signal is emitted. @param self: Reference to the FindCaseButton instance. @type self: A FindCaseButton object. @param togglebutton: The findbar's case check button. @type togglebutton: A CheckButton object. tactives/apps/scribes/match_case(Rtresett get_propertyR#tset_booltnotifyR (Rt togglebuttontvalue((s$plugins/IncrementalBar/CaseButton.pyt__casebutton_toggled_cbPs cCsP|idtƒ|iidƒ}|idƒ|j o|id|ƒndS(s@ Handles callback when the "show-bar" signal is emitted. @param self: Reference to the FindCaseButton instance. @type self: A FindCaseButton 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_caseR&N(t set_propertyR R#tget_boolR((RR tbarR,((s$plugins/IncrementalBar/CaseButton.pyt__casebutton_show_bar_cb`s cCs|idtƒdS(s  Handles callback when the "searching" signal is emitted. @param self: Reference to the FindCaseButton instance. @type self: A FindCaseButton object. @param searchmanager: The text editor's search processor. @type searchmanager: A SearchProcessor object. R.N(R/tFalse(Rt searchmanager((s$plugins/IncrementalBar/CaseButton.pyt__casebutton_searching_cbss cCs|idtƒdS(s Handles callback when the "matches-found" signal is emitted. @param self: Reference to the FindCaseButton instance. @type self: A FindCaseButton object. @param searchmanager: The text editor's search processor. @type searchmanager: A SearchProcessor object. R.N(R/R (RR4((s$plugins/IncrementalBar/CaseButton.pyt__casebutton_matches_found_cb€s cCs|idtƒdS(s Handles callback when the "no-matches-found" signal is emitted. @param self: Reference to the FindCaseButton instance. @type self: A FindCaseButton object. @param searchmanager: The text editor's search processor. @type searchmanager: A SearchProcessor object. R.N(R/R (RR4((s$plugins/IncrementalBar/CaseButton.pyt __casebutton_no_matches_found_cbs cCs|idtƒdS(s  Handles callback when the "cancel" signal is emitted. @param self: Reference to the FindCaseButton instance. @type self: A FindCaseButton object. @param searchmanager: The text editor's search processor. @type searchmanager: A SearchProcessor object. R.N(R/R (RR4((s$plugins/IncrementalBar/CaseButton.pyt__casebutton_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 FindCaseButton instance. @type self: A FindCaseButton object. @param findbar: Reference the Findbar instance. @type findbar: A Findbar object. iÿÿÿÿ(tdisconnect_signaltdelete_attributesN(t SCRIBES.utilsR9R:RRRRRRRRRtdestroyR$(RRR9R:((s$plugins/IncrementalBar/CaseButton.pyt __destroy_cb§s   ( t__name__t __module__t__doc__R R R RRRRRR(((s$plugins/IncrementalBar/CaseButton.pyR!s     N(R@tgtkRR(((s$plugins/IncrementalBar/CaseButton.pyss