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-2009 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.20.beta3'; // $SS_REQUIRE_NEW_VERSION$
|
---|
18 | BldLevelVersion = '2.20.beta3'; // 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 |
|
---|
143 | Rich Text View
|
---|
144 | - Select/copy and save support, for images.
|
---|
145 | - if it wraps during a word that has tags within it,
|
---|
146 | then the tags may not be applied at the correct point.
|
---|
147 | ... need to remember the style at start of word as well.
|
---|
148 | - should not lose cursor if just resizing,
|
---|
149 | only if text changed
|
---|
150 | - Linked images
|
---|
151 | e.g. Export.hlp
|
---|
152 |
|
---|
153 | Performance
|
---|
154 | - helpmgr.dll use global filelist instead of running view.exe first
|
---|
155 | - profiler (GpProfile)
|
---|
156 | - Speed up bitmap decoding.
|
---|
157 | sledit.inf
|
---|
158 | slowdown is definitely in ReadBitmapData
|
---|
159 |
|
---|
160 | 10x stress test sledit
|
---|
161 | original: 15 secs
|
---|
162 | decode_string asm: 14.5 secs
|
---|
163 | LZW -> C DLL: 13.3 secs
|
---|
164 |
|
---|
165 | without any decoding: 10 seconds
|
---|
166 | so - c decode time: 3.3 secs.
|
---|
167 | Pas decode time: 5 secs.
|
---|
168 |
|
---|
169 | loading from file, not adding to images list: 9 s
|
---|
170 | loading from file, adding to images list [removed after]: 9.2 s
|
---|
171 | without getting any images at all (THelpFile.GetImages)
|
---|
172 | 8.5 s.
|
---|
173 |
|
---|
174 | Therefore, we have:
|
---|
175 | decoding: 3.3s (c) or 5s (pascal)
|
---|
176 | using: 1s
|
---|
177 | reading file: 0.5s
|
---|
178 | other loading stuff: 8.5
|
---|
179 |
|
---|
180 | Observationally, original view is much faster than
|
---|
181 | even the C version. It must be in assembler or something.
|
---|
182 | I could not see any major optimisations to make in the C
|
---|
183 | version.
|
---|
184 | Scott from IBM suggested using the original functions
|
---|
185 | in helpmgr.dll.
|
---|
186 |
|
---|
187 | - Make navigation back and forth
|
---|
188 | detect differences in windows and make minimum changes 1/2 day
|
---|
189 | zorder
|
---|
190 |
|
---|
191 | Minor
|
---|
192 | - Iconedit help for product information doesn't work
|
---|
193 | Something weird goin on with resource IDs.
|
---|
194 | Note: old view really does work.
|
---|
195 | }
|
---|
196 |
|
---|
197 | function GetAppVersion: string;
|
---|
198 | begin
|
---|
199 | Result:= Version;
|
---|
200 | end;
|
---|
201 |
|
---|
202 | const
|
---|
203 | Vendor = 'Aaron Lawrence';
|
---|
204 | Description = 'NewView';
|
---|
205 |
|
---|
206 | // BLDLevel - compatible - mostly
|
---|
207 | EmbeddedVersion: string =
|
---|
208 | '@#'
|
---|
209 | + Vendor
|
---|
210 | + ':'
|
---|
211 | + BldLevelVersion
|
---|
212 | + '#@'
|
---|
213 | + Description
|
---|
214 | + #0;
|
---|
215 |
|
---|
216 | Initialization
|
---|
217 | End.
|
---|