source: trunk/gsasmenu.tcl @ 350

Last change on this file since 350 was 350, checked in by toby, 14 years ago

# on 2000/11/21 21:25:31, toby did:
fix that geometry is spelled different on Windows

  • Property rcs:author set to toby
  • Property rcs:date set to 2000/11/21 21:25:31
  • Property rcs:lines set to +19 -2
  • Property rcs:rev set to 1.15
  • Property rcs:state set to Exp
  • Property svn:keywords set to Author Date Revision Id
File size: 8.4 KB
Line 
1# $Id: gsasmenu.tcl 350 2009-12-04 23:04:37Z toby $
2# $Revision: 350 $ $Date: 2009-12-04 23:04:37 +0000 (Fri, 04 Dec 2009) $
3# menu information for GSAS programs
4
5# menu items to be created (N.B. File, Options & Help already exist)
6set expgui(menunames) {Powder Xtal Graphs Results Calc Import/Export}
7
8# contents of each menu
9array set expgui_menulist {
10    file {
11        EraseHistory
12        convert
13        dlst
14    }
15    option {
16        {liveplot_options}
17    }
18    powder {
19        expedt
20        powpref
21        genles
22        powplot
23        rawplot
24        fitspec
25        tofnorm
26    }
27    xtal {
28        expedt
29        genles
30        cad4rd
31        p3r3data
32        sxtldata
33        scabs
34        scmerge
35        sxtldata
36    }
37    graphs {
38        forplot
39        polfplot
40        powplot
41        ortep
42        rawplot
43        fourier
44        forsrh
45        liveplot
46        vrstplot
47        widplt 
48    }
49    calc {
50        cllchg
51        fprime
52        hklgen
53        rducll
54        spcgroup
55        unimol
56    }
57    import/export {
58        exp2shelx
59        exp2xtl
60        gsas2cif
61        hklsort
62        pubtable
63        convert
64        cad4rd
65        dbwscnv
66        x17bcnv
67        p3r3data
68        sxtldata
69    }
70    results {
71        bijcalc
72        disagl
73        reflist
74        geometry
75        hstdmp
76        istats
77        rcalc
78        composition
79        lstview
80        last_r
81    }
82}
83
84array set expgui_cmdlist {
85
86    Save {- {
87        Saves modifications to the current experiment file to disk}
88    }
89
90    {Save As} {- {
91        Saves modifications to the current experiment file to disk
92        under a new file name }
93    }
94
95    {Reread .EXP file} {- {
96        Reread the last saved version of the experiment file from disk.
97
98        This causes any unsaved changes to be lost.}
99    }
100
101    {Sort atoms by}  {- {
102        Determines the order that atoms are displayed on the "Phase" page
103        Atoms may be displayed sorted by atom number, atom type, 
104        or by x, y or z}
105    }
106
107    {Sort histograms by}  {- {
108        Determines the order that histograms are displayed on the
109        Histogram, Scaling and Profile pages
110
111        Histograms may be sorted by histogram number, histogram type, 
112        original bank number, or diffraction angle/wavelength}
113    }
114
115    {Multiple hist. selection}  {- {
116        When this mode is off, it is possible to modify parameters
117        and refinement flags for only a single histogram. For other settings,
118        it is possible to modify parameters and flags for groups of
119        histograms (see help for Mouse actions).
120
121        It does not make sense, however, to globally modify
122        instrument-related parameters and flags for histograms of different
123        types (e.g. TOF, CW Neutron,...). So if all histogram types can
124        be selected, the Histogram and Profile pages are disabled. If the
125        multiple histogram selection is set to TOF, CW Neutron,...
126        it is possible to modify Histogram and Profile parameters for
127        groups of similar type histograms.
128
129        Note that profile terms may also be grouped together when more than
130        one phase has the same profile function, or may not be grouped
131        together, depending on the "Group Phases Together" option.}
132    }
133
134    {Mouse actions}  {- {
135        A range of atoms or (in multiple selection mode) histograms may be
136        selected by dragging (holding down) the left mouse button. It is also
137        possible to select a range by using the Shift key with the
138        left mouse button. To select or deselect individual entries, use the
139        Control key with the left mouse button. The right mouse button selects
140        all entries.}
141   }
142
143    expnam {readnewexp {
144        Select an existing or new GSAS experiment to be used}
145    }
146
147    {archive EXP} {- {
148        Toggles archiving of .EXP files. When on, files are
149        saved prior to each save or run of expedt in a file named
150
151        <expnam>.EXP.xxx.gz where xxx = 000, 001 (UNIX) 
152
153        or in a file named <expnam>.ZIP or  <expnam>.xxx (Windows) }
154    }
155
156    showhelp    {showhelp {
157        Show the help information for commands and actions}
158    }
159
160    powpref     {{runGSASwEXP $cmd} {
161        Powder data preparation}   
162        {-underline 0}
163    }
164
165    bijcalc     {{runGSASwEXP $cmd} {
166        Thermal parameter analysis} 
167    }
168
169    powplot     {{runGSASwEXP $cmd} {
170        Display powder patterns}
171    }
172
173    cllchg      {{runGSASwEXP $cmd} {
174        Transform unit cell}
175    }
176
177    expedt      {{runGSASwEXP $cmd} {
178        Run GSAS experiment editor}
179        {-underline 0}
180    }
181
182    genles      {{runGSASwEXP $cmd} {
183        Run General Least Squares program}
184        {-underline 0}
185    }
186
187    disagl      {rundisagl {
188        Distance/angle calculations}
189    }
190
191    forplot     {{runGSASwEXP $cmd} {
192        Display Fourier maps (set Fourier options in EXPEDT
193        and then compute with FOURIER)}
194    }
195
196    hstdmp      {{runGSASwEXP $cmd} {
197        List powder histogram data}
198    }
199
200    cad4rd      {{runGSASwEXP $cmd} {
201        Prepare CAD4 single crystal data}
202    }
203
204    fourier     {{runGSASwEXP $cmd} {
205        Generate Fourier map}
206    }
207
208    geometry    {{runGSASwEXP $cmd} {
209        Molecular geometry calculations}
210    }
211
212    ortep       {{runGSASwEXP $cmd} {
213        Draw crystal structure}
214    }
215
216    rawplot     {{runGSASprog $cmd} {
217        Plot powder data}
218    }
219
220
221    p3r3data    {{runGSASwEXP $cmd} {
222        Prepare Siemens/Brucker P3R3 single crystal data}
223    }
224
225    forsrh      {{runGSASwEXP $cmd} {
226        Search Fourier map for peaks}
227    }
228
229    hklsort     {{runGSASwEXP $cmd} {
230        Prepare HKL tables}
231    }
232
233    polfplot    {{runGSASwEXP $cmd} {
234        Display polefigures}
235    }
236
237    rducll      {{runGSASprog $cmd} {
238        Unit cell reduction}
239    }
240
241    sxtldata    {{runGSASwEXP $cmd} {
242        Prepare generic single crystal data}
243    }
244
245    scabs       {{runGSASwEXP $cmd} {
246        Single crystal absorption}
247    }
248
249    istats      {{runGSASwEXP $cmd} {
250        HKL Intensity statistics}
251    }
252
253    reflist     {{runGSASwEXP $cmd} {
254        List reflection data}
255    }
256
257    scmerge     {{runGSASwEXP $cmd} {
258        Sort and merge single crystal data}
259    }
260
261    pubtable    {{runGSASwEXP $cmd} {
262        Prepare atom parameter tables}
263    }
264
265    spcgroup    {{runGSASprog $cmd} {
266        Space group symbol interpreter}
267    }
268
269    rcalc       {{runGSASwEXP $cmd} {
270        Compute reflection resuduals}
271    }
272
273    unimol      {{runGSASwEXP $cmd} {
274        Unique molecule assembler}
275    }
276
277    gsas2cif    {{runGSASwEXP $cmd} {
278        Prepare IUCr crystallographic information (CIF) file}
279    }
280
281    vrstplot    {{runGSASwEXP $cmd} {
282        Create a "virtual reality" (.wrl) plot file}
283    }
284
285    fitspec     {{runGSASprog $cmd} {
286        Fit a TOF vanadium scattering spectrum}
287    }
288
289    tofnorm     {{runGSASprog $cmd} {
290        Normalize a TOF spectrum}
291    }
292
293    fprime      {{runGSASprog $cmd} {
294        Compute f, f', f'' and mu/rho for an element for a range of x-ray wavelengths}
295    }
296
297    dbwscnv     {{runGSASprog $cmd} {
298        Convert a powder diffraction data file from DBWS format}
299    }
300
301    x17bcnv     {{runGSASprog $cmd} {
302        Convert an energy dispersive diffractogram data file from NSLS X17b}
303    }
304
305    composition {{composition} {
306        Compute the unit cell and asymmetric unit contents for each phase
307        taking occupancies and site multiplicities into account}
308    }
309
310    exp2xtl     {{exp2xtl} {
311        Save coordinates for a phase in an MSI xtl format file}
312    }
313
314    liveplot    {{liveplot} {
315        Create a plot of powder data (automatically updated) }
316    }
317
318    {liveplot_options} {liveplotopt {
319        Used to set options for liveplot, for example, the
320        histogram to be plotted}
321    }
322   
323    convert     {convfile {
324        Convert a standard ASCII file to the direct access format used by GSAS (and for UNIX, the reverse)}
325    }
326
327    lstview     {lstview {
328        Create a box with scrollbars containing the current .LST file}
329    }
330
331    widplt      {widplt {
332        Displays the FWHM as a function of Q, 2Theta,... for UVWXY values input or read from an EXP file}
333    }
334
335    "Override backspace" {- {
336        This option is available in UNIX only, as there are different
337        ways that backspace can be implemented. When option is set
338        as "On," the backspace key is overridden to send a "delete" 
339        character. If backspace does not work in a program such as
340        EXPEDT, change try the other setting for this option.} 
341    }
342    SaveOptions {- {
343        Save the current values for "Override backspace", 
344        "Sort atoms by", "Sort histograms by" and "archive EXP"
345        in ~/.gsas_config (c:\.gsas_config)}
346    }
347    EraseHistory {DeleteHistoryRecords {
348        Delete all but a selected number of history records; note that
349        this speeds EXPGUI somewhat. Since the largest number for a
350        history record is 999, the default is to also renumber the
351        records starting with 1}
352    }
353    exit        {- {
354        Exit EXPGUI}
355    }
356}
357
358# not implemented (yet)
359#    newest     {}
360#composition    {{} {}}
361#exp2shelx      {{} {}}
362#exp2xtl        {{} {}}
363#dlst   {{delconf .LST} {}}
364
365set expgui(buttonlist) {
366        expnam
367        expedt
368        genles
369        powpref
370        powplot
371        lstview
372        liveplot
373}       
374
375
376# convert geometry to geomtry for Windows
377if {$tcl_platform(platform) == "windows"} {
378    foreach name [array names expgui_menulist] {
379        while {[set pos [lsearch $expgui_menulist($name) geometry]] != -1} {
380            set expgui_menulist($name) \
381                    [lreplace $expgui_menulist($name) $pos $pos geomtry]
382        }
383    }
384    while {[set pos [lsearch $expgui(buttonlist) geometry]] != -1} {
385        set expgui_menulist($name) \
386                [lreplace $expgui(buttonlist) $pos $pos geomtry]
387    }
388    set expgui_cmdlist(geomtry) $expgui_cmdlist(geometry)
389    unset expgui_cmdlist(geometry)
390}
Note: See TracBrowser for help on using the repository browser.