³ò
§÷Gc           @   s<   d  d k  l Z l Z l Z l Z d e f d „  ƒ  YZ d S(   iÿÿÿÿ(   t   GObjectt   SIGNAL_RUN_LASTt	   TYPE_NONEt   TYPE_PYOBJECTt   AutoReplaceGUIManagerc           B   sÂ   e  Z h  e e d f d  <Z d „  Z d „  Z d „  Z d „  Z d „  Z	 e
 e d d ƒZ e
 e d d ƒZ e
 e d d	 ƒZ e
 e	 d d
 ƒZ d „  Z d „  Z d „  Z d „  Z d „  Z RS(   t   destroyc         C   s[   t  i |  ƒ |  i | ƒ |  i ƒ  |  i d |  i ƒ |  _ |  i i d |  i ƒ |  _	 d  S(   NR   t   clicked(
   R    t   __init__t'   _AutoReplaceGUIManager__init_attributest'   _AutoReplaceGUIManager__arrange_widgetst   connectt*   _AutoReplaceGUIManager__manager_destroy_cbt#   _AutoReplaceGUIManager__signal_id_1t$   _AutoReplaceGUIManager__close_buttont*   _AutoReplaceGUIManager__manager_clicked_cbt#   _AutoReplaceGUIManager__signal_id_2(   t   selft   editor(    (    s!   plugins/AutoReplaceGUI/Manager.pyR   ,   s
    

c         C   s   |  i  S(   N(   t    _AutoReplaceGUIManager__treeview(   R   (    (    s!   plugins/AutoReplaceGUI/Manager.pyt   __get_treeview<   s    c         C   s   |  i  S(   N(   t"   _AutoReplaceGUIManager__add_button(   R   (    (    s!   plugins/AutoReplaceGUI/Manager.pyt   __get_add_button?   s    c         C   s   |  i  S(   N(   t#   _AutoReplaceGUIManager__edit_button(   R   (    (    s!   plugins/AutoReplaceGUI/Manager.pyt   __get_edit_buttonB   s    c         C   s   |  i  S(   N(   t%   _AutoReplaceGUIManager__remove_button(   R   (    (    s!   plugins/AutoReplaceGUI/Manager.pyt   __get_remove_buttonE   s    t   docs)   Treeview for the auto replacement dialog.s*   Add button for the auto replacement dialogs+   Edit button for the auto replacement dialogs-   Remove button for the auto replacement dialogc   	      C   s	  | |  _  d d k l } | |  | ƒ |  _ d d k l } | |  | ƒ |  _ d d k l } | |  | ƒ |  _	 d d k
 l } | |  | ƒ |  _ d d k l } | |  | ƒ |  _ d  |  _ d  |  _ d d k l } l } | d | d	 t ƒ |  _ d  |  _ d  |  _ d  S(
   Niÿÿÿÿ(   t   AutoReplaceWindow(   t   AutoReplaceTreeView(   t   AutoReplaceAddButton(   t   AutoReplaceEditButton(   t   AutoReplaceRemoveButton(   t   STOCK_CLOSEt   Buttont   stockt   use_underline(   t   _AutoReplaceGUIManager__editort   WindowR   t   _AutoReplaceGUIManager__windowt   TreeviewR   R   t	   AddButtonR   R   t
   EditButtonR   R   t   RemoveButtonR   R   t   Nonet%   _AutoReplaceGUIManager__enable_buttont&   _AutoReplaceGUIManager__disable_buttont   gtkR    R!   t   TrueR   R   R   (	   R   R   R   R   R   R   R   R    R!   (    (    s!   plugins/AutoReplaceGUI/Manager.pyt   __init_attributesM   s$    
					c         C   s  d d k  l } l } |  i i ƒ  } | i |  i ƒ | d t d d ƒ } |  i i	 i
 | t t d ƒ | i
 | t t d ƒ | d t d d ƒ } | i
 | t t d ƒ | i
 |  i t t d ƒ | i
 |  i t t d ƒ | i
 |  i t t d ƒ |  i i i
 |  i t t d ƒ d  S(   Niÿÿÿÿ(   t   HBoxt   VBoxt   homogeneoust   spacingi
   i    i   (   R.   R1   R2   R$   t   create_scrollwint   addR   t   FalseR&   t	   main_areat
   pack_startR/   R   R   R   t   button_areaR   (   R   R1   R2   t   scrolled_windowt   main_containert   button_container(    (    s!   plugins/AutoReplaceGUI/Manager.pyt   __arrange_widgetsj   s    c         C   sI   |  i  i |  i |  i ƒ |  i  i |  i |  ƒ |  i i ƒ  ~  d  }  d  S(   N(   R$   t   disconnect_signalR   R   R   R   R+   (   R   t   manager(    (    s!   plugins/AutoReplaceGUI/Manager.pyt   __manager_destroy_cb   s    
c         C   s   |  i  i ƒ  t S(   N(   R&   t   hide_dialogR7   (   R   t   button(    (    s!   plugins/AutoReplaceGUI/Manager.pyt   __manager_clicked_cb   s    c         C   s   |  i  i ƒ  d  S(   N(   R&   t   show_dialog(   R   (    (    s!   plugins/AutoReplaceGUI/Manager.pyt   show    s    (    (   t   __name__t
   __module__R   R   t   __gsignals__R   t$   _AutoReplaceGUIManager__get_treeviewt&   _AutoReplaceGUIManager__get_add_buttont'   _AutoReplaceGUIManager__get_edit_buttont)   _AutoReplaceGUIManager__get_remove_buttont   propertyt   treeviewt
   add_buttont   edit_buttont   remove_buttonR   R	   R   R   RF   (    (    (    s!   plugins/AutoReplaceGUI/Manager.pyR   "   s    									N(   t   gobjectR    R   R   R   R   (    (    (    s!   plugins/AutoReplaceGUI/Manager.pys   <module>    s   "