³ò
©®Ic           @   sk   d  Z  d d k Z d d k Z d d k Z d d k Z d a d e i f d „  ƒ  YZ d „  Z	 d „  Z
 d S(   s   comment.py - Comments dialog.iÿÿÿÿNt   _CommentsDialogc           B   s   e  Z d  „  Z RS(   c         C   sñ  t  i i |  t d ƒ | d t  i t  i f ƒ |  i t ƒ |  i t	 ƒ |  i
 d t ƒ |  i t  i ƒ |  i d d ƒ t  i ƒ  } | i t	 ƒ |  i d ƒ | i d ƒ |  i i | ƒ t  i ƒ  } | i d t ƒ | i d	 t	 ƒ | i d
 d ƒ | i d t	 ƒ | i d d ƒ | i d t	 ƒ t  i ƒ  } | i | ƒ x t d | i i ƒ  d ƒ D]‚} t  i t ƒ } | i d ƒ t  i ƒ  } | i t  i t  i ƒ | i | ƒ t  i ƒ  } | i | ƒ t  i ƒ  }	 |	 i d ƒ | i |	 ƒ t  i! i" | i i# | ƒ ƒ }
 | i i$ | ƒ } | d  j o t d ƒ t! } n t  i& | ƒ } | i' t( i) | ƒ ƒ | i* | | i+ ƒ  Œ t  i, | ƒ } |	 i | ƒ | i- ƒ  i. } | i/ t  i0 | ƒ t  i1 t( i) |
 ƒ ƒ } | i2 | | ƒ q]W|  i3 ƒ  d  S(   Nt   Commentsi    t   responseiX  i&  i   i   t   editables   editable-sett   familyt	   Monospaces
   family-sett   scalegÍÌÌÌÌÌì?s	   scale-seti   i   s   Could not read %s(4   t   gtkt   Dialogt   __init__t   _t   STOCK_CLOSEt   RESPONSE_CLOSEt   set_has_separatort   Falset   set_resizablet   Truet   connectt   _close_dialogt   set_default_responset   set_default_sizet   Notebookt   set_scrollablet   set_border_widtht   vboxt
   pack_startt   TextTagt   set_propertyt   TextTagTablet   addt   xranget   file_handlert   get_number_of_commentst   VBoxt   ScrolledWindowt
   set_policyt   POLICY_AUTOMATICt   EventBoxt   add_with_viewportt   ost   patht   basenamet   get_comment_namet   get_comment_textt   Nonet
   TextBuffert   set_textt   encodingt
   to_unicodet	   apply_tagt
   get_boundst   TextViewt   get_default_attributest   bg_colort	   modify_bgt   STATE_NORMALt   Labelt   insert_paget   show_all(   t   selft   windowt   notebookt   tagt	   tag_tablet   numt   paget   scrolledt   outboxt   inboxt   namet   textt   text_buffert	   text_viewR5   t	   tab_label(    (    sG   /home/sork/Pontus/Programmering/Python/Comix/comix-4.0.4/src/comment.pyR	      s^     (   t   __name__t
   __module__R	   (    (    (    sG   /home/sork/Pontus/Programmering/Python/Comix/comix-4.0.4/src/comment.pyR       s   c         C   s+   t  d j o t | ƒ a  n t  i ƒ  d S(   s3   Create and display the (singleton) comments dialog.N(   t   _dialogR,   R    t   present(   t   actionR<   (    (    sG   /home/sork/Pontus/Programmering/Python/Comix/comix-4.0.4/src/comment.pyt   open_dialogC   s    c          G   s%   t  d j	 o t  i ƒ  d a  n d S(   s   Destroy the comments dialog.N(   RL   R,   t   destroy(   t   args(    (    sG   /home/sork/Pontus/Programmering/Python/Comix/comix-4.0.4/src/comment.pyR   L   s    
(   t   __doc__R'   R   t   pangoR/   R,   RL   R   R    RO   R   (    (    (    sG   /home/sork/Pontus/Programmering/Python/Comix/comix-4.0.4/src/comment.pys   <module>   s   6		