ó
©%�Tc           @   s5  e  d  d d „  ƒ e  d d d „  ƒ e  d d d „  ƒ e  d	 d
 d „  ƒ e  d d d „  ƒ e  d d d „  ƒ e  d d d „  ƒ e  d d d „  ƒ d „  Z e  d d d „  ƒ d „  Z e  d d d „  ƒ d  „  Z e  d! d" d# „  ƒ d$ „  Z e  d% d& d' „  ƒ d( „  Z e  d) d* d+ „  ƒ d, Z e  d- d. d/ „  ƒ d0 „  Z e  d1 d2 d3 „  ƒ e  d4 d5 d6 „  ƒ d7 „  Z e  d8 d9 d: „  ƒ d; „  Z	 e  d< d= d> „  ƒ d? „  Z
 e  d@ dA dB „  ƒ dC „  Z e  dD dE dF „  ƒ dG „  Z e  dH dI dJ „  ƒ e  dK dL dM „  ƒ e  dN dO dP „  ƒ e  dQ dR dS „  ƒ dT S(U   s   Refine Active Residuet   rc           C   s
   t  d ƒ S(   Ni    (   t   manual_refine_residues(    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyt   <lambda>   s    s   Refine Active Residue AAt   xc           C   s   t  ƒ  S(   N(   t   refine_active_residue(    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR      s    s   Triple Refinet   tc           C   s
   t  d ƒ S(   Ni   (   R   (    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR      s    s   Autofit Rotamert   jc           C   s   t  ƒ  S(   N(   t   auto_fit_rotamer_active_residue(    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR      s    t   Pepflipt   qc           C   s   t  ƒ  S(   N(   t   pepflip_active_residue(    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR      s    s
   Go To Blobt   gc           C   s   t  ƒ  S(   N(   t#   blob_under_pointer_to_screen_centre(    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR      s    s   Eigen-flip Ligandt   ec           C   s   t  ƒ  S(   N(   t   flip_active_ligand(    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR      s    s	   Add Watert   wc           C   s
   t  d ƒ S(   Nt   Water(   t   place_typed_atom_at_pointer(    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR   	   s    c           C   s   t  ƒ  t d ƒ t ƒ  d  S(   NR   (   R   R   R   (    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyt   add_water_in_blob   s    
s   Add Water +t   Wc           C   s   t  ƒ  S(   N(   R   (    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR      s    c          C   sm   t  ƒ  }  |  s d GHnR |  d } |  d } |  d } |  d } |  d } |  d } t | | | d d ƒ d  S(	   Ns   No active atomi    i   i   i   i   i   t   auto(   t   active_residuet   add_terminal_residue(   t   active_atomt   imolt   chain_idt   res_not   ins_codet	   atom_namet   alt_conf(    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyt   key_binding_func_1   s    	





s   Add terminal residuet   yc           C   s   t  ƒ  S(   N(   R   (    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR      s    c          C   sj   t  ƒ  }  |  s d GHnO |  d } |  d } |  d } |  d } |  d } |  d } t | | | | ƒ d  S(   Ns   No active atomi    i   i   i   i   i   (   R   t   fill_partial_residue(   R   R   R   R   R   R   R   (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyt   key_binding_func_2   s    	





s   Fill Partialt   kc           C   s   t  ƒ  S(   N(   R!   (    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR   +   s    c       
   C   s>   t  ƒ  �/ \ }  } } } } } t |  | | | | ƒ Wd  QXd  S(   N(   t   UsingActiveAtomt   show_rotamers_dialog(   t   aa_imolt   aa_chain_idt	   aa_res_not   aa_ins_codet   aa_atom_namet   aa_alt_conf(    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyt   rotamer_dialog_for_ar-   s    	s"   Rotamers dialog for Active Residuet   Qc           C   s   t  ƒ  S(   N(   R+   (    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR   3   s    c          C   s«   t  ƒ  }  |  s t d ƒ n‹ |  d } |  d } |  d } |  d } |  d } |  d } t | | | | ƒ } | s€ t d ƒ n' | d	 k r™ t d
 ƒ n t d | ƒ d  S(   Ns   No active residuei    i   i   i   i   i   s   No Name foundt    s   No name for thiss   Rotamer name: (   R   t   add_status_bar_textt   get_rotamer_name(   R   R   R   R   R   R   R   t   name(    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyt   key_binding_func_55   s    	





s   Rotamer name in Status Bart   ~c           C   s   t  ƒ  S(   N(   R1   (    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR   H   s    g      @s   Refine residue in a spheret   Rc           C   s
   t  t ƒ S(   N(   t   sphere_refinet    refine_residue_sphere_radius_key(    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR   L   s    c    	      C   s³   t  t ƒ  ƒ s t d ƒ n“ t ƒ  }  |  s8 t d ƒ nw |  d } |  d } |  d } |  d } |  d } |  d } | | | g } t | | d	 ƒ } t t | | g | g ƒ d  S(
   Ns   Must set the refinement maps   No active residuei    i   i   i   i   i   gffffffþ?(   t   valid_map_molecule_qmt   imol_refinement_mapt   info_dialogR   R.   t   residues_near_residuet   with_auto_acceptt   refine_residues(	   R   R   R   R   R   R   R   t   rc_spect   ls(    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyt   key_binding_func_21N   s    	





s   Neighbours Refinet   hc           C   s   t  ƒ  S(   N(   R>   (    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR   a   s    s   Regularize Residues in spheret   Bc           C   s
   t  t ƒ S(   N(   t   sphere_regularizeR5   (    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR   d   s    c       
   C   sO   t  ƒ  �@ \ }  } } } } } t |  | | | | ƒ t ƒ  t d ƒ Wd  QXd  S(   Ni   (   R#   t   edit_chi_anglest   set_moving_atom_move_chist   set_graphics_edit_current_chi(   R%   R&   R'   R(   R)   R*   (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyt   edit_chi_angles_key_funcf   s    	
s   Edit Chi Anglest   Xc           C   s   t  ƒ  S(   N(   RE   (    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR   m   s    c          C   sA   t  ƒ  �2 \ }  } } } } } t |  | | | d d ƒ Wd  QXd  S(   Nid   g      ð?(   R#   t   fit_to_map_by_random_jiggle(   R%   R&   R'   R(   R)   R*   (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyt   jiggle_fit_residue_keyo   s    	s
   Jiggle Fitt   Jc           C   s   t  ƒ  S(   N(   RH   (    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR   t   s    c          C   si   t  ƒ  }  t ƒ  } |  re |  j | ƒ } | t |  ƒ d k rJ |  d } n |  | d } t | ƒ n  d  S(   Ni   i    (   t   map_molecule_listt   scroll_wheel_mapt   indext   lent   set_scroll_wheel_map(   t   mapst   currentt   lt   new(    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyt   step_scrollable_map_numberv   s    		s   Step scrollable map numbert   Mc           C   s   t  ƒ  S(   N(   RS   (    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR   �   s    c       
   C   s>   t  ƒ  �/ \ }  } } } } } t |  | | | | ƒ Wd  QXd  S(   N(   R#   t   delete_residue_hydrogens(   R%   R&   R'   R(   R)   R*   (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyt   delete_residue_hydrogens_keyƒ   s    	s   Delete Residue Hydrogenst   Pc           C   s   t  ƒ  S(   N(   RV   (    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR   ‰   s    c          C   sJ   t  ƒ  �; \ }  } } } } } t |  | | | | d d d d ƒ	 Wd  QXd  S(   Ni   g333333Ã?i   (   R#   t'   additional_representation_by_attributes(   R%   R&   R'   R(   R)   R*   (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyt   key_binding_func_9‹   s
    			s   ball-and-stickify residuet   $c           C   s   t  ƒ  S(   N(   RY   (    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR   ‘   s    s   Undo Symmetry Viewt   Vc           C   s   t  ƒ  S(   N(   t   undo_symmetry_view(    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR   “   s    s   Accept Baton Positiont   Ac           C   s   t  ƒ  S(   N(   t   accept_baton_position(    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR   •   s    s   Cootilus heret   Nc           C   s
   t  d ƒ S(   Ng      @(   t   find_nucleic_acids_local(    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyR   —   s    N(   t   add_key_bindingR   R   R!   R+   R1   R5   R>   RE   RH   RS   RV   RY   (    (    (    s\   /public2/ftp/pub/ccp4/6.5/ccp4-6.5/lib/python2.7/site-packages/coot/template_key_bindings.pyt   <module>   sP   					
		
		
			
	
		
	