Wed Jan 27 22:27:32 1999  Mumit Khan <khan@xraylith.wisc.edu>

	* launch.tcl (shadow_version): Update for 2.3.2.
	* gui.tcl (GUI:make_toolbar): Don't use icon for Run button.
	* run-shadow: Use full path to sh on windows.
	* shadow.tcl: Add tty to CYGWIN environment variable on Windows.
	* toolbar.tcl (toolbar:make): Smaller padding on windows.
	(toolbar:add): Buttons are flat, not raised, on windows.

	* tclIndex: Regenerate.

Tue Jan 26 02:42:41 1999  Mumit Khan <khan@xraylith.wisc.edu>

	* launch.tcl: New file.
	* shadow.tcl: Remove references to winexec.

Mon Jan 25 01:18:19 1999  Mumit Khan <khan@xraylith.wisc.edu>
	
	* shadow.tcl: Fix up win32 shell exec variables.
	(env): Prepend SHADOW bindir to PATH.
	* commands.tcl: Rewrote all the run_* routines using shellexec.
	(chdir_cmd): Use choose_directory on win32.
	* gui.tcl (GUI:make_topmenu): Add GO, and win32 Unix shell.
	* tclIndex: Regenerate.

Sat Jan 23 13:08:30 1999  Mumit Khan <khan@xraylith.wisc.edu>

	* shadow.xmen.cpp (MIRRDEF): Work around the bug for Ellipse
	and hyperbolical parameter case (same variable name).
	(__CYGWIN32__): Delete. Use
	(_WIN32): Instead.
	(MIRRDEF): Work around "relation" bug. See note in file.

	* run-shadow.tcl: Update from xstepper.
	* shadow.tcl: Fix dll loading for windows.
	* shplot.tcl: Update for blt 2.x.

Tue Nov 25 22:33:22 1997  Mumit Khan <khan@xraylith.wisc.edu>

	* gui.tcl (GUI:make_topmenu): Add make_id and undul as Misc.
	Tools.

	* commands.tcl (run_script_cmd): Run Win or Unix shell scripts.
	For Unix, it's the same as usual, but for Windows, the first 
	parameter is the SHADOW_ROOT variable passed to the .BAT file.

Mon Nov 24 00:03:37 1997  Mumit Khan <khan@xraylith.wisc.edu>

	* shadow.tcl (init_platform): Load TKMSWIN dll under win32.
	(terminal_exec_prog): Fix the command interpreter stuff for win32.

	* commands.tcl (run_shell_cmd): Tweak win32 exec'ing.
	(run_new_shell_cmd): Likewise.

Thu Oct  2 10:57:36 1997  Mumit Khan <khan@xraylith.wisc.edu>

	* gui.tcl (GUI:make_topmenu): Typo Optics --> General.

	* shadow.tcl: Fix gvars(terminal_exec_progr) for Windows NT.

Tue Sep 30 15:41:27 1997  Mumit Khan <khan@xraylith.wisc.edu>

	* shadow.tcl (init_startup): Fix code for handling errors from
	initial loading of a workspace.

	* gui.tcl (GUI:make_topmenu): New FILE | SAVE menu item. 
	Add accelerators for some FILE and EDIT items (Ctrl+N for New,
	Ctrl+S for, Ctrl+O for Open, Ctrl+C for Copy and Ctrl+V for Paste).
	Added Ctrl-C for copy, Ctrl-V for paste per Motif and MS.
	Move accelerator "bind all" statements to right after where the 
	item is added.

	* commands.tcl (save_state_as_cmd): New function to implement 
	"Save As ...". Basically renamed the previous save_state_cmd.
	(save_state_cmd): Use.
	(load_state_cmd): cleanup.
	(save_oe_cmd): Fix type "Edited" --> "Selected" when
	saving/exporting.
	(load_oe_cmd): Ditto.
	(do_chdir): When fails, don't update the "Current Directory" field.

Sat Sep 27 13:34:44 1997  Mumit Khan <khan@xraylith.wisc.edu>
	
	* run-shadow.tcl (run_plotxy):  Hack under cygwin32 removed.

	* support.tcl (remove_file): use "file delete" instead.

Thu Sep 25 22:42:39 1997  Mumit Khan <khan@xraylith.wisc.edu>

	* tclIndex: regenerate.

	* commands.tcl (update_workspace_history): New function to update
	the File menu to reflect recently visited files.

	* state.tcl (State:load): Re-throw caught error.
	(State:peek): Ditto.

	* prefs.tcl (prefs:reset_from_default): Renamed
	prefs:reset_to_default
	(prefs:reset_to_default): Use gvars(prefvars) to initialize to
	avoid missing vars when new ones are added to shadow.tcl.

	* shplot (shplot:exit_cmd, shplot:close_cmd): kill the info window
	as well.

	* commands.tcl (run_new_shell_cmd): New function to open a new
	SHELL. Workaround for win'95 bug that hangs some machines.
	(run_shell_cmd): Fix up.
	(do_load_state): Catch and rethrow.
	(load_state_cmd): Catch do_load_state error and report.

	* gui.tcl (GUI:make_topmenu): Use run_new_shell_cmd.
	Add accelerators.

	* run-shadow.tcl (run_script): To avoid using 'cat', 'echo' etc
	under Windows.
	(run_detached_program): To run stuff in the background. Used
	mainly on Windows to run primvs scripts due to spawn bug.

	* shadow.tcl (init_platform): Add SHADOW binary directory to PATH
	if not already there under Unix. 
	Add env(DISPLAY) to localhost:0.0 on Windows if not already there.

Mon Sep 22 16:13:01 1997  Mumit Khan <khan@xraylith.wisc.edu>
	
	* Junk Tix file dialogs for Tk version pre-4.2.

	* commands.tcl (run_shell_command): Add $gvars(shadow_bin) to
	path if not already there. If .cshrc or /etc/csh.cshrc overrides
	PATH, then this will not work of course.
	Quote the current working directory arg to keep embedded space.

	* shadow.tcl (terminal_exec_prog): For Unix shells, add title
	(SHADOW:[pwd]). How to do this for Windows?
	(terminal_exec_flag): Now set to /k, instead of /c, for Windows.

Sun Sep 21 23:54:11 1997  Mumit Khan <khan@xraylith.wisc.edu>

	* page.tcl (page:_change_value): Regression bug fix in changing
	catch script to {script}. Values with white space was getting
	screwed up (cf: PLOTXY and "X Windows").

Sun Sep 21 16:36:36 1997  Mumit Khan <khan@xraylith.wisc.edu>

	* tclIndex: Regenerate.

	* gui.tcl (GUI:make_topmenu): Fix up preferences options.

	Lots of new settings variables.
	* shadow.tcl: Use settings.
	* settings-unix.tcl: New file. Unix specific.
	* settings-win.tcl: New file. Windows specific.
	* settings.tcl: New file. Manages saving and loading settings each
	time SHADOW GUI is run.

	* support.tcl (parray_names): New. Modified parray to print only
	the element names to a file descriptor. Defaults to "stdout".

	* Fix catch syntax: "script" --> {script}.

	* toolbar.tcl (toolbar:make): Change relief to "flat". Looks
	better IMO.

	* state.tcl (State:_save_source_inspectors,
	State:_save_oe_inspectors, State:_save_screen_inspectors): Bug
	fix. The variable "name" passed to the actual save routine was
	called "page" by mistake. Couldn't save because of this.

Sat Sep 20 00:31:27 1997  Mumit Khan <khan@xraylith.wisc.edu>

	* tclIndex: Regenerate.

	* shplot.tcl (shplot:GUI:topmenu_pre_v8): Renamed from 
	shplot:GUI:topmenu
	(shplot:GUI:topmenu): Update for tkv8.0 menubar. 
	Use Tix scheme TK/TK for menus, and TixGray/14Point otherwise.
	(shplot:GUI:make): Handle tk8.0 menubar.

	* gui.tcl (GUI:make_topmenu_pre_v8): Renamed from GUI:make_topmenu 
	for tk pre-v8 versions.
	(GUI:make_topmenu): Update for tkv8.0 menubar. 
	Use Tix scheme TK/TK for menus, and TixGray/14Point otherwise.
	(GUI:make): Handle tk8.0 menubar.
	(GUI:make_page_popup): Zap. Was never used.
	(GUI:make_beamline_popup): Use tk_popup instead of tixPopupMenu
	which has trouble with tk8.0 (the title is left behind as garbage
	when unposting).
	Use Tix scheme TK/TK for menus, and TixGray/14Point otherwise.
	(GUI:make_toolbar): Clean up icons.

Thu Sep 18 21:50:26 1997  Mumit Khan <khan@xraylith.wisc.edu>

	* tclIndex: Regenerate.

	* commands.tcl (run_shell_command): New function to execute shell
	commands under Unix and Windows.

	* gui.tcl (GUI:make_topmenu): Added SHADOW batch tools.

	* shadow.tcl: Added gvars(terminal_exec_prog), 
	gvars(terminal_exec_flag), gvars(shell_wrapper_prog) to execute
	shell programs.

Tue Sep 16 10:25:14 1997  Mumit Khan <khan@xraylith.wisc.edu>

	* commands.tcl, run-shadow.tcl, shadow.tcl, support.tcl: Zap use
	of [tix platform] in favor of $tcl_platform(platform).

	* shadow.tcl (init_platform): new routine to initialize platform
	specific stuff (eg., "package require registry" for windows).
	For Windows, Add BLT 8.0 to auto_path.

	* commands.tcl (load_state_cmd): Use cd_to_wkspc_dir

	* shadow.tcl (gprefs): New preference cd_to_wkspc_dir

	* prefs.tcl: Rename routines with prefs: prefix. Rewrite
	preferences handling. For Unix, use $HOME/.shadow/preferences
	file; for Windows, use HKEY_CURRENT_USER\SOFTWARE\CXrL\SHADOW\
	Preferences key in registry.

	* prefs-unix.tcl, prefs-win.tcl: New files. 

Mon Sep 15 12:59:57 1997  Mumit Khan <khan@xraylith.wisc.edu>
	
	* shadow.tcl, commands.tcl, state.tcl (gtool2page, gpage2tool): Zap.

	* shadow.tcl, prefs.tcl, (gprefs, gdefprefs): Zap cache_pages.

	* gui.tcl (GUI:make_top_menu): Remove cache_pages from Options menu.

Sun Sep 14 13:01:15 1997  Mumit Khan <khan@xraylith.wisc.edu>

	* page.tcl (filedlg:browse, filedlg:select_file): Pass page_name 
	and item_name so that selecting a filename updates the value w/out 
	the user having to hit <return> again.

	Changes to show only the filename tail in the value widgets for
	filenames and then add an extra line to show the full pathname.

	* page.tcl (page:_create): Maintain two different counts, item_cnt
	and grid_cnt (as opposed to just "cnt") so that we can extra lines
	that correspond to a single item. 
	Handle the case when the item is a file name.
	(page:_reload): Ditto.
	(page:_update_value): Ditto.

	* shadow.tcl (cleanup_and_exit): Bug workaround for tix 4.1.0
	compounds widgets causing tk8.0 to dump core in freeing GC and/or
	fonts. Pretty much affects all platforms, and on some, with 
	earlier versions of tk such as 4.1 as well.

Fri Aug  1 21:12:03 1997  Mumit Khan <khan@xraylith.wisc.edu>

	* commands.tcl (new_state_cmd): Change the default value for
	workspace(filename) from "File: (NONE)" to "" (ie.,empty) since
	the former is illegal under Win32. (bug fix)

Fri Jul 11 20:00:15 1997  Mumit Khan <khan@xraylith.wisc.edu>

	* shadow.men.in (ERROR): Make everything n/a when "Modified Surface" 
	(ie., FDUMMY) is set to NO in OE_DATA page. BUG FIX.

	* shadow.xmen.cpp (DEFAULTS): Added FILE_SCR_EXT, RL1 ... RL10.
	Added CX_SLIT, CZ_SLIT -- centering for slit objects.
	(SCR_DATA): Added FILE_SCR_EXT prompt. Added %C-%F flags to turn
	off RX_SLIT, etc when K_SLIT == EXTERNAL, and turn on the 
	FILE_SCR_EXT prompt. Added prompts for CX_SLIT, CZ_SLIT.
	(RELINT): Added new menu page for new source option of a multiline 
	source with different relative intensities for each of the up to 
	10 photon energies. (RL1 ... RL10)

Sun Apr 13 15:15:11 1997  Mumit Khan <khan@xraylith.wisc.edu>

	* run-shadow.tcl (run_plotxy): workaround for GUI not executing
	PRIMVS under PLOTXY. Fix for errant end quote for win32 progname.

	* commands.tcl (do_load_source): Bug fix in importing source.
	(delete_src): Bug fix in deleting source. Added edit_nothing call.

Sat Apr 12 14:17:19 1997  Mumit Khan <khan@xraylith.wisc.edu>
	
	* state.tcl (State:load, State:peek): Clean out current annotation
	array before loading/peeking into new file.

	* Added workspace annotation support, peeking support.

	* gui.tcl (GUI:make_topmenu): Added Workspace and Tools menu.
	Added "FILE | NEW WORKSPACE" item.

	* commands.tcl (new_state_cmd): Start afresh. FILE | NEW WORKSPACE.

	* state.tcl (State:_load_annotation): Added annotation support.
	(State:peek): Fixed. Now saves the current info first.

	* shadow.tcl (workspace): New global array for Wksp variables.

Fri Apr 11 15:23:20 1997  Mumit Khan <khan@xraylith.wisc.edu>

	* gui.tcl (GUI:make_topmenu): Added Help | Demos pulldown.

	* commands.tcl (run_demo_cmd): Run supplied demos.

Wed Apr  9 00:25:51 1997  Mumit Khan <khan@xraylith.wisc.edu>
	
	* gui.tcl (GUI:make_startup, GUI:set_startup_msg): New routines to
	popup a transient while SHADOW gets ready for use.

	* shadow.tcl (MAIN): Use GUI:make_startup and GUI:set_startup_msg

	* run-shadow.tcl (insert_into_run_window, save_run_window): Add
	Tk filedialogs instead of the old cruddy one.

	* support.tcl (busy_cursor): New function to set the cursor to
	busy while app is doing something. Needed where blt_busy is nono.
	(busy_window): Use busy_cursor on win32.

	* shexport.tcl: New file. SHADOW data export GUI. Useless still.

Mon Apr  7 00:07:14 1997  Mumit Khan <khan@xraylith.wisc.edu>

	* page.tcl (page:_create): ENUM popup uses single click by
	modifying Button bindings.

	* shadow.xmen: Removed.

	* shadow.xmen.cpp: New file. shadow.xmen is created from this
	after pre-processing.

Wed Mar  5 17:34:20 1997  Mumit Khan <khan@xraylith.wisc.edu>
	
	* shplot.tcl: New file. SHADOW Plotting package.

	* shadow.xmen (MENU SOURCE): Make FILE_SOURCE read-only

	* page.tcl (page:_create): Make special enumerated/filename
	popups disable and enable along with the values.
	(page:_reload): Ditto.
	(filedlg:browse): Use tk4.2+ file dialogs.

	* commands.tcl (save_state_cmd, load_state_cmd): Use tk4.2+ file
	dialogs.

Tue Dec  3 00:51:30 1996  Mumit Khan <khan@xraylith.wisc.edu>

	* Win32 port#1. Lots of changes for small screens and Windows
	fonts.

Wed Nov  6 13:14:16 1996  Mumit Khan <khan@xraylith.wisc.edu>

	* page.tcl (page:_create): Added preliminary support BLT v2.1.
	* shadow.xmen: Sp fix for SRCINFO (from SOURCINFO). This crashes
	SHADOW!

Tue Oct  8 14:04:40 1996  Mumit Khan <khan@xraylith.wisc.edu>
	
	* Started ChangeLog
