📄 556-559.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=556-559//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="554-556.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="559-563.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<H3><A NAME="Heading14"></A><FONT COLOR="#000077">The File Browser Option</FONT></H3>
<P>The File Browser gives you the ability to inspect and manipulate files and directories. The File Browser is shown in Figure 31.12.
</P>
<P><A NAME="Fig12"></A><A HREF="javascript:displayWindow('images/31-12.jpg',569,284 )"><IMG SRC="images/31-12t.jpg"></A>
<BR><A HREF="javascript:displayWindow('images/31-12.jpg',569,284)"><FONT COLOR="#000077"><B>Figure 31.12.</B></FONT></A> The File Browser.</P>
<P>It consists of four subviews that are described in Table 31.7.
</P>
<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table 31.7.</B> The File Browser subviews.
<TR>
<TH COLSPAN="2"><HR>
<TR>
<TH WIDTH="30%" ALIGN="LEFT">Subview
<TH WIDTH="70%" ALIGN="LEFT">Purpose
<TR>
<TD COLSPAN="2"><HR>
<TR>
<TD>path-label field
<TD>Shows the name of the current directory.
<TR>
<TD VALIGN="TOP">file pattern field
<TD>Allows a search pattern to be entered for choosing files for the file list.
<TR>
<TD>file list
<TD>Shows a list of file and directory names.
<TR>
<TD>contents view
<TD>Shows the contents of a selected file.
<TR>
<TD COLSPAN="2"><HR>
</TABLE>
<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 31.13.</P>
<P><A NAME="Fig13"></A><A HREF="javascript:displayWindow('images/31-13.jpg',162,69 )"><IMG SRC="images/31-13t.jpg"></A>
<BR><A HREF="javascript:displayWindow('images/31-13.jpg',162,69)"><FONT COLOR="#000077"><B>Figure 31.13.</B></FONT></A> The Path-Label pop-up menu.</P>
<P>The functions available in this menu are described in Table 31.8.
</P>
<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table 31.8.</B> The Path-Label pop-up menu functions.
<TR>
<TH COLSPAN="2"><HR>
<TR>
<TH WIDTH="30%" ALIGN="LEFT">Function
<TH WIDTH="70%" ALIGN="LEFT">Purpose
<TR>
<TD COLSPAN="2"><HR>
<TR>
<TD><TT>copy path</TT>
<TD>Copies the current pathname into the cut and paste buffer.
<TR>
<TD VALIGN="TOP"><TT>change directory</TT>
<TD>Opens a dialog box to enter the name of the directory you wish to change to.
<TR>
<TD><TT>change to home dir</TT>
<TD>Changes the file list to your home directory.
<TR>
<TD COLSPAN="2"><HR>
</TABLE>
<P>The file list pop-up menu is shown in Figure 31.14.
</P>
<P><A NAME="Fig14"></A><A HREF="javascript:displayWindow('images/31-14.jpg',158,293 )"><IMG SRC="images/31-14t.jpg"></A>
<BR><A HREF="javascript:displayWindow('images/31-14.jpg',158,293)"><FONT COLOR="#000077"><B>Figure 31.14.</B></FONT></A> The File List pop-up menu.</P>
<P>The functions available in this menu are described in Table 31.9.
</P>
<TABLE WIDTH="100%"><CAPTION ALIGN=LEFT><B>Table 31.9.</B> The File List pop-up menu functions.
<TR>
<TH COLSPAN="2"><HR>
<TR>
<TH WIDTH="40%" ALIGN="LEFT">Function
<TH WIDTH="60%" ALIGN="LEFT">Purpose
<TR>
<TD COLSPAN="2"><HR>
<TR>
<TD VALIGN="TOP"><TT>spawn</TT>
<TD>Starts another file browser on the current directory or the directory selected in the file list.
<TR>
<TD VALIGN="TOP"><TT>get contents</TT>
<TD>Shows the contents of the currently selected file in the contents view.
<TR>
<TD VALIGN="TOP"><TT>show info</TT>
<TD>Displays a view with type, size, access, and owner information for the currently selected file or directory.
<TR>
<TD VALIGN="TOP"><TT>show full info</TT>
<TD>Displays the same as above with more details such as the last access, last modification date, and time.
<TR>
<TD VALIGN="TOP"><TT>fileIn</TT>
<TD>Loads the selected file into the system by reading and evaluating Smalltalk expressions from it.
<TR>
<TD><TT>update</TT>
<TD>Rereads the directory and updates the file list.
<TR>
<TD VALIGN="TOP"><TT>execute UNIX command</TT>
<TD>Allows execution of any UNIX command through a pop-up box.
<TR>
<TD><TT>remove</TT>
<TD>Removes the selected file(s) or directory(s).
<TR>
<TD><TT>rename</TT>
<TD>Renames the selected file.
<TR>
<TD VALIGN="TOP"><TT>display long list</TT>
<TD>Shows file information in the file list. This option toggles with <TT>display short list</TT>, which is the default.
<TR>
<TD VALIGN="TOP"><TT>show all files</TT>
<TD>Displays all the files including hidden files. This option toggles with <TT>hide hidden files</TT>, which is the default.
<TR>
<TD><TT>create directory</TT>
<TD>Creates a new directory.
<TR>
<TD><TT>create file</TT>
<TD>Creates a new file.
<TR>
<TD COLSPAN="2"><HR>
</TABLE>
<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.
</P>
<H3><A NAME="Heading15"></A><FONT COLOR="#000077">The Projects Option</FONT></H3>
<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 is loaded into the environment.</P><P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="554-556.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="559-563.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 + -