The CASEVision tools are designed to be conform with OSF/Motif standards. They typically use the standard Motif File Browser to save and load files. Command mnemonics and keyboard accelerators have been designed into the tools to provide quick access to menu items.
This chapter covers:
Most of the CASEVision commands that save or load files use the standard Motif File Browser or a close variation (See Figure 3-1). You can use the Motif File Browser to change directories, view directory contents, select files, and enter filenames.
![]() | Note: The WorkShop debugger has a view called File Browser which is different. It accesses source files for the current executable. |
To view the contents of a directory, you need to specify the directory, either through a filter or by explicit selection from a list. The files list then shows files found in the current directory with any filtering applied.
You enter filters in the file filter area at the top of the Browser. Initially, the current directory displays, followed by a wildcard (*) to include all files in the directory. You can modify the filter by moving the cursor in to the file filter area, making the change, and pressing <Enter> or clicking the Filter button at the bottom of the Browser window. A new set of files displays. Use other shell metacharacters to filter specific subsets of files in the directory. You can also use the file filter area to change the current directory by changing the pathname to a new directory.
The directories list below the file filter area lists the subdirectories of the current directory. To move to a subdirectory, double-click the directory name. To move up a directory, double-click the “.” entry, which is the second name in the list.
As an alternative, you can type the pathname directly in the file selection field. This is useful if you know the pathname and file, and prefer to avoid navigation with the mouse.
Many CASEVision application windows provide a Load File dialog window based on the standard Motif File Browser. To lad a file from the files list in this window, double-click the filename. The File Browser closes and the file loads. You can also load a file by clicking the filename to select it and then clicking the OK button at the bottom of the Browser window.
If you prefer to type, move the pointer into the selection field, type in the file's full pathname, and then press <Enter> or click the OK button. The window closes and, if the file exists, the file loads.
The Save File dialog window is a variation of the standard Motif File Browser. To save a file in this window, navigate to the directory where you want to save the file, then move the cursor into the file selection area, and enter the filename to be saved at the end of the pathname there. Press <Enter> or click the OK button. The File Browser window closes, and the file is saved under the filename.
You can also save under an existing filename by finding a filename in the Files list and double-clicking it. The File Browser window closes, and the file is saved under the existing filename, overwriting any previous file contents.
The CASEVision environment provides keyboard shortcuts as alternatives to selecting menu items with the mouse. The standard procedure for making selections with the mouse is to click the menu title to display the menu and then click the desired menu item. Alternatively, you can execute menu commands from the keyboard using one of two methods: mnemonics or keyboard accelerators (see Figure 3-2).
Mnemonics let you open a main menu by pressing the <Alt> key and the lowercase of the underlined letter in the menu title. You then select a command or submenu by releasing the <Alt> key and pressing the lowercase of the letter that is underlined in that menu item. For example, you can select “Iconify” from the Admin menu in Figure 3-2, by pressing <Alt>-m i. You can continue to use the selection process recursively through submenus without pressing the <Alt> key simultaneously.
Keyboard accelerators let you execute certain commands without opening the menu through a combination of keys. These key combinations are displayed in the menus next to the applicable commands. To execute these commands, simultaneously press the lowercase of the letter and the <Alt> or <Ctrl> key as defined. For example, to select the “Search...” command from the Source menu in Figure 3-3, you would press <Ctrl>-s.