Author: bugman Date: Sun May 13 17:15:25 2012 New Revision: 16284 URL: http://svn.gna.org/viewcvs/relax?rev=16284&view=rev Log: Improved the keyboard mnemonics for the user function sub-menus. There are no longer any clashing letters. Modified: branches/uf_redesign/user_functions/deselect.py branches/uf_redesign/user_functions/molmol.py branches/uf_redesign/user_functions/n_state_model.py branches/uf_redesign/user_functions/pymol_control.py branches/uf_redesign/user_functions/select.py branches/uf_redesign/user_functions/spectrum.py branches/uf_redesign/user_functions/structure.py Modified: branches/uf_redesign/user_functions/deselect.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/deselect.py?rev=16284&r1=16283&r2=16284&view=diff ============================================================================== --- branches/uf_redesign/user_functions/deselect.py (original) +++ branches/uf_redesign/user_functions/deselect.py Sun May 13 17:15:25 2012 @@ -215,7 +215,7 @@ relax> deselect.reverse() """ uf.backend = selection.reverse -uf.menu_text = "&reverse" +uf.menu_text = "re&verse" uf.gui_icon = "oxygen.actions.system-switch-user" uf.wizard_size = (700, 550) uf.wizard_apply_button = False Modified: branches/uf_redesign/user_functions/molmol.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/molmol.py?rev=16284&r1=16283&r2=16284&view=diff ============================================================================== --- branches/uf_redesign/user_functions/molmol.py (original) +++ branches/uf_redesign/user_functions/molmol.py Sun May 13 17:15:25 2012 @@ -329,7 +329,7 @@ relax> molmol.ribbon() """ uf.backend = molmol.ribbon -uf.menu_text = "&ribbon" +uf.menu_text = "ri&bbon" uf.wizard_size = (700, 500) uf.wizard_height_desc = 450 uf.wizard_apply_button = False Modified: branches/uf_redesign/user_functions/n_state_model.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/n_state_model.py?rev=16284&r1=16283&r2=16284&view=diff ============================================================================== --- branches/uf_redesign/user_functions/n_state_model.py (original) +++ branches/uf_redesign/user_functions/n_state_model.py Sun May 13 17:15:25 2012 @@ -78,7 +78,7 @@ relax> n_state_model.CoM(pivot_point=[0.0, 0.0, 0.0], centre=[0.0, 0.0, 1.0]) """ uf.backend = n_state_model_obj._CoM -uf.menu_text = "&CoM" +uf.menu_text = "Co&M" uf.wizard_height_desc = 350 uf.wizard_size = (800, 600) uf.wizard_apply_button = False Modified: branches/uf_redesign/user_functions/pymol_control.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/pymol_control.py?rev=16284&r1=16283&r2=16284&view=diff ============================================================================== --- branches/uf_redesign/user_functions/pymol_control.py (original) +++ branches/uf_redesign/user_functions/pymol_control.py Sun May 13 17:15:25 2012 @@ -60,7 +60,7 @@ relax> pymol.cartoon() """ uf.backend = pymol_control.cartoon -uf.menu_text = "car&toon" +uf.menu_text = "cart&oon" uf.wizard_size = (700, 500) uf.wizard_height_desc = 450 uf.wizard_apply_button = False Modified: branches/uf_redesign/user_functions/select.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/select.py?rev=16284&r1=16283&r2=16284&view=diff ============================================================================== --- branches/uf_redesign/user_functions/select.py (original) +++ branches/uf_redesign/user_functions/select.py Sun May 13 17:15:25 2012 @@ -215,7 +215,7 @@ relax> select.reverse() """ uf.backend = selection.reverse -uf.menu_text = "&reverse" +uf.menu_text = "re&verse" uf.gui_icon = "oxygen.actions.system-switch-user" uf.wizard_size = (700, 550) uf.wizard_apply_button = False Modified: branches/uf_redesign/user_functions/spectrum.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/spectrum.py?rev=16284&r1=16283&r2=16284&view=diff ============================================================================== --- branches/uf_redesign/user_functions/spectrum.py (original) +++ branches/uf_redesign/user_functions/spectrum.py Sun May 13 17:15:25 2012 @@ -425,7 +425,7 @@ relax> spectrum.replicated(['ncyc2', 'ncyc2b']) """ uf.backend = spectrum.replicated -uf.menu_text = "&replicated" +uf.menu_text = "re&plicated" uf.gui_icon = "oxygen.actions.edit-rename" uf.wizard_size = (700, 500) uf.wizard_image = WIZARD_IMAGE_PATH + 'spectrum' + sep + 'spectrum_200.png' Modified: branches/uf_redesign/user_functions/structure.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/user_functions/structure.py?rev=16284&r1=16283&r2=16284&view=diff ============================================================================== --- branches/uf_redesign/user_functions/structure.py (original) +++ branches/uf_redesign/user_functions/structure.py Sun May 13 17:15:25 2012 @@ -141,7 +141,7 @@ This allows atoms to be connected in the internal structural object. The global index is normally equal to the PDB atom number minus 1. """ uf.backend = generic_fns.structure.main.connect_atom -uf.menu_text = "&connect_atom" +uf.menu_text = "co&nnect_atom" uf.wizard_image = WIZARD_IMAGE_PATH + 'structure' + sep + '2JK4.png' @@ -210,7 +210,7 @@ To create the tensor PDB representation, a number of algorithms are utilised. Firstly the centre of mass is calculated for the selected residues and is represented in the PDB by a C atom. Then the axes of the diffusion are calculated, as unit vectors scaled to the appropriate length (multiplied by the eigenvalue Dx, Dy, Dz, Dpar, Dper, or Diso as well as the scale value), and a C atom placed at the position of this vector plus the centre of mass. Finally a uniform distribution of vectors on a sphere is generated using spherical coordinates. By incrementing the polar angle using an arccos distribution, a radial array of vectors representing latitude are created while incrementing the azimuthal angle evenly creates the longitudinal vectors. These unit vectors, which are distributed within the PDB frame and are of 1 Angstrom in length, are first rotated into the diffusion frame using a rotation matrix (the spherical diffusion tensor is not rotated). Then they are multiplied by the diffusion tensor matrix to extend the vector out to the correct length, and finally multiplied by the scale value so that the vectors reasonably superimpose onto the macromolecular structure. The last set of algorithms place all this information into a PDB file. The distribution of vectors are represented by H atoms and are all connected using PDB CONECT records. Each H atom is connected to its two neighbours on the both the longitude and latitude. This creates a geometric PDB object with longitudinal and latitudinal lines. """ uf.backend = generic_fns.structure.geometric.create_diff_tensor_pdb -uf.menu_text = "create_diff_&tensor_pdb" +uf.menu_text = "&create_diff_tensor_pdb" uf.gui_icon = "oxygen.actions.list-add-relax-blue" uf.wizard_height_desc = 400 uf.wizard_size = (900, 800) @@ -265,7 +265,7 @@ Because of the symmetry of the diffusion tensor reversing the orientation of the XH bond vector has no effect. Therefore by setting the symmetry flag two chains 'A' and 'B' will be added to the PDB file whereby chain 'B' is chain 'A' with the XH bonds reversed. """ uf.backend = generic_fns.structure.geometric.create_vector_dist -uf.menu_text = "create_&vector_dist" +uf.menu_text = "cr&eate_vector_dist" uf.gui_icon = "oxygen.actions.list-add-relax-blue" uf.wizard_height_desc = 400 uf.wizard_size = (900, 700) @@ -393,7 +393,7 @@ relax> structure.displacement(model_from=2, model_to=3) """ uf.backend = generic_fns.structure.main.displacement -uf.menu_text = "&displacement" +uf.menu_text = "displace&ment" uf.wizard_height_desc = 400 uf.wizard_size = (900, 700) uf.wizard_image = WIZARD_IMAGE_PATH + 'structure' + sep + '2JK4.png'