
    g
f
                         d Z dZdZdZdZdZddlZ ej                  dd	       dd
lm	Z	 ddl
mc mc mZ ddlmZ  G d dej                         Zy)zCustom script for Smuxi.z$Id$z
$Revision$z$Date$zCopyright (c) 2018 Igalia, S.L.LGPL    NAtspiz2.0)r      )Chatc                   J     e Zd Z fdZd Z fdZd Zd Zd Z fdZ	 xZ
S )Scriptc                 `   t         j                  j                  t         j                  j                  t         j                  j                  t         j                  j                  t         j                  j
                  t         j                  j                  gg| _        t        | %  |       y)z/Creates a new script for the given application.N)
r   Role
TREE_TABLESCROLL_PANE
SPLIT_PANEFILLERFRAME_buddyListAncestriessuper__init__)selfapp	__class__s     O/usr/lib/python3/dist-packages/orca/scripts/apps/smuxi-frontend-gnome/script.pyr   zScript.__init__'   sq     ',jj&;&;&+jj&<&<&+jj&;&;&+jj&;&;&+jj&7&7&+jj&6&6&8 %9! 	    c                 .    t        | | j                        S )z)Returns the 'chat' class for this script.)r   r   r   s    r   getChatzScript.getChat4   s     D$3344r   c                     t         |           | j                  j                  | j                  j                         y)z1Defines InputEventHandler fields for this script.N)r   setupInputEventHandlersinputEventHandlersupdatechat)r   r   s    r   r   zScript.setupInputEventHandlers9   s.     	')&&tyy'C'CDr   c                 .    | j                   j                  S )z=Returns the application-specific keybindings for this script.)r   keyBindingsr   s    r   getAppKeyBindingszScript.getAppKeyBindings?   s     yy$$$r   c                 6    | j                   j                         S )zAReturn a GtkGrid containing the application unique configuration.)r   getAppPreferencesGUIr   s    r   r$   zScript.getAppPreferencesGUID   s     yy--//r   c                 6    | j                   j                         S )z7Returns a dictionary with the app-specific preferences.)r   getPreferencesFromGUIr   s    r   r&   zScript.getPreferencesFromGUII   s     yy..00r   c                 \    | j                   j                  |      ryt        |   |       y)z+Called whenever text is added to an object.N)r   presentInsertedTextr   onTextInserted)r   eventr   s     r   r)   zScript.onTextInsertedN   s'     99((/u%r   )__name__
__module____qualname__r   r   r   r"   r$   r&   r)   __classcell__)r   s   @r   r   r   %   s,    5
E%
0
1
& &r   r   )__doc____id____version____date____copyright____license__girequire_versiongi.repositoryr   orca.scripts.toolkits.gtkscriptstoolkitsgtkr   r   r    r   r   <module>r=      sT   , 1 	   7E "  ' ' /&SZZ /&r   