Changeset 459 for trunk/GSASIIgrid.py


Ignore:
Timestamp:
Jan 30, 2012 12:49:40 PM (10 years ago)
Author:
vondreele
Message:

fix bug in GenAtom? - didn't eliminate special position duplicates
refactor DisAglDialog? to have a reset & save results to general
begin torsion & distance/angle calcs in drawing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIgrid.py

    r457 r459  
    4646[ wxID_DRAWATOMSTYLE, wxID_DRAWATOMLABEL, wxID_DRAWATOMCOLOR, wxID_DRAWATOMRESETCOLOR,
    4747    wxID_DRAWVIEWPOINT, wxID_DRAWTRANSFORM, wxID_DRAWDELETE, wxID_DRAWFILLCELL,
    48     wxID_DRAWADDEQUIV, wxID_DRAWFILLCOORD,
    49 ] = [wx.NewId() for _init_coll_DrawAtom_Items in range(10)]
     48    wxID_DRAWADDEQUIV, wxID_DRAWFILLCOORD, wxID_DRAWDISAGL, wxID_DRAWTORSION,
     49] = [wx.NewId() for _init_coll_DrawAtom_Items in range(12)]
    5050
    5151[ wxID_IMCALIBRATE,wxID_IMRECALIBRATE,wxID_IMINTEGRATE, wxID_IMCLEARCALIB, 
     
    483483        self.DrawAtomsMenu = wx.MenuBar()
    484484        self.DrawAtomEdit = wx.Menu(title='')
     485        self.DrawAtomCompute = wx.Menu(title='')
    485486        self.DrawAtomsMenu.Append(menu=self.DrawAtomEdit, title='Edit')
     487        self.DrawAtomsMenu.Append(menu=self.DrawAtomCompute,title='Compute')
    486488        self.DrawAtomsMenu.Append(menu=MyHelp(self,helpType='Draw Atoms'),title='&Help')
    487489        self.DrawAtomEdit.Append(id=wxID_DRAWATOMSTYLE, kind=wx.ITEM_NORMAL,text='Atom style',
     
    505507        self.DrawAtomEdit.Append(id=wxID_DRAWDELETE, kind=wx.ITEM_NORMAL,text='Delete atoms',
    506508            help='Delete atoms from drawing set')
     509        self.DrawAtomCompute.Append(id=wxID_DRAWDISAGL, kind=wx.ITEM_NORMAL,text='Distances & Angles',
     510            help='Compute distances & angles for selected atoms')   
     511        self.DrawAtomCompute.Append(id=wxID_DRAWTORSION, kind=wx.ITEM_NORMAL,text='Torsions',
     512            help='Compute torsion angle for 4 selected atoms')   
    507513           
    508514# end of GSAS-II menu definitions
Note: See TracChangeset for help on using the changeset viewer.