Документ взят из кэша поисковой машины. Адрес оригинального документа : http://hea-www.harvard.edu/RD/saotng/accel.html
Дата изменения: Unknown
Дата индексирования: Mon Oct 1 23:15:38 2012
Кодировка:

Поисковые слова: воздушные массы
Accelerator Buttons in SAOtng

Accelerator Buttons in SAOtng

The Accelerator command buttons located on the left side of the SAOtng GUI provide a quick means of executing common menu options. The default functions executed by these buttons are maintained in an ASCII file called accel.cmds in the SAOtng bin directory. Use the -accel [accel list] switch to supply an alternate set of command functions.

The accel list file is an ASCII file containing a list of (up to 25) accelerator commands. Each command consists of a name, type, and action. The name is the button name (use 7 characters or less to fit in the default label). The type is either "xpa", "tcl", "menu", or "shell". The action is either an XPA command to send to SAOtng, a fragment of TCL code to execute, a menu to display, or a shell command to execute.

For example, the default accel.cmds file includes the following commands:

# label			type	command			color
# -----			----	-------			____
"Load Image"		tcl	"LoadNewImage"		AntiqueWhite
"Save Image"		tcl	"SaveFITS"		AntiqueWhite
"Next Frame"		xpa	"frame next"		pink
"Prev Frame"		xpa	"frame prev"		pink
"New Frame"		xpa	"frame new"		pink
"Zoom In"		xpa	"zoom rel 2"		moccasin
"Zoom Out"		xpa	"zoom rel 0.5"		moccasin
"Reset Zoom"		xpa	"zoom reset"		moccasin
"Other Zooms ..."	menu	"panMenu"		moccasin
"Grey Colors"		xpa	"colormap Grey"		palegreen1
"Heat Colors"		xpa	"colormap Heat"		palegreen1
"SLS Colors"		xpa	"colormap SLS"		palegreen1
"Other Colors ..."	menu	"colorMenu"		palegreen1
"Scales ..."		menu	"scaleMenu"		lightcyan
"Pan/Magnify ..."	menu	"panmagMenu"		paleturquoise2
"WCS Display ..."	menu	"wcsMenu"		lightgrey
"Control Panel"		tcl	"panel"			palevioletred
"File Browser"		tcl	"RaiseXDirImages"	palevioletred
Note that the color of the accelerator buttons are defined in the file that specifies the buttons and their functions. In the default case, we have grouped similar menu functions with the same color. Those who are distracted by different colors can use the -accelcolor [color] switch to change all buttons to a single color.


Return to Advanced Topics Page

Last Updated June 14, 1997