home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / vos2-121.zip / v / vide / videdoc.txt < prev    next >
Text File  |  1998-09-28  |  6KB  |  160 lines

  1. Preliminary Documentation for VIDE (0.1.0)
  2.  
  3. Sept 28, 1998
  4.  
  5. This is a close to acceptable release of the V IDE
  6. for GNU g++ for MS-Windows. It uses the alpha V 1.21
  7. library which is not ready for general release yet.
  8.  
  9. Even in this state, VIDE is a better way to
  10. build programs with GNU g++ on MS-Windows. This version
  11. has been tested with the mingw32 release, but not the
  12. Cygwin version, or either egcs version.
  13.  
  14. **** V Project files
  15.  
  16. This version of VIDE will work with either a V Project
  17. file, or with any makefile written for GNU make. I hope
  18. the project approach will be easier for most people.
  19. I've tried to support things for advanced make needs,
  20. but this part will still need improvement.
  21.  
  22. When you are first creating a new project (or even working
  23. with an existing program), click on the Project->New menu.
  24. You will get a dialog box with various tabbed items. Set
  25. the names you want in the Names tab. Then add source files
  26. using the Files tab. You can set defines as needed in the other
  27. tabs. Once you have added the files needed, VIDE will create
  28. a Makefile suitable to compile your project with mingw32 g++.
  29. (It will work with other g++ versions with some tweaking.)
  30.  
  31. Click on the "Make all" icon in the tool bar (or menu), and
  32. your project should be made.
  33.  
  34. **** Details of the Project Edit Dialog
  35.  
  36. Names TAB:
  37.   This pane lets you set the target name for the executable.
  38. You can also change the name of the generated makefile.
  39. Usually, you will use g++ as the compiler. The Compiler Flags
  40. line lets you pass switches to the compiler, such as -O for
  41. optomize, or whatever. The linker flags are passed to the
  42. linker, and default to what you need to compile V programs
  43. with mingw32.
  44.  
  45. Files TAB:
  46. This lets you add the names of the source files included
  47. in the project. Click ADD, and files are added without any 
  48. path name. If you need to add a relative (or absolute) path,
  49. select the file, and click Edit to hand edit the entry.
  50. Click Del to delete the selected entry. Until V adds multiline
  51. selection (someday soon), you have to add files one at a time.
  52.  
  53. Paths TAB:
  54. This let you specify the directory for the source files,
  55. the directory where you want object files to be generated,
  56. and the directory where the binary should be written to.
  57. You can also list paths for include and library directories.
  58. These are passed to g++ as the appropriate switches.
  59.  
  60. Defines TAB:
  61. There is a pool of definitions that you can have included
  62. during make time by adding them to the Active Definitions list.
  63. The pool will stay constant, while the Active side can be
  64. a bit more dynamic as you work with your project. Note that you
  65. have to supply the full g++ definition switch: -DFOO or -UNOTFOO.
  66.  
  67. Options TAB:
  68. Anything you add to this list will be written to the generated
  69. makefile at the beginning. You could use it to define your
  70. own symbols, or whatever. You can also edit the V project file
  71. directly to add targets that aren't generated automatically.
  72. Using these two mechanisms, you can build fairly complicated
  73. makefiles which will be automatically generated as you edit
  74. the project file.
  75.  
  76.  
  77. **** Working with Makefile 
  78.  
  79. VIDE really compiles your program by starting make.
  80. If you open a V project, the name of the makefile will
  81. be filled in after you open the project.
  82.  
  83. You can also compile with makefiles you've written yourself.
  84. Simply click the Select Makefile button to open a makefile.
  85.  
  86.  
  87. **** Running VIDE
  88.  
  89.  
  90. When VIDE first comes up, it has a blank message window.
  91. Results of your makes will show up in this window. To
  92. make a Makefile, you first must select which Makefile to
  93. use. Either use the makefile automatically set by opening
  94. a project file, or select a different one. You can
  95. change to different Makefiles during the same VIDE session
  96. if you need to.
  97.  
  98. VIDE currently supports three make targets:
  99.    blank (equivalent to just running make)
  100.    clean (equivalent to make clean)
  101.    <target> (allows you to specify target)
  102.  
  103. VIDE first runs the Makefile in dry run mode. It uses
  104. that output to then run the commands. It intercepts the
  105. error messages for g++ and put them in the message window.
  106. You can then right-click the error line, and VIDE will open
  107. up the file in question, and put the cursor on the offending
  108. line.  Whenever you click Make, VIDE will save the current version
  109. of your files.
  110.  
  111. All in all, I find this process much easier than running from
  112. a DOS command window.
  113.  
  114. **** VIDE Editor
  115.  
  116. This version includes a pretty decent editor based on
  117. the V texteditor class. It supports real cut and paste to
  118. other MS-Windows windows.
  119. It has syntax highlighting for C and C++ files. It has
  120. a few extra commands good for programming.
  121.  
  122. Things missing from the editor that WILL be included in
  123. future versions:
  124.     Auto indent for C and C++ code
  125.     Selectable highlight colors
  126.     Replace
  127.     Macros
  128.     Horizontal scrolling
  129.     Permanent preferences
  130.     Formatted source code printing
  131.     Automatic Code formatting to the V standard
  132.  
  133.  
  134. ***** Future features
  135.  
  136.    More editor features
  137.    Custom preferences for projects, VIDE
  138.    Ability to launch different editors on errors
  139.    C++ Class Browser
  140.    V Dialog Box builder (this one is getting close!)
  141.    Debug features
  142.      initially, output window for vDebug, and primitive 
  143.        interface to gdb
  144.      eventually, full integration with gdb
  145.    Help
  146.  
  147.  
  148. Many of the project features of this version of VIDE were
  149. contributed by Emilio Hirsch.
  150.  
  151. Currently, there is a volunteer working on the Dialog builder,
  152. and it is looking pretty nice.
  153. I hope to get working on the gdb interface next.
  154.  
  155. Help on help - I think I'd like to make help html based,
  156. so I need to know how to launch the default browser on Windows.
  157. This may end up being a part of the VIDE preferences file.
  158. It would also be good to be able to access standard Windows
  159. .hlp files.
  160.