[9650] | 1 | Sourcecode for OdinBug 0.5.8
|
---|
[8634] | 2 | ============================
|
---|
| 3 |
|
---|
| 4 |
|
---|
| 5 | A. How to compile OdinBug
|
---|
| 6 |
|
---|
| 7 | 1. Create a project folder named OdinBug in your
|
---|
| 8 | VX-REXX projects folder.
|
---|
| 9 |
|
---|
[9650] | 10 | 2. Unzip this OdinBugSrc058.ZIP in this folder.
|
---|
[8634] | 11 |
|
---|
| 12 | 3. Open OdinBug.VRP using VRXedit.
|
---|
| 13 |
|
---|
| 14 | B. Conventions that are used by me in this project:
|
---|
| 15 |
|
---|
| 16 | First of all, the source is not well documented, sorry,
|
---|
| 17 | this will improve in the future.
|
---|
| 18 |
|
---|
| 19 | 1. Variables, GUI object names and INI keys for one
|
---|
| 20 | information should have one name, for instance:
|
---|
| 21 |
|
---|
| 22 | Variable name: Logfile
|
---|
| 23 | GUI Object: EF_Logfile (indicating an Entryfield)
|
---|
| 24 | INI-Key: Logfile (case sensitive!)
|
---|
| 25 |
|
---|
| 26 | I think there are two exceptions to this rule in the
|
---|
| 27 | project (these were accidents).
|
---|
| 28 |
|
---|
| 29 | 2. I do not store any information directly in a GUI object,
|
---|
| 30 | i.e. for every purpose, there exists a variable and (if
|
---|
| 31 | necessary) a GUI object. Appropriate measures have to be
|
---|
| 32 | taken to syncronize these two (or three). Check for event
|
---|
| 33 | routines tied to the entryfields on the settings page and
|
---|
[9104] | 34 | for the subroutines _GUIInit, _GUIEMailInit, _GUIRedraw and
|
---|
[8634] | 35 | _GUIRedraw2 to get an idea how I do this.
|
---|
| 36 |
|
---|
| 37 | Please, no discussion, whether this is sensible or not.
|
---|
| 38 | I want it this way in OdinBug, and I ask you to respect
|
---|
| 39 | this (but you are welcome to tell me how to do it better
|
---|
| 40 | for my next program).
|
---|
| 41 |
|
---|
| 42 | 3. User defined subroutines should start with an underscore.
|
---|
| 43 | Note: The VX-REXX IDE has a bug, which makes it crash
|
---|
[9650] | 44 | if a routine beginning with underscore is deleted. So
|
---|
| 45 | you have to rename it before deleteing it.
|
---|
| 46 |
|
---|
[8634] | 47 | Sorry, I did not know that before I introduced this
|
---|
| 48 | convention.
|
---|
| 49 |
|
---|
| 50 | 4. OdinBug does not (and should not) write anything to OS2.INI
|
---|
| 51 | or OS2SYS.INI! Everything should be written to OdinBug.INI
|
---|
| 52 | residing in the same directory as OdinBug.EXE.
|
---|
| 53 |
|
---|
| 54 | 5. OdinBug must run without it's INI file. There has to be a
|
---|
| 55 | reasonable default value for every single INI entry. If the
|
---|
| 56 | default value is empty, there has to be a line of comment
|
---|
| 57 | about that in the subroutine _INIRead.
|
---|
| 58 |
|
---|
| 59 | C. Please, share any changes you make, with me, because OdinBug
|
---|
| 60 | is still under development and I do not want different branches
|
---|
| 61 | with different bugs/features.
|
---|
| 62 |
|
---|
[9650] | 63 | D. Author:
|
---|
[8634] | 64 |
|
---|
[9650] | 65 | Herwig Bauernfeind, 10-01-2003
|
---|
[8634] | 66 | EMail: herwig.bauernfeind@aon.at
|
---|