📄 ch36.htm
字号:
section to the right across the top half of the browser. If you select a file, the
contents of the file are displayed in the lower half of the Browser. The pop-up menu
for the directory area has only two functions:
<UL>
<LI><TT>up</TT>--Moves up to the directory above the one selected
<P>
<LI><TT>goto directory</TT>--Enables you to go to a specified directory
</UL>
<P>The content view has the same edit menu as all the other text editors and is discussed
in the "Editing in Browsers" section, later in this chapter. A typical
Directory Browser is shown in Figure 36.11.
<P>
<A HREF="../art/36/36fig11.gif"><B>Figure 36.11.</B> </A> <I>The Directory Browser.</I>
<P><CENTER>
<H3><A NAME="Heading17<FONT COLOR="#000077">The Workspace Option</FONT></H3>
</CENTER>
<P>The Workspace option displays a view from which you can enter and compile SmallTalk
code. The Workspace is usually used as a testing area or scratch pad when coding.
You can use it to test your SmallTalk code before building it into the code library
using the System Browser code view.
<CENTER>
<H3><A NAME="Heading18<FONT COLOR="#000077">The File Browser Option</FONT></H3>
</CENTER>
<P>The File Browser gives you the ability to inspect and manipulate files and directories.
The File Browser is shown in Figure 36.12.
<P>
<A HREF="../art/36/36fig12.gif"><B>Figure 36.12.</B> </A> <I>The File Browser. </I>
<BR>
<BR>
It consists of four subviews that are described in Table 36.7. <BR>
<CENTER>
<P><FONT SIZE="4"><B>Table 36.7.</B> The File Browser subviews. </FONT>
<TABLE BORDER="0">
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="82" ALIGN="LEFT"><I>Subview</I></TD>
<TD ALIGN="LEFT"><I>Purpose</I></TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="82" ALIGN="LEFT">path-label field</TD>
<TD ALIGN="LEFT">Shows the name of the current directory</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="82" ALIGN="LEFT">file pattern field</TD>
<TD ALIGN="LEFT">Allows a search pattern to be entered for choosing files for the file list</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="82" ALIGN="LEFT">file list</TD>
<TD ALIGN="LEFT">Shows a list of file and directory names</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="82" ALIGN="LEFT">contents view</TD>
<TD ALIGN="LEFT">Shows the contents of a selected file</TD>
</TR>
</TABLE>
</CENTER>
<P>To inspect the contents of a file, double-click the left mouse button on the name
of the file in the file list. To change directories, double-click on the directory
name. Directory names are always shown in the file list.</P>
<P>You can use the file pattern field to display the list of files matching the specified
pattern. The default is <TT>*</TT>, which shows all files. The search pattern can
be changed by moving the pointer to the field, editing the pattern, and then pressing
enter or choosing <TT>accept</TT> from the file pattern pop-up menu.</P>
<P>As in the other browsers we have discussed, each subview has a pop-up menu that
is activated by the menu mouse button. The path-label pop-up menu is shown in Figure
36.13.
<P>
<A HREF="../art/36/36fig13.gif"><B>Figure 36.13.</B> </A> <I>The path-label pop-up menu.
</I>
<BR>
<BR>
The functions available in this menu are described in Table 36.8. <BR>
<CENTER>
<P><FONT SIZE="4"><B>Table 36.8.</B> The path-label pop-up menu functions. </FONT>
<TABLE BORDER="0">
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><I>Function</I></TD>
<TD ALIGN="LEFT" VALIGN="TOP"><I>Purpose</I></TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><TT>copy path</TT></TD>
<TD ALIGN="LEFT" VALIGN="TOP">Copies the current pathname into the cut and paste buffer</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><TT>change directory</TT></TD>
<TD ALIGN="LEFT" VALIGN="TOP">Opens a dialog box to enter the name of the directory you want to change to</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><TT>change to home-dir</TT></TD>
<TD ALIGN="LEFT" VALIGN="TOP">Changes the file list to your home directory</TD>
</TR>
</TABLE>
</CENTER>
<P>The file list pop-up menu is shown in Figure 36.14.</P>
<P>The functions available in this menu are described in Table 36.9.
<P>
<A HREF="../art/36/36fig14.gif"><B>Figure 36.14.</B> </A> <I>The file list pop-up menu.</I>
<BR>
<CENTER>
<P><FONT SIZE="4"><B>Table 36.9. </B>The file list pop-up menu functions. </FONT>
<TABLE BORDER="0">
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><I>Function</I></TD>
<TD ALIGN="LEFT" VALIGN="TOP"><I>Purpose</I></TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><TT>spawn</TT></TD>
<TD ALIGN="LEFT" VALIGN="TOP">Starts another file browser on the current directory or the directory selected in
the file list.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><TT>get contents</TT></TD>
<TD ALIGN="LEFT" VALIGN="TOP">Shows the contents of the currently selected file in the contents view.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><TT>show info</TT></TD>
<TD ALIGN="LEFT" VALIGN="TOP">Displays a view with type, size, access, and owner information for the currently
selected file or directory.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><TT>show full info</TT></TD>
<TD ALIGN="LEFT" VALIGN="TOP">Displays the same as above with more details such as the last access, last modification
date, and time.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><TT>fileIn</TT></TD>
<TD ALIGN="LEFT" VALIGN="TOP">Loads the selected file into the system by reading and evaluating SmallTalk expressions
from it.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><TT>update</TT></TD>
<TD ALIGN="LEFT" VALIGN="TOP">Rereads the directory and updates the file list.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><TT>execute unix command</TT></TD>
<TD ALIGN="LEFT" VALIGN="TOP">Allows execution of any UNIX command through a pop-up box.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><TT>remove</TT></TD>
<TD ALIGN="LEFT" VALIGN="TOP">Removes the selected file(s) or directory(s).</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><TT>rename</TT></TD>
<TD ALIGN="LEFT" VALIGN="TOP">Renames the selected file.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><TT>display long list</TT></TD>
<TD ALIGN="LEFT" VALIGN="TOP">Shows file information in the file list. This option toggles with <TT>display short
list</TT>, which is the default.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><TT>show all files</TT></TD>
<TD ALIGN="LEFT" VALIGN="TOP">Displays all the files including hidden files. This option toggles with <TT>hide
hidden files</TT>, which is the default.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><TT>create directory</TT></TD>
<TD ALIGN="LEFT" VALIGN="TOP">Creates a new directory.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD ALIGN="LEFT" VALIGN="TOP"><TT>create file</TT></TD>
<TD ALIGN="LEFT" VALIGN="TOP">Creates a new file.</TD>
</TR>
</TABLE>
</CENTER>
<P>The pop-up menu for the contents view is the same edit menu as the other text
editors and is discussed in the "Editing in Browsers" section of this chapter.
<CENTER>
<H3><A NAME="Heading19<FONT COLOR="#000077">The Projects Option</FONT></H3>
</CENTER>
<P>The Projects option of the Launcher menu enables you to create a new project or
select a previously created project. When the <TT>new project</TT> function is selected,
a new project is automatically created for you and the new project object appears
on your screen. If you select the <TT>select project</TT> function, a dialog box
appears with a list of existing projects from which to choose. Simply select a project
and it will be loaded in to the environment.
<CENTER>
<H3><A NAME="Heading20<FONT COLOR="#000077">The Utilities Option</FONT></H3>
</CENTER>
<P>The Utilities option provides 13 tools that assist you in programming in the ST/X
environment. Table 36.10 gives you a brief description of each tool. <BR>
<CENTER>
<P><FONT SIZE="4"><B>Table 36.10.</B> The Utilities option tools. </FONT>
<TABLE BORDER="0">
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="111" ALIGN="LEFT"><I>Utility</I></TD>
<TD ALIGN="LEFT"><I>Description</I></TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="111" ALIGN="LEFT" VALIGN="TOP">Transcript</TD>
<TD ALIGN="LEFT" VALIGN="TOP">Opens the Transcript view.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="111" ALIGN="LEFT" VALIGN="TOP">Window tree</TD>
<TD ALIGN="LEFT" VALIGN="TOP">Displays a graphical tree representation of the window hierarchy of all windows that
are active or in wait state at the time it was requested.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="111" ALIGN="LEFT" VALIGN="TOP">Class tree</TD>
<TD ALIGN="LEFT" VALIGN="TOP">Displays a graphical tree representation of the class hierarchy of the system.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="111" ALIGN="LEFT" VALIGN="TOP">Event monitor</TD>
<TD ALIGN="LEFT" VALIGN="TOP">Displays a view that monitors events.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="111" ALIGN="LEFT" VALIGN="TOP">Process monitor</TD>
<TD ALIGN="LEFT" VALIGN="TOP">Displays a view that gives information about all currently active or waiting processes.
This information changes as the state of the processes change.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="111" ALIGN="LEFT" VALIGN="TOP">Memory monitor</TD>
<TD ALIGN="LEFT" VALIGN="TOP">Displays a graph that tells you the present memory usage and changes as the memory
usage changes.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="111" ALIGN="LEFT" VALIGN="TOP">Memory usage</TD>
<TD ALIGN="LEFT" VALIGN="TOP">Displays a table of the classes and the number of instances of each, average size,
bytes, and percentage of memory used by each.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="111" ALIGN="LEFT" VALIGN="TOP">Collect Garbage</TD>
<TD ALIGN="LEFT" VALIGN="TOP">Runs a Generation Scavenge algorithm to collect short term objects and destroy them.
If an object survives long enough, it is moved to an area of memory where it remains
until the user requests its collection.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="111" ALIGN="LEFT" VALIGN="TOP">Collect Garbage & compress</TD>
<TD ALIGN="LEFT" VALIGN="TOP">Same as Collect Garbage but also compresses to recover space.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="111" ALIGN="LEFT" VALIGN="TOP">Fullscreen hardcopy</TD>
<TD ALIGN="LEFT" VALIGN="TOP">Takes a picture of the screen and asks you for a name of a file with a <TT>.tiff</TT>
extension in which to save the image.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="111" ALIGN="LEFT" VALIGN="TOP">Screen area hardcopy</TD>
<TD ALIGN="LEFT" VALIGN="TOP">Same as Fullscreen hardcopy but for only a specific area of the screen.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="111" ALIGN="LEFT" VALIGN="TOP">View hardcopy</TD>
<TD ALIGN="LEFT" VALIGN="TOP">Same as Fullscreen hardcopy but for one specific view only.</TD>
</TR>
<TR ALIGN="LEFT" rowspan="1">
<TD WIDTH="111" ALIGN="LEFT" VALIGN="TOP">ScreenSaver</TD>
<TD ALIGN="LEFT" VALIGN="TOP">Enables you to choose from one of three different screen savers to use in the ST/X
environment.</TD>
</TR>
</TABLE>
</CENTER>
<CENTER>
<H3><A NAME="Heading21<FONT COLOR="#000077">The Goodies Option</FONT></H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -