1 /**@name Portable Windows Libaray
3 A multi-platform operating system and GUI abstraction system for
4 application development.
6 @memo A Portable Text and GUI C/C++ Class Libarary.
8 @author Equivalence Pty. Ltd.
15 {\Large{\bf Welcome to the wonderful world of PWLib}}
18 PWLib is a moderately large class library that has its genesis many years ago as
19 a method to product applications to run on both Microsoft Windows and Unix
20 X-Windows systems. It also was to have a Macintosh port as well but this never
23 Since then the system has grown to having quite good application to areas other
24 than mere Windows GUI portability. Classes for I/O portability, multi-threading
25 portability, aid in producing unix daemons and NT services portably and all
26 sorts of internet protocols were added over the years.
28 All this over and above basic "container" classes such as arrays, linear lists,
29 sorted lists (RB Tree) and dictionaries (hash tables) which were all created
30 before STL became the answer to all our prayers. Unfortunately, due to intertia
31 and the GNU C++ inadequate support of templates, this library will probably not
32 be ported to STL in the near future.
34 The library was used extensively for all our in-house products. Then we decided
35 to support the open H323 project by throwing in some of the code written for
36 one of our products. Thus, required PWLib so it got thrown into the open source
45 Detailed tutorials will almost certainly not be forthcoming. However,
46 at least giving you an indication on how to start an application would
47 be usefull, so here is the infamous "Hello world!" program.
53 class Hello : public PProcess
55 PCLASSINFO(Hello, PProcess)
60 PCREATE_PROCESS(Hello)
64 cout << "Hello world!\n";
70 The \Ref{CREATE_PROCESS} macro actually defines the #main()# function
71 and creates an instance of Hello. This assures that everything is
72 initialised in the correct order. C++ does initialisation of global
73 statics badly (and destruction is even worse), so try to put
74 everything into your PProcess descedent rather than globals.
76 A GUI application is very similar but is descended off
77 \Ref{PApplication} rather than \Ref{PProcess}, and would create a
78 window as a descendent off the \Ref{PMainWindow} class.
83 /**@name Console Mode Classes
84 This as far as possible "normalises" different operating systems to
85 a single API so the same application can be compiled without modification.
86 @memo Classes that embody operating system abstractions.
89 /**@name Base Object Class
90 @memo The base class for all other clasess in the system, plus some
91 additional low level support classes/functions eg memory management.
94 //@Include: include/ptlib/object.h
96 /**@name Container Classes
97 @memo Classes that contain other objects.
100 //@Include: include/ptlib/contain.h
101 //@Include: include/ptlib/array.h
102 //@Include: include/ptlib/lists.h
103 //@Include: include/ptlib/dict.h
104 //@Include: include/ptlib/pstring.h
106 /**@name I/O Channel Classes
107 @memo Classes that perform general I/O
110 //@Include: include/ptlib/channel.h
111 //@Include: include/ptlib/indchan.h
112 //@Include: include/ptlib/conchan.h
113 //@Include: include/ptlib/pipechan.h
114 //@Include: include/ptlib/serchan.h
115 //@Include: include/ptlib/file.h
116 //@Include: include/ptlib/textfile.h
117 //@Include: include/ptlib/sfile.h
118 //@Include: include/ptlib/filepath.h
119 //@Include: include/ptlib/pdirect.h
120 //@Include: include/ptlib/vconvert.h
122 /**@name Socket Classes
123 @memo Classes that perform Berkely Sockets I/O
126 //@Include: include/ptlib/socket.h
127 //@Include: include/ptlib/ipsock.h
128 //@Include: include/ptlib/ipdsock.h
129 //@Include: include/ptlib/udpsock.h
130 //@Include: include/ptlib/tcpsock.h
131 //@Include: include/ptlib/icmpsock.h
132 //@Include: include/ptlib/ipxsock.h
133 //@Include: include/ptlib/spxsock.h
134 //@Include: include/ptlib/ethsock.h
136 /**@name Process and Thread Classes
137 @memo Classes that handle processes, multi-threading and synchronsiation.
140 //@Include: include/ptlib/pprocess.h
141 //@Include: include/ptlib/svcproc.h
142 //@Include: include/ptlib/thread.h
143 //@Include: include/ptlib/semaphor.h
144 //@Include: include/ptlib/mutex.h
145 //@Include: include/ptlib/syncpoint.h
146 //@Include: include/ptlib/syncthrd.h
148 /**@name Miscellaneous Classes
151 //@Include: include/ptlib/args.h
152 //@Include: include/ptlib/config.h
153 //@Include: include/ptlib/ptime.h
154 //@Include: include/ptlib/timeint.h
155 //@Include: include/ptlib/timer.h
156 //@Include: include/ptlib/dynalink.h
157 //@Include: include/ptlib/sound.h
158 //@Include: include/ptlib/video.h
159 //@Include: include/ptlib/videoio.h
160 //@Include: include/ptlib/remconn.h
161 //@Include: include/ptlib/mail.h
165 /**@name Console Mode Components
167 These classes provide a large amount of higher level functionality
168 that is built on the basic Console Classes which provides the
169 Operating System abstractions.
171 @memo Non-operating system specific classes that may be used as
172 components in applications.
175 /**@name Internet Protocol Classes
178 //@Include: include/ptclib/inetprot.h
179 //@Include: include/ptclib/inetmail.h
180 //@Include: include/ptclib/mime.h
181 //@Include: include/ptclib/ftp.h
182 //@Include: include/ptclib/telnet.h
183 //@Include: include/ptclib/socks.h
185 /**@name HTTP Classes
188 //@Include: include/ptclib/http.h
189 //@Include: include/ptclib/url.h
190 //@Include: include/ptclib/html.h
191 //@Include: include/ptclib/httpform.h
192 //@Include: include/ptclib/httpsvc.h
194 /**@name ASN.1 Support Classes
197 //@Include: include/ptclib/asner.h
199 /**@name Miscellaneous Classes
202 //@Include: include/ptclib/modem.h
203 //@Include: include/ptclib/ipacl.h
204 //@Include: include/ptclib/random.h
205 //@Include: include/ptclib/cypher.h
206 //@Include: include/ptclib/pssl.h
207 //@Include: include/ptclib/pwavfile.h
208 //@Include: include/ptclib/dtmf.h
212 /**@name GUI Mode Classes
214 These classes abstract Graphics User Interface elements for use
215 by multiple platforms. Each element is implemented in the native
216 manner for that platform eg X Windows/Motif.
218 @memo Classes that embody windowing system abstractions.
221 /**@name Interactor Classes
224 //@Include: include/pwlib/interact.h
225 //@Include: include/pwlib/ilayout.h
226 //@Include: include/pwlib/titlewnd.h
227 //@Include: include/pwlib/toplwnd.h
228 //@Include: include/pwlib/mdidoc.h
229 //@Include: include/pwlib/mdiframe.h
230 //@Include: include/pwlib/scrollab.h
231 //@Include: include/pwlib/popup.h
232 //@Include: include/pwlib/balloon.h
234 /**@name Menu Classes
237 //@Include: include/pwlib/menuent.h
238 //@Include: include/pwlib/rootmenu.h
239 //@Include: include/pwlib/submenu.h
240 //@Include: include/pwlib/menuitem.h
241 //@Include: include/pwlib/menusep.h
243 /**@name Control Classes
246 //@Include: include/pwlib/control.h
247 //@Include: include/pwlib/ncontrol.h
248 //@Include: include/pwlib/pbutton.h
249 //@Include: include/pwlib/tbutton.h
250 //@Include: include/pwlib/ibutton.h
251 //@Include: include/pwlib/rbutton.h
252 //@Include: include/pwlib/checkbox.h
253 //@Include: include/pwlib/check3.h
254 //@Include: include/pwlib/choicbox.h
255 //@Include: include/pwlib/combobox.h
256 //@Include: include/pwlib/listbox.h
257 //@Include: include/pwlib/clistbox.h
258 //@Include: include/pwlib/slistbox.h
259 //@Include: include/pwlib/listview.h
260 //@Include: include/pwlib/editbox.h
261 //@Include: include/pwlib/meditbox.h
262 //@Include: include/pwlib/pwedbox.h
263 //@Include: include/pwlib/numedbox.h
264 //@Include: include/pwlib/intedit.h
265 //@Include: include/pwlib/realedit.h
266 //@Include: include/pwlib/scrollb.h
267 //@Include: include/pwlib/hscrollb.h
268 //@Include: include/pwlib/vscrollb.h
269 //@Include: include/pwlib/stattext.h
270 //@Include: include/pwlib/staticon.h
271 //@Include: include/pwlib/statrect.h
272 //@Include: include/pwlib/statbox.h
274 /**@name Dialog Classes
277 //@Include: include/pwlib/dialog.h
278 //@Include: include/pwlib/modaldlg.h
279 //@Include: include/pwlib/floatdlg.h
280 //@Include: include/pwlib/simpdlg.h
281 //@Include: include/pwlib/opendlg.h
282 //@Include: include/pwlib/filedlg.h
283 //@Include: include/pwlib/savedlg.h
284 //@Include: include/pwlib/dirdlg.h
285 //@Include: include/pwlib/fontdlg.h
286 //@Include: include/pwlib/pclrdlg.h
287 //@Include: include/pwlib/printdlg.h
288 //@Include: include/pwlib/prjobdlg.h
289 //@Include: include/pwlib/prsetdlg.h
291 /**@name Graphics Classes
294 //@Include: include/pwlib/point.h
295 //@Include: include/pwlib/dim.h
296 //@Include: include/pwlib/rect.h
297 //@Include: include/pwlib/region.h
298 //@Include: include/pwlib/colour.h
299 //@Include: include/pwlib/rcolour.h
300 //@Include: include/pwlib/font.h
301 //@Include: include/pwlib/rfont.h
302 //@Include: include/pwlib/fontfam.h
303 //@Include: include/pwlib/palette.h
304 //@Include: include/pwlib/pattern.h
305 //@Include: include/pwlib/canstate.h
306 //@Include: include/pwlib/canvas.h
307 //@Include: include/pwlib/icanvas.h
308 //@Include: include/pwlib/dcanvas.h
309 //@Include: include/pwlib/rcanvas.h
310 //@Include: include/pwlib/mcanvas.h
311 //@Include: include/pwlib/pcanvas.h
312 //@Include: include/pwlib/image.h
313 //@Include: include/pwlib/pict.h
314 //@Include: include/pwlib/pixels.h
315 //@Include: include/pwlib/pixels1.h
316 //@Include: include/pwlib/pixels2.h
317 //@Include: include/pwlib/pixels24.h
318 //@Include: include/pwlib/pixels32.h
319 //@Include: include/pwlib/pixels4.h
320 //@Include: include/pwlib/pixels8.h
322 /**@name Miscellaneous Classes
325 //@Include: include/pwlib/applicat.h
326 //@Include: include/pwlib/stdresid.h
327 //@Include: include/pwlib/resdata.h
328 //@Include: include/pwlib/rstring.h
329 //@Include: include/pwlib/caret.h
330 //@Include: include/pwlib/cursor.h
331 //@Include: include/pwlib/icon.h
332 //@Include: include/pwlib/imgicon.h
333 //@Include: include/pwlib/clipbrd.h
334 //@Include: include/pwlib/keycode.h
335 //@Include: include/pwlib/prinfo.h
336 //@Include: include/pwlib/commands.h
337 //@Include: include/pwlib/mailgui.h
341 /**@name GUI Mode Components
343 These classes provide a large amount of higher level functionality
344 that is built on the basic GUI Classes which provides the
345 GUI system abstractions.
347 @memo Non-windowing system specific classes that may be used as
348 components in applications.
351 /**@name Tool and Status Bars
354 //@Include: include/pwclib/toolbars.h
356 /**@name Window Splitter Controls
359 //@Include: include/pwclib/splitter.h
361 /**@name Wizard Dialog
364 //@Include: include/pwclib/wizard.h
366 /**@name ANSI Terminal Control
369 //@Include: include/pwclib/ansiterm.h
371 /**@name Geometric Shapes
374 //@Include: include/pwclib/shapes.h
376 /**@name Miscellaneous Classes
379 //@Include: include/pwclib/progress.h