📄 2-source-navigator tutorial.mht
字号:
From: <由 Windows Internet Explorer 7 保存>
Subject: Source-Navigator Tutorial
Date: Thu, 15 May 2008 14:45:05 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----=_NextPart_000_0007_01C8B69A.43B6EE60"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01C8B69A.43B6EE60
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://sourcenav.sourceforge.net/online-docs/userguide/tutorial.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" =
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML><HEAD><TITLE>Source-Navigator Tutorial</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3DISO-8859-1">
<META http-equiv=3DContent-Style-Type content=3Dtext/css>
<META content=3D"MSHTML 6.00.6000.16544" name=3DGENERATOR><LINK=20
href=3D"http://sourcenav.sourceforge.net/online-docs/cygnus2.css" =
type=3Dtext/css=20
charset=3DISO-8859-1 rel=3DSTYLESHEET></HEAD>
<BODY bgColor=3D#ffffff>
<DIV>
<TABLE class=3DTABLE cellPadding=3D1 width=3D100 align=3Dcenter =
border=3D0>
<TBODY>
<TR>
<TD align=3Dmiddle>
<P class=3DGotos><A=20
=
href=3D"http://sourcenav.sourceforge.net/online-docs/userguide/index_ug.h=
tml">Contents</A>=20
</P></TD>
<TD align=3Dmiddle>
<P class=3DGotos><A=20
=
href=3D"http://sourcenav.sourceforge.net/online-docs/userguide/intro.html=
">Previous</A></P></TD>
<TD align=3Dmiddle>
<P class=3DGotos><A=20
=
href=3D"http://sourcenav.sourceforge.net/online-docs/userguide/wrkproj.ht=
ml">Next</A></P></TD></TR></TBODY></TABLE>
<HR align=3Dcenter>
</DIV>
<H1 class=3DIntroTitle><A name=3DpgfId-1071143></A><A=20
name=3D34063></A><BR>Source-Navigator Tutorial
<DIV><IMG=20
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/tutorial-1.=
gif">=20
</DIV></H1>
<P class=3DBody><A name=3DpgfId-1104885></A>Source-Navigator scans your =
source code=20
and loads the extracted information into a project database. This =
database=20
stores all information about file names, symbol elements, and symbol=20
relationships (functions and global variables are examples of symbols).=20
Source-Navigator provides you with different browsers (graphical views) =
into the=20
project database.</P>
<H2 class=3DHeading1><A name=3DpgfId-1218750></A>Creating a New =
Project</H2>
<P class=3DBody><A name=3DpgfId-1218751></A>To create a new project, =
follow these=20
steps:</P>
<OL>
<LI class=3DNumbered>
<P class=3DBody><A name=3DpgfId-1218759></A>Create a directory in =
which to store=20
your project files. </P>
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1218760></A>Launch Source-Navigator. =
<BR><A=20
name=3DpgfId-1218761></A>In UNIX, at the command prompt, type <KBD=20
class=3DCode>snavigator</KBD> <BR><A name=3DpgfId-1218780></A>In =
Windows, open the=20
directory where Source-Navigator is located and double-click the=20
snavigator.exe icon. </P>
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1218781></A>Source-Navigator launches =
and the=20
<SPAN class=3DBold>Projects</SPAN> window appears.
<P>
<DIV><IMG=20
=
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/tutorial-2.=
gif">=20
</DIV>
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1218782></A>Click the <SPAN =
class=3DBold>New=20
Project</SPAN> button.<BR><A name=3DpgfId-1218831></A>The <SPAN=20
class=3DBold>Auto-Create Project</SPAN> dialog appears.
<P>
<DIV><IMG=20
=
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/tutorial-3.=
gif">=20
</DIV>
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1218934></A>Click the "<SPAN=20
class=3DBold>...</SPAN>" button next to the <SPAN class=3DBold>Project =
File</SPAN>=20
text box. The <SPAN class=3DBold>Open</SPAN> dialog appears. Navigate =
to the=20
project directory.<BR><A name=3DpgfId-1218949></A>Enter the name of =
the project.
<P>
<DIV><IMG=20
=
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/tutorial-4.=
gif">=20
</DIV><A name=3DpgfId-1223156></A>Click the <SPAN =
class=3DBold>Save</SPAN> button.=20
The <SPAN class=3DBold>Open</SPAN> dialog closes.=20
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1218950></A>If the <SPAN =
class=3DBold>Add=20
Directory</SPAN> text box does not point to the project directory, use =
the=20
"<SPAN class=3DBold>...</SPAN>" button to navigate to it. Click <SPAN=20
class=3DBold>OK</SPAN> when done. </P>
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1218951></A>The <SPAN =
class=3DBold>Scanning=20
Project</SPAN> progress bar appears:
<P>
<DIV><IMG=20
=
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/tutorial-5.=
gif">=20
</DIV>
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1218952></A>Once your project is =
created, the=20
<SPAN class=3DBold>Symbol Browser</SPAN> appears:
<P>
<DIV><IMG=20
=
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/tutorial-6.=
gif">=20
</DIV><A name=3DpgfId-1218971></A>The <SPAN class=3DBold>Symbol =
Browser</SPAN> is=20
empty because there are not any files in the project.=20
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1218972></A>From the <SPAN=20
class=3DBold>Windows</SPAN> menu, select <SPAN class=3DBold>Add View =
</SPAN><EM=20
class=3DArrow>-></EM> <SPAN class=3DBold>Editor</SPAN> to create a =
new file.=20
</P>
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1218981></A>The <SPAN =
class=3DBold>Editor</SPAN>=20
window appears.
<P>
<DIV><IMG=20
=
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/tutorial-7.=
gif">=20
</DIV>
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1218997></A>Enter your code and save =
the file.=20
Saving the file using either <SPAN class=3DBold>Save</SPAN> or <SPAN=20
class=3DBold>Save as</SPAN> updates the <SPAN class=3DBold>Symbol =
Browser</SPAN>.=20
<SPAN class=3DBold>Fast Save</SPAN> does not update the <SPAN =
class=3DBold>Symbol=20
Browser</SPAN> window. </P>
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1218998></A>Click the <SPAN =
class=3DBold>Symbol=20
Browser</SPAN> window to see the newly created symbol for the selected =
directory.
<P>
<DIV><IMG=20
=
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/tutorial-8.=
gif">=20
</DIV></LI></OL>
<H2 class=3DHeading1><A name=3DpgfId-1106241></A>Opening a New =
Project</H2>
<P class=3DBody><A name=3DpgfId-1218758></A>In this tutorial, existing =
source code=20
is used to create the <KBD class=3DCode>c++_demo</KBD> project.</P>
<OL>
<LI class=3DNumbered>
<P class=3DBody><A name=3DpgfId-1219026></A>In the <SPAN =
class=3DBold>Symbol=20
Browser</SPAN>, from the <SPAN class=3DBold>File</SPAN> menu, select =
<SPAN=20
class=3DBold>New Project</SPAN>.<BR><A name=3DpgfId-1219029></A>The =
<SPAN=20
class=3DBold>Auto-Create Project</SPAN> dialog appears. </P>
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1218744></A>Click the "<SPAN=20
class=3DBold>...</SPAN>" button next to the <SPAN class=3DBold>Project =
File</SPAN>=20
field. The <SPAN class=3DBold>Open</SPAN> dialog appears. Navigate to =
the <KBD=20
class=3DCode>c++_demo</KBD> directory. The path is <KBD=20
class=3DCode>.../share/demos</KBD>.
<P>
<DIV><IMG=20
=
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/tutorial-9.=
gif">=20
</DIV>
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1221920></A>Enter <KBD=20
class=3DCode>c++_demo.proj</KBD> to create the C++ demo project.
<P>
<DIV><IMG=20
=
src=3D"http://sourcenav.sourceforge.net/online-docs/userguide/tutorial-10=
.gif">=20
</DIV>
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1221971></A>Click the <SPAN =
class=3DBold>Save</SPAN>=20
button. The <SPAN class=3DBold>Open</SPAN> dialog closes.<BR><A=20
name=3DpgfId-1221963></A>If the <SPAN class=3DBold>Add =
Directory</SPAN> text box=20
does not point to the <KBD class=3DCode>c++_demo</KBD> directory, use =
the "<SPAN=20
class=3DBold>...</SPAN>" button to navigate to it. The path is <KBD=20
class=3DCode>.../share/demos</KBD>. </P>
<LI class=3DNumberedNext>
<P class=3DBody><A name=3DpgfId-1221978></A>Click <SPAN =
class=3DBold>OK</SPAN> to=20
generate the <KBD class=3DCode>c++_demo</KBD> project. </P></LI></OL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -