Changeset 4967


Ignore:
Timestamp:
Jun 21, 2021 5:20:25 PM (3 months ago)
Author:
vondreele
Message:

rearrange atom editing menus

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4965 r4967  
    63256325        submenu.Append(G2G.wxID_ATOMSSETSEL,'Refine selected','Set refinement flags for selected atoms')
    63266326        submenu.Append(G2G.wxID_ATOMSMODIFY,'Modify parameters','Modify parameters values for all selected atoms')
     6327        submenu.Append(G2G.wxID_ATOMSSETVP,'Set viewpoint','Set the viewpoint to be position of 1st selected atom')
     6328        submenu.Append(G2G.wxID_ATOMMOVE,'Move atom to view point','Move a single atom to viewpoint in plot')
    63276329        submenu.Append(G2G.wxID_ATOMSEDITINSERT,'Insert atom','Inserts an H atom before all selected atoms')
     6330        submenu.Append(G2G.wxID_ATOMVIEWINSERT,'Insert viewpoint','Select atom row to insert before; inserted as an H atom')
    63286331        submenu.Append(G2G.wxID_ADDHATOM,'Calc H atoms','Insert H atoms in expected bonding positions for selected atoms')
    63296332        submenu.Append(G2G.wxID_ATOMSEDITDELETE,'Delete atom','Delete selected atoms')
     
    63346337        self.AtomEdit.Append(G2G.wxID_ATOMSEDITADD,'Append atom','Appended as an H atom')
    63356338        self.AtomEdit.Append(G2G.wxID_ATOMSVIEWADD,'Append view point','Appended as an H atom')
    6336         self.AtomEdit.Append(G2G.wxID_ATOMVIEWINSERT,'Insert view point','Select atom row to insert before; inserted as an H atom')
    63376339        self.AtomEdit.Append(G2G.wxID_UPDATEHATOM,'Update H atoms','Update H atoms in standard positions')
    6338         self.AtomEdit.Append(G2G.wxID_ATOMMOVE,'Move selected atom to view point','Select a single atom to be moved to view point in plot')
    6339         self.AtomEdit.Append(G2G.wxID_ATOMSSETVP,'Set view point','Set the view point from positions of selected atom(s)')
    6340 
    63416340        self.AtomEdit.Append(G2G.wxID_MAKEMOLECULE,'Assemble molecule','Select a single atom to assemble as a molecule from scattered atom positions')
    63426341        self.AtomEdit.Append(G2G.wxID_COLLECTATOMS,'Collect atoms','Collect selected atoms to specified unit cell location')
  • trunk/GSASIIphsGUI.py

    r4965 r4967  
    1220312203            wx.EndBusyCursor()
    1220412204        wx.CallAfter(FillPawleyReflectionsGrid)
     12205       
    1220512206    def OnPawleySelAll(event):
    1220612207        refcol = [G2frame.PawleyRefl.GetColLabelValue(c) for c in range(G2frame.PawleyRefl.GetNumberCols())].index('refine')
    1220712208        for r in range(G2frame.PawleyRefl.GetNumberRows()):
    1220812209            G2frame.PawleyRefl.GetTable().SetValue(r,refcol,True)
     12210           
    1220912211        G2frame.PawleyRefl.ForceRefresh()
    1221012212    def OnPawleySelNone(event):
     
    1221312215            G2frame.PawleyRefl.GetTable().SetValue(r,refcol,False)
    1221412216        G2frame.PawleyRefl.ForceRefresh()
     12217       
    1221512218    def OnPawleyToggle(event):
    12216         raise Exception       
    1221712219
    1221812220        refcol = [G2frame.PawleyRefl.GetColLabelValue(c) for c in range(G2frame.PawleyRefl.GetNumberCols())].index('refine')
Note: See TracChangeset for help on using the changeset viewer.