⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 559-563.html

📁 linux-unix130.linux.and.unix.ebooks130 linux and unix ebookslinuxLearning Linux - Collection of 12 E
💻 HTML
字号:
<HTML>

<HEAD>

<TITLE>Linux Unleashed, Third Edition:Smalltalk/X</TITLE>

<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!--ISBN=0672313723//-->

<!--TITLE=Linux Unleashed, Third Edition//-->

<!--AUTHOR=Tim Parker//-->

<!--PUBLISHER=Macmillan Computer Publishing//-->

<!--IMPRINT=Sams//-->

<!--CHAPTER=31//-->

<!--PAGES=559-563//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="556-559.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="563-566.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<H3><A NAME="Heading16"></A><FONT COLOR="#000077">The Utilities Option</FONT></H3>

<P>The Utilities option provides 13 tools that assist you in programming in the ST/X environment. Table 31.10 gives you a brief description of each tool.

</P>

<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table 31.10.</B> The Utilities option.

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TH WIDTH="40%" ALIGN="LEFT">Utility

<TH WIDTH="60%" ALIGN="LEFT">Description

<TR>

<TD COLSPAN="2"><HR>

<TR>

<TD>Transcript

<TD>Opens the Transcript view.

<TR>

<TD VALIGN="TOP">Window tree

<TD>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.

<TR>

<TD VALIGN="TOP">Class tree

<TD>Displays a graphical tree representation of the class hierarchy of the system.

<TR>

<TD>Event monitor

<TD>Displays a view that monitors events.

<TR>

<TD VALIGN="TOP">Process monitor

<TD>Displays a view that gives information about all currently active or waiting processes. This information changes as the state of the processes changes.

<TR>

<TD VALIGN="TOP">Memory monitor

<TD>Displays a graph that tells you the present memory usage and changes as the memory usage changes.

<TR>

<TD VALIGN="TOP">Memory usage

<TD>Displays a table of the classes and the number of instances of each, average size, bytes, and percentage of memory used by each.

<TR>

<TD VALIGN="TOP">collect Garbage

<TD>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.

<TR>

<TD VALIGN="TOP">collect Garbage &#38; compress

<TD>Same as Collect Garbage but also compresses to recover space.

<TR>

<TD VALIGN="TOP">fullscreen hardcopy

<TD>Takes a picture of the screen and asks for a name of a file with a <TT>.tiff</TT> extension in which to save the image.

<TR>

<TD VALIGN="TOP">screen area hardcopy

<TD>Same as fullscreen hardcopy but only for a specific area of the screen.

<TR>

<TD>view hardcopy

<TD>Same as fullscreen hardcopy but for one specific view only.

<TR>

<TD VALIGN="TOP">ScreenSaver

<TD>Enables you to choose from one of three different screen savers to use in the ST/X environment.

<TR>

<TD COLSPAN="2"><HR>

</TABLE>

<H3><A NAME="Heading17"></A><FONT COLOR="#000077">The Goodies Option</FONT></H3>

<P>The Goodies option of the Launcher menu provides a pull-right menu of six different tools that are useful at any time, not just when you program in Smalltalk. The Goodies are described in Table 31.11.

</P>

<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table 31.11.</B> The Goodies.

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TH WIDTH="30%" ALIGN="LEFT">Goodie

<TH WIDTH="70%" ALIGN="LEFT">Description

<TR>

<TD COLSPAN="2"><HR>

<TR>

<TD VALIGN="TOP"><TT>Clock</TT>

<TD>Displays an analog clock in a square with a toggle for the second hand.

<TR>

<TD VALIGN="TOP"><TT>Round Clock</TT>

<TD>Same as the clock but is round and remains visible when it is minimized.

<TR>

<TD VALIGN="TOP"><TT>Directory View</TT>

<TD>Displays a pictorial representation of files and directories. A folder represents a directory and a document is a file.

<TR>

<TD><TT>Mail Tool</TT>

<TD>A tool for managing electronic mail.

<TR>

<TD><TT>News Tool</TT>

<TD>A repository for news, information, and documents.

<TR>

<TD VALIGN="TOP"><TT>Draw Tool</TT>

<TD>A fairly comprehensive tool for drawing diagrams, charts, pictures, and so on.

<TR>

<TD COLSPAN="2"><HR>

</TABLE>

<H3><A NAME="Heading18"></A><FONT COLOR="#000077">The Games &#38; Demos Option</FONT></H3>

<P>Contained in the pull-right menu of this option are games for your enjoyment and example applications that may be useful. The Games &#38; Demos option menu is shown in Figure 31.15.

</P>

<P><A NAME="Fig15"></A><A HREF="javascript:displayWindow('images/31-15.jpg',272,375 )"><IMG SRC="images/31-15t.jpg"></A>

<BR><A HREF="javascript:displayWindow('images/31-15.jpg',272,375)"><FONT COLOR="#000077"><B>Figure 31.15.</B></FONT></A>&nbsp;&nbsp;The Games &#38; Demos option menu.</P>

<H3><A NAME="Heading19"></A><FONT COLOR="#000077">Editing in Browsers</FONT></H3>

<P>All views that show text allow the usual editing functions of that text through a pop-up menu. The functions available in this menu are described in Table 31.12.

</P>

<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table 31.12.</B> Editing functions.

<TR>

<TH COLSPAN="2"><HR>

<TR>

<TH WIDTH="30%" ALIGN="LEFT">Function

<TH WIDTH="70%" ALIGN="LEFT">Description

<TR>

<TD COLSPAN="2"><HR>

<TR>

<TD><TT>again</TT>

<TD>Repeats the last edit.

<TR>

<TD><TT>copy</TT>

<TD>Copies the selected text.

<TR>

<TD><TT>cut</TT>

<TD>Cuts the selected text out of the file.

<TR>

<TD VALIGN="TOP"><TT>paste</TT>

<TD>Pastes the text that was copied or cut prior to choosing the paste option to the current position of the pointer.

<TR>

<TD VALIGN="TOP"><TT>accept</TT>

<TD>Once you have completed editing, you must use this option to save the changes to the file; otherwise the changes will not be written to the file.

<TR>

<TD><TT>doIt</TT>

<TD>Evaluates the highlighted text.

<TR>

<TD VALIGN="TOP"><TT>printIt</TT>

<TD>Prints a representation of the result of the evaluation at the current cursor position.

<TR>

<TD><TT>inspectIt</TT>

<TD>Invokes the Inspector view on the result.

<TR>

<TD><TT>search&#133;</TT>

<TD>Enables you to search for a specific string.

<TR>

<TD><TT>goto&#133;</TT>

<TD>Enables you to move to a specific location in the file.

<TR>

<TD><TT>font&#133;</TT>

<TD>Enables you to change the font of the file.

<TR>

<TD><TT>indent&#133;</TT>

<TD>Enables you to change the indenting of the file.

<TR>

<TD><TT>save as&#133;</TT>

<TD>Enables you to save the file under a different name.

<TR>

<TD><TT>print</TT>

<TD>Prints the file.

<TR>

<TD COLSPAN="2"><HR>

</TABLE>

<P>To select or highlight text, press the left mouse button over the first character and move the mouse (while holding the mouse button) to the end of the text you wish to select, and then release the mouse button. If you press the left mouse button again, the highlighting is removed and you can select something else.

</P>

<P>To scroll through the text, use the scroll bars on the left of the view. By clicking the mouse below or above the thumb, the text scrolls one page for every click. If you press the Shift key at the same time as you click, the text scrolls to the position of the pointer in the scroll bar. This is useful for scrolling rapidly through long documents.</P>

<H3><A NAME="Heading20"></A><FONT COLOR="#000077">Using the Inspector</FONT></H3>

<P>The Inspector enables you to inspect an object. It consists of two subviews, one showing the names of the object&#146;s instance variables and the other showing the value of the selected instance variable. You can start an inspector by using the <TT>inspectIt</TT> function on the edit menu or by sending one of the following messages to an object:</P>

<!-- CODE SNIP //-->

<PRE>

anObject inspect

</PRE>

<!-- END CODE SNIP //-->

<P>or

</P>

<!-- CODE SNIP //-->

<PRE>

anObject basicInspect

</PRE>

<!-- END CODE SNIP //-->

<P>The <TT>basicInspect</TT> command will open a general inspector that shows instance variables as they are physically present in the object. The <TT>inspect</TT> command is redefined in some classes to open an inspector showing the logical contents of the object.</P><P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="556-559.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="563-566.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





</td>
</tr>
</table>

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -