ó
‹²,]c           @   s§   d  Z  d d l j Z d d l m Z d d l m Z d d l	 m
 Z
 d d l m Z d d l m Z m Z d d	 l m Z e d
 d ƒ Z d e e f d „  ƒ  YZ d S(   s   Breakpoint PluginiÿÿÿÿN(   t   get_translation(   t   icon_manager(   t   create_action(   t   SpyderPluginMixin(   t   to_text_stringt   is_text_stringi   (   t   BreakpointWidgett   breakpointst   spyder_breakpointst   Breakpointsc           B   s}   e  Z d  Z d Z d d „ Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d „  Z d	 „  Z e d
 „ Z d „  Z d „  Z RS(   s   Breakpoint listR   c         C   s;   t  j |  d | ƒt j |  | ƒ |  j ƒ  |  j ƒ  d  S(   Nt   parent(   R   t   __init__R   t   initialize_plugint   set_data(   t   selfR
   (    (    s=   lib/python2.7/site-packages/spyder_breakpoints/breakpoints.pyR   "   s    
c         C   s
   t  d ƒ S(   s   Return widget titleR	   (   t   _(   R   (    (    s=   lib/python2.7/site-packages/spyder_breakpoints/breakpoints.pyt   get_plugin_title+   s    c         C   s+   t  j |  j |  j ƒ } t j d d | ƒS(   s   Return widget icont   profilert	   icon_path(   t   ospt   joint   PLUGIN_PATHt   IMG_PATHt   imat   icon(   R   t   path(    (    s=   lib/python2.7/site-packages/spyder_breakpoints/breakpoints.pyt   get_plugin_icon/   s    c         C   s   |  j  S(   sq   
        Return the widget to give focus to when
        this plugin's dockwidget is raised on top-level
        (   t
   dictwidget(   R   (    (    s=   lib/python2.7/site-packages/spyder_breakpoints/breakpoints.pyt   get_focus_widget4   s    c         C   s   g  S(   s*   Return a list of actions related to plugin(    (   R   (    (    s=   lib/python2.7/site-packages/spyder_breakpoints/breakpoints.pyt   get_plugin_actions;   s    c         C   s   |  j  j |  j  j |  ƒ d S(   s3   Action to be performed on first plugin registrationN(   t   maint   tabify_pluginst   help(   R   (    (    s=   lib/python2.7/site-packages/spyder_breakpoints/breakpoints.pyt   on_first_registration?   s    c         C   sÿ   |  j  j |  j j j ƒ |  j j |  j j j ƒ |  j j |  j j j ƒ |  j j j j |  j ƒ |  j	 j |  j j j	 ƒ |  j j
 |  ƒ t |  t d ƒ d |  j ƒ} | j t ƒ |  j j j d ƒ } |  j j j | | ƒ |  j j j | g 7_ d S(   s'   Register plugin in Spyder's main windows   List breakpointst	   triggeredt   list_breakpointsN(   t	   edit_gotot   connectR   t   editort   loadt   clear_all_breakpointst   clear_breakpointt   breakpoints_savedR   t"   set_or_edit_conditional_breakpointt   add_dockwidgetR   R   t   showt
   setEnabledt   Truet   debug_menu_actionst   indext   insertt   pythonfile_dependent_actions(   R   t   list_actiont   pos(    (    s=   lib/python2.7/site-packages/spyder_breakpoints/breakpoints.pyt   register_pluginC   s    		c         C   s   d S(   s   Refresh widgetN(    (   R   (    (    s=   lib/python2.7/site-packages/spyder_breakpoints/breakpoints.pyt   refresh_pluginW   s    c         C   s   t  S(   s3   Perform actions before parent main window is closed(   R/   (   R   t
   cancelable(    (    s=   lib/python2.7/site-packages/spyder_breakpoints/breakpoints.pyt   closing_plugin[   s    c         C   s   d S(   s*   Apply configuration file's plugin settingsN(    (   R   t   options(    (    s=   lib/python2.7/site-packages/spyder_breakpoints/breakpoints.pyt   apply_plugin_settings_   s    c         C   s   |  j  ƒ  d S(   s   Show the breakpoints dockwidgetN(   t   switch_to_plugin(   R   (    (    s=   lib/python2.7/site-packages/spyder_breakpoints/breakpoints.pyR-   c   s    N(   t   __name__t
   __module__t   __doc__t   CONF_SECTIONt   NoneR   R   R   R   R   R!   R6   R7   t   FalseR9   R;   R-   (    (    (    s=   lib/python2.7/site-packages/spyder_breakpoints/breakpoints.pyR	      s   									(   R?   t   os.pathR   R   t   spyder.config.baseR    t   spyder.utilsR   R   t   spyder.utils.qthelpersR   t   spyder.pluginsR   t   spyder.py3compatR   R   t   widgets.breakpointsguiR   R   R	   (    (    (    s=   lib/python2.7/site-packages/spyder_breakpoints/breakpoints.pyt   <module>   s   