³ò
ÛÖGc           @   s*   d  d k  l Z d e f d „  ƒ  YZ d S(   iÿÿÿÿ(   t   Dialogt   PreferencesWindowc           B   s>   e  Z d  „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   sF   t  i |  ƒ |  i | | ƒ |  i ƒ  |  i i d |  i ƒ |  _ d  S(   Nt   destroy(   R    t   __init__t#   _PreferencesWindow__init_attributest"   _PreferencesWindow__set_propertiest   _PreferencesWindow__managert   connectt%   _PreferencesWindow__window_destroy_cbt   _PreferencesWindow__signal_id(   t   selft   managert   editor(    (    s   plugins/Preferences/Window.pyR   &   s    
c         C   sO   |  i  i d |  ƒ d d k l } |  i  i i | d ƒ |  _ t i |  ƒ d  S(   Ns   show-dialogiÿÿÿÿ(   t   msg0009t   preferences(	   t   _PreferencesWindow__editort   emitt   i18nR   t   feedbackt   set_modal_messaget   _PreferencesWindow__status_idR    t   show_dialog(   R
   R   (    (    s   plugins/Preferences/Window.pyR   8   s
    c         C   s:   |  i  i d |  ƒ |  i  i i |  i ƒ t i |  ƒ d  S(   Ns   hide-dialog(   R   R   R   t   unset_modal_messageR   R    t   hide_dialog(   R
   (    (    s   plugins/Preferences/Window.pyR   E   s    c         C   s0   |  i  i |  i |  i ƒ |  i ƒ  ~  d  }  d  S(   N(   R   t   disconnect_signalR	   R   R   t   None(   R
   R   (    (    s   plugins/Preferences/Window.pyt   __window_destroy_cbQ   s
    

c         C   s(   | |  _  | |  _ d  |  _ d  |  _ d  S(   N(   R   R   R   R	   R   (   R
   R   R   (    (    s   plugins/Preferences/Window.pyt   __init_attributesa   s
    				c         C   s{   |  i  d d ƒ d d k l } |  i  d | ƒ |  i i |  i i d d ƒ \ } } |  i  d | ƒ |  i |  i i ƒ d  S(   Nt   namet   PreferencesDialogiÿÿÿÿ(   t   msg0010t   titleg{®Gáz@s   default-width(   t   set_propertyR   R   R   t!   calculate_resolution_independencet   windowt   set_transient_for(   R
   R   t   widtht   height(    (    s   plugins/Preferences/Window.pyt   __set_propertiest   s    $(   t   __name__t
   __module__R   R   R   R   R   R   (    (    (    s   plugins/Preferences/Window.pyR   !   s   					N(   t   SCRIBES.sdialogR    R   (    (    (    s   plugins/Preferences/Window.pys   <module>   s   