³ò DcFc@s dZdefd„ƒYZdS(sô This module documents a class that implements keyboard scroll operations. @author: Lateef Alabi-Oki @organization: The Scribes Project @copyright: Copyright © 2007 Lateef Alabi-Oki @license: GNU GPLv2 or Later @contact: mystilleef@gmail.com tManagercBsMeZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z RS(s5 This class implements keyboard scroll operations. cCs:|i|ƒddkl}l}||id|ƒdS(s½ Initialize object. @param self: Reference to the Manager instance. @type self: A Manager object. @param editor: Reference to the text editor. @type editor: An Editor object. iÿÿÿÿ(tidle_addt PRIORITY_LOWtpriorityN(t_Manager__init_attributestgobjectRRt_Manager__precompile_methods(tselfteditorRR((s#plugins/ScrollNavigation/Manager.pyt__init__%s cCs%||_|i|_|i|_dS(s½ Initialize object. @param self: Reference to the Manager instance. @type self: A Manager object. @param editor: Reference to the text editor. @type editor: An Editor object. N(t_Manager__editorttextviewt_Manager__viewtfeedbackt_Manager__feedback(RR((s#plugins/ScrollNavigation/Manager.pyt__init_attributes3s   cCso|iiƒ}|i|i|i|if\}}}}|ii||ƒ}|iƒ|ii|dƒdS(sl Scroll the view up. @param self: Reference to the Manager instance. @type self: A Manager object. gü©ñÒMbP?N( R tget_visible_recttxtytwidththeighttget_iter_at_locationt backward_linetscroll_to_iter(Rt rectangleRRRRtiterator((s#plugins/ScrollNavigation/Manager.pyt scroll_upHs * cCss|iiƒ}|i|i|i|if\}}}}|ii|||ƒ}|iƒ|ii|dƒdS(sn Scroll the view down. @param self: Reference to the Manager instance. @type self: A Manager object. gü©ñÒMbP?N( R RRRRRRt forward_lineR(RRRRRRR((s#plugins/ScrollNavigation/Manager.pyt scroll_downVs * cCsX|iiƒ}|ii|ddtddƒddkl}|ii|ddƒd S( su Center view on current line. @param self: Reference to the Manager instance. @type self: A Manager object. gü©ñÒMbP?t use_aligntxaligngð?iÿÿÿÿ(tmsg0001tyesiN( R tget_cursor_iteratorR RtTrueti18nRRtupdate_status_message(RRR((s#plugins/ScrollNavigation/Manager.pytcenterds cCs|ii|ƒ~d}dS(sh Destroy object. @param self: Reference to the Manager instance. @type self: A Manager object. N(R tdelete_attributestNone(R((s#plugins/ScrollNavigation/Manager.pytdestroyqscCsUy;ddkl}||iƒ||iƒ||iƒWntj onXtS(su Optimize methods using Psyco @param self: Reference to the Manager instance. @type self: A Manager object. iÿÿÿÿ(tbind(tpsycoR)RRR%t ImportErrortFalse(RR)((s#plugins/ScrollNavigation/Manager.pyt__precompile_methods}s  ( t__name__t __module__t__doc__R RRRR%R(R(((s#plugins/ScrollNavigation/Manager.pyR s     N(R0tobjectR(((s#plugins/ScrollNavigation/Manager.pyss