File | Edit | View | Templates | Project | Compiler | Run | Windows | Help
New creates an empty CSD window in which a source file may be created. Because a CSD window is sensitive to a particular language, the New option offers a submenu from which a user selects the desired language (Ada 95, C, C++, Java, VHDL or plain text).
Open offers a submenu identical to the New submenu, but then creates a dialog from which the users chooses a pre-existing file to place in the CSD editor.
Close closes the active CSD window, but does not end the pcGRASP session.
Save writes the contents of the active window to disk using the current file name.
Save As allows a filename to be assigned to a new file or save a pre-existing file under a new name.
Print generates a hardcopy of the active CSD window using the system's currently selected printer drivers.
Print Preview offers the user an on-screen approximation of the appearance of the hardcopy output.
Page Setup offers several options relating to the appearance of the hardcopy. Several of these, including paper size and source, orientation (protrait or landscape) and print margins are standard options for adjusting the setup of the hardcopy of any text file. However, there are a few options unique to pcGRASP, and these are located in the pcGRASP Print Format Options section at the bottom of the Page Setup dialog. Located here are three checkboxes labeled "Keywords in Bold," which prints bold keywords, "Comments in Italics," which italicizes comments in the source code, and "Page Header," which determines whether or not to place a header on each printed page, the content and format of which is detemrined by the contents of the Header String text box.
Any text placed within the Header String text box will be placed at the top of each page. Additionally, pcGRASP provides some basic formatting that may be used within this string. Note that left justification is the default for page headers.
&f - places the filename in the headerFor example, user John Q. Public wishes to print his name at the left of the header, the filename centered and the page number at the right of the header. The following string would be entered in the Header String box
&x - lists the file's complete path
&p - prints page numbers
&c - center justify (the text that follows)
&r - right justify (the text that follows)
and would result in the following output at the top of the page:
John Q. Public search_methods.adb Page 1
Global Preferences opens a menu with seven tabbed submenus: Workspace, Colors, CSD Window, Ada95, C, C++ and Java. Each of these submenus affects the golbal settings for a different part of pcGRASP.
Workspace offers fours options for the user. Save Workspace on Exit, when on, saves the state of pcGRASP upon exit, including which files are open, whether or not a project has been opened, etc. Load Last Workspace on Startup, when selected, will restore the most recently saved workspace when pcGRASP is started. Automatically Save File Before Compiling writes the current file to disk before executing a compile command. Autoindent Defaults ON
Colors adjusts the color syntax highlighting in the CSD Editor window.
CSD Window offers several options for adjusting the appearance of the CSD and the pretty-printing in the editor window. At the top of this tabbed menu, the default font and font size are shown. These options may be changed via the Change Font button at the upper right corner of the window. Show Data Symbols toggles the appearance of the CSD data symbols. Show Symbols toggles the appearance of the CSD unit symbols in the editor window. Show Boxes toggles the appearance of the CSD box symbols in the editor window. Intra-statement Align affects the pretty-printing style of multi-line statements during CSD generation. If this option is not selected, pcGRASP lines up the first character of each line of the statement. If this option is selected, pcGRASP indents the additional statement lines so that parentheses will line up or so that the first characters in the right hand side of an assignment statement will line up in the same column. Forced Newlines, when on, forces each statement to a separate line on CSD generation. When off, only compound statements are forced to separate lines when the CSD is generated. Auto-CSD Enabled activates the auto-generate fuction of pcGRASP (when files are loaded or code segments are inserted via the templates). Auto Line Numbers Enabled automatically re-inserts line numbers on every CSD generation.
Ada 95 offers global compiler options for Ada 95 source files. Text inserted in the Ada 95 Compile Options or Ada 95 Make Options will be passed to the Ada 95 compiler or the make command, respectively. The Default File Extension contains the extension that will be added automatically to the end of any file being saved. Ada 95 File Extensions contain valid Ada file extensions that are used when filtering files during an open or a save operation. Extensions may be added by the user, but must be in the format *.<extension> where <extension> is something like adb or ads. Multiple extensions are separated via a semicolon.
C offers global compiler options for C source files. Similar to the Ada 95 options, C Compile Options, C Make Options and C Link Options are passed to the compiler, make command and linker, respectively. The Include Path contains the directories where include files may be located. These directories should be separated by semicolons. Defines is available for any defines that have to made available to the compiler. For example, some programs require DEBUG or _DEBUG to be defined at the command line to activate debugging code. Default File Extension contains the file extension that will be appended to files at save time should they not have one. C File Extensions contain the file extensions that will be used when filtering files during an open or save operation from a C window. Extensions may be added by the user, but must be in the format *.<extension> where <extension> is something like c or h. Multiple extensions are separated via a semicolon.
C++ offers global compiler options for C++ source files. Similar to the Ada 95 options, C++ Compile Options, C++ Make Options and C++ Link Options are passed to the compiler, make command and linker, respectively. The Include Path contains the directories where include files may be located. These directories should be separated by semicolons. Defines is available for any defines that have to made available to the compiler. For example, some programs require DEBUG or _DEBUG to be defined at the command line to activate debugging code. Default File Extension contains the file extension that will be appended to files at save time should they not have one. C++ File Extensions contain the file extensions that will be used when filtering files during an open or save operation from a C++ window. Extensions may be added by the user, but must be in the format *.<extension> where <extension> is something like cpp or h. Multiple extensions are separated via a semicolon.
Java offers global compiler options for Java source files. The text in the Java Compile Options and Java Make Options are passed to the java compiler and make command, respectively. Default File Extension contains the file extension that will be appended to Java files at save time should they not have one. Java File Extensions contain the file extensions that will be used when filtering files during an open or save operation from a Java window. Extensions may be added by the user, but must be in the format *.<extension> where <extension> is something like java. Multiple extensions are separated via a semicolon. Note that the Java tabbed menu has an additrional option: Target Executable. Here, the user must select whether to compiler java source code as an application or as an applet.
The next section of the File menu contains a listing of the four most recently accessed source files. The file may be opened by selecting it from the list.
Exit pcGRASP closes all open CSD editor windows and ends the current session of pcGRASP.