| 1 | Unit VersionUnit;
 | 
|---|
| 2 | 
 | 
|---|
| 3 | // NewView - a new OS/2 Help Viewer
 | 
|---|
| 4 | // Copyright 2003-2006 Aaron Lawrence (aaronl at consultant dot com)
 | 
|---|
| 5 | // Copyright 2006-2007 Ronald Brill (rbri at rbri dot de)
 | 
|---|
| 6 | // This software is released under the Gnu Public License - see readme.txt
 | 
|---|
| 7 | 
 | 
|---|
| 8 | Interface
 | 
|---|
| 9 | 
 | 
|---|
| 10 | // This file contains the version number and history.
 | 
|---|
| 11 | 
 | 
|---|
| 12 | function GetAppVersion: string;
 | 
|---|
| 13 | 
 | 
|---|
| 14 | Implementation
 | 
|---|
| 15 | 
 | 
|---|
| 16 | const
 | 
|---|
| 17 |   Version =        'V2.19'; // $SS_REQUIRE_NEW_VERSION$
 | 
|---|
| 18 |   BldLevelVersion = '2.19'; // Embedded for IBM BLDLEVEL tool
 | 
|---|
| 19 | 
 | 
|---|
| 20 | // RELEASE PROCESS
 | 
|---|
| 21 | // - notify translators
 | 
|---|
| 22 | // - Record library versions
 | 
|---|
| 23 | // - DISABLE PROFILE
 | 
|---|
| 24 | // - TURN OFF DEBUG INFO
 | 
|---|
| 25 | // - Package: distr NewViewX_Y_Z
 | 
|---|
| 26 | // - Upload to Hobbes
 | 
|---|
| 27 | // - Test download [Yeah right]
 | 
|---|
| 28 | // - Update webpage: index, NewView news, history, download [Down]
 | 
|---|
| 29 | // - Notify eCS apps NG, OS/2 Apps NG
 | 
|---|
| 30 | //
 | 
|---|
| 31 | // HelpMgr: V1.9.0
 | 
|---|
| 32 | // ViewStub: V1.1.1
 | 
|---|
| 33 | // Install: V1.10.0
 | 
|---|
| 34 | // Components: V1.11.23
 | 
|---|
| 35 | // Library: V1.5.12
 | 
|---|
| 36 | // SPCC: V2.1.11.13
 | 
|---|
| 37 | // RTL: V2.0.4.2
 | 
|---|
| 38 | // Addon: V2.0.4
 | 
|---|
| 39 | 
 | 
|---|
| 40 | { Todo list
 | 
|---|
| 41 | 
 | 
|---|
| 42 | Emphasis: 
 | 
|---|
| 43 |   major bugs 
 | 
|---|
| 44 |   missing features that original IPF had.
 | 
|---|
| 45 |   major performance issues [none really remaining?]
 | 
|---|
| 46 |     - decoding images/text on older machines
 | 
|---|
| 47 |     - startup
 | 
|---|
| 48 | 
 | 
|---|
| 49 | - os2dbcs.inf, html40 - veit
 | 
|---|
| 50 | 
 | 
|---|
| 51 | - MAJOR keyboard navigation of links
 | 
|---|
| 52 |     - next: done
 | 
|---|
| 53 |     - previous: done
 | 
|---|
| 54 |     - enter to activate:
 | 
|---|
| 55 | 
 | 
|---|
| 56 | - MINOR: Way to identify new helpmgr.
 | 
|---|
| 57 |   A special entry point? Special value in ...? Special Window ULONG? Global mem?
 | 
|---|
| 58 |   HM_QUERY with a new value...
 | 
|---|
| 59 |   or HM_SET_USERDATA with a magic number, which returns a magic number
 | 
|---|
| 60 | - MODERATE: For Maul Publisher (Peter Koller): ability to get active help panel
 | 
|---|
| 61 | - MODERATE [ENH] Use separate programs for mail, ftp etc.
 | 
|---|
| 62 | 
 | 
|---|
| 63 | - MINOR Link control - custom cursors for default controls
 | 
|---|
| 64 |  - default cursor for rich text view
 | 
|---|
| 65 |    - don't call default window proc for wm_mousemove
 | 
|---|
| 66 |    - need to override .wmmousemove... 
 | 
|---|
| 67 |    
 | 
|---|
| 68 | - MODERATE [PERF]: New art decoder from Sergei
 | 
|---|
| 69 | - MINOR [DEBUG]: Continue removing units to keep debugger
 | 
|---|
| 70 |   e.g. Remove file dialog and color wheel to dll?
 | 
|---|
| 71 |     - problem is, my newview.dll is C-only :/
 | 
|---|
| 72 | 
 | 
|---|
| 73 | - MINOR [ENH] Option to turn off internet links. (or a warning/popup/question)
 | 
|---|
| 74 | - MINOR [ENH] Customise link colors (separately for native links vs urls)
 | 
|---|
| 75 | - MINOR [PERF] Optimise tree (global search) to not redraw if nodes not visible
 | 
|---|
| 76 | 
 | 
|---|
| 77 | Help
 | 
|---|
| 78 | - MINOR [ENH] [INST] select language to install
 | 
|---|
| 79 | - MINOR [INST] check for FAT 8.3 before installing, fail gracefully (ie. only nls files)
 | 
|---|
| 80 | 
 | 
|---|
| 81 | - MINOR hide language stuff except on param?
 | 
|---|
| 82 | - MINOR [INST] kill off viewhelp?
 | 
|---|
| 83 | 
 | 
|---|
| 84 | 
 | 
|---|
| 85 | Search enhancements/completion
 | 
|---|
| 86 | - Make AND the default
 | 
|---|
| 87 | - Skip thru search matches...
 | 
|---|
| 88 | - Case sensitive
 | 
|---|
| 89 | - Whole word only match
 | 
|---|
| 90 | - Highlight when searching All Help Files
 | 
|---|
| 91 | 
 | 
|---|
| 92 | Keyboard
 | 
|---|
| 93 | - navigation of search results
 | 
|---|
| 94 | 
 | 
|---|
| 95 | Printing
 | 
|---|
| 96 | - MEDIUM [ENH] selectable topics - requires support for multi-select in tree
 | 
|---|
| 97 | - MEDIUM [ENH] improve printing of topic to use printing control bits etc
 | 
|---|
| 98 | - MAJOR [ENH] Complete
 | 
|---|
| 99 |   - Contents
 | 
|---|
| 100 |   - Index
 | 
|---|
| 101 |   - Page/Topic numbers 
 | 
|---|
| 102 |   - Optional hidden topics?
 | 
|---|
| 103 | 
 | 
|---|
| 104 | International
 | 
|---|
| 105 | - MODERATE DBCS
 | 
|---|
| 106 |   - cursor
 | 
|---|
| 107 |   - find
 | 
|---|
| 108 | - Codepage support 
 | 
|---|
| 109 |   - file
 | 
|---|
| 110 |   - codepages in font specifications
 | 
|---|
| 111 | 
 | 
|---|
| 112 | User interface tweaks
 | 
|---|
| 113 | - Coloured tabs?
 | 
|---|
| 114 | - Topic menu: "copy link location", back, forward, previous, next
 | 
|---|
| 115 | - Open related windows when a search result is shown
 | 
|---|
| 116 |   e.g. vacpp topic ... need to parse entire file
 | 
|---|
| 117 |   do only when window is not 100%??
 | 
|---|
| 118 | 
 | 
|---|
| 119 | - Button to toggle left panel
 | 
|---|
| 120 | - Hint (popup tooltip) for links
 | 
|---|
| 121 | - Better handling of windows
 | 
|---|
| 122 |   - problem with CPPUG toc pane
 | 
|---|
| 123 |   - leaving windows smaller than screen...
 | 
|---|
| 124 | - Option: Sort top level contents, would be nice
 | 
|---|
| 125 | 
 | 
|---|
| 126 | Bugs/Compatibility
 | 
|---|
| 127 | - [eCS compat] move ini file to appropriate place. (see AE)
 | 
|---|
| 128 | - Run old hmgr...... is this possible??
 | 
|---|
| 129 |   - Additional association for *hlp;*.inf to ibmview.exe
 | 
|---|
| 130 | 
 | 
|---|
| 131 | New features
 | 
|---|
| 132 | - View all images
 | 
|---|
| 133 | - Tools - Mark Start Topic
 | 
|---|
| 134 |   (special bookmark?)
 | 
|---|
| 135 | - Help File Manager
 | 
|---|
| 136 |   - Show all found help files...
 | 
|---|
| 137 | - Show History (by date/time only - not a tree)
 | 
|---|
| 138 | - Uninstall
 | 
|---|
| 139 | - Mouse wheel
 | 
|---|
| 140 | - Free-standing notes
 | 
|---|
| 141 | - Font lib from Innotek
 | 
|---|
| 142 | - Export whole file 1 day?
 | 
|---|
| 143 | 
 | 
|---|
| 144 | Rich Text View
 | 
|---|
| 145 | - Select/copy and save support, for images.
 | 
|---|
| 146 | - if it wraps during a word that has tags within it,
 | 
|---|
| 147 |   then the tags may not be applied at the correct point.
 | 
|---|
| 148 |   ... need to remember the style at start of word as well.
 | 
|---|
| 149 | - should not lose cursor if just resizing,
 | 
|---|
| 150 |   only if text changed
 | 
|---|
| 151 | - Linked images
 | 
|---|
| 152 |     e.g. Export.hlp
 | 
|---|
| 153 | 
 | 
|---|
| 154 | Performance
 | 
|---|
| 155 | - helpmgr.dll use global filelist instead of running view.exe first
 | 
|---|
| 156 | - profiler (GpProfile)
 | 
|---|
| 157 | - Speed up bitmap decoding.
 | 
|---|
| 158 |   sledit.inf
 | 
|---|
| 159 |   slowdown is definitely in  ReadBitmapData
 | 
|---|
| 160 | 
 | 
|---|
| 161 |   10x stress test sledit
 | 
|---|
| 162 |     original: 15 secs
 | 
|---|
| 163 |     decode_string asm: 14.5 secs
 | 
|---|
| 164 |     LZW -> C DLL: 13.3 secs
 | 
|---|
| 165 | 
 | 
|---|
| 166 |     without any decoding: 10 seconds
 | 
|---|
| 167 |     so - c decode time: 3.3 secs.
 | 
|---|
| 168 |          Pas decode time: 5 secs.
 | 
|---|
| 169 | 
 | 
|---|
| 170 |     loading from file, not adding to images list: 9 s
 | 
|---|
| 171 |     loading from file, adding to images list [removed after]: 9.2 s
 | 
|---|
| 172 |     without getting any images at all (THelpFile.GetImages)
 | 
|---|
| 173 |     8.5 s.
 | 
|---|
| 174 | 
 | 
|---|
| 175 |     Therefore, we have:
 | 
|---|
| 176 |     decoding: 3.3s (c) or 5s (pascal)
 | 
|---|
| 177 |     using: 1s
 | 
|---|
| 178 |     reading file: 0.5s
 | 
|---|
| 179 |     other loading stuff: 8.5
 | 
|---|
| 180 | 
 | 
|---|
| 181 |     Observationally, original view is much faster than
 | 
|---|
| 182 |     even the C version. It must be in assembler or something.
 | 
|---|
| 183 |     I could not see any major optimisations to make in the C
 | 
|---|
| 184 |     version.
 | 
|---|
| 185 |     Scott from IBM suggested using the original functions
 | 
|---|
| 186 |     in helpmgr.dll.
 | 
|---|
| 187 |  
 | 
|---|
| 188 | - Make navigation back and forth
 | 
|---|
| 189 |   detect differences in windows and make minimum changes 1/2 day
 | 
|---|
| 190 |   zorder
 | 
|---|
| 191 | 
 | 
|---|
| 192 | Minor
 | 
|---|
| 193 | - Iconedit help for product information doesn't work
 | 
|---|
| 194 |   Something weird goin on with resource IDs.
 | 
|---|
| 195 |   Note: old view really does work.
 | 
|---|
| 196 | }
 | 
|---|
| 197 | 
 | 
|---|
| 198 | function GetAppVersion: string;
 | 
|---|
| 199 | begin
 | 
|---|
| 200 |   Result:= Version;
 | 
|---|
| 201 | end;
 | 
|---|
| 202 | 
 | 
|---|
| 203 | const
 | 
|---|
| 204 |   Vendor = 'Aaron Lawrence';
 | 
|---|
| 205 |   Description = 'NewView';
 | 
|---|
| 206 | 
 | 
|---|
| 207 |   // BLDLevel - compatible - mostly
 | 
|---|
| 208 |   EmbeddedVersion: string =
 | 
|---|
| 209 |       '@#'
 | 
|---|
| 210 |     + Vendor
 | 
|---|
| 211 |     + ':'
 | 
|---|
| 212 |     + BldLevelVersion
 | 
|---|
| 213 |     + '#@'
 | 
|---|
| 214 |     + Description
 | 
|---|
| 215 |     + #0;
 | 
|---|
| 216 | 
 | 
|---|
| 217 | Initialization
 | 
|---|
| 218 | End.
 | 
|---|