łň \ź¸Ec@s0dZddklZdefd„ƒYZdS(s This module documents the the scrolled window object for the text editor's completion window. @author: Lateef Alabi-Oki @organization: The Scribes Project @copyright: Copyright Š 2005 Lateef Alabi-Oki @license: GNU GPLv2 or Later @contact: mystilleef@gmail.com i˙˙˙˙(tScrolledWindowtCompletionScrollWincBs;eZdZd„Zd„Zd„Zd„Zd„ZRS(s< Scrolled window for the text editor's completion window. cCsXti|ƒ|i|ƒ|iƒ|id|iƒ|_|id|iƒ|_dS(s Initialize the scrolled window container object. @param self: Reference to the CompletionScrolledWindow instance. @type self: A CompletionScrolledWindow object. @param completion_view: The completion window's view. @type completion_view: A CompletionView object. tdestroyspopulated-modelN( Rt__init__t%_CompletionScrollWin__init_attributest$_CompletionScrollWin__set_propertiestconnectt _CompletionScrollWin__destroy_cbt!_CompletionScrollWin__signal_id_1t(_CompletionScrollWin__populated_model_cbt!_CompletionScrollWin__signal_id_2(tselftmanager((s&plugins/WordCompletionGUI/ScrollWin.pyR's   cCs||_d|_|_dS(s Initialize the scrolled window container object. @param self: Reference to the CompletionScrolledWindow instance. @type self: A CompletionScrolledWindow object. @param completion_view: The completion window's view. @type completion_view: A CompletionView object. N(t_CompletionScrollWin__managertNoneRR (R R ((s&plugins/WordCompletionGUI/ScrollWin.pyt__init_attributes7s cCs:ddkl}l}|i||ƒ|iddƒdS(sŤ Define the scrolled window's default properties. @param self: Reference to the CompletionScrolledWindow instance. @type self: A CompletionScrolledWindow object. i˙˙˙˙(t POLICY_NEVERt POLICY_ALWAYSs border-widthiN(tgtkRRt set_policyt set_property(R RR((s&plugins/WordCompletionGUI/ScrollWin.pyt__set_propertiesEsc Csddkl}l}ddkl}l}|iƒ\}}||dƒo$||dƒo|i||ƒny||dƒo$||dƒo|i||ƒnE||dƒo$||dƒo|i||ƒn|i||ƒ|ii d|ƒdS(s™ Handles callback when the "populated-model" signal is emitted. This function determines what policy to use when showing the scrolled window depending on the size of the completion window's view. @param self: Reference to the CompletionScrolledWindow instance. @type self: A CompletionScrolledWindow object. @param view: The completion window's view. @type view: A CompletionView object. i˙˙˙˙(RR(tletgeiČs show-windowN( RRRtoperatorRRt size_requestRR temit( R R tviewRRRRtwidththeight((s&plugins/WordCompletionGUI/ScrollWin.pyt__populated_model_cbQs   cCsWddkl}l}||i|ƒ||i|ƒ|iƒ||ƒd}~dS(sü Destroy instance of this object. @param self: Reference to the CompletionTreeView instance. @type self: A CompletionTreeView object. @param manager: Reference to the CompletionManager instance. @type manager: A CompletionManager object. i˙˙˙˙(tdelete_attributestdisconnect_signalN(t SCRIBES.utilsRR RR RR(R R RR ((s&plugins/WordCompletionGUI/ScrollWin.pyt __destroy_cbms   (t__name__t __module__t__doc__RRRR R(((s&plugins/WordCompletionGUI/ScrollWin.pyR"s    N(R%RRR(((s&plugins/WordCompletionGUI/ScrollWin.pyss