📄 1gettoknow.html
字号:
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Together 简介 -- 1</title>
<script language="JavaScript"><!--
function doExerciseWindow(questionURL, col, row, topPercent)
{
var wf = "";
wf = wf + "width=" + col;
wf = wf + ",height=" + row;
wf = wf + ",resizable=yes";
wf = wf + ",scrollbars=yes";
wf = wf + ",menubar=no";
wf = wf + ",toolbar=no";
wf = wf + ",directories=no";
wf = wf + ",location=no";
wf = wf + ",status=no";
var n = window.open("",
"questionWindow",
wf);
//"toolbar=no,width=500,height=500");
//windowFeatures);
// "toolbar=no,width=" + col + ",height=" + row);
var framesetString = '<FRAMESET ROWS="';
framesetString = framesetString + topPercent;
framesetString = framesetString + '%,*" frameborder=0 framespacing=2 border=0>';
n.document.write(framesetString);
n.document.write('<frame src="' + questionURL +'" name="question">');
n.document.write('<frame src="blankpage.html" name="answer">');
n.document.write('</frameset>');
n.document.write('<noframes> <body> </body> </noframes>');
}
// -->
</script>
<link href="tutor.css" rel="styleSheet" type="text/css">
</head>
<body bgcolor="white" link="#003399" alink="#999999" vlink="#000066">
<center>
<div align="left">
<p class="footnote"><span style="font-size: 9pt">
<a href="mailto:%20e.w@263.net">翻译: 李颖(e.w@263.net)</a></span></p>
</div>
<p class="head2"><font size="6"><a name="top"></a></font>Together
简介<br>
1: 主窗口(Main Window)</p>
</center>
<p><b>简介</b>将浏览 Together
的一些基本特性.
你应该从仔细观察
Together 的主窗口开始.
简介中的讨论主要是基于
Java 示例工程 <b>CashSales</b>的.</p>
<p><b>目录:</b></p>
<ul>
<li><a class="onPage" href="#opening">打开工程</a>
<li><a class="onPage" href="#mainwindow">理解主窗口的组织</a>
<li><a class="onPage" href="#mainmenu">浏览主菜单和主工具条</a>
<li><a class="onPage" href="#dock">取消面板(panes)停靠(undocking)并改变其大小</a>
<li><a class="onPage" href="#speedmenus">访问属性查看器</a>
</ul>
<p></p>
<p><img src="images/generic/rainbowline.gif" width="1273" height="2" border="0"></p>
<p class="head3"><a name="opening"></a>打开工程</p>
<p>Together 启动时首先显示 "Tip of the Day."
你必须先关闭这个窗口,
然后 Together
才开始响应你的命令.</p>
<p><img src="images/cashsales/tour1_tip_of_the_day.gif" width="440" height="291" border="0" alt="Tip of the dau" hspace="20" vspace="10"></p>
<p>Together 几乎完全在工程(projects)环境下工作.
当 Together
没有打开工程时,
它仍然可以访问文件系统.
你可以从(缺省状态下)处于主窗口左侧的 Explorer
面板中打开工程或文本文件.</p>
<p> Explorer
面板同时显示物理和逻辑的文件组织.
你可以通过它在系统物理目录中或工程中进行导航. </p>
<table border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
<tr>
<td bgcolor="#bbbbbb">
<table border="0" cellpadding="5" cellspacing="2">
<tr>
<td valign="top" bgcolor="white"> Explorer
面板以分页(tabs)的形式组织.
右侧的例图显示了三个分页.
左边的目录页同时显示你系统中的物理目录以及
Together 本身的目录结构.<p>文件名旁显示不同的图标表示不同的文件类型.
以下是三中图标: </p>
<table border="0" cellpadding="2" cellspacing="2">
<tr>
<td><img height="14" width="12" src="images/icons/textfileicon.gif" hspace="5" alt="text file icon" align="top"></td>
<td>可被 Together
编辑器打开的简单文本文件</td>
</tr>
<tr>
<td><img height="14" width="12" src="images/cashsales/togprojicon.gif" hspace="5" alt="icon" align="top"></td>
<td>Together
工程文件</td>
</tr>
<tr>
<td><img height="14" width="12" src="images/icons/genericfileicon.gif" hspace="5" alt="generic file icon" align="top"></td>
<td>编辑器无法打开的其他文件</td>
</tr>
</table>
<p></p>
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#993300" width="100%">
<tr>
<td bgcolor="#993300">
<table border="0" cellpadding="0" cellspacing="2" bgcolor="#ffffcc" width="100%">
<tr>
<td bgcolor="#ffffcc"><b>操作步骤:</b>
打开 <b>CashSales</b> Java
工程.
这是一个
Together
示例工程,
它模拟了一个简单的零售店的现金交易.</td>
</tr>
</table>
</td>
</tr>
</table>
<p>要打开 <b>CashSales</b>,
首先在目录页中展开
<b>Samples </b>| <b>java </b>| <b>CashSales</b>.
然后双击<nobr><img height="14" width="12" src="images/cashsales/togprojicon.gif" hspace="5" alt="icon" align="top"></nobr><nobr><b>CashSales.tpr</b></nobr><nobr>.</nobr></p>
</td>
<td valign="top" bgcolor="white"><img height="339" width="279" src="images/cashsales/tour1_opencs.gif" hspace="5" alt="Explorer pane" align="right"></td>
</tr>
</table>
</td>
</tr>
</table>
<p><b>
<hr>
</b>
<p class="head3"><b><a name="mainwindow"></a></b>理解主窗口的组织</p>
<p>当你打开 <b>CashSales</b>,
主窗口将分为多个面板.
Together 有四个重要的面板.
每个面板有自己的标题栏.</p>
<p> </p>
<table border="0" cellpadding="0" cellspacing="1" bgcolor="#cccccc">
<tr>
<td bgcolor="#bbbbbb">
<table border="0" cellpadding="5" cellspacing="2">
<tr>
<td bgcolor="white"><img src="images/icons/explorerpaneicon.png" width="16" height="15" border="0" alt="Icon" hspace="2" vspace="5" align="middle"></td>
<td bgcolor="white"><b>Explorer</b> <b>面板</b></td>
<td bgcolor="white">用于系统或工程浏览</td>
</tr>
<tr>
<td bgcolor="white"><img src="images/icons/editorpaneicon.png" width="12" height="14" border="0" alt="Icon" hspace="2" align="bottom"></td>
<td bgcolor="white"><b>Editor</b> <b>面板</b></td>
<td bgcolor="white">用于查看和编辑源代码和简单文本</td>
</tr>
<tr>
<td bgcolor="white"><font size="2"> <img src="images/icons/diagrampane.gif" width="13" height="14" border="0" alt="Icon" hspace="2" align="bottom"></font></td>
<td bgcolor="white"><b>Designer</b> <b>面板</b></td>
<td bgcolor="white">用于创建
UML
和其他类型的模型图,
并用于设计图形用户界面</td>
</tr>
<tr>
<td bgcolor="white"><img src="images/icons/messagepaneicon.png" width="14" height="11" border="0" alt="Icon" align="top" hspace="2" vspace="5"></td>
<td bgcolor="white"><b>Message</b> <b>面板</b></td>
<td bgcolor="white">用于显示系统消息和任务 </td>
</tr>
</table>
</td>
</tr>
</table>
<p>下图是 Together 打开 <b>CashSales</b> Java
工程后的界面. Designer
中包含两个打开的模型图.</p>
<p></p>
<p><img height="680" width="792" src="images/cashsales/tour1_mainwindow.png" hspace="5" alt="Main window"></p>
<p></p>
<p> <a name="focuspane"></a>主窗口中<b>获得<a name="focuspane">焦点</a>的面板</b>的标题栏显示为亮蓝色.
上图中 Editor
面板获得焦点.
面板与窗口类似,
点击面板将使它获得焦点.</p>
<p>面板一般根据载入内容的多少分为多个页面.
点击页面将切换到该页.</p>
<hr>
<p class="head3"><a name="mainmenu"></a>浏览主菜单和主工具条</p>
<p>主菜单包含10个不同的菜单项.
根据当前工程状态的不同,
菜单中的项目将有所变化,
如面板焦点变化,
当前选中项目变化,
以及有哪些特性被激活,
都会影响菜单项.</p>
<table border="0" cellpadding="1" cellspacing="2" bgcolor="#cccccc">
<tr>
<td bgcolor="#cccccc">
<table border="0" cellpadding="2" cellspacing="2">
<tr>
<td valign="top" bgcolor="white"><b><u>F</u>ile</b></td>
<td valign="top" bgcolor="white">与操作系统相关的命令</td>
</tr>
<tr>
<td valign="top" bgcolor="white"><b><u>E</u>dit</b></td>
<td valign="top" bgcolor="white">编辑命令以及"无限"次的取消和恢复操作
(不仅仅是编辑器中的修改,
对于大多数操作都是可以"无限"次取消和恢复的)</td>
</tr>
<tr>
<td valign="top" bgcolor="white"><b><u>S</u>earch</b></td>
<td valign="top" bgcolor="white">在多文件中搜索和替换;
在图中搜索</td>
</tr>
<tr>
<td valign="top" bgcolor="white"><b><u>V</u>iew</b></td>
<td valign="top" bgcolor="white">主窗口"查看"选项</td>
</tr>
<tr>
<td valign="top" bgcolor="white"><b><u>P</u>roject</b></td>
<td valign="top" bgcolor="white">与当前打开工程相关的命令及属性设置</td>
</tr>
<tr>
<td valign="top" bgcolor="white"><b><u>R</u>un</b></td>
<td valign="top" bgcolor="white">运行及调试工程</td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -