Changeset 550
- Timestamp:
- Dec 4, 2009 5:08:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/expgui_cfg.html
- Property rcs:date changed from 2002/01/22 21:08:12 to 2002/01/23 20:00:50
- Property rcs:lines changed from +53 -14 to +133 -131
- Property rcs:rev changed from 1.22 to 1.23
r524 r550 42 42 sequentially: 43 43 <UL> 44 <LI>< TT>readexp.tcl</TT>45 <LI>< TT>gsascmds.tcl</TT>46 <LI>< TT>gsasmenu.tcl</TT>44 <LI><FONT FACE="COURIER">readexp.tcl</FONT> 45 <LI><FONT FACE="COURIER">gsascmds.tcl</FONT> 46 <LI><FONT FACE="COURIER">gsasmenu.tcl</FONT> 47 47 </UL> 48 48 Two additional files are read if they are found: 49 49 <UL> 50 <LI>< TT>localconfig</TT>51 <LI>< TT>.gsas_config</TT>50 <LI><FONT FACE="COURIER">localconfig</FONT> 51 <LI><FONT FACE="COURIER">.gsas_config</FONT> 52 52 </UL> 53 53 <P>The first three files, 54 (< TT>readexp.tcl</TT>, <TT>gsascmds.tcl</TT>, <TT>gsasmenu.tcl</TT>)55 must be located in the same directory where the < TT>expgui</TT> file is found.56 The < TT>localconfig</TT> file also is read from this directory, if it exists.57 The final file, < TT>.gsas_config</TT>, is read from the user's login directory (UNIX) or <TT>C:\</TT> (Windows).58 The < TT>localconfig</TT> and <TT>.gsas_config</TT> are intended to54 (<FONT FACE="COURIER">readexp.tcl</FONT>, <FONT FACE="COURIER">gsascmds.tcl</FONT>, <FONT FACE="COURIER">gsasmenu.tcl</FONT>) 55 must be located in the same directory where the <FONT FACE="COURIER">expgui</FONT> file is found. 56 The <FONT FACE="COURIER">localconfig</FONT> file also is read from this directory, if it exists. 57 The final file, <FONT FACE="COURIER">.gsas_config</FONT>, is read from the user's login directory (UNIX) or <FONT FACE="COURIER">C:\</FONT> (Windows). 58 The <FONT FACE="COURIER">localconfig</FONT> and <FONT FACE="COURIER">.gsas_config</FONT> are intended to 59 59 contain system-wide and user-level default values for parameters 60 60 that are described in this document. Most routines have 61 61 a "Save Options" command that writes some of the current parameters to 62 file < TT>.gsas_config</TT>. Note that information in <TT>.gsas_config</TT>63 overrides that in < TT>localconfig</TT>.62 file <FONT FACE="COURIER">.gsas_config</FONT>. Note that information in <FONT FACE="COURIER">.gsas_config</FONT> 63 overrides that in <FONT FACE="COURIER">localconfig</FONT>. 64 64 No error occurs if either of these files are not found. 65 65 66 66 <P> 67 The < TT>readexp.tcl</TT> and <TT>gsascmds.tcl</TT> files contain67 The <FONT FACE="COURIER">readexp.tcl</FONT> and <FONT FACE="COURIER">gsascmds.tcl</FONT> files contain 68 68 tcl procedures that are 69 69 used for more than one application, so it is convenient to place them … … 71 71 or add new functionality to expgui. 72 72 <P> 73 The < TT>gsasmenu.tcl</TT> file defines the contents of the73 The <FONT FACE="COURIER">gsasmenu.tcl</FONT> file defines the contents of the 74 74 menu bar, the contents of the 75 75 button bar and definitions for each command. The contents of this file 76 76 are designed to be modified and extended by users, either by editing the file, 77 or by overriding definitions in the < TT>localconfig</TT> or78 < TT>.gsas_config</TT> files.79 80 The important variables defined in the < TT>gsasmenu.tcl</TT> file are:81 <DL><DL> 82 <DT>< TT>expgui(menunames)</TT><DD>77 or by overriding definitions in the <FONT FACE="COURIER">localconfig</FONT> or 78 <FONT FACE="COURIER">.gsas_config</FONT> files. 79 80 The important variables defined in the <FONT FACE="COURIER">gsasmenu.tcl</FONT> file are: 81 <DL><DL> 82 <DT><FONT FACE="COURIER">expgui(menunames)</FONT><DD> 83 83 This list defines the menu bar headings other than File, Options & Help 84 <DT>< TT>expgui_menulist</TT><DD>84 <DT><FONT FACE="COURIER">expgui_menulist</FONT><DD> 85 85 Each array element, e.g. expgui_menulist(file) and expgui_menulist(powder), 86 86 defines commands to be added to a menu heading. Each command will appear 87 87 as an array element in expgui_cmdlist. 88 <DT>< TT>expgui_cmdlist</TT><DD>88 <DT><FONT FACE="COURIER">expgui_cmdlist</FONT><DD> 89 89 Each array element, e.g. expgui_cmdlist(Save) or expgui_cmdlist(expnam) 90 90 contains two items. The first defines a tcl procedure to be executed … … 93 93 Note that when menu item is selected the variable cmd is set to the 94 94 name of the command, so 95 < PRE>95 <FONT FACE="COURIER"><PRE> 96 96 expgui_cmdlist(powpref) {{runGSASwEXP $cmd} {Powder data preparation}} 97 </PRE> 97 </PRE></FONT> 98 98 means that "runGSASwEXP powpref" will be invoked when powpref is invoked. 99 99 For example, when powpref is selected, the tcl command 100 100 "runGSASwEXP $cmd" is invoked, where variable cmd is set to "powpref". 101 <DT>< TT>expgui(buttonlist)</TT><DD>101 <DT><FONT FACE="COURIER">expgui(buttonlist)</FONT><DD> 102 102 This list defines the commands that will appear on the button bar where 103 103 each item that appears on the button bar must have a matching pair of entries 104 104 in expgui_cmdlist. 105 105 Thus if the command 106 < PRE>106 <FONT FACE="COURIER"><PRE> 107 107 set expgui(buttonlist) {expnam expedt genles ortep fourier forsrh forplot lstview} 108 </PRE> 109 is placed in the < TT>localconfig</TT> or <TT>.gsas_config</TT> files this will108 </PRE></FONT> 109 is placed in the <FONT FACE="COURIER">localconfig</FONT> or <FONT FACE="COURIER">.gsas_config</FONT> files this will 110 110 redefine the contents of the button bar. 111 111 </DL></DL> … … 115 115 <DL><DL> 116 116 117 <DT>< TT>expgui(scriptdir)</TT><DD>118 This determines where files such as < TT>readexp.tcl</TT>, etc.119 are located. This defaults to the location where < TT>expgui</TT> is located so117 <DT><FONT FACE="COURIER">expgui(scriptdir)</FONT><DD> 118 This determines where files such as <FONT FACE="COURIER">readexp.tcl</FONT>, etc. 119 are located. This defaults to the location where <FONT FACE="COURIER">expgui</FONT> is located so 120 120 it rarely needs to be changed. 121 121 122 <DT>< TT>expgui(gsasdir)</TT><DD>122 <DT><FONT FACE="COURIER">expgui(gsasdir)</FONT><DD> 123 123 This contains the location of the GSAS directory, if it is not the 124 124 parent director where expgui is found. … … 126 126 crashes when you try to add new atoms, this is probably wrong. 127 127 128 <DT>< TT>expgui(gsasexe)</TT><DD>128 <DT><FONT FACE="COURIER">expgui(gsasexe)</FONT><DD> 129 129 This determines where the GSAS executable files are located. 130 130 You might want to change this is you keep multiple versions of GSAS … … 133 133 in a subdirectory of the GSAS files. 134 134 135 <DT>< TT>expgui(bkgcolor1)</TT><DD>135 <DT><FONT FACE="COURIER">expgui(bkgcolor1)</FONT><DD> 136 136 Sets the background color for the bottom box on the phase pane. 137 137 The default value, #fdf, is a light violet that … … 139 139 of the refinement flags. 140 140 141 <DT>< TT>liveplot(hst)</TT><DD>141 <DT><FONT FACE="COURIER">liveplot(hst)</FONT><DD> 142 142 Sets the default histogram used for liveplot 143 143 144 <DT>< TT>liveplot(legend)</TT><DD>144 <DT><FONT FACE="COURIER">liveplot(legend)</FONT><DD> 145 145 Sets the default value for display of the legend in liveplot 146 146 147 <DT>< TT>expgui(initstring)</TT><DD>147 <DT><FONT FACE="COURIER">expgui(initstring)</FONT><DD> 148 148 Defines commands to be executed by EXPGUI after all other commands 149 149 have been run. This is used to define initialization commands in 150 the < TT>localconfig</TT> or <TT>.gsas_config</TT> files that cannot be150 the <FONT FACE="COURIER">localconfig</FONT> or <FONT FACE="COURIER">.gsas_config</FONT> files that cannot be 151 151 run at the time when the files are sourced. <I>(added in EXPGUI v1.21)</I> 152 152 </DL></DL> 153 153 154 The following variables are written to < tt>.gsas_config</tt> when154 The following variables are written to <font face="courier">.gsas_config</font> when 155 155 "Save Options" is used. These variables are all set from the GUI and therefore 156 156 do not need to be edited manually. 157 157 158 158 <DL><DL> 159 <DT>< TT>expgui(archive)</TT><DD>159 <DT><FONT FACE="COURIER">expgui(archive)</FONT><DD> 160 160 This defines the default state for the archive flag, 161 161 where 0 is off and 1 is on. When archive is on, a copy of the .EXP file 162 162 is saved before a new version of the file is saved in EXPGUI. 163 163 164 <DT>< TT>expgui(font)</TT><DD>164 <DT><FONT FACE="COURIER">expgui(font)</FONT><DD> 165 165 This determines the base font used in the programs. You conceivably 166 166 could want to use an integer value not present in the 167 167 "Options/Screen Font" menu command. 168 168 169 <DT>< TT>expgui(asorttype)</TT><DD>169 <DT><FONT FACE="COURIER">expgui(asorttype)</FONT><DD> 170 170 This determines the atom sort mode. 171 171 172 <DT>< TT>expgui(hsorttype)</TT><DD>172 <DT><FONT FACE="COURIER">expgui(hsorttype)</FONT><DD> 173 173 This determines the histogram sort mode. 174 174 175 <DT>< TT>expgui(filesort)</TT><DD>175 <DT><FONT FACE="COURIER">expgui(filesort)</FONT><DD> 176 176 This determines the default file sorting mode for the expnam command. 177 177 178 <DT>< TT>expgui(autoexpload)</TT><DD>178 <DT><FONT FACE="COURIER">expgui(autoexpload)</FONT><DD> 179 179 If set to 1, the experiment file is automatically reread after 180 180 GSAS programs modify it. 181 181 (UNIX only) 182 182 183 <DT>< TT>expgui(showexptool)</TT><DD>183 <DT><FONT FACE="COURIER">expgui(showexptool)</FONT><DD> 184 184 If set to 1, output from EXPTOOL is shown after the program is run. 185 185 This is probably needed only for debugging purposes. 186 186 187 <DT>< TT>env(GSASBACKSPACE)</TT><DD>187 <DT><FONT FACE="COURIER">env(GSASBACKSPACE)</FONT><DD> 188 188 Used only for UNIX: This determines if the default definition 189 189 for the backspace key is overridden; some UNIX systems need this so that … … 205 205 All that is needed to cause the code to be incorporated into 206 206 EXPGUI is to name it 207 < TT>import_</TT><I>xxxx</I><TT>.tcl</TT> (where <I>xxxx</I> is arbitrary)207 <FONT FACE="COURIER">import_</FONT><I>xxxx</I><FONT FACE="COURIER">.tcl</FONT> (where <I>xxxx</I> is arbitrary) 208 208 and place it in the EXPGUI directory. All files with 209 209 such names are read when EXPGUI is started. 210 210 211 The < TT>import_</TT> file must contain four items:211 The <FONT FACE="COURIER">import_</FONT> file must contain four items: 212 212 <UL> 213 213 <LI> 214 214 A description for the type of file to be read. 215 <DL><DL><PRE> 215 <DL><DL> 216 <FONT FACE="COURIER"><PRE> 216 217 set description "PowderCell .CEL file" 217 </PRE></DL> 218 </PRE></FONT> 219 </DL> 218 220 The text should not be too long, but use a return (\n) if needed: 219 <DL>< PRE>221 <DL><FONT FACE="COURIER"><PRE> 220 222 set description "My favorite coordinate\nfile from the GIGO pkg" 221 </PRE></ DL></DL>223 </PRE></FONT></DL></DL> 222 224 This description text shows up on the button for selecting a format. 223 225 <P> 224 226 <LI> 225 227 A list of preferred file extensions. 226 <DL><DL>< PRE>228 <DL><DL><FONT FACE="COURIER"><PRE> 227 229 set extensions .cel 228 </PRE></ DL>230 </PRE></FONT></DL> 229 231 or 230 <DL>< PRE>232 <DL><FONT FACE="COURIER"><PRE> 231 233 set extensions {.jnk .junk} 232 </PRE></ DL></DL>234 </PRE></FONT></DL></DL> 233 235 In UNIX upper and lower case 234 236 versions will be generated automatically, so do not worry about … … 237 239 <LI> 238 240 The name of the routine that will read the data file 239 <DL><DL>< PRE>241 <DL><DL><FONT FACE="COURIER"><PRE> 240 242 set procname ReadPowderCellFile 241 </PRE></ DL></DL>243 </PRE></FONT></DL></DL> 242 244 <LI> 243 245 A routine that takes the file name as an argument 244 <DL><DL>< PRE>246 <DL><DL><FONT FACE="COURIER"><PRE> 245 247 proc ReadPowderCellFile {filename} { 246 </PRE></ DL></DL>248 </PRE></FONT></DL></DL> 247 249 and returns a list containing the following four items 248 250 <OL> … … 277 279 However, one must specify a null value, if an item will be skipped over. 278 280 For example, use: 279 < PRE>281 <FONT FACE="COURIER"><PRE> 280 282 "Li1 0 0 0 li 0.5" 281 </PRE> 283 </PRE></FONT> 282 284 or 283 < PRE>285 <FONT FACE="COURIER"><PRE> 284 286 "{} 0 0 0 li 0.5" 285 </PRE> 287 </PRE></FONT> 286 288 but not 287 < PRE>289 <FONT FACE="COURIER"><PRE> 288 290 "0 0 0 li 0.5" 289 </PRE> 291 </PRE></FONT> 290 292 291 293 </DL></DL> … … 298 300 </DL></DL> 299 301 </OL> 300 See the file < TT>import_cell.tcl</TT> as an example for how this code302 See the file <FONT FACE="COURIER">import_cell.tcl</FONT> as an example for how this code 301 303 is written. 302 304 … … 312 314 All that is needed to cause the code to be incorporated into 313 315 EXPGUI is to name it 314 < TT>export_</TT><I>xxxx</I><TT>.tcl</TT> (where <I>xxxx</I> is arbitrary)316 <FONT FACE="COURIER">export_</FONT><I>xxxx</I><FONT FACE="COURIER">.tcl</FONT> (where <I>xxxx</I> is arbitrary) 315 317 and place it in the EXPGUI directory. All files with 316 318 such names are read when EXPGUI the Import/Export=>"Coord Export" submenu 317 319 is first invoked. 318 320 319 The < TT>export_</TT> file must define two variables:321 The <FONT FACE="COURIER">export_</FONT> file must define two variables: 320 322 <DL><DL> 321 323 <DT>label<DD> 322 324 This defines the text that appears on the submenu. For example: 323 < PRE>325 <FONT FACE="COURIER"><PRE> 324 326 set label "MSI .xtl format" 325 </PRE> 327 </PRE></FONT> 326 328 <DT>action<DD> 327 329 This defines the Tcl routine that will be used to 328 < PRE>330 <FONT FACE="COURIER"><PRE> 329 331 set action exp2xtl 330 </PRE> 331 </DL></DL> 332 See the file < TT>export_example.example</TT>, as well as the333 < TT>export_*.tcl</TT> files332 </PRE></FONT> 333 </DL></DL> 334 See the file <FONT FACE="COURIER">export_example.example</FONT>, as well as the 335 <FONT FACE="COURIER">export_*.tcl</FONT> files 334 336 as examples for how this 335 337 sort of routine is written. 336 338 337 339 <HR><H3>LSTVIEW</H3> 338 The < TT>localconfig</TT> and <TT>.gsas_config</TT> files are read, if present.340 The <FONT FACE="COURIER">localconfig</FONT> and <FONT FACE="COURIER">.gsas_config</FONT> files are read, if present. 339 341 The following options are available for customization in these files: 340 342 <DL><DL> 341 <DT>< TT>txtvw(menulength)</TT><DD>343 <DT><FONT FACE="COURIER">txtvw(menulength)</FONT><DD> 342 344 This limits the number of entries that can 343 345 exist in a menu. For example, the default is 25, so when more than 25 cycles 344 346 are found in a .LST file, only the last 25 are listed in the 345 347 "Go To"/cycle submenu. 346 <DT>< TT>txtvw(maxchars)</TT><DD>348 <DT><FONT FACE="COURIER">txtvw(maxchars)</FONT><DD> 347 349 This limits the maximum number of 348 350 characters that will be read from an existing .LST file to speed 349 351 the start of the program. The default is ~1Mb 350 352 for UNIX systems and ~200K for Windows. 351 <DT>< TT>txtvw(plotvars)</TT><DD>353 <DT><FONT FACE="COURIER">txtvw(plotvars)</FONT><DD> 352 354 If txtvx(plotvars) is 1, a plot window is created for plotting of 353 355 R-factors and parameter shifts as a function of cycle number. … … 357 359 </DL></DL> 358 360 359 The following variables are written to < tt>.gsas_config</tt> when361 The following variables are written to <font face="courier">.gsas_config</font> when 360 362 "Save Options" is used. These variables can be set from the GUI and therefore 361 363 do not need to be edited manually. 362 364 363 365 <DL><DL> 364 <DT>< TT>txtvw(followcycle)</TT><DD>366 <DT><FONT FACE="COURIER">txtvw(followcycle)</FONT><DD> 365 367 This sets the initial value for the 366 368 "Auto Advance" button in the "Go To" menu. When this is true, … … 368 370 added, the "view" is advanced. 369 371 370 <DT>< TT>txtvw(font)</TT><DD>372 <DT><FONT FACE="COURIER">txtvw(font)</FONT><DD> 371 373 This sets the font used for LSTVIEW. See documentation on the font command in 372 374 Tk for details on font naming. … … 389 391 instrumental curves as options to the menu. This can be done by creating a 390 392 file called widplot_<i>name</i>. For example, renaming the 391 < tt>example_widplt_BT1</tt> file supplied with the distribution to392 < tt>widplt_BT1</tt> will cause the FWHM curves for the NIST BT-1 instrument393 <font face="courier">example_widplt_BT1</font> file supplied with the distribution to 394 <font face="courier">widplt_BT1</font> will cause the FWHM curves for the NIST BT-1 instrument 393 395 to be added to the menu of defined FWHM values. 394 396 <P> … … 397 399 element name to variable datalist. 398 400 Define 399 < PRE>401 <FONT FACE="COURIER"><PRE> 400 402 set UVWP(Ge15) {398.5 -343.2 163.0 0} 401 403 set XY(Ge15) {0 0} … … 404 406 set ttrange(Ge15) "5 160" 405 407 lappend datalist Ge15 406 </PRE> 408 </PRE></FONT> 407 409 Array element UVWP(item) contains the (Gaussian) GU, GV, GW and GP values, 408 410 while XY(item) contains the (Lorentzian) LX and LY terms. Array element … … 411 413 defines the range the function is valid. 412 414 <P> 413 The following variables are written to < tt>.gsas_config</tt> when415 The following variables are written to <font face="courier">.gsas_config</font> when 414 416 "Save Options" is used. These variables are all set from the GUI and therefore 415 417 do not need to be edited manually. 416 418 417 419 <DL><DL> 418 <DT>< TT>graph(printout)</TT><DD>420 <DT><FONT FACE="COURIER">graph(printout)</FONT><DD> 419 421 This is set to 1 if PostScript files 420 422 will be printed and 0 if they will be written to disk (for Windows all 421 423 files should be written to disk). 422 424 423 <DT>< TT>graph(outname)</TT><DD>425 <DT><FONT FACE="COURIER">graph(outname)</FONT><DD> 424 426 This is the default for the file name used 425 427 when PostScript files will be written to disk. 426 428 427 <DT>< TT>graph(outcmd)</TT><DD>429 <DT><FONT FACE="COURIER">graph(outcmd)</FONT><DD> 428 430 This is the default for the command used 429 431 to print PostScript files (Unix only). 430 432 431 <DT>< TT>graph(legend)</TT><DD>433 <DT><FONT FACE="COURIER">graph(legend)</FONT><DD> 432 434 Sets the default value for display of the legend in liveplot and widplt. 433 435 434 <DT>< TT>graph(plotunits)</TT><DD>436 <DT><FONT FACE="COURIER">graph(plotunits)</FONT><DD> 435 437 Sets the units used for displaying the data. Values are "d", "q", "", 436 438 for d-space, Q and 2-theta, respectively. 437 <DT>< TT>graph(equivwave)</TT><DD>439 <DT><FONT FACE="COURIER">graph(equivwave)</FONT><DD> 438 440 Sets the wavelength used for displaying data, if blank, no conversion is 439 441 done and data are shown in their original wavelength. … … 452 454 cycles set to zero gives the Le Bail extraction a head start. 453 455 <P> 454 The code below can be used to define a new command, < tt>leBail</tt>. The first456 The code below can be used to define a new command, <font face="courier">leBail</font>. The first 455 457 command adds a command to the button bar and the second one defines what will 456 458 be done when it is invoked (the number of cycles is set to zero and … … 458 460 does not. 459 461 460 < PRE>462 <FONT FACE="COURIER"><PRE> 461 463 lappend expgui(buttonlist) leBail 462 464 set expgui_cmdlist(leBail) { … … 466 468 } 467 469 468 </PRE> 469 To make this customization, put the above in the < TT>localconfig</TT>470 </PRE></FONT> 471 To make this customization, put the above in the <FONT FACE="COURIER">localconfig</FONT> 470 472 file or the 471 < TT>~/.gsas_config</TT> or (or <TT>C:\GSAS\EXPGUI\.gsas_config</TT>)473 <FONT FACE="COURIER">~/.gsas_config</FONT> or (or <FONT FACE="COURIER">C:\GSAS\EXPGUI\.gsas_config</FONT>) 472 474 file. 473 475 <hr> … … 479 481 to do that as a customization option. Please note that this has now been 480 482 incorporated into EXPGUI, so do not use this example. 481 < PRE>483 <FONT FACE="COURIER"><PRE> 482 484 set expgui(disaglSeparateBox) 1 483 485 set expgui_cmdlist(disagl) {rundisagl {Hacked Distance/angle calculations}} … … 535 537 } 536 538 537 </PRE> 538 To make this customization, put the above in the < TT>localconfig</TT>539 </PRE></FONT> 540 To make this customization, put the above in the <FONT FACE="COURIER">localconfig</FONT> 539 541 file or the 540 < TT>~/.gsas_config</TT> or (or <TT>C:\GSAS\EXPGUI\.gsas_config</TT>)542 <FONT FACE="COURIER">~/.gsas_config</FONT> or (or <FONT FACE="COURIER">C:\GSAS\EXPGUI\.gsas_config</FONT>) 541 543 file. 542 544 <P> 543 Note that the < tt>expgui(initstring)</tt> option became available in EXPGUI545 Note that the <font face="courier">expgui(initstring)</font> option became available in EXPGUI 544 546 version 1.21. (Previous versions will ignore this). This code must be executed 545 547 after all the menus and other GUI code has been run. When executed, it … … 552 554 The steps for creating support for additional functionality, implementation 553 555 of atom constraints, is outlined here. Routines described here can be found in 554 file < tt>atomcons.tcl</tt> unless otherwise noted.556 file <font face="courier">atomcons.tcl</font> unless otherwise noted. 555 557 <OL> 556 558 <LI>Create a routine to read and write the appropriate records 557 559 from the .EXP file. In this case, a new routine, constrinfo, 558 was added to file < tt>readexp.tcl</tt>.560 was added to file <font face="courier">readexp.tcl</font>. 559 561 This takes considerable care and manual testing. 560 562 <LI>Create a routine that places the appropriate widgets into a frame … … 572 574 To update this page each time it is displayed, DisplayConstraintsPane is 573 575 called. 574 <LI>Edit file < tt>expgui</tt> to make the following changes:576 <LI>Edit file <font face="courier">expgui</font> to make the following changes: 575 577 <UL> 576 <P><LI>load the < tt>atomcons.tcl</tt> file:577 < PRE>578 <P><LI>load the <font face="courier">atomcons.tcl</font> file: 579 <FONT FACE="COURIER"><PRE> 578 580 # commands for constraints 579 581 source [file join $expgui(scriptdir) atomcons.tcl] 580 </PRE> 582 </PRE></FONT> 581 583 <P><LI>Define a notebook page for the option. The -createcmd option 582 584 is used only once, but the -raisecmd option is used every time 583 585 the page is exposed. 584 < PRE>586 <FONT FACE="COURIER"><PRE> 585 587 set expgui(consFrame) [\ 586 588 .n insert end consPane -text Constraints \ … … 588 590 -createcmd MakeConstraintsPane] 589 591 lappend expgui(frameactionlist) "consFrame DisplayConstraintsPane" 590 </PRE> 592 </PRE></FONT> 591 593 Note that if we were displaying the atoms constraint page directly on 592 594 the main notebook widget, the previous command would have been 593 < tt>-raisecmd DisplayAtomConstraints -createcmd MakeAtomsConstraintsPane</tt>595 <font face="courier">-raisecmd DisplayAtomConstraints -createcmd MakeAtomsConstraintsPane</font> 594 596 <P> 595 597 Since the frame will need to be updated when information in the .EXP file 596 598 changes, the name of the frame and a command to execute are added into list 597 expgui(frameactionlist) using the < TT>lappend expgui(frameactionlist)</TT>599 expgui(frameactionlist) using the <FONT FACE="COURIER">lappend expgui(frameactionlist)</FONT> 598 600 command. 599 </PRE> 601 </PRE></FONT> 600 602 </UL> 601 603 </OL> … … 611 613 <B>Answer: </B> 612 614 The fonts used in EXPGUI can be customized by adding some code to the 613 < TT>localconfig</TT> file or the614 < TT>~/.gsas_config</TT> or (or <TT>C:\GSAS\EXPGUI\.gsas_config</TT>) file.615 <FONT FACE="COURIER">localconfig</FONT> file or the 616 <FONT FACE="COURIER">~/.gsas_config</FONT> or (or <FONT FACE="COURIER">C:\GSAS\EXPGUI\.gsas_config</FONT>) file. 615 617 By default, fonts are 14 point for the menus, buttons, labels,... and 616 618 12 point for the histogram and atom lists. 617 619 <P> 618 620 If you add a command like this: 619 <UL>< PRE>621 <UL><FONT FACE="COURIER"><PRE> 620 622 option add *Coord.Listbox.Font "Courier -18 bold italic" 20 621 </PRE></ UL>623 </PRE></FONT></UL> 622 624 <P> 623 625 you will override the menu command and force the atom coordinates … … 627 629 standard initialization. Here are the options that can be specified: 628 630 <DL><DL> 629 <DT>< TT>*Graph*Font</TT><DD>Used for Graph labels630 <DT>< TT>*Graph.font</TT><DD>Used for Graph title631 <DT>< TT>*Canvas.font</TT><DD>Used for notebook tabs632 <DT>< TT>*Button.font</TT><DD>Used on most buttons633 <DT>< TT>*Menu.font</TT><DD>Used on menu commands634 <DT>< TT>*Menubutton.font</TT><DD>Used on "menu buttons" (e.g. Print options)635 <DT>< TT>*Label.font</TT><DD>Used on labels636 <DT>< TT>*Scale.font</TT><DD>Used on sliders (e.g. Marquardt damping)637 <DT>< TT>*TitleFrame.font</TT><DD>Used on title frames (e.g. box labels such as631 <DT><FONT FACE="COURIER">*Graph*Font</FONT><DD>Used for Graph labels 632 <DT><FONT FACE="COURIER">*Graph.font</FONT><DD>Used for Graph title 633 <DT><FONT FACE="COURIER">*Canvas.font</FONT><DD>Used for notebook tabs 634 <DT><FONT FACE="COURIER">*Button.font</FONT><DD>Used on most buttons 635 <DT><FONT FACE="COURIER">*Menu.font</FONT><DD>Used on menu commands 636 <DT><FONT FACE="COURIER">*Menubutton.font</FONT><DD>Used on "menu buttons" (e.g. Print options) 637 <DT><FONT FACE="COURIER">*Label.font</FONT><DD>Used on labels 638 <DT><FONT FACE="COURIER">*Scale.font</FONT><DD>Used on sliders (e.g. Marquardt damping) 639 <DT><FONT FACE="COURIER">*TitleFrame.font</FONT><DD>Used on title frames (e.g. box labels such as 638 640 the "Diffractometer Constants" label 639 <DT>< TT>*SmallFont.Button.font</TT><DD>Used for buttons with smaller letters640 <DT>< TT>*Coord.Listbox.font</TT><DD>Used for coordinate listings, best as a641 <DT><FONT FACE="COURIER">*SmallFont.Button.font</FONT><DD>Used for buttons with smaller letters 642 <DT><FONT FACE="COURIER">*Coord.Listbox.font</FONT><DD>Used for coordinate listings, best as a 641 643 mono-spaced font, such as Courier 642 <DT>< TT>*HistList.Listbox.font</TT><DD>Used for histogram listings643 <DT>< TT>*MonoSpc.Label.font</TT><DD>Used in other places where a mono-spaced644 <DT><FONT FACE="COURIER">*HistList.Listbox.font</FONT><DD>Used for histogram listings 645 <DT><FONT FACE="COURIER">*MonoSpc.Label.font</FONT><DD>Used in other places where a mono-spaced 644 646 font is required 645 647 </DL></DL>
Note: See TracChangeset
for help on using the changeset viewer.