![]() |
|
This section provides a summary of the all the VIDE commands available from the menus.
The File menu is used for source files. Use the Project menu to open and edit project files.
Create a new source file. Syntax highlighting doesn't take effect until you've done a File:Save as and repainted the screen.
Open an existing file.
Open an existing file for viewing. The file is read-only, and you won't be able to make any changes.
Save the current file to disk.
Save the current file using a new name you will specify.
This will close the existing file. If you've made any changes, you will be prompted if you want to save them.
Saves all currently open files.
Save the current file, then close it.
This will print send a copy of the file in the active window to the printer. So far, there is no significant formatting. There is a simple header with the file name, date, and page number on each page. The code is printed in a 9 point fixed font with about 70 lines per page. Eventually VIDE may support syntax highlighting on the printed page.
Save the current file, then open it with default browser. This command has a quick and dirty implementation, and it passes just the default file name to the system routine that opens the browser. Thus, this command can fail if the file doesn't have a full path qualification. This can happen when you type a file name in directly to the file open dialog. On MS-Windows, you must have .htm and .html files associated properly with your browser. This command won't do anything for non-HTML files. This association will usually be set automatically when you install your browser.
Exit from VIDE.
The edit menu has some basic commands to edit text in the current file.
Restores the last text deleted. Only one level. Doesn't undo insertions or position changes. Also, doesn't undo deletions greater than 8K characters.
Delete the highlighted text, and copy it to the clipboard. Standard GUI operation - use mouse to highlight region of text, then cut
Copy highlighted text to clipboard.
Paste the text on the clipboard to the current text position.
Find a text pattern in the file. Brings up a dialog.
Find the next occurrence of the current pattern in the file.
Find a pattern in the file, and replace it with a new one. Brings up a dialog.
If the cursor is over a paren character, i.e., ()[]{}, the cursor will be moved to the matching opposite paren.
This command will set (or preset if the debugger isn't running) a breakpoint on the current line. Breakpoints will be highlighted in yellow. Usually, you set breakpoints after you run the debugger, but VIDE remembers breakpoints across debugger sessions. (However, VIDE does not remember breakpoints across VIDE sessions!)
This command will delete the breakpoint on the current line.
Displays a list of the command supported by the current editor command set.
Open an existing project file. Project files all have a .vpj extension. VIDE automatically detects C/C++ or Java projects.
This will create a new C/C++ project. The options on the dialog are described in the C/C++ section of this documentation.
This will create a new Java project. The submenu allows you to create a new Applet, Windowed App, or a Console App. The details are described in the Java section of this document.
Edit the currently open project. See C/C++ or Java sections for details.
Save and close the currently open project.
Save the current project under a new name. This is useful for creating "template" projects that have specific settings for your development environment. These templates can be opened later, then saved under a new name again for the real project.
OK, I admit it. VIDE doesn't handle all cases of changes to your files. If you add a new #include to a source file, for example, VIDE won't automatically rebuild the Makefile to add this new dependency. This command helps get around that problem.
Instead of using a VIDE project, you can simply use an existing Makefile, or even a Java source file. Use this menu item to specify the Makefile or Java source file instead of a VIDE project. When you have a Makefile or Java source file selected, the Makefile will be run, or the Java source passed to the Java compiler when you click the make tool bar button.
Used to build and compile projects.
Build the project. This command first saves all your open files. It then runs make for C/C++ projects, or the Java compiler for Java projects. Errors are displayed in the message window, and you can go directly to the error by right-clicking on the error line in the message window.
Runs make with the given target: clean to clean object files, cleanall to clean objects and binaries, and cleanbin to clean binaries only. Used only for C/C++ projects.
Runs make <target> to make the target you specify. Used only for C/C++ projects.
Use this command to generate or regenerate the ctags file for the current directory. See editor ctags for more information.
For C/C++ makes, will stop the make after the current file is finished being compiled.
Runs a specified program. Allows you to specify arguments to the program.
Runs the program from the existing project. Note: VIDE does not check to recompile before running an object.
For gcc versions using gdb, this command opens a new command window to interface to the debugger with the current executable file. When used with Borland TD32, it will launch Turbo Debugger with the current executable.
Runs a basic OS shell.
Runs the V tool V App Gen.
Runs the V Icon Editor.
The Options menu allows you to customize various aspects of VIDE, including paths, editor attributes, and font. These settings are saved in a standard system place. For example, they are saved in C:/windows/vide.ini on MS-Windows. They will be in $(HOME)/.Viderc on Linux or other Unix-like systems.
This item allows you to set the paths VIDE uses to find the VIDE help system files as well as the standard help file included with the Sun JDK.
This item also allows you to specify which command shell and debugger are used. These two options are most useful on Linux/Unix systems.
You can also set the default args used when running ctags. See editor ctags. If you set the "Automatically run ctags" box, then VIDE will automatically generate a new ctags file whenever you open a project. Note that running ctags is a very fast operation.
For the MS-Windows version of VIDE, you should also select which compiler you are using. The currently supported compilers include MinGW gcc, Cygwin gcc, and Borland's BCC 5.5. The Compiler root setting is currently used only for support of the Borland C++ Compiler 5.5. See the Borland reference.
The options include:
Lets you specify the font used in the display window. The font will change in the current window, and in future windows, but not in already open windows. The font you chose will be saved in the preferences file.
The Help menu will open help files found in the directories specified in the "Help file path" and "Java path" from the Optiion->VIDE menu. In the descriptions below, the specific file used is listed, where "videpath" and "javapath" refer to these two paths.
Opens your browser with this file. Uses file videpath/videdoc/videdoc.htm.
Shows a dialog box with a command summary of the editor command set currently being used. Doesn't use a file.
Opens your browser with the VIDE Help System page. This contains links to various GNU software, g++, libraries, and HTML. This is the page distributed as the VIDE Help Package. Uses file videpath/vhelp.htm.
This will try to open the Borland WIN32 API .hlp file. The hlp format file should be available at Windows API Reference from Borland. Uses file videhelp/win32/win32.hlp first, then tries videhelp/sin32/win32.htm.
Opens the V GUI Reference Manual. Uses file videhelp/vrefman/v.htm.
Opens the top level Sun JDK Help pages. You must set the Java help path in the Options:Editor menu, and download the help files from Sun. Uses file javapath/index.html.
Opens the Sun JDK API Help pages. These cover all the standard elements and library classes of Java, and is probably the reference you will most often use. You must set the Java help path in the Options:Editor menu, and download the help files from Sun. Uses file javapath/api/index.html.
Opens a guide to HTML tags. Uses file videpath/html/index.html.
Opens a guide to HTML Cascading Style Sheets. Uses file videpath/html/css/index.html.
Standard MS-Windows Window menu.
![]()
|
![]()
| |
gdb Dialog | jdb Dialog |
Run the program being debugged from the start. You will usually want to set some breakpoints first.
Continue running program until the next breakpoint is reached.
Step into the current statement. This will break at the first statement of a called function. For non-function calls, this will have the same effect as the Next command. When you use Step or Next, the new current program line will be highlighted in red.
Step over the current statement. If the statement is a function call, the program will break after the function has returned.
Continue running the program until the current line in the editor window is reached. (gdb only)
Stop execution of the running program. (gdb only)
Move execution up stack frame.
Move execution down stack frame.
Execute until the current method returns to its caller. (jdb only)
Display args to current function. (gdb only)
Display the call stack.
Display the value of the variable highlighted in the editor window. The variable must be available in the current context of the running program. To use this command, use the mouse to highlight the variable name you want to inspect. It is easiest to double click over the symbol to highlight it. Then click this command in the dialog.
Line Print, but does indirection. Useful for C/C++ pointers. (gdb only)
Print all local variables in current stack frame.
List currently known classes. (jdb only)
Report memory usage. (jdb only)
Set a breakpoint at the current line in the editor window. To use this (and other commands that use the "current line"), first get focus to the editor window of the source file you want to work with. Then go to the line you want to work with, either with the mouse or cursor movement commands. Finally, click the Set button in the dialog box (or the Edit:Set DB menu). Breakpoints will be highlighted in yellow. Usually, you set breakpoints after you run the debugger, but VIDE remembers breakpoints across debugger sessions. (However, VIDE does not remember breakpoints across VIDE sessions!) When you hit a breakpoint, the current program line will be highlighted in red.
Delete the breakpoint set at the current line. This command isn't as easy to use as it could be because the editor doesn't highlight lines with breakpoints. The current version doesn't keep its own list of breakpoints, but relies on the debugger. Thus, you have to know in advance which line you want to debug. It is sometimes easier to just use the debugger command line interface for this. I hope this one gets better in the future.
Delete all set breakpoints.
Show all set breakpoints. Uses native debugger commands for this.
Show debugger help. Uses debugger native help command.
This program is provided on an "as is" basis, without warranty of any kind. The entire risk as to the quality and performance of the program is borne by you.
VIDE Reference Manual
Copyright © 1999-2000, Bruce E. Wampler
All rights reserved.
Bruce E. Wampler, Ph.D.
bruce@objectcentral.com
www.objectcentral.com