Compare commits

...

590 Commits

Author SHA1 Message Date
Bryan Petty
59ddf31b29 This commit was manufactured by cvs2svn to create tag 'WX_2_3_1'.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/tags/WX_2_3_1@10870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-06 20:15:35 +00:00
Vadim Zeitlin
53f5e875b2 fix for rpm uninstallation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-22 00:22:44 +00:00
Vadim Zeitlin
89b6217867 finally, wx/setup.h is not needed in the .spec
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-22 00:03:40 +00:00
Vadim Zeitlin
ead9b933bf regenerated again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 23:54:57 +00:00
Vadim Zeitlin
abf6bdb786 fixed bug in baserpm.t and regenerated
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 23:45:23 +00:00
Vadim Zeitlin
156da3a922 added missing files to the RPM
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 23:32:16 +00:00
Vadim Zeitlin
65fa237423 regenerated with tmake
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 23:30:47 +00:00
Vadim Zeitlin
d1f5f7a44b wxBase compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 18:37:33 +00:00
Vadim Zeitlin
a2e91a93a8 possible compilation problem fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 18:31:43 +00:00
Vadim Zeitlin
380fc80de0 enabled all tests for the release
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 18:25:15 +00:00
Vadim Zeitlin
91bed19140 oops... fix for the fix for config.status
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 18:24:04 +00:00
Vadim Zeitlin
6fe273c192 removed obsolete files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 18:12:50 +00:00
Vadim Zeitlin
da38429d93 some warnings fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 18:12:17 +00:00
Vadim Zeitlin
1457c9030c fixed warning about multiline comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 17:53:47 +00:00
Vadim Zeitlin
3a3400520a enable all tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 17:53:35 +00:00
Vadim Zeitlin
b5fa0a3e0f 1. use tar.bz2 as sources, not tar.gz
2. fix URL in the spec files


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 17:53:19 +00:00
Vadim Zeitlin
991a575988 don't move the file to itself in AC_OUTPUT, this allows to run config.status after configure
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 17:52:21 +00:00
Vadim Zeitlin
16b0e4ac36 1. added erase and event samples to the distribution
2. tar.bz2 now unpacks into wxTOOLKIT-VERSION and not wxTOOLKIT as well


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 17:51:42 +00:00
Vadim Zeitlin
027c19bedb added ru files to the trunk, removed obsolete wxstd files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-21 17:18:26 +00:00
Václav Slavík
a914db0fb3 fixed yet another bug in wxHtmlTag's parameters parser
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-20 13:16:15 +00:00
David Webster
2004cad1ed Some OS/2 catching up.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-19 12:56:41 +00:00
Vadim Zeitlin
57fe5ed056 fixed <iostream> detection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-19 12:12:27 +00:00
Vadim Zeitlin
d6e969f677 added [bzip-]dist-only targets to the makefile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-19 08:38:47 +00:00
Václav Slavík
17092e43e5 applied patch #432997 (wxHTML added to Watcom makefiles)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-18 22:37:42 +00:00
Vadim Zeitlin
17665a2b5c implemented text styles for GTK+
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-18 17:41:33 +00:00
David Webster
58d5ad5e3c define this, wxSIZE_T_IS_UINT, for OS/2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-18 15:52:49 +00:00
Julian Smart
f45907a264 Reduced true colour icon (!) to 16 colours, updated project files and scripts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-17 22:41:45 +00:00
Julian Smart
35820dcb47 Makefile and other small corrections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-17 18:34:20 +00:00
Julian Smart
cb35465eec Canvas lib precompiled header fix; doc typos fixes; makefile.vc dbtable.cpp addition
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-17 13:32:53 +00:00
Vadim Zeitlin
8e0e4b1b64 more region tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-17 13:25:55 +00:00
Vadim Zeitlin
c4218a7403 fixed clip rect when logical coords != device ones
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-17 13:14:20 +00:00
Václav Slavík
78c1f5f1b8 fixed stream error handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-17 10:41:40 +00:00
Vadim Zeitlin
d9f9aa2d8f warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-16 22:57:20 +00:00
Vadim Zeitlin
e697316793 added GetSizer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-16 22:48:53 +00:00
Gilles Depeyrot
a45d7ab723 disable toggle button under Mac OS X (not yet implemented)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-16 21:13:35 +00:00
Gilles Depeyrot
618351fe26 added listbox creation under Mac OS X and toggle buttons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-16 21:11:32 +00:00
Vadim Zeitlin
3ebcfb769f applied patch #428104 (SetSizeHints() for wxMDIChildFrame)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-16 01:36:35 +00:00
Vadim Zeitlin
6138e469c9 oops, compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-16 01:22:07 +00:00
Vadim Zeitlin
f407580407 applied patch 433505 (MDI parent activation fix)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-16 01:21:46 +00:00
Vadim Zeitlin
1f23a1c0f0 applied 2nd part of flicker reducing patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-16 01:17:55 +00:00
Vadim Zeitlin
1dbb34ec2a applied patch 427702 (remove flicker)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10594 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-16 01:14:22 +00:00
Vadim Zeitlin
fe31f91ccb applied (part of) patch 433176 (reduce flicker)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-16 01:09:30 +00:00
Vadim Zeitlin
50567b69d6 1. improved wxKill() implementation for Win32
2. added wxKillError output parameter to wxKill
3. added wxProcess::Kill() and Exists()
4. documented all the new stuff
5. updated the sample to show it


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-16 00:59:07 +00:00
Vadim Zeitlin
b3d008dbd5 subclass status bar as any normal window to ensure that the events from the controls inside it are processed normally
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-15 23:08:23 +00:00
Vadim Zeitlin
33a8563e66 compilation fixes and some cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10590 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-15 22:55:11 +00:00
Václav Slavík
181b406894 added wxDynamicLibrary as suggested by Vadim
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-15 22:05:31 +00:00
Robin Dunn
d56cebe7a4 Added ability to use xml resource files. Still need to add ability to
subclass wxXmlResourceHandler, etc...

Added wxGridAutoEditMixin to the mixins library package.

Made ColourSelect be derived from wxButton.

Fixed a few bugs here and there, added some missing methods, etc.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-15 21:43:26 +00:00
Vadim Zeitlin
dd2c8b7c33 fix for brain dead egcs - this stupid compiler not only doesn't compile what it should but also compiles junk which it shouldn\'t!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-15 17:48:32 +00:00
Vadim Zeitlin
1c7e7d5b1e applied patch 433352 (fix for wxTextCtrl::SetForegroundColor())
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-15 16:37:14 +00:00
Julian Smart
840bb34200 Added missing settings.h include (sorry)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-15 14:34:27 +00:00
Vadim Zeitlin
19af3b06be fixed size_t == uint detection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10584 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-15 14:27:05 +00:00
Julian Smart
b0c89ddf39 Moved metafile helpers from utilsexc.cpp to utils.cpp -- seemed more appropriate!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10583 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-15 13:34:06 +00:00
Julian Smart
e949bf13c5 Sync'ed show-window flag in MDI child constructor; added initial wxKill implementation
for wxMSW


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-15 12:59:22 +00:00
Vadim Zeitlin
eaac8805cd applied patch 430963 (fix for wxRegConfig::SetPath("//foo")
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-15 11:44:07 +00:00
Vadim Zeitlin
3892380ca1 applied patch 430961 (fix for wxHashTable::Put(key, value, object)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-15 11:37:56 +00:00
Vadim Zeitlin
6721fc3852 restored (and slightly improved) wxImage::Scale() fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-15 01:30:21 +00:00
Vadim Zeitlin
4f53efae0f define wxSIZE_T_IS_UINT for Windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-15 01:15:15 +00:00
David Webster
254ccb8c06 Add dbgrid to make.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-14 22:18:18 +00:00
David Webster
fd6d5c94f8 Add the options stuff to settings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-14 22:17:56 +00:00
Kendall Bennett
d80207c344 Reverted wxFileSystem changes to image.cpp and dib.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-14 20:09:35 +00:00
Vadim Zeitlin
4a0b46a762 fixed warning about unused var
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10574 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-14 17:44:24 +00:00
Vadim Zeitlin
d014b8670e no changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-14 17:43:38 +00:00
Vadim Zeitlin
8773bc76d8 regenerated from templates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10572 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-14 17:38:17 +00:00
Vadim Zeitlin
8443e0d2cf forgot to commit - no changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-14 17:37:49 +00:00
Vadim Zeitlin
d836ee960a hopefully finally fixed the problem with ambiguous overloads of wxString::operator[] for _all_ machines
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-14 17:27:44 +00:00
Julian Smart
5c44cd0518 Fixed MDIS_ALLCHILDSTYLES bug (WS_VISIBLE needed to be added to child frame style)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-14 16:51:29 +00:00
Vadim Zeitlin
698dcdb687 regenerated again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-14 16:29:35 +00:00
Robert Roebling
f94fca1b74 I don't understand the SetIconState code in /src/frome.cpp, but
I know it is wrong. This also caused the splitter window bug.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-14 16:15:29 +00:00
Vadim Zeitlin
6c28fd3379 fixed indentation and warnings/bugs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-14 15:16:45 +00:00
Julian Smart
63dfa4e56c These add .mak (for BCB1) and .bpr (for BCB3 and 4) files for CBuilder in
each of the samples which will compile with Borland's compiler. They also
modify the start of the .cpp file so the Cbuilder IDE will accept it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-14 13:33:39 +00:00
Stefan Csomor
72a52d3f4e since somehow db does not compile properly anymore (was not tested anyway) now disabling wxUSE_ODBC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-14 10:20:51 +00:00
Julian Smart
d3211838bf Added SetOption,GetOption[Int] to wxSystemSettings. Made native MaskBlt optional.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-14 10:06:47 +00:00
Julian Smart
d0af5538d6 More contrib compilation fixes & makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-13 16:05:08 +00:00
Julian Smart
1a464ed91d Some BC++ fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10561 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-13 15:01:46 +00:00
Julian Smart
3f1802b55d Fixes to BC++ compilation in mem debug mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-13 14:49:26 +00:00
David Webster
c190ab22c0 Add USE_MENUS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-13 13:01:11 +00:00
Julian Smart
4d2c67a9da Added wxUSE_MENUS to setup0.h to make menu sample compile;
updated some makefiles


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-13 12:45:31 +00:00
Václav Slavík
35d764b08c fixed another bug in strconv
(Off by one error that did not demonstrate itself in poEdit before because
windows native convertion wasn't used due to wxLocale returning cp12xx instead
of windows-12xx. MultiByteToWideChar and WideCharToMultiByte return size of
needed buffer, not number of output characters. Author of the code didn't know
this, hence off by one.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-12 22:56:40 +00:00
Václav Slavík
93a20a27c3 more fixes for autoconf 2.50:
ac-2.50 does not use config.cache by default so we cannot use it
to pass arguments to subdirs configure scripts. Instead, we now
export some shell variables to make sure they are part of subdir
configure script's environment


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-12 22:55:23 +00:00
Václav Slavík
ecffe99226 standardized encoding names to windows-12xx and iso-8859-x forms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-12 22:53:38 +00:00
Vadim Zeitlin
b7fa390b64 removed warning about unused variable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-12 20:13:45 +00:00
Kendall Bennett
5ab8bd570e Updates to xmlres.h to allow compiling XML code into a DLL correctly.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-12 19:49:51 +00:00
David Webster
f91de7da18 must delcare methods as inline if we are going to actually inline them after the declarations or else some compilers will error in a linkage mismatch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10552 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-12 18:57:26 +00:00
Kendall Bennett
716cd4107b Commited latest SciTech changes into CVS. This includes updates to the
applet code (with changes copyright headers) as well as updates to the
wxImage and dib.cpp modules to use virtual file systems so that we can
load these objects from ZIP files correctly. The dib.cpp module was
also extensively cleaned up (although the DIB writing code does not
presently use file streams as we couldn't figure out if it was possible
to write to a ZIP file stream). The code has been tested and functions
correctly for both regular files and ZIP files.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-12 18:52:03 +00:00
George Tasker
dba2120c77 Fixed compile problems under MingW32 compiler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-12 17:20:10 +00:00
Julian Smart
4e5d213ac0 Removed fstream include which seemed unnecessary, and gave errors for BC++ 5.5 anyway.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-12 17:04:33 +00:00
David Webster
f8ed401c91 Got rid of VisualAge true/false defs with db class fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-12 13:42:44 +00:00
Julian Smart
b9e5acef4d Added geometry option to setup.h; added some missing make and project files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-12 10:14:58 +00:00
Guillermo Rodriguez Garcia
7679ac6334 For all platforms except WXMAC, the wxGIFDecoder::dgif function was
allocating 3 arrays of 4096 ints in the stack (48K) which causes
problems with Watcom. Now all platforms behave like WXMAC, i.e. the
arrays are allocated (and freed) dynamically on the heap.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-12 06:34:24 +00:00
Václav Slavík
1e48782762 fixed remaining bugs in configure.in that manifested themselves with ac-2.50; regenerated configure with ac-2.50
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 22:58:24 +00:00
Václav Slavík
9c904e251a fixed infinite loop when looking up nonexistent encoding in registry
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 22:55:01 +00:00
Julian Smart
fd85b0640e Tex2RTF: underscores now only checked for if syntax checking is on.
Removed the MDIS_ALLCHILDSTYLES style again.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10543 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 21:52:58 +00:00
Robert Roebling
33611ebbd9 Applied wxImage::Scale() patch,
Added testing code for wxSplitterWindow bug.
  Added testing code for OnEraseBackground things.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 20:03:00 +00:00
George Tasker
a4054ad1cf Changed the 'true's and 'false's back to TRUE and FALSE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 16:59:45 +00:00
George Tasker
a144affed2 Changed the 'true's and 'false's back to TRUE and FALSE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10540 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 16:54:28 +00:00
Julian Smart
5524217904 Removed redundant sections from sizeevt.tex
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 16:42:35 +00:00
Julian Smart
29acedff16 Added 'wx' prefix to a couple of functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 16:23:51 +00:00
Vadim Zeitlin
f47658bb79 compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 16:17:47 +00:00
Vadim Zeitlin
7ae8ee141c fixed broken links to string functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10536 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 15:29:34 +00:00
Julian Smart
d9dd875f00 Updated manual date, removed underscore from label
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 14:55:44 +00:00
David Webster
9aa3137d38 Needed a comment after last #endif and defined true TRUE and false FALSE for Visual Age.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 14:12:32 +00:00
David Webster
eae630f139 removed compiler warnings about assignments in logical expressions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 14:11:46 +00:00
George Tasker
04b9c5bb04 Changes to catch macros that are missing arguments - not perfect, but it will work with all our current TEX files.
Added cleaner ABORT handling in some situations
If \\end{document} is not found, then program auto-aborts after first pass to avoid hanging in some endless loop until all system resources are exhausted and the program crashes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 12:54:38 +00:00
Julian Smart
36e67c5cfc VC++ project file corrections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 12:26:25 +00:00
Vadim Zeitlin
eccf1b2c76 another attempt to fix strconv.cpp compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 12:19:06 +00:00
Julian Smart
ecf8dd3596 project file updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 10:14:35 +00:00
George Tasker
93a21d8885 Comment about wxDbGrid being added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 09:51:38 +00:00
Vadim Zeitlin
47f8e39828 extracted classes into their own files to fix alphabetic order
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10527 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 09:41:54 +00:00
Julian Smart
264b3fc80f Project file updates; cast in strconv.cpp to compile with VC++ 6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 07:49:38 +00:00
Ron Lee
c2c767d34c fingers crossed..
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 07:15:41 +00:00
Ron Lee
16f27353bc last test, really!
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 04:56:20 +00:00
Ron Lee
a888b8b891 oops.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 04:43:06 +00:00
Ron Lee
c1ea7ffbdc this time the log stuff will work, really it will..
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 04:39:27 +00:00
Ron Lee
27ef0d92ff cvs admin test..
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 04:12:28 +00:00
Ron Lee
ae4c8c5613 log test..
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 03:54:57 +00:00
Ron Lee
ca892a05f1 more admin tests.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 03:47:23 +00:00
Ron Lee
03161a30e3 testing, testing, lalala..
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 03:31:10 +00:00
Ron Lee
22e0f69977 another (semi) gratuitous commit to test the mailer script.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 03:13:09 +00:00
Ron Lee
e0f33cf107 merged 2.2 /debian changes to 2.3
(and really test the new log mailer *after* committing
 CVSROOT changes :)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 03:02:05 +00:00
Vadim Zeitlin
703e0a6940 regenerated with autoconf 2.13
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-11 01:57:57 +00:00
Vadim Zeitlin
852768d9bd fix to alphabetic order of classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 23:44:19 +00:00
Vadim Zeitlin
9148009bed fixed doc bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 23:38:49 +00:00
George Tasker
b53dc7d661 Fixed compilation if wxUSE_NEW_GRID and wxUSE_GRID are both set to 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 23:20:31 +00:00
Vadim Zeitlin
14c90e0074 another compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 23:15:02 +00:00
Václav Slavík
6232543b1b changes to work with autoconf 2.50
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 22:26:16 +00:00
Gilles Depeyrot
1f8ae82f59 corrected wxWindows library name under Mac OS X
corrected detection of wchar_t under Mac OS X
tweaked detection of pthread library under Mac OS X


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 20:20:20 +00:00
Gilles Depeyrot
7b724ca70d corrected Mac OS X resource file name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 20:17:31 +00:00
Gilles Depeyrot
79af3d3898 corrected wchar handling for Mac OS X
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 18:17:59 +00:00
George Tasker
f21b2fd89d Added code to show off wxDbGrid (contributed by Paul and Roger Gammans) in wxUSE_NEW_GRID is set to 1. If grid is not enabled, the program does not compile in the wxDbGrid portion of the sample
Fixed a bug in the SetColDef() descriptions that had the Contribs column defined as a UCHAR but the SQL data type was set to be SQL_C_SHORT when it needed to be SQL_C_UTINYINT to match the size of the UCHAR data variable
General code cleanup
TRUE/FALSE changed to true/false
Now uses new wxDbLogExtendedErrorMsg() function for reporting human readable ODBC errors


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 17:12:56 +00:00
George Tasker
fa464e825d Added wxDbGrid files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 17:09:16 +00:00
George Tasker
32a2907bd3 wxDbGrid additions contributed by Paul and Roger Gammans with additions/corrections from George Tasker
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 17:08:42 +00:00
George Tasker
882fc8a922 wxDbGrid additions
Changed all TRUE/FALSEs to true/false
General code cleanup


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 17:07:23 +00:00
George Tasker
2c257434c3 wxDbGrid additions
Changed all TRUE/FALSEs to true/false
Added wxDbLogExtendedErrorMsg() function to  retrieve human readable ODBC error information from the ODBC driver
General code cleanup


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 17:06:09 +00:00
George Tasker
209875803d wxDbGrid additions
Changed all TRUE/FALSEs to true/false
Added wxDbLogExtendedErrorMsg() function to  retrieve human readable ODBC error information from the ODBC driver


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 17:05:25 +00:00
George Tasker
edca7a8205 wxDbGrid additions - Added support for ODBC date types
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 17:04:00 +00:00
George Tasker
ffd98768ba Initialized m_startint in the constructor to avoid cloning of uninitialized value
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 17:01:25 +00:00
Vadim Zeitlin
a3f2769e09 compilation fix for SIZEOF_WCHAR_T being undefined
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 17:00:32 +00:00
Julian Smart
c862185052 Renamed project files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 11:58:30 +00:00
Julian Smart
74f8d8ed0c Renamed XRC project files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-10 11:52:51 +00:00
Vadim Zeitlin
bab1e72221 add #error for platforms with weird sizeof(wchar_t)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 23:22:44 +00:00
Václav Slavík
78d14f80e9 changed wxXML to XRC, wx/xml/*.h->wx/xrc/*.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 22:43:51 +00:00
Václav Slavík
999d9a9f79 changed wxXML to XRC, wx/xml/*.h->wx/xrc/*.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 22:18:45 +00:00
Vadim Zeitlin
447002a131 use SetForegroundWindow instead of BringWindowToTop
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 21:38:00 +00:00
Gilles Depeyrot
aec73dbba4 added CodeWarrior 5 projects for samples
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10487 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 20:22:36 +00:00
Gilles Depeyrot
6099721bfb added OpenGL sample project for CodeWarrior 5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 20:12:14 +00:00
Gilles Depeyrot
78c17f622d added dead-strip static initialization code option
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 20:08:42 +00:00
Gilles Depeyrot
c00200b862 added dead-strip static initialization code option
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 20:03:18 +00:00
Václav Slavík
298d865368 documented Kendall's change of wxHtmlWindow::LoadPage to virtual function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 19:11:24 +00:00
Václav Slavík
75829d0c1b oops, forgot to add editlbox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 19:11:16 +00:00
Vadim Zeitlin
478e6b717c applied patch 430835 (missing wxSTD breaking compilation for VC++ 5)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 17:57:06 +00:00
Vadim Zeitlin
4c5032ccd1 applied patch 428783 (fix B32 makefiles)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10480 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 17:55:09 +00:00
Vadim Zeitlin
0d8737fdcc applied patch 431596 (fixes some crashes in wxDocView classes)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 17:51:20 +00:00
Vadim Zeitlin
ef2992354c applied patch 424550 (fix compilation of the notebook sample in tabbed dialog mode)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 17:48:20 +00:00
Julian Smart
bc00e7155e Updates for 2.3.1; fixed syntax error in makefile.b32 but this probably
means that the 'version' fix for BC++ doesn't work (misapplied?)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 17:43:16 +00:00
Vadim Zeitlin
40a8907605 fixed bug 418496 (wxDC::SetClippingRegion doesn't clear the previous clipping region)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 17:40:44 +00:00
Vadim Zeitlin
638bc56cf9 fixed bug 418766 (elapsed time not initialized in wxProgressDialog)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 17:07:10 +00:00
Vadim Zeitlin
c7f9a482ec fixed bug 419079 (wxDateTime::ParseTime() didn't find am/pm)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10474 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 17:00:36 +00:00
Vadim Zeitlin
c4d305b7bd fixed bug 424212 (unworking close button in the progress dialog)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 16:49:56 +00:00
Vadim Zeitlin
ed582841a2 1. added wxAssertIsEqual() function to be used in wxASSERT()
2. made wxTrap() public, documented it


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 16:35:38 +00:00
Vadim Zeitlin
749b01f037 src/common
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 16:34:54 +00:00
Vadim Zeitlin
c8f144761c fix for crash when pressing TAB in the tree text control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 15:57:51 +00:00
Stefan Csomor
9dd11f90ad delete now does remove the item in correct synch from m_datas and m_strings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 09:11:45 +00:00
Vadim Zeitlin
53e3052c3c warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 02:01:54 +00:00
Vadim Zeitlin
b5299791f4 some fixes to wxSingleInstanceChecker error reporting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 01:56:00 +00:00
Vadim Zeitlin
7c4157904f added missing brace
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10466 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 00:27:50 +00:00
Vadim Zeitlin
7cbe4e7973 some missing c_str()s added
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-09 00:21:47 +00:00
Vadim Zeitlin
9cfadba232 regenerated files with tmake
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-08 23:57:13 +00:00
Vadim Zeitlin
4f3c5f06ff implemented wxSingleInstanceChecker for Unix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-08 23:42:59 +00:00
Vadim Zeitlin
fae9f59039 added tiny wxInitializer class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-08 23:11:15 +00:00
Kendall Bennett
38caaa61b1 Merged latest changes from SciTech code base into wxWindows CVS Tree.
Includes updates to remove Watcom compiler warnings and the latest
updates to the wxApplet code.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-08 19:37:56 +00:00
David Webster
3febf6845f Enabling the Pop Menu fix to peek at all the command messages. Required adding a secondary DoMessage to wxApp. Some textctrl work as well.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10460 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-08 15:24:37 +00:00
David Webster
153b1416a4 Add support for the eventual inclusion of the single instance code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-08 15:23:14 +00:00
Julian Smart
ae090fdb7f Support for Cygwin 1.0 (thought it worked before, but...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-08 15:04:00 +00:00
Julian Smart
ee544c1741 Altered the message loop to process implicit accelerators correctly in controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-08 11:33:22 +00:00
Robin Dunn
6124f5c48c move the tech note to a correctly named file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-08 04:26:35 +00:00
Vadim Zeitlin
ed45e26357 replaced wxYield() call in PopupMenu() by a much safer wxYieldForCommandsOnly() - fixes tree ctrl bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-08 01:47:15 +00:00
Vadim Zeitlin
58b24a564c added wxSingleInstanceChecker test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-08 01:29:59 +00:00
Vadim Zeitlin
68a602fcd2 added wxSingleInstanceChecker class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-08 01:28:49 +00:00
Stefan Csomor
f0822896b3 implemented generic clipboard, corrected event handling for radiobutton
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-07 21:05:01 +00:00
Stefan Csomor
12d67f8ad0 removed duplicate definition
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-07 21:01:39 +00:00
Stefan Csomor
662899dd60 clipboard implementation generalized
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-07 20:57:31 +00:00
Julian Smart
fd746d3050 Bug in wxDocument::Save logic corrected, whereby Save didn't save when not
first-time saved


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-07 13:30:54 +00:00
Vadim Zeitlin
b6b1d47f2c documented wxLog::Suspend/Resume
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-07 11:12:11 +00:00
Julian Smart
0ddef74db4 Updates for version change to 2.3.1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-07 10:57:58 +00:00
Robin Dunn
665bbe97a9 regenerated configure from configure.in
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-06 17:12:35 +00:00
Vadim Zeitlin
dd107c50be applied patch for compilation with gcc 3.0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-06 16:51:53 +00:00
Robin Dunn
014e19de74 Updated version numbers to 2.3.1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-06 16:50:48 +00:00
Robin Dunn
7ca4d1212e Added technote about where the version numbers are located.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-06 16:44:25 +00:00
Vadim Zeitlin
448450723a applied patch 429317 (PCH fix for BC++)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-06 16:29:51 +00:00
Vadim Zeitlin
83c22707a4 fixed slider value rounding once again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-06 16:27:45 +00:00
Vadim Zeitlin
350ba193e5 another fix for enter processing in wxSpinCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-06 14:54:29 +00:00
Julian Smart
9e3cb9eefc Fixed memory leak in textcmn.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-06 11:17:30 +00:00
Julian Smart
fae5c45283 Correction to accelerator bug fix: add FVIRTKEY if ctrl, alt or shift
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-06 11:11:58 +00:00
Julian Smart
2317bff237 Only add FVIRTKEY if isVirtual is TRUE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-06 10:46:00 +00:00
Vadim Zeitlin
5b6d6b7008 fixed bug in determining the best listbox size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-06 00:05:42 +00:00
Robin Dunn
b5ff2fbd94 Fixed to recognise the FINAL=hybrid make flag and to then use the
right library.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-05 22:06:06 +00:00
Robin Dunn
0fb9cd0135 Added functions to initialize the local wxModules since it's possible
(normal in wxPython) for these modules to be loaded AFTER
wxModule::InitializeModules has been called for the rest of wx.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-05 22:05:05 +00:00
Robin Dunn
ea89ec1760 Changed WXDLLEXPORT's to WXXMLDLLEXPORT so the xmlres library can be
used from wx DLL without it being a DLL also.  Some work will still
need to be done for making xmlres be a DLL...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-05 22:03:02 +00:00
Stefan Csomor
a763ac036b unnecessary ClipRects
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-05 21:23:32 +00:00
Stefan Csomor
fd2e20ff9c reverted some redrawing optimizations due to redraw errors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-05 20:33:00 +00:00
Vadim Zeitlin
7f017c64bb applied patch 430452 (mingw32 compilation fixes)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-05 20:32:09 +00:00
Gilles Depeyrot
0c71220c86 remove xpm files replaced with internal xpm decoder/handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-05 19:08:38 +00:00
Gilles Depeyrot
898844403e removed useless defines
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-05 19:03:37 +00:00
Gilles Depeyrot
f9e45bd7de corrected instructions for MacHeaders precompilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-05 18:53:41 +00:00
Vadim Zeitlin
f51a6f6a0c let wxSpinCtrl process the enter key
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-05 17:10:33 +00:00
David Webster
39c26ef2d7 Size updates and new methods to export.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-04 19:03:35 +00:00
Václav Slavík
744442dd11 display file name correctly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-03 18:01:27 +00:00
Václav Slavík
5c3e299e08 added wxUSE_INTL around wxLocale::GetSystemEncoding
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-03 16:19:36 +00:00
Václav Slavík
030c0beade fixed stupid memory leak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-03 16:19:17 +00:00
Stefan Csomor
c36f02449b added GetControlBounds for accessing contrl.rect
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-03 10:29:00 +00:00
Václav Slavík
a92b8709d9 added code to set wxFont's default encoding to wxLocale::GetSystemEncoding()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-03 09:43:52 +00:00
Václav Slavík
cc0c7cd8a5 fix for wxFrame's last focus bug (finally?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-03 09:43:36 +00:00
Vadim Zeitlin
161f4f7380 applied Unicode fixes for mingw32 (patch 429654)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-03 02:58:56 +00:00
Václav Slavík
2ec6905c69 fixed new charset detection code (langinfo.h not included in intl.cpp; langinfo.h not neccessary in strconv.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-02 11:25:21 +00:00
Václav Slavík
c3d62ecf55 fixed bug #429351 (compilation broken in CJK environment (whatever it is) in 'agrave' definition)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-01 21:47:27 +00:00
Václav Slavík
938123ef4d added alignment style to wxStaticText handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-01 21:47:13 +00:00
Robin Dunn
be329a3de3 Allowed MSW wxTrextCtrl styling to also set the background colour,
added wxUSE_RICHEDIT2 so this can be disabled for compilers that don't
have the right structures.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-01 19:26:57 +00:00
Robin Dunn
4ceb1196bb Translated a double click into just a second click for Scintilla
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-01 18:42:09 +00:00
Vadim Zeitlin
3765e93695 fixed problem with HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-01 15:34:08 +00:00
Vadim Zeitlin
e80591b930 compilation fix for old mingw32
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-01 15:26:02 +00:00
Václav Slavík
a324685268 added wxBU_* styles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-01 12:23:46 +00:00
Václav Slavík
4c584912b5 added wxNO_BORDER style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-01 12:23:37 +00:00
Vadim Zeitlin
82713003dc fix for last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-01 01:30:51 +00:00
Václav Slavík
dbae17a2e0 yet another attempt to wxFrame's last focus bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-31 23:02:06 +00:00
Vadim Zeitlin
803c553734 Unix compilation fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-31 21:41:44 +00:00
Vadim Zeitlin
dccce9eae1 added wxLocale::GetSystemEncoding
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-31 20:27:37 +00:00
Vadim Zeitlin
0d6ae333cd fixed right click handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-31 19:18:44 +00:00
Vadim Zeitlin
0731c594f4 oops... removed test code from the sample, what was it doing there for the last 7 months
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-31 14:33:17 +00:00
Vadim Zeitlin
3dd9b88ac2 we now send iconize events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-31 14:32:06 +00:00
Robin Dunn
bf7945cef1 Added EVT_GRID_EDITOR_CREATED and wxGridEditorCreatedEvent so the user
code can get access to the edit control when it is created, (to push
on a custom event handler for example.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-31 06:23:06 +00:00
Robin Dunn
2910484954 Forgot to check-in this change last week...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-31 06:21:30 +00:00
Stefan Csomor
e42eaa04de removed unnecessary ClipRect calls, refresh on MacActivate with eraseBkgnd false
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-31 05:44:07 +00:00
Stefan Csomor
493c9f6bb2 adapted to new sending for radiobutton events for unselecting too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-31 05:42:50 +00:00
Vadim Zeitlin
8d8bd2496e fixed wxFrame::SetClientSize() with toolbar bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-30 21:05:23 +00:00
Stefan Csomor
fdaf613add rewrite to avoid unnecessary redraws
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-30 20:46:00 +00:00
Robert Roebling
87dde0b5fc Forgot ! in wxTreeCtrl flag test.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-30 15:53:35 +00:00
Stefan Csomor
8803596043 corrected update upon activate
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-29 21:15:27 +00:00
Stefan Csomor
9eed87190a adapted background color for mac for listcontrols
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-29 21:12:26 +00:00
Stefan Csomor
ed4ddd3393 adapted background color for mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-29 21:11:26 +00:00
David Webster
030c24fb9a Add gridctrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-29 18:59:46 +00:00
David Webster
1ec46a5b35 Lots of OS/2 Updates mirroring msw updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-29 18:59:17 +00:00
David Webster
30bc4a8fc0 New grid control OS/2 compile issue
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-29 18:58:02 +00:00
Václav Slavík
43ef6d9ec7 applied patch #427244 (wxrcedit improvements: XRC version upgrade)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-29 18:21:09 +00:00
Stefan Csomor
342ae8aedf activated dynlib
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-29 17:52:44 +00:00
Stefan Csomor
763ca781fa updated mac implementation to support the success parameter , the new filename2filespec call and reintroduced the disappeared dllClose definition
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-29 17:49:34 +00:00
Stefan Csomor
c257d44dd2 corrected GetCharWidth and implemented MacSuperChangedPosition for toolbars
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-29 14:37:43 +00:00
David Webster
ea7d85eb85 Menu files for OS/2 builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-29 03:49:36 +00:00
David Webster
ad7f3189f3 Various fixes in DC's, ownerdrawn menu items, etc...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-29 03:46:50 +00:00
Vadim Zeitlin
5c737c4c37 link preventing typo fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-28 18:55:40 +00:00
Vadim Zeitlin
7ac05a91ab compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-28 15:05:05 +00:00
George Tasker
597fadcef5 Informix fixes (submitted by Roger Gammans)
Added .c_str() to some wxString instances when being Printf()'d into another wxString


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-28 12:24:22 +00:00
George Tasker
9e4d1095ea Fixed #pragma interface mismatches
Updated comments


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-28 12:10:04 +00:00
George Tasker
412394b831 Fixed incorrect creation of the pColFor instances (per Roger Gammans patches). This fixes surious crashes with large database systems, and significantly increases the speed of the application when idntifying all datasource tables.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-28 12:02:51 +00:00
Václav Slavík
66080691b1 fixed parsing of comments before root node
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-28 10:37:11 +00:00
Ryan Norton
832fedf6a5 Initial revision
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-28 04:45:41 +00:00
Robert Roebling
32ea1f988d wxDC::DrawPolygon correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 19:18:07 +00:00
Robert Roebling
b77d96500a wxTreeCtrl Mac look
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 19:17:10 +00:00
Vadim Zeitlin
68275b8532 really fixed wxConfig bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 19:01:38 +00:00
Vadim Zeitlin
e1b8d4d841 fixed wxConfig bug I've introduced yesterday
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 18:53:26 +00:00
Vadim Zeitlin
0537351f78 regenerated from tmake templates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 16:22:36 +00:00
Vadim Zeitlin
622be94c78 removed log record
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 16:19:54 +00:00
Vadim Zeitlin
d10f4bf950 applied tons of wxGrid patches
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 15:22:28 +00:00
Vadim Zeitlin
1fd4a033f4 applied patch 422308 (fixes for version info for wxWin DLL)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 14:20:38 +00:00
Vadim Zeitlin
dead66baf5 removed wxCLIP_CHILDREN style from wxSplitterWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 14:10:17 +00:00
Václav Slavík
4a41c655e8 yet another attempt to fix LastFocus bug in wxFrame
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 14:01:18 +00:00
Vadim Zeitlin
86f65864f9 fixed bug reported in patch 427696 (incorrect toolbar style)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 13:25:01 +00:00
Vadim Zeitlin
3aa467b63e applied patch 427695 (initialize m_nPush)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 13:21:16 +00:00
Robert Roebling
c22886bdaf Tried to make wxTreeCtrl on Mac look more Maccy. Part I.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 13:07:09 +00:00
Vadim Zeitlin
4bc1afd502 added text style support to wxTextCtrl for MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 03:28:28 +00:00
Vadim Zeitlin
1341230e80 oops, typo leading to compilation problem fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 03:11:49 +00:00
Vadim Zeitlin
0da25f69ba fixed 'patch' #422993 (Error in wxConfigBase::Write for doubles)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 02:23:16 +00:00
Vadim Zeitlin
e3d0aa773d added popup menu demo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 02:16:09 +00:00
Václav Slavík
ada8f80775 another attempt to fix wxPanel/wxFrame::m_winLastFocused handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-26 22:20:33 +00:00
Robert Roebling
b192a24c92 Fix cvs conflict.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-26 21:11:10 +00:00
Robert Roebling
2301e28195 Implemented LAST_NOT pen style for orthogonal lines.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-26 21:10:16 +00:00
Stefan Csomor
97af5088ec clipboard reading
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-26 19:54:46 +00:00
Stefan Csomor
99918ac7f3 changed Mac Mouse Moved Hysteresis (area in which mouse movements do NOT generate a moved event) to a single point region for platform compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-26 15:47:14 +00:00
Stefan Csomor
cd378f94be corrected wxIsAbsolutePath for new Mac Path notation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-26 13:41:23 +00:00
Stefan Csomor
a2f94f406e corrected transparency in DoDrawIcon , if there is a mask in the icon, it's used
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-26 12:44:46 +00:00
Václav Slavík
e7f8e8b788 removed stubs and qt 'ports'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-26 10:05:06 +00:00
Václav Slavík
453507f22c fixed memory leak in DoPrint
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-26 10:04:03 +00:00
Stefan Csomor
4ce431b02b correct bitmap construction (including mask) from image
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-26 07:52:12 +00:00
David Webster
008089f632 Added some extended styles to OS/2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-25 21:12:00 +00:00
Gilles Depeyrot
a694a0c6c4 corrections to directory management for Mac OS X
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-25 19:10:52 +00:00
Vadim Zeitlin
226ee02213 fixed calendar control height calculation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-25 13:35:22 +00:00
Vadim Zeitlin
89a0a3220b fixed bug with using wxCommandEvent::GetInt() instead of GetId()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-25 13:31:11 +00:00
George Tasker
31ad62bc09 Changes to detect unresolved references (REF NOT FOUND) during HTML conversion
Filenames with underscores are no longer reported as errant uses of '_' character
Minor GUI display tweeks.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-25 13:02:53 +00:00
George Tasker
c0ffb626ed Fixed unresolved references
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-25 12:47:00 +00:00
Robin Dunn
862fed9394 Added a "rpm" target so you can just do "make rpm" and it should do
the right thing


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-25 07:01:32 +00:00
Robin Dunn
0f7deca925 Fixed the problem of the RPM having the builder's user and group id
and complaining about it during install.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-25 07:00:12 +00:00
George Tasker
7e2f3297f0 Replaced \verb$....$ with \tt{....}
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-25 00:40:06 +00:00
George Tasker
341479ffb9 Removed check for '\par' at beginning of line that I mistakenly added before
Standardized the way I spelled 'curley' everywhere


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 23:37:39 +00:00
Vadim Zeitlin
c786f76365 fixed wxBase compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 21:36:41 +00:00
Vadim Zeitlin
8efab359f7 fixed compilation with NO_GUI
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 21:36:11 +00:00
Vadim Zeitlin
520d193622 some broken links fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 21:35:34 +00:00
Vadim Zeitlin
44bb263ab2 broken link fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 21:26:42 +00:00
Stefan Csomor
bedaf53eaf reverting to native mac pathnames
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 21:22:04 +00:00
Stefan Csomor
504aaaad1d added generic dir dlg
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 21:19:20 +00:00
George Tasker
c55dea6070 Compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 18:31:49 +00:00
Vadim Zeitlin
033400ebcb fix for egcs internal compiler error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 17:20:22 +00:00
George Tasker
b74d0665b5 Added documentation for the new -checkcurleybraces and -checksyntax commandline parameters for tex2rtf
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 16:59:28 +00:00
George Tasker
fad535eea3 Added '_' checking that warns of the use of "_" or "\_" in the wrong places
Added syntax checking for common documenting problems that tex2rtf does not handle properly (like \begin{verbatim} and others needing to be on a line by themselves)
Syntax checking and curley brace matching can be turned on via the commandline, or the new OPTIONS menu choice if using a GUI.  Both are OFF by default to match current behavior
Compilation again possible now if wxUSE_DEBUG_CONTEXT is set to 0 in setup.h
Various GUI glitches fixed


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 16:54:19 +00:00
Gilles Depeyrot
a217777fb3 added missing check for wxUSE_JOYSTICK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 16:07:47 +00:00
George Tasker
6aa358aebb Fixed more '_' issues
Fixed all places that \begin{verbatim} and \end{verbatim} were not on lines by themselves (which tex2rtf cannot handle).
Changed all \verb$....$ occurrances to \tt{....}


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 16:03:25 +00:00
David Webster
2b0ec34b1a Adding borders to OS/2 objects
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 16:01:45 +00:00
David Webster
91b5f3bc57 Add RemoveChild
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 13:24:03 +00:00
Vadim Zeitlin
a3dafe8784 removed \small before \verbatim
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 13:07:37 +00:00
George Tasker
e72403492b Added '\' before all '_' chars that were not inside VERBATIM blocks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 10:39:33 +00:00
George Tasker
a66abda9d3 Removed the '\' quote on some '_' characters where it should not have been (inside verbatim blocks)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 10:01:59 +00:00
George Tasker
2e64ba46bf Moved '\label' tag to the correct line, allowing tex2rtf to correctly build docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 09:20:04 +00:00
Vadim Zeitlin
509cd921bf some minor fixes to ODBC docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-24 00:02:21 +00:00
Václav Slavík
de243b058f fixed bug in wxFrame::OnActivate
(added virtual void RemoveChild() which make sure OnActivate
won't accidentally use invalid m_winLastFocused ptr)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-23 17:02:18 +00:00
Robin Dunn
faa20af7d4 some minor changes for the installer flags
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-23 15:05:41 +00:00
Julian Smart
ba33f035da Added missing files to listing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-23 14:52:32 +00:00
Vadim Zeitlin
94f562a279 fixed broken links
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-23 14:39:16 +00:00
George Tasker
2015ec3378 All the major ODBC changes for 2.3 logged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-23 14:10:36 +00:00
George Tasker
69a2b59d53 Removed TABs that had gotten in to the source
Added more feature tests to the sample


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-23 13:48:04 +00:00
George Tasker
081eb1b120 Removed TABs that had gotten in to the source
Added more INTERBASE support fixes


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-23 13:46:59 +00:00
George Tasker
9082f1a970 Removed TABs that had gotten in to the source
Added assert if user tries to create a column name longer than the max supported column name length
Added more INTERBASE support fixes
Added a SQLServer7 fix for ASC/DESC support


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-23 13:45:50 +00:00
George Tasker
2f9719249b Removed TABs that had gotten in to the source
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-23 13:39:40 +00:00
George Tasker
a096358cc7 Fixed a missing '}'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-23 11:19:05 +00:00
Stefan Csomor
5b74c3ac7c added mouse down before activate event in background window
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-23 06:50:57 +00:00
Stefan Csomor
2883443e90 scrollbar fixes and workaround for redraw problems w/o erase , setbitmap triggers refresh
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-23 06:24:17 +00:00
Stefan Csomor
a49afa93ca scrollbar fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-23 06:15:16 +00:00
Václav Slavík
06f3c649c9 applied workaround patch to get rid of crashes in wxrcedit on MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 22:04:00 +00:00
Václav Slavík
2adaf5969f implemented wxGetSingleChoiceIndex version that takes wxArrayString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 22:03:40 +00:00
Václav Slavík
646a007c2c fixed wxSpinButton handler (did refer to spinbutton nodename, not wxSpinButton class)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 22:03:33 +00:00
Václav Slavík
1a3cb2caf8 fixed ID handling in 'unknown' handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 22:03:24 +00:00
Václav Slavík
9c9fc51ba7 XMLCTRL() macro now uses wxDynamicCast in debug builds
(should help in catching typo bugs when accessing XRC controls)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 22:02:53 +00:00
Robin Dunn
3b1ca90e5a Some distribution tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 18:22:04 +00:00
Robin Dunn
e59a8895bc Fixed "make dist" so it doesn't try to copy some files that don't exist
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 17:57:05 +00:00
David Webster
804c69d3d1 Fixes errno.h problems with OS/2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 17:25:57 +00:00
David Webster
65b851bbdd Fixes errno.h problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 17:25:39 +00:00
David Webster
3eada58e7a Fixes errno.h problems and enable joystick code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 17:25:21 +00:00
Robin Dunn
84a81942dd Updated SWIG generated code for wxGTK version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 16:58:26 +00:00
Robin Dunn
1fb264fd5a Changed IDs used for the popup menu
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 16:02:58 +00:00
Julian Smart
e1190518b6 Corrected recursive GetToolMargins()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 15:16:28 +00:00
Vadim Zeitlin
6bec54e128 wxCommandEvent::IsChecked() now returns the toolbar button checked status as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 14:02:17 +00:00
Vadim Zeitlin
36202885d4 fix for discrepancies between wxNotebookEvent and wxNotebook GetSelection() results
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 14:01:02 +00:00
Vadim Zeitlin
f139dfe8e3 always return a non NULL font from wxLoadFont
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 13:26:01 +00:00
Julian Smart
92f5ff59cc Replaced typedef with #define for VC++ 1.5, to prevent 'no constructor' error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 10:56:54 +00:00
Robin Dunn
25832b3f2b changed version number
A few final twaeks and fixes


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-22 05:59:09 +00:00
Vadim Zeitlin
6d5b2a57cf tried to fix the accel string drawing in the owner drawn menu items
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-21 23:58:58 +00:00
Vadim Zeitlin
c48269b9f7 fixed memory leak in colour parsing code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-21 23:22:26 +00:00
Vadim Zeitlin
7561aacd5e fix for releasing the HDC in WM_DRAWITEM handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-21 23:10:31 +00:00
Vadim Zeitlin
5260937e74 (blind) fix for joystick compilation problems
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10260 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-21 22:49:40 +00:00
David Webster
29d83fc1e5 Visualage fixes for Stefan's socket implementations, some scrolling fixes and dir fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-21 20:31:47 +00:00
David Webster
5600884ab7 Visualage fixes for Stefan's socket implementations and true to TRUE in db.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-21 20:30:24 +00:00
David Webster
2910855229 Visualage fixes for Stefan's socket implementations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-21 20:29:42 +00:00
Ron Lee
c3302e7e29 Default wxDateTime objects are now 'invalid',
changed wxDefaultDateTime definition to suit.
Removed IsValid asserts from Set methods.
Fixed broken test for validity that was checking
m_time directly.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-21 19:03:33 +00:00
Vadim Zeitlin
48c31b2853 removed extra newlines from wxLogDebugs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-21 10:31:21 +00:00
David Webster
cb71578cae Final scrolling updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-21 04:06:04 +00:00
Vadim Zeitlin
4cdc2c137e fixed usage of LOWORD/HIWORD instead of GET_[XY]_LPARAM
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-21 00:17:04 +00:00
Vadim Zeitlin
889f0b7c67 fixed wxComboBox sizing problem again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-21 00:16:35 +00:00
Václav Slavík
e6c3f404b8 New code for inserting unknown controls into resources
via <object class='unknown'>. This one even works.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-20 22:18:28 +00:00
Stefan Neis
bdfeadcac5 Included filefn.h for non-precompiled headers to
get definition of wxFILE_SEP_PATH


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-20 21:31:22 +00:00
Julian Smart
bcbb0f8309 Added dircmn.cpp to VC++ project files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10247 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-20 21:23:46 +00:00
Stefan Neis
37d92a964a Added new files gsockpm.c and dircmn.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-20 20:47:20 +00:00
Stefan Neis
0ad771924b Added gsockpm.c for OS/2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-20 20:46:29 +00:00
Stefan Neis
e4ad24c9d3 Fixed some OS/2 specific problems: EMX defines __UNIX__, which is what good
for wxGTK/wxMotif, but sometimes a problem for the PM version.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-20 16:16:27 +00:00
Stefan Neis
3958ae62ba Updated gsocket.c to current unix version, use gsockunx.h instead of gsockos2.h
Added gsockpm.c.
Hooked socket handling into main loop.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-20 13:25:28 +00:00
Václav Slavík
5d5b1c0ce0 fixed WX_APPEND_ARRAY and WX_CLEAR_ARRAY when used with dereferenced pointers (*array)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-20 11:56:20 +00:00
George Tasker
c20facdb25 Various makefiles added. Only the VC and B32 makefiles have been tested
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-20 11:32:57 +00:00
Robin Dunn
25d73e0f28 Some more tweaks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10239 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-20 02:00:31 +00:00
Robin Dunn
2b510feb17 Since there was no #include before the #if wxUSE_JOYSTICK then nothing
would ever be compiled in this module.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-20 01:21:12 +00:00
Robin Dunn
ac346f5046 Added sample to the demo for wxJoystick
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-20 01:18:39 +00:00
Vadim Zeitlin
72c71d3972 warning fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-19 23:36:50 +00:00
Václav Slavík
c989314692 -fix for a bug in parsing tag's properties with common suffixes
- some wxT() around char constants


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-19 18:00:28 +00:00
Václav Slavík
e987a489c8 Unicode compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-19 17:59:51 +00:00
Václav Slavík
af9083592b use wxTreeCtrl, not wxGenericTreeCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-19 11:57:32 +00:00
Robin Dunn
4dfaa61e60 generated code for wxGTK for all the changes made earlier today
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-19 04:12:38 +00:00
Vadim Zeitlin
442d08ce74 merged wxRegConf rename fix from 2.2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-19 01:04:25 +00:00
Vadim Zeitlin
18c5099700 1. more proper fix for wxChoice/wxComboBox height problems than in 2,2 branch
2. wxIsspace() fix merged from the 2.2 branch


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-19 01:01:21 +00:00
Vadim Zeitlin
31827af3ea renamed wxBase.dsp to wxBaseVC.dsp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-19 00:59:07 +00:00
Vadim Zeitlin
353327844e added wxDir::Traverse
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-19 00:58:05 +00:00
Robin Dunn
10e07c70d8 wxDragImage fixes and cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 23:46:30 +00:00
Robin Dunn
30aaddfe89 Added mixins subpackage to wxPython.lib
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 22:26:19 +00:00
Václav Slavík
8bc25b29f1 fixed &agrave; parsing (here too)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 22:13:30 +00:00
Robin Dunn
90b2b1303a Added wave files to the distribution scripts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 22:02:56 +00:00
Robin Dunn
493f1553fd Cleanup up the demo a bit
Added wxWave

Added another patch for SWIG that optimizes the generated code some
and eliminates some unused type mappings in the type registry.
(Reduces it by about half!)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 21:59:59 +00:00
George Tasker
c20a12bd55 XPMHAND.H dependency removed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 18:43:30 +00:00
Robert Roebling
2d4511658d Applied patch for non-Latin keyboards.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 18:39:13 +00:00
Václav Slavík
ffe107c8c0 Unicode fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 18:34:49 +00:00
Václav Slavík
0d832cf788 applied modified patch #424894 (wxrcedit & bcc compilation fixes)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 18:34:34 +00:00
Václav Slavík
8e49dc6301 regenerated
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 18:33:30 +00:00
George Tasker
5d59e67a7b Added compile-time check to be sure that wxUSE_ODBC is set to 1 before attempting to compile this program, and error out telling the user to change the setting if they want to compile this program
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 18:32:33 +00:00
Vadim Zeitlin
06b32ebe4f compilation fix for mouse hack
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 17:15:46 +00:00
Julian Smart
da7ed9b77e Bug fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 14:41:39 +00:00
Robin Dunn
856e03b753 Fixed OOR related problem in OGL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 06:53:25 +00:00
Robin Dunn
9df61a29d2 Implemented the first phase of OOR (Original Object Return). See the
text in the demo for more details of what this means, but in a
nutshell methods such as wxWindow.GetParent or FindWindowById will now
return a shadow object of the proper type if it can.  By "proper type"
I mean that if the wxWindow pointer returned from FindWindowById
really points to a wxButton then the Python object constructed will be
of a wxButtonPtr class instead of wxWindowPtr as before.  This should
reduce or eliminiate the need for wxPyTypeCast.  (Woo Hoo!)  The
objects returned are still not the original Python object, but that is
the next step.  (Although it will probably only work on Python 2.1 and
beyond because it will use weak references.)

A few other minor tweaks and fixes and additions for things found
while doing the OOR stuff.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 05:20:01 +00:00
Robin Dunn
419c299ae5 Fixed wxPoint.__cmp__ and a few others
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 02:32:22 +00:00
Vadim Zeitlin
3bdc265d9d merged fixes for accel and command event non propagation from 2.2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-17 23:46:30 +00:00
Robin Dunn
9416aa89ca Implemented the first phase of OOR (Original Object Return). See the
text in the demo for more details of what this means, but in a
nutshell methods such as wxWindow.GetParent or FindWindowById will now
return a shadow object of the proper type if it can.  By "proper type"
I mean that if the wxWindow pointer returned from FindWindowById
really points to a wxButton then the Python object constructed will be
of a wxButtonPtr class instead of wxWindowPtr as before.  This should
reduce or eliminiate the need for wxPyTypeCast.  (Woo Hoo!)  The
objects returned are still not the original Python object, but that is
the next step.  (Although it will probably only work on Python 2.1 and
beyond because it will use weak references.)

A few other minor tweaks and fixes and additions for things found
while doing the OOR stuff.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-17 22:47:09 +00:00
Stefan Csomor
6618870d16 fixed wxWindow::SetCursor( wxNullCursor) for mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-17 15:53:01 +00:00
Vadim Zeitlin
6603907dea don't annoy the user by repeating the question which had been already answered (and also make the question a bit more clear)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-17 15:51:09 +00:00
Julian Smart
5abf8c9d66 Call OnParentEnable from wxTextCtrl::Enable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-17 11:09:22 +00:00
Julian Smart
fdca68a670 Implemented OnParentEnable to allow widgets to reset their colours
after a wxWindow::Enable call


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-17 10:58:05 +00:00
Vadim Zeitlin
36bd690299 added wxLog::ClearTraceMasks()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-17 10:11:34 +00:00
Ron Lee
1912918cce typo fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-17 07:53:10 +00:00
Robin Dunn
f98de4487f Applied patch #423927, (Min size for stretch parts of wxBoxSizer)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-17 07:27:17 +00:00
Václav Slavík
4dc3fdec0c fixed wrong parsing of &agrave; (typo in tables)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 22:10:07 +00:00
Václav Slavík
c59b4b010e changed wxBitmap::CreateFromXpm to use wxBitmap(wxImage,int) ctor again -- it should work fine with BCC now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 22:07:59 +00:00
Václav Slavík
52f96deca1 removed wxImage::operator wxBitmap()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 22:07:39 +00:00
Gilles Depeyrot
2461b2e716 correction for Mac OS X (M_PI is already defined)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10183 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 21:28:54 +00:00
Gilles Depeyrot
f9d3748bc0 corrections for Mac OS X Developer Tools
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10182 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 21:20:50 +00:00
Vadim Zeitlin
a224234132 FindFocus() and wxSpinCtrl fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 16:57:08 +00:00
Stefan Csomor
3dec57adfd icon support moved to wxBitmap, allowing for fully transparent usage
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10180 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 16:23:13 +00:00
Julian Smart
513903c4f9 Made wxWindow::Enable recursive in order to solve colouring problems; forced the colour
of a wxTextCtrl back to the custom colour in wxTextCtrl::Enable. This appears
to fix inconsistent colour problems.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 15:53:11 +00:00
Vadim Zeitlin
19d7140ec2 applied patch 415912 (fixing problems with wxGrid attrs)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 13:20:31 +00:00
Stefan Csomor
27419164ad workaround for notebook/tabctrl redraw bug, it is now not excluded from the local eraseRgn of the parent window, thus guaranteeing that the background is always correct
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 12:46:51 +00:00
Stefan Csomor
ca715d8835 corrected loop for calculating the proper updatergn taking into account only real subwindows that are shown
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 12:16:59 +00:00
Julian Smart
a88acabdd2 Applied patch #418555: wxTextCtrl uses wrong background colour
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 12:01:48 +00:00
Julian Smart
19b726bbca Applied patch #403856 (utilscmn.cpp should translate special key names)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 11:54:18 +00:00
Julian Smart
69231000be Applied patch #421554: implementation of wxEVT_CONTEXT_MENU
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 11:32:21 +00:00
Julian Smart
f80eabe5a2 Applied patch #421073 (making setup options work)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10172 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 11:22:01 +00:00
Julian Smart
b07664068b Applied patch #420395 (adding wxCLIP_SIBBLINGS capability -- but not by default)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 11:14:37 +00:00
David Webster
833615dd4d More scrolling fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 03:21:53 +00:00
Vadim Zeitlin
965784669a removed useless assert from wxArray::Alloc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-16 00:19:42 +00:00
Václav Slavík
8084a109b6 applied patch that fixes paper size handling under MSW and sets PD_SELECTION correctly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-15 22:04:27 +00:00
David Webster
2b75f58067 Modest fix for executables linking to the wx dll for OS/2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-15 19:55:35 +00:00
David Webster
aa06a8fdfb Enable this sample for OS/2
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-15 19:53:48 +00:00
David Webster
e661fcd770 More scrolling stuff.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10165 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-15 19:52:31 +00:00
Václav Slavík
23ca6e208f applied patch #424066
(a bit better attempt to detect system encoding in absence of LANGINFO)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-15 17:02:43 +00:00
Julian Smart
d7dcb93990 Corrected some casting errors -> XtPointer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-15 14:51:00 +00:00
George Tasker
3f030b4804 Added buttons to allow a dump of DB DATATYPES and DB DIAGNOSTIC info via wxLogMessage() to the sample app
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10162 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-15 13:12:36 +00:00
George Tasker
5a226de062 dBase fix on creating index
General cleanup of code in the sample


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-15 01:00:56 +00:00
George Tasker
ea24eeb2db Fixed problems which prevented creation/recreation of tables with MSAcces
General cleanup of code in the sample


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-15 00:58:09 +00:00
David Webster
b7d8f285c3 More scrolling stuff
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-14 21:29:45 +00:00
Vadim Zeitlin
f5cd97870d warning fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10158 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-14 21:28:04 +00:00
Julian Smart
788722ac5c Fixes for 16-bit compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-14 16:13:12 +00:00
Julian Smart
f3d5d2b5b9 Added some missing makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-14 13:25:24 +00:00
Julian Smart
1094fecfdd Added event sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-14 12:38:04 +00:00
Julian Smart
5d2b67f7d1 Added event.rc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-14 12:37:31 +00:00
Julian Smart
059f05650b Mods to release scripts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-14 12:30:21 +00:00
Julian Smart
940718f06e Misc release-related mods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-14 10:28:27 +00:00
Václav Slavík
17766da91f fixed a lie in docs (underlining is not limited to Windows anymore)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-13 22:10:20 +00:00
Václav Slavík
cb0b3950ff now outputs errors to stderr
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-13 22:09:53 +00:00
Gilles Depeyrot
82ca6dbcf4 applied SourceForge patch #423532
ensure that menus appear correctly under Mac OS X


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-13 13:09:41 +00:00
Julian Smart
9d57991759 Removed XPM lib references from makefile
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-13 09:50:00 +00:00
George Tasker
2beca66298 Added support more support for DB2
Added support for PervasiveSQL
Fixed MSAccess testing of DROP TABLE result when the table does not exist


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 20:31:24 +00:00
George Tasker
1b12ab1641 Added support more support for DB2
Added support for PervasiveSQL


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 20:24:53 +00:00
George Tasker
ef397583df Sizer based dialogs (like wxSingleChoiceDialog) are now forced to initially appear in the visible area of the display, relocating the dialog before display so that it fits within the display (if possible). If the dialog will not fit in the display area, it is shifted so that the top edge with the title bar is visible on the display
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 20:23:58 +00:00
Gilles Depeyrot
4e0e692f03 removed old xpm code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 19:23:58 +00:00
Václav Slavík
fc5d5458a6 added wxDEFAULT_FRAME_STYLE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 18:32:28 +00:00
Václav Slavík
4def3b3595 some more src code reformatting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 18:32:17 +00:00
Robin Dunn
be52217ed3 No longer needs to create a wxApp object before making bitmaps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 17:57:09 +00:00
Robin Dunn
c2fa61e833 Changed wxRootWindow from a global to a staic variable with an
accessor function that initializes if on first use.  This prevents
core dumps for apps that try to create wxBitmaps before the wxApp
object is initialized.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 17:55:28 +00:00
Robert Roebling
a90c95aa8e Corrected wxToolBar::ToolSetBitmapSize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 17:07:54 +00:00
Julian Smart
804a46d3f7 Removed Mac-specific XPM files from mac.rsp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10127 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 16:08:39 +00:00
Julian Smart
13bf613ebd Minor mods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 13:04:31 +00:00
Stefan Csomor
aa6c945b0a corrected eventual endless loop
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 09:13:28 +00:00
Stefan Csomor
c503ab8437 corrected control update code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 08:47:17 +00:00
Stefan Csomor
be57fda609 corrected control update code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 08:16:52 +00:00
Stefan Csomor
a8cd4a3a03 redraw problems fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 07:15:43 +00:00
Stefan Csomor
65608e3bb0 maintaining 8.1 compat (defining 8.5 calls)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 06:36:18 +00:00
Stefan Csomor
2dd88c8023 removed old xpm code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-11 06:24:13 +00:00
Gilles Depeyrot
3f4902f50b conditional compilation for Universal Interfaces (3.4 or later)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 21:03:14 +00:00
Gilles Depeyrot
69db49223e conditional compilation for Universal Interfaces (3.4 or later)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 20:54:41 +00:00
Gilles Depeyrot
4114d0af4f corrected conditional compilation for Universal Interfaces (3.4 or later)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 20:52:48 +00:00
Gilles Depeyrot
3ce946d47e activate new xpm handler under Classic Mac OS after xpm handler fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 20:45:25 +00:00
Gilles Depeyrot
9fbbbd40d1 added PM_USE_SESSION_APIS for Carbon compilation under Mac OS 9
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 20:43:31 +00:00
David Webster
4284e7cdb7 wxOS2 additional stylistic and coding standards.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 18:18:07 +00:00
Václav Slavík
5ce0e4ac06 supressed error messages when wxCSConv cannot find registry key and/or value when looking for charset information
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 16:41:58 +00:00
Václav Slavík
aa50e893ee fixed wxListCtrl::EditLabel for MSW (ListView_EditLabel fails if
the control does not have focus, so I changed EditLabel to always set focus to *this
before calling LV_EditLabel). This fixes wxEditableListBox.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 16:41:47 +00:00
Václav Slavík
e9c4c02c19 fixed handling of root paths: now checks if string ends with / before appending / to it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 16:41:34 +00:00
Václav Slavík
b326e313a0 fixed parsing of XPM data files from demos/forty
(decoder did not parse lowercase hexadecimal numbers)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 16:41:12 +00:00
Stefan Csomor
4b1f6faaa2 added lowercase functionality to wxHexToDec
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 16:06:38 +00:00
Julian Smart
fb1bd1bdd3 Some installation updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 15:13:23 +00:00
Václav Slavík
f204026b42 fixed fatal bug in wxBitmap::CreateFromXpm (the bitmap was added twice to wxTheBitmapsList)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 15:08:45 +00:00
Julian Smart
66242f2079 Added a couple more numeric character references
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 14:51:22 +00:00
Julian Smart
c60f5c6517 Removed references to xpm[d].lib
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 14:31:41 +00:00
Julian Smart
1e1ca6f0b2 Removed xpm[d].lib
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 14:27:05 +00:00
David Webster
d38d271fa6 Get rid of the CVS merge characters that have worked their way into this causing the dll builds from the command line to fail.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 13:28:01 +00:00
Julian Smart
22394d24f6 NULL -> 0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 12:53:16 +00:00
Julian Smart
57e26a09f1 Now sorts the files case-insensitively
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 10:26:01 +00:00
Guillermo Rodriguez Garcia
2b15fdfcf3 Use GetPath instead of GetFileName in file selector, otherwise it doesn't work for files outside the current directory
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 06:35:42 +00:00
Guillermo Rodriguez Garcia
27a97d02eb Private gsocket files were using 'typedef int bool', removed this
and replaced by true ints. Currently this was not causing any problem
but it is better to avoid bool at all in C code as a matter of good
coding practice.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 06:31:39 +00:00
Stefan Csomor
e7b596fbff corrected redraw problems in controls (the erroneusly revalidated their draw area thus eating other pending redraws
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 06:28:28 +00:00
Guillermo Rodriguez Garcia
d493b66a90 Streams were being created the wrong way (was using the copy
ctor which should not be used for any stream class)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 06:24:10 +00:00
Stefan Csomor
b668a73527 corrected a bug in dc which resetted the port , exchanged the wxchoice implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-10 05:27:07 +00:00
Václav Slavík
1c6466854c compilation fix for apps w/o precompiled headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-09 22:37:27 +00:00
Václav Slavík
268d5364cf removed libxpm from templates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-09 22:36:51 +00:00
Václav Slavík
9d8c2f419f removed libxpm dependencies from makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-09 22:36:25 +00:00
Robin Dunn
d2520c85b0 Added accessors for the sub-windows in the wxGrid.
Added methods to get/set the pen width used for the current cell
highlight, bot normal and read-only.

Fixed (I think) the problem of the cell highlight leaving extra lines
behind when the grid lines are turned off


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-09 22:31:17 +00:00
Robin Dunn
3b36695de4 Fixed bug that prevented wxTreeCtrl.OnCompareItems from being called.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-09 22:15:05 +00:00
David Webster
5fb9d2be3f Update on Client Size determinations
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-09 13:33:18 +00:00
David Webster
2be39ac9d8 More scrolling support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-09 13:32:50 +00:00
Vadim Zeitlin
ed8fad817a fixed compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-09 10:19:13 +00:00
David Webster
5d483828d7 Fixing the GetClientsize to deal with OS/2's coordinate system.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10085 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-09 04:31:30 +00:00
Vadim Zeitlin
ca289436cd fixed wxExecute + DDE bug (merged from 2.2)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10084 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-09 01:20:04 +00:00
Václav Slavík
66e23ad208 switched to new XPM code in wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 22:44:34 +00:00
Václav Slavík
638a0b2c72 applied patch for runtime loading of hhctrl.ocx
(wxCHMHelpController should work with all compilers, not only MSVC, now)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 22:38:33 +00:00
Václav Slavík
abd799473c changes update
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 22:30:51 +00:00
Václav Slavík
2e9760c0ee removed wxUSE_XPM_IN_MSW from setup0.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 22:30:26 +00:00
Václav Slavík
ea39b21033 switched to new XPM code in wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10078 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 22:29:49 +00:00
Václav Slavík
50c679c81a dlg now centered
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 22:29:38 +00:00
Václav Slavík
b577ba22cb added makefile.vc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 22:29:27 +00:00
Václav Slavík
cad599a1f1 MSVC fixes for wxEditableListBox (still misteriously gives assertion failure when calling wxListCtrl::EditLabel)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 22:29:02 +00:00
Václav Slavík
2e6d38adea fixed missing include
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 22:28:44 +00:00
Václav Slavík
989befded3 removed MSVC libxpm makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 22:28:06 +00:00
Václav Slavík
73348d0997 forgot to check in wxHtmlProcessor::IsEnabled test in wxHtmlWindow::SetPage
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 22:27:09 +00:00
Václav Slavík
badb78928f fixed typo in pragma implementation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10071 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 22:26:58 +00:00
Václav Slavík
3e729cbe15 added wxHtmlProcessor test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10070 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 22:26:39 +00:00
Václav Slavík
3caec1bb33 added wxLogError to wxCSConv so that it complains if the encoding is unknown
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10069 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 22:26:16 +00:00
Václav Slavík
00a693ed2f removed now obsoleted commented-out piece of code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 22:25:33 +00:00
Václav Slavík
0133d06b1a ShowFullScreen is not MSW-only anymore, updated docs and samples
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 22:25:17 +00:00
Robin Dunn
c9d4f881e7 test for mousewheel constants separatly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 19:51:52 +00:00
Robin Dunn
47b37e4be4 Smoe more details for the setup and installer scripts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 19:27:48 +00:00
Stefan Csomor
cf1a9b45c7 wxRadioBox fixed on mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 19:13:45 +00:00
Vadim Zeitlin
615dca338b fixed wxColour::operator==
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 18:43:54 +00:00
Gilles Depeyrot
f87a708b14 added const for Mac OS X compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 18:31:36 +00:00
Gilles Depeyrot
65a9e6162b removed useless file (notebmac.cpp is the one that is used)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 18:04:01 +00:00
Julian Smart
f50fd91940 Removed wxXPMHandler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 16:54:22 +00:00
Stefan Csomor
0eaa1d68c2 changed port handling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 16:08:09 +00:00
Stefan Csomor
71e483d39a added xpm
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 15:59:03 +00:00
Vadim Zeitlin
aaa63f666a try to autodetect Win32 macros
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 15:12:00 +00:00
Gilles Depeyrot
973b0afb1e added CreateFromXpm method that uses image xpm decoder
use of the old xpm library code is conditionned by OBSOLETE_XPM_DATA_HANDLER
which is set be default under Classic Mac OS and not set under Mac OS X


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 14:07:34 +00:00
Gilles Depeyrot
b7d667c57b added CreateFromXpm method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 14:01:50 +00:00
Gilles Depeyrot
60bc40875d corrected Mac OS X resource targets
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 14:00:46 +00:00
Gilles Depeyrot
9a179dccb9 added definition/initialisation of static class member
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 13:31:17 +00:00
Gilles Depeyrot
10d3680f1a removed duplicated friend declaration
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 13:29:54 +00:00
Stefan Csomor
b916de3e4f updated dead-strip linking
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 11:55:54 +00:00
Stefan Csomor
790ba06b28 updated opengl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 11:51:10 +00:00
Stefan Csomor
9ff647cf66 mac fixes part II
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 11:49:20 +00:00
Julian Smart
ab85e6cd00 Added "set new icon" menu item to taskbar sample; updated some makefiles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 10:11:24 +00:00
Stefan Csomor
0a67a93b17 mac fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 07:29:46 +00:00
Vadim Zeitlin
233d02951f fix setting colour for a listctrl item (merged from 2.2)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 02:21:18 +00:00
Vadim Zeitlin
bf505d2855 correct fix for Maximize() for hidden frames
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 01:09:21 +00:00
Robin Dunn
794c5cb151 updated generated sources for wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 00:13:42 +00:00
Robin Dunn
7a446686f0 Fixes for some changed stuff in wxHTML
Fixed an annoying ocmpiler warning in the generated code
Regenerated code for wxGTK


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 00:08:55 +00:00
Vadim Zeitlin
daaa6710be fixed iso8859-15 handling (backmerged from 2.2)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 00:03:46 +00:00
Robin Dunn
13806c7d4a some updates for new methods, constants, etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-07 22:30:26 +00:00
David Webster
c8b5f745c4 More scrolling work.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-07 22:17:12 +00:00
Vadim Zeitlin
1c8183e213 support cygwin as synonim for cygwin32
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-07 15:52:18 +00:00
Vadim Zeitlin
2d4cc5b600 GetSelection() always returns from <= to as wxMSW does
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-07 15:08:38 +00:00
Julian Smart
779cedff87 Some makefile corrections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-07 14:37:53 +00:00
Julian Smart
e96360efd9 Misc small mods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-07 09:57:45 +00:00
David Webster
1c84ee88f6 Support for scrolling
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-07 04:17:46 +00:00
Václav Slavík
e7d5dd022c oops, forgot to remove temporary debug printf...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-06 22:22:47 +00:00
Václav Slavík
239229258a wxTAB_TRAVERSAL is default style for wxPanels from XRC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-06 22:22:39 +00:00
Václav Slavík
00b2a5df95 added 'name' to wxEditableListBox ctor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-06 22:22:30 +00:00
Václav Slavík
7c4878b682 added <accel> attribute to wxMenuItem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-06 22:22:03 +00:00
Václav Slavík
ccb220600d added version saving to wxrcedit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-06 22:21:43 +00:00
Václav Slavík
1ce70313be added version information to XML resources
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-06 22:21:33 +00:00
Václav Slavík
0c55409f3a fixed typo that caused incorrect if there was only one book
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-06 22:21:18 +00:00
Václav Slavík
e6b506bf47 fixed loading of resource from zip files (now handles both .xrc and binary .xmb files)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-06 22:21:05 +00:00
Gilles Depeyrot
b97e22c0ca added clientcontext variable to Open Transport initialisation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-06 18:58:51 +00:00
Gilles Depeyrot
d2c6d54928 applied correction from Marc Newsam in calculations of linesize
tested with the image sample which now produces expected results


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-06 18:51:22 +00:00
Robert Roebling
db157a6cf8 Made the applet code compile under GTK.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-06 17:41:54 +00:00
Unknown (DM)
1661948432 Added Codewarrior project files for jpeg, png, tiff, and zlib.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-06 05:15:41 +00:00
Robin Dunn
d1679124ae MouseWheel stuff
Added wxToggleButton
other odds and ends


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-06 05:03:24 +00:00
Robin Dunn
37d6243357 Added MouseWheel support to wxSTC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-06 01:20:41 +00:00
Robin Dunn
d13d99aa85 fixed typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-06 00:26:05 +00:00
Robin Dunn
0f7a546d9c Fixed HandleMouseWheel to be __WIN32__ sensitive
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-06 00:25:03 +00:00
Václav Slavík
a2cf862156 updated VC makefiles to compile expat
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-05 18:06:16 +00:00
Václav Slavík
daa084c239 reverted the hack for accepting broken HHC files (new wxHF_xxxx flags provide same features)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-05 18:06:05 +00:00
Václav Slavík
576507e276 added new wxHF_xxxx contants to control wxHtmlHelpFrame's appearance (book icons in contents)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-05 18:05:57 +00:00
Václav Slavík
bdb6e206f1 updated to show new wxHF_xxxx contants
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-05 18:05:24 +00:00
Václav Slavík
f55d21ebb5 added new gizmo: wxEditableListBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-05 18:05:12 +00:00
Václav Slavík
8173fefe0a fixed typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-05 18:04:22 +00:00
Václav Slavík
96742edfff minor change: buf[(size_t)pos] instead of buf.c_str()[pos]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-05 18:04:13 +00:00
Václav Slavík
960ba969f9 1. changed AddSharedProcessor to AddGlobalProcessor
2. Added wxHtmlProcessor::Enable and IsEnabled
3. fixed fatal bug in wxHtmlWindow::Add[Global]Processor


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-04 23:54:01 +00:00
Václav Slavík
8513c19cba applied patch #421410:
1. Mingw and BCC makefiles
2. compilation fixes


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-04 23:53:03 +00:00
Václav Slavík
219a5f10c0 added wxHtmlHelpController::GetHelpData and removed SetBookBasePath (you can use GetHelpData() for same effect)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-04 23:52:46 +00:00
Unknown (DM)
d2bf4e837a Added the Carbon precompiled headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-04 23:36:56 +00:00
David Webster
52da3c7175 Keeping these somewhat up to date
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-04 19:45:10 +00:00
Robin Dunn
ddfc587a2e Got a new version of StructuredText from Zope's CVS.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-04 18:28:27 +00:00
Julian Smart
e42c7b8567 *** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-04 14:50:17 +00:00
Julian Smart
f2854a2438 Referred reader to install.txt files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-04 14:16:59 +00:00
Julian Smart
1c98149d12 Added mac.rsp, zipmac.bat
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-04 10:31:08 +00:00
Robin Dunn
b51c3f276c Redirected mouse wheel events from the child grid windows to the
wxGrid so the default behaviour in wxScrolledWindow can take care of
it.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-04 07:28:32 +00:00
Robin Dunn
d2c52078dc Added mouse wheel support for MSW. It generates a wxMouseEvent with a
type of wxEVT_MOUSEWHEEL.

wxMouseEvent has new members and accessors to transport mouse wheel
rotation data.  New members and accessors are documented.

wxGenericScrolledWindow modified to turn mouse wheel events into
scroll actions.

Added wxUSE_MOUSEWHEEL to setup0.h to allow disabling the platform
specific parts.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-04 07:26:30 +00:00
Kendall Bennett
bfb9ee966d Fixed Windows DLL link problems with wxHtmlProcessor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-03 20:34:23 +00:00
Kendall Bennett
26ffe1fdba Moved wxApplet files to the correct locations.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-03 20:10:52 +00:00
David Webster
50c76ce1f7 OS/2 fix in setdrive.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-03 17:43:18 +00:00
Kendall Bennett
d20cf96f70 Removed tabs from applet sample code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-03 17:33:55 +00:00
Kendall Bennett
67fc151d73 Removed tabs from applet code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-03 17:33:16 +00:00
Kendall Bennett
025292e998 Removed applet code from src directory
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-03 17:28:32 +00:00
Kendall Bennett
d9b91de7d3 Moved applet code into contrib.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-03 17:20:52 +00:00
Vadim Zeitlin
4726948f8e fix InsertSeparator() (patch 420987)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-03 14:41:24 +00:00
Robin Dunn
3ba55e664d Changed WXUNUSED to WXUNUSED_UNLESS_DEBUG
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-02 23:35:06 +00:00
Václav Slavík
ab708d5def switched wxXML to expat parser ; some minor formatting mods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-02 23:09:55 +00:00
Václav Slavík
892aeafc2a 1) some cleanup in wxHtmlWindow, moved private structures out of headers
2) added wxHtmlProcessor


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-02 23:08:47 +00:00
Václav Slavík
75e0142942 switched wxXML to expat parser
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-02 23:01:20 +00:00
Václav Slavík
eb8671f277 switched wxXML to expat parser; some formatting mods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-02 23:01:00 +00:00
Václav Slavík
7edb85b724 *** empty log message ***
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-02 22:59:13 +00:00
Václav Slavík
c5dd44b5da updated info about my changes (wxLocale new API, wxImage<->wxBitmap conversion, XPM handler, wxHtmlProcessor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-02 22:58:57 +00:00
Robin Dunn
60869eaf7e typo fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-02 21:52:45 +00:00
Kendall Bennett
54921697ae Initial check in of wxApplet code to CVS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-02 20:59:28 +00:00
Kendall Bennett
c3952f6524 Fixed wxHTML code in a Watcom Win32 DLL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-02 20:55:56 +00:00
1769 changed files with 97079 additions and 106995 deletions

View File

@@ -2,6 +2,9 @@
How to build the sources from CVS
------------------------------------------------------------------------
Please use the install.txt files in docs/gtk, docs/msw, docs/motif, docs/mac
etc. alongside these instructions.
I) Windows using plain makefiles
----------------------------------------

View File

@@ -153,18 +153,19 @@ INTLDIR = $(WXDIR)/locale
########################## Archive name ###############################
# append a version suffix x.y.z to all file names
VER_SUFFIX=$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)
WXARCHIVE = @DISTDIR@-$(VER_SUFFIX).tar.gz
WXGLARCHIVE = @DISTDIR@-gl-$(VER_SUFFIX).tar.gz
WXSAMPLES = wx$(TOOLKIT)-samples-$(VER_SUFFIX).tar.gz
WXDEMOS = wx$(TOOLKIT)-demos-$(VER_SUFFIX).tar.gz
VER_SUFFIX=$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)$(EXTRA_VER)
WXARCHIVE=@DISTDIR@-$(VER_SUFFIX).tar.gz
WXGLARCHIVE=@DISTDIR@-gl-$(VER_SUFFIX).tar.gz
WXSAMPLES=wx$(TOOLKIT)-samples-$(VER_SUFFIX).tar.gz
WXDEMOS=wx$(TOOLKIT)-demos-$(VER_SUFFIX).tar.gz
WXARCHIVE_BZIP = @DISTDIR@-$(VER_SUFFIX).tar.bz2
WXGLARCHIVE_BZIP = @DISTDIR@-gl-$(VER_SUFFIX).tar.bz2
WXSAMPLES_BZIP = wx$(TOOLKIT)-samples-$(VER_SUFFIX).tar.bz2
WXDEMOS_BZIP = wx$(TOOLKIT)-demos-$(VER_SUFFIX).tar.bz2
WXARCHIVE_BZIP=@DISTDIR@-$(VER_SUFFIX).tar.bz2
WXGLARCHIVE_BZIP=@DISTDIR@-gl-$(VER_SUFFIX).tar.bz2
WXSAMPLES_BZIP=wx$(TOOLKIT)-samples-$(VER_SUFFIX).tar.bz2
WXDEMOS_BZIP=wx$(TOOLKIT)-demos-$(VER_SUFFIX).tar.bz2
DISTDIR = ./_dist_dir/@DISTDIR@
DISTDIRNAME=@DISTDIR@-$(VER_SUFFIX)
DISTDIR=./_dist_dir/$(DISTDIRNAME)
############################## Files ##################################
@@ -345,7 +346,7 @@ OLEOBJS = \
droptgt.o \
oleutils.o \
uuid.o
############################## Rules ##################################
BURNT_LIBRARY_NAME = @BURNT_LIBRARY_NAME@
@@ -371,11 +372,11 @@ all: @WX_ALL@
@$(INSTALL) -d ./lib
$(SHARED_LD) ./lib/$@ $(BURNT_LIBRARY_NAME_GL) glcanvas.o $(EXTRALIBS)
lib@WX_LIBRARY@-${VER_SUFFIX}.r: ./lib/lib@WX_LIBRARY@-${VER_SUFFIX}.rsrc
$(DEREZ) $^ $(DEREZFLAGS) > ./lib/$@
./lib/lib@WX_LIBRARY@-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).r: ./lib/lib@WX_LIBRARY@-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).rsrc
$(DEREZ) $^ $(DEREZFLAGS) > $@
lib@WX_LIBRARY@-${VER_SUFFIX}.rsrc: $(MACRESOURCES)
$(REZ) $(REZFLAGS) $^ -o ./lib/$@
./lib/lib@WX_LIBRARY@-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).rsrc: $(MACRESOURCES)
$(REZ) $(REZFLAGS) $^ -o $@
CREATE_LINKS: @WX_LIBRARY_NAME_SHARED@
@$(RM) ./lib/@WX_LIBRARY_LINK1@
@@ -729,7 +730,7 @@ DEMOS_DIST: ALL_GUI_DIST
cp $(DEMODIR)/configure.in $(DISTDIR)/demos
cp -R $(DEMODIR)/dbbrowse $(DISTDIR)/demos/dbbrowse
mkdir $(DISTDIR)/demos/bombs
cp $(DEMODIR)/bombs/Makefile.in $(DISTDIR)/demos/bombs
cp $(DEMODIR)/bombs/makefile.unx $(DISTDIR)/demos/bombs
@@ -872,6 +873,16 @@ SAMPLES_DIST: ALL_GUI_DIST
cp $(SAMPDIR)/dynamic/*.cpp $(DISTDIR)/samples/dynamic
cp $(SAMPDIR)/dynamic/*.xpm $(DISTDIR)/samples/dynamic
mkdir $(DISTDIR)/samples/erase
cp $(SAMPDIR)/erase/Makefile.in $(DISTDIR)/samples/erase
cp $(SAMPDIR)/erase/makefile.unx $(DISTDIR)/samples/erase
cp $(SAMPDIR)/erase/*.cpp $(DISTDIR)/samples/erase
mkdir $(DISTDIR)/samples/event
cp $(SAMPDIR)/event/Makefile.in $(DISTDIR)/samples/event
cp $(SAMPDIR)/event/makefile.unx $(DISTDIR)/samples/event
cp $(SAMPDIR)/event/*.cpp $(DISTDIR)/samples/event
mkdir $(DISTDIR)/samples/exec
cp $(SAMPDIR)/exec/Makefile.in $(DISTDIR)/samples/exec
cp $(SAMPDIR)/exec/makefile.unx $(DISTDIR)/samples/exec
@@ -946,10 +957,11 @@ SAMPLES_DIST: ALL_GUI_DIST
cp $(SAMPDIR)/image/horse.* $(DISTDIR)/samples/image
cp $(SAMPDIR)/image/smile.xbm $(DISTDIR)/samples/image
cp $(SAMPDIR)/image/smile.xpm $(DISTDIR)/samples/image
mkdir $(DISTDIR)/samples/internat
mkdir $(DISTDIR)/samples/internat/de
mkdir $(DISTDIR)/samples/internat/fr
mkdir $(DISTDIR)/samples/internat/ru
cp $(SAMPDIR)/internat/Makefile.in $(DISTDIR)/samples/internat
cp $(SAMPDIR)/internat/makefile.unx $(DISTDIR)/samples/internat
cp $(SAMPDIR)/internat/*.cpp $(DISTDIR)/samples/internat
@@ -958,10 +970,10 @@ SAMPLES_DIST: ALL_GUI_DIST
cp $(SAMPDIR)/internat/*.po $(DISTDIR)/samples/internat
cp $(SAMPDIR)/internat/fr/*.mo $(DISTDIR)/samples/internat/fr
cp $(SAMPDIR)/internat/de/*.mo $(DISTDIR)/samples/internat/de
cp $(SAMPDIR)/internat/ru/*.mo $(DISTDIR)/samples/internat/de
cp $(SAMPDIR)/internat/ru/*.mo $(DISTDIR)/samples/internat/ru
cp $(SAMPDIR)/internat/fr/*.po $(DISTDIR)/samples/internat/fr
cp $(SAMPDIR)/internat/de/*.po $(DISTDIR)/samples/internat/de
cp $(SAMPDIR)/internat/ru/*.po $(DISTDIR)/samples/internat/de
cp $(SAMPDIR)/internat/ru/*.po $(DISTDIR)/samples/internat/ru
mkdir $(DISTDIR)/samples/ipc
cp $(SAMPDIR)/ipc/Makefile.in $(DISTDIR)/samples/ipc
@@ -1093,7 +1105,7 @@ SAMPLES_DIST: ALL_GUI_DIST
cp $(SAMPDIR)/rotate/makefile.unx $(DISTDIR)/samples/rotate
cp $(SAMPDIR)/rotate/*.cpp $(DISTDIR)/samples/rotate
cp $(SAMPDIR)/rotate/*.bmp $(DISTDIR)/samples/rotate
mkdir $(DISTDIR)/samples/richedit
cp $(SAMPDIR)/richedit/Makefile.in $(DISTDIR)/samples/richedit
cp $(SAMPDIR)/richedit/makefile.unx $(DISTDIR)/samples/richedit
@@ -1102,35 +1114,35 @@ SAMPLES_DIST: ALL_GUI_DIST
cp $(SAMPDIR)/richedit/*.xpm $(DISTDIR)/samples/richedit
cp $(SAMPDIR)/richedit/README $(DISTDIR)/samples/richedit
cp $(SAMPDIR)/richedit/TODO $(DISTDIR)/samples/richedit
mkdir $(DISTDIR)/samples/proplist
cp $(SAMPDIR)/proplist/Makefile.in $(DISTDIR)/samples/proplist
cp $(SAMPDIR)/proplist/makefile.unx $(DISTDIR)/samples/proplist
cp $(SAMPDIR)/proplist/*.cpp $(DISTDIR)/samples/proplist
cp $(SAMPDIR)/proplist/*.h $(DISTDIR)/samples/proplist
mkdir $(DISTDIR)/samples/propsize
cp $(SAMPDIR)/propsize/Makefile.in $(DISTDIR)/samples/propsize
cp $(SAMPDIR)/propsize/makefile.unx $(DISTDIR)/samples/propsize
cp $(SAMPDIR)/propsize/*.cpp $(DISTDIR)/samples/propsize
cp $(SAMPDIR)/propsize/*.xpm $(DISTDIR)/samples/propsize
mkdir $(DISTDIR)/samples/sashtest
cp $(SAMPDIR)/sashtest/Makefile.in $(DISTDIR)/samples/sashtest
cp $(SAMPDIR)/sashtest/makefile.unx $(DISTDIR)/samples/sashtest
cp $(SAMPDIR)/sashtest/*.cpp $(DISTDIR)/samples/sashtest
cp $(SAMPDIR)/sashtest/*.h $(DISTDIR)/samples/sashtest
mkdir $(DISTDIR)/samples/scroll
cp $(SAMPDIR)/scroll/Makefile.in $(DISTDIR)/samples/scroll
cp $(SAMPDIR)/scroll/makefile.unx $(DISTDIR)/samples/scroll
cp $(SAMPDIR)/scroll/*.cpp $(DISTDIR)/samples/scroll
mkdir $(DISTDIR)/samples/scrollsub
cp $(SAMPDIR)/scrollsub/Makefile.in $(DISTDIR)/samples/scrollsub
cp $(SAMPDIR)/scrollsub/makefile.unx $(DISTDIR)/samples/scrollsub
cp $(SAMPDIR)/scrollsub/*.cpp $(DISTDIR)/samples/scrollsub
mkdir $(DISTDIR)/samples/sockets
cp $(SAMPDIR)/sockets/Makefile.in $(DISTDIR)/samples/sockets
cp $(SAMPDIR)/sockets/makefile.unx $(DISTDIR)/samples/sockets
@@ -1141,7 +1153,7 @@ SAMPLES_DIST: ALL_GUI_DIST
cp $(SAMPDIR)/splitter/Makefile.in $(DISTDIR)/samples/splitter
cp $(SAMPDIR)/splitter/makefile.unx $(DISTDIR)/samples/splitter
cp $(SAMPDIR)/splitter/*.cpp $(DISTDIR)/samples/splitter
mkdir $(DISTDIR)/samples/statbar
cp $(SAMPDIR)/statbar/Makefile.in $(DISTDIR)/samples/statbar
cp $(SAMPDIR)/statbar/makefile.unx $(DISTDIR)/samples/statbar
@@ -1153,12 +1165,12 @@ SAMPLES_DIST: ALL_GUI_DIST
cp $(SAMPDIR)/text/makefile.unx $(DISTDIR)/samples/text
cp $(SAMPDIR)/text/*.cpp $(DISTDIR)/samples/text
cp $(SAMPDIR)/text/*.xpm $(DISTDIR)/samples/text
mkdir $(DISTDIR)/samples/thread
cp $(SAMPDIR)/thread/Makefile.in $(DISTDIR)/samples/thread
cp $(SAMPDIR)/thread/makefile.unx $(DISTDIR)/samples/thread
cp $(SAMPDIR)/thread/*.cpp $(DISTDIR)/samples/thread
mkdir $(DISTDIR)/samples/toolbar
cp $(SAMPDIR)/toolbar/Makefile.in $(DISTDIR)/samples/toolbar
cp $(SAMPDIR)/toolbar/makefile.unx $(DISTDIR)/samples/toolbar
@@ -1166,7 +1178,7 @@ SAMPLES_DIST: ALL_GUI_DIST
cp $(SAMPDIR)/toolbar/*.xpm $(DISTDIR)/samples/toolbar
mkdir $(DISTDIR)/samples/toolbar/bitmaps
cp $(SAMPDIR)/toolbar/bitmaps/*.xpm $(DISTDIR)/samples/toolbar/bitmaps
mkdir $(DISTDIR)/samples/treectrl
cp $(SAMPDIR)/treectrl/Makefile.in $(DISTDIR)/samples/treectrl
cp $(SAMPDIR)/treectrl/makefile.unx $(DISTDIR)/samples/treectrl
@@ -1175,33 +1187,33 @@ SAMPLES_DIST: ALL_GUI_DIST
cp $(SAMPDIR)/treectrl/*.xpm $(DISTDIR)/samples/treectrl
mkdir $(DISTDIR)/samples/treectrl/bitmaps
cp $(SAMPDIR)/treectrl/bitmaps/*.bmp $(DISTDIR)/samples/treectrl/bitmaps
mkdir $(DISTDIR)/samples/treelay
cp $(SAMPDIR)/treelay/Makefile.in $(DISTDIR)/samples/treelay
cp $(SAMPDIR)/treelay/makefile.unx $(DISTDIR)/samples/treelay
cp $(SAMPDIR)/treelay/*.cpp $(DISTDIR)/samples/treelay
cp $(SAMPDIR)/treelay/*.h $(DISTDIR)/samples/treelay
mkdir $(DISTDIR)/samples/typetest
cp $(SAMPDIR)/typetest/Makefile.in $(DISTDIR)/samples/typetest
cp $(SAMPDIR)/typetest/makefile.unx $(DISTDIR)/samples/typetest
cp $(SAMPDIR)/typetest/*.cpp $(DISTDIR)/samples/typetest
cp $(SAMPDIR)/typetest/*.h $(DISTDIR)/samples/typetest
cp $(SAMPDIR)/typetest/*.xpm $(DISTDIR)/samples/typetest
mkdir $(DISTDIR)/samples/validate
cp $(SAMPDIR)/validate/Makefile.in $(DISTDIR)/samples/validate
cp $(SAMPDIR)/validate/makefile.unx $(DISTDIR)/samples/validate
cp $(SAMPDIR)/validate/*.cpp $(DISTDIR)/samples/validate
cp $(SAMPDIR)/validate/*.h $(DISTDIR)/samples/validate
cp $(SAMPDIR)/validate/*.xpm $(DISTDIR)/samples/validate
mkdir $(DISTDIR)/samples/wizard
cp $(SAMPDIR)/wizard/Makefile.in $(DISTDIR)/samples/wizard
cp $(SAMPDIR)/wizard/makefile.unx $(DISTDIR)/samples/wizard
cp $(SAMPDIR)/wizard/*.cpp $(DISTDIR)/samples/wizard
cp $(SAMPDIR)/wizard/*.xpm $(DISTDIR)/samples/wizard
UTILS_DIST: ALL_GUI_DIST
mkdir $(DISTDIR)/utils
cp $(UTILSDIR)/Makefile.in $(DISTDIR)/utils
@@ -1295,27 +1307,58 @@ PYTHON_DIST:
distclean:
$(RM) -r _dist_dir
dist: @GUIDIST@
cp $(WXDIR)/src/files.lst $(DISTDIR)/src/
# VZ: the -only targets allow to do "make dist bzip-dist-only" without copying
# the files twice
dist-only:
@echo "*** Creating wxWindows distribution in $(DISTDIR)..."
@cd _dist_dir; \
mv @DISTDIR@ @DISTDIR@-$(VER_SUFFIX); \
tar ch @DISTDIR@-$(VER_SUFFIX) | gzip -f9 > ../$(WXARCHIVE); \
mv @DISTDIR@-$(VER_SUFFIX) @DISTDIR@
@cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
@if test "$(USE_GUI)" = 1; then \
cd $(DISTDIR); \
mv samples wxSamples-$(VER_SUFFIX); \
echo "*** Creating wxSamples archive..."; \
tar ch wxSamples-$(VER_SUFFIX) | gzip -f9 > ../../$(WXSAMPLES); \
mv wxSamples-$(VER_SUFFIX) samples; \
mv demos wxDemos-$(VER_SUFFIX); \
echo "*** Creating wxDemos archive..."; \
tar ch wxDemos-$(VER_SUFFIX) | gzip -f9 > ../../$(WXDEMOS); \
mv wxDemos-$(VER_SUFFIX) demos; \
fi
dist: @GUIDIST@
cp $(WXDIR)/src/files.lst $(DISTDIR)/src
@echo "*** Creating wxWindows distribution in $(DISTDIR)..."
@cd _dist_dir && tar ch $(DISTDIRNAME) | gzip -f9 > ../$(WXARCHIVE);
@if test "$(USE_GUI)" = 1; then \
cd $(DISTDIR); \
mv samples wxSamples-$(VER_SUFFIX); \
echo "*** Creating wxSamples archive..."; \
tar ch wxSamples-$(VER_SUFFIX) | gzip -f9 > ../../$(WXSAMPLES); \
mv wxSamples-$(VER_SUFFIX) samples; \
mv demos wxDemos-$(VER_SUFFIX); \
echo "*** Creating wxDemos archive..."; \
tar ch wxDemos-$(VER_SUFFIX) | gzip -f9 > ../../$(WXDEMOS); \
mv wxDemos-$(VER_SUFFIX) demos; \
fi
bzip-dist-only:
@echo "*** Creating wxWindows distribution in $(DISTDIR)..."
@cd _dist_dir && tar ch $(DISTDIRNAME) | bzip2 -f9 > ../$(WXARCHIVE_BZIP);
@if test "$(USE_GUI)" = 1; then \
cd $(DISTDIR); \
mv samples wxSamples-${VER_SUFFIX}; \
echo "*** Creating wxSamples archive..."; \
tar ch wxSamples-${VER_SUFFIX} | bzip2 -f9 > ../../$(WXSAMPLES_BZIP); \
mv wxSamples-${VER_SUFFIX} samples; \
mv demos wxDemos-${VER_SUFFIX}; \
echo "*** Creating wxDemos archive..."; \
tar ch wxDemos-${VER_SUFFIX} | bzip2 -f9 > ../../$(WXDEMOS_BZIP); \
mv wxDemos-${VER_SUFFIX} demos; \
fi
bzip-dist: @GUIDIST@
cp $(WXDIR)/src/files.lst $(DISTDIR)/src/
@echo "*** Creating wxWindows distribution in $(DISTDIR)..."
cd _dist_dir; tar ch @DISTDIR@ | bzip2 -f9 > $(WXARCHIVE_BZIP); mv $(WXARCHIVE_BZIP) ..
@cd _dist_dir && tar ch $(DISTDIRNAME) | bzip2 -f9 > ../$(WXARCHIVE_BZIP)
@if test "$(USE_GUI)" = 1; then \
cd $(DISTDIR); \
mv samples wxSamples; \
@@ -1346,3 +1389,18 @@ clean:
$(RM) ./lib/lib*
cleanall: clean
RPMTOP=_dist_dir/_rpm_top
rpm: dist
@echo "*** Building RPMs ***"
-mkdir $(RPMTOP)
-mkdir $(RPMTOP)/SOURCES
-mkdir $(RPMTOP)/SPECS
-mkdir $(RPMTOP)/BUILD
-mkdir $(RPMTOP)/RPMS
-mkdir $(RPMTOP)/SRPMS
cp -f $(WXARCHIVE) $(RPMTOP)/SOURCES
rpm -ba --define "_topdir `pwd`/$(RPMTOP)" $(WXDIR)/wx$(TOOLKIT).spec
mv -f `find $(RPMTOP) -name "wx$(TARGET)*.rpm"` .

1807
configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -184,10 +184,10 @@ AC_DEFUN(WX_CPP_NEW_HEADERS,
AC_CHECK_HEADERS(iostream)
if test "x$HAVE_IOSTREAM" = x ; then
ifelse([$2], , :, [$2])
else
if test "$ac_cv_header_iostream" = "yes" ; then
ifelse([$1], , :, [$1])
else
ifelse([$2], , :, [$2])
fi
AC_LANG_RESTORE
@@ -216,7 +216,6 @@ AC_DEFUN(WX_CPP_BOOL,
return 0;
],
[
AC_DEFINE(HAVE_BOOL)
wx_cv_cpp_bool=yes
],
[
@@ -294,7 +293,7 @@ dnl possible arguments are 'yes', 'no', or 'sys'
dnl usage: WX_ARG_SYS_WITH(option, helpmessage, variable-name)
AC_DEFUN(WX_ARG_SYS_WITH,
[
AC_MSG_CHECKING("for --with-$1")
AC_MSG_CHECKING([for --with-$1])
no_cache=0
AC_ARG_WITH($1, $2,
[
@@ -339,7 +338,7 @@ dnl this macro checks for a command line argument and caches the result
dnl usage: WX_ARG_WITH(option, helpmessage, variable-name)
AC_DEFUN(WX_ARG_WITH,
[
AC_MSG_CHECKING("for --with-$1")
AC_MSG_CHECKING([for --with-$1])
no_cache=0
AC_ARG_WITH($1, $2,
[
@@ -376,7 +375,7 @@ dnl like WX_ARG_WITH but uses AC_ARG_ENABLE instead of AC_ARG_WITH
dnl usage: WX_ARG_ENABLE(option, helpmessage, variable-name)
AC_DEFUN(WX_ARG_ENABLE,
[
AC_MSG_CHECKING("for --enable-$1")
AC_MSG_CHECKING([for --enable-$1])
no_cache=0
AC_ARG_ENABLE($1, $2,
[
@@ -472,7 +471,7 @@ dnl libwx_$(TOOLKIT)-$(WX_RELEASE).so.$(WX_CURRENT).$(WX_REVISION).$(WX_AGE)
WX_MAJOR_VERSION_NUMBER=2
WX_MINOR_VERSION_NUMBER=3
WX_RELEASE_NUMBER=0
WX_RELEASE_NUMBER=1
WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
@@ -642,7 +641,7 @@ case "${host}" in
DEFAULT_DEFAULT_wxUSE_MOTIF=1
;;
*-*-cygwin32* | *-*-mingw32* )
*-*-cygwin* | *-*-mingw32* )
USE_UNIX=0
USE_WIN32=1
AC_DEFINE(__WIN32__)
@@ -745,6 +744,7 @@ if test $DEBUG_CONFIGURE = 1; then
DEFAULT_wxUSE_OPENGL=no
DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
DEFAULT_wxUSE_SNGLINST_CHECKER=no
DEFAULT_wxUSE_STD_IOSTREAM=no
DEFAULT_wxUSE_FILE=no
DEFAULT_wxUSE_TEXTFILE=no
@@ -870,6 +870,7 @@ else
DEFAULT_wxUSE_OPENGL=no
DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
DEFAULT_wxUSE_SNGLINST_CHECKER=yes
DEFAULT_wxUSE_STD_IOSTREAM=no
DEFAULT_wxUSE_FILE=yes
DEFAULT_wxUSE_TEXTFILE=yes
@@ -1087,6 +1088,7 @@ WX_ARG_ENABLE(fs_zip, [ --enable-fs_zip use virtual ZIP filesyst
WX_ARG_ENABLE(zipstream, [ --enable-zipstream use wxZipInputStream], wxUSE_ZIPSTREAM)
WX_ARG_ENABLE(catch_segvs, [ --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException], wxUSE_ON_FATAL_EXCEPTION)
WX_ARG_ENABLE(snglinst, [ --enable-snglinst use wxSingleInstanceChecker class], wxUSE_SNGLINST_CHECKER)
dnl ---------------------------------------------------------------------------
dnl "big" options (i.e. those which change a lot of things throughout the library)
@@ -1350,7 +1352,7 @@ for toolkit in `echo $ALL_TOOLKITS`; do
echo "$var=$value" >> ${wx_arg_cache_file}
fi
if test "$value" = 1; then
AC_MSG_RESULT(`echo $toolkit | tr [[A-Z]] [[a-z]]`)
AC_MSG_RESULT([`echo $toolkit | tr [[A-Z]] [[a-z]]`])
fi
fi
done
@@ -1434,7 +1436,7 @@ dnl defines STRIP as strip or nothing if not found
AC_CHECK_PROG(STRIP, strip, strip, true)
dnl check if VPATH works
AC_MSG_CHECKING("make for VPATH support")
AC_MSG_CHECKING([make for VPATH support])
dnl create Makefile
cat - << EOF > confMake
check : file
@@ -1454,7 +1456,7 @@ if test "$RESULT" = 0; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
AC_MSG_ERROR(
AC_MSG_ERROR([
You need a make-utility that is able to use the variable
VPATH correctly.
If your version of make does not support VPATH correctly,
@@ -1464,7 +1466,7 @@ export MAKE=gmake; ./configure for sh-type shells
setenv MAKE gmake; ./configure for csh-type shells
Also please do remember to use gmake in this case every time
you are trying to compile.
)
])
fi
dnl YACC checks
@@ -2127,15 +2129,15 @@ if test "$wxUSE_SHARED" = "yes"; then
WX_ALL="CREATE_LINKS"
fi
dnl add the resources target
WX_ALL="${WX_ALL} lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.r"
WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
dnl the name of the shared library
WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.dylib"
WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.dylib"
WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
dnl the name of the links to the shared library
WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.${WX_CURRENT}.dylib"
WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.${WX_CURRENT}.dylib"
WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
;;
@@ -2161,7 +2163,7 @@ if test "$wxUSE_SHARED" = "yes"; then
SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
WX_ALL=${WX_LIBRARY_NAME_SHARED}
;;
*-*-cygwin32* )
*-*-cygwin* )
dnl only static for now
WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
@@ -2234,10 +2236,10 @@ dnl ------------------------------------------------------------------------
dnl defines HAVE_STRINGS_H (where some string functions live on AIX for example)
AC_CHECK_HEADERS(strings.h)
dnl defines HAVE_STDLIB_H
AC_CHECK_HEADERS(stdlib.h)
dnl defines HAVE_UNISTD_H
AC_CHECK_HEADERS(unistd.h)
dnl defines HAVE_FCNTL_H
AC_CHECK_HEADERS(fcntl.h)
dnl defines HAVE_WCHAR_H
AC_CHECK_HEADERS(wchar.h)
dnl defines HAVE_WCSTR_H
@@ -2276,17 +2278,76 @@ AC_CACHE_CHECK([for wchar_t], wx_cv_type_wchar_t,
[
AC_TRY_COMPILE([#include <wchar.h>],
[
wchar_t wc, *ws;
wc = L'a';
ws = L"Hello, world!";
wchar_t wc, *ws;
wc = L'a';
ws = L"Hello, world!";
],
wx_cv_type_wchar_t=yes,
wx_cv_type_wchar_t=no)
wx_cv_type_wchar_t=yes,
AC_TRY_COMPILE([#include <stdlib.h>],
[
wchar_t wc, *ws;
wc = L'a';
ws = L"Hello, world!";
],
wx_cv_type_wchar_t=yes,
wx_cv_type_wchar_t=no)
)
])
if test "$wx_cv_type_wchar_t" = yes ; then
if test "$wx_cv_type_wchar_t" = "yes"; then
AC_DEFINE(wxUSE_WCHAR_T)
fi
dnl check what exactly size_t is on this machine - this is necessary to avoid
dnl ambiguos overloads in several places, notably wx/string.h and wx/array.h
AC_LANG_SAVE
AC_LANG_CPLUSPLUS
AC_CACHE_CHECK([if size_t is unsigned int],
wx_cv_size_t_is_uint,
dnl an obvious check like AC_TRY_COMPILE[struct Foo { ... };] doesn't work
dnl with egcs (at least) up to 1.1.1 as it allows you to compile duplicate
dnl methods in a local class (i.e. class inside a function) declaration
dnl without any objections!!
dnl
dnl hence the hack below: we must have Foo at global scope!
AC_TRY_COMPILE([#include <stddef.h>],
[
return 0; }
struct Foo { void foo(size_t); void foo(unsigned int); };
int bar() {
],
wx_cv_size_t_is_uint=no,
wx_cv_size_t_is_uint=yes
)
)
if test "$wx_cv_size_t_is_uint" = "yes"; then
AC_DEFINE(wxSIZE_T_IS_UINT)
else
AC_CACHE_CHECK([if size_t is unsigned long],
wx_cv_size_t_is_ulong,
AC_TRY_COMPILE([#include <stddef.h>],
[
return 0; }
struct Foo { void foo(size_t); void foo(unsigned long); };
int bar() {
],
wx_cv_size_t_is_ulong=no,
wx_cv_size_t_is_ulong=yes
)
)
if test "$wx_cv_size_t_is_ulong" = "yes"; then
AC_DEFINE(wxSIZE_T_IS_ULONG)
fi
fi
AC_LANG_RESTORE
dnl ---------------------------------------------------------------------------
dnl Checks for structures
dnl ---------------------------------------------------------------------------
@@ -2335,11 +2396,17 @@ AC_CHECK_SIZEOF(long long, 0)
dnl we have to do it ourselves because SGI/Irix's stdio.h does not include
dnl wchar_t an AC_CHECK_SIZEOF only includes stdio.h
dnl Mac OS X does not provide wchar.h and wchar_t is defined by stdlib.h (GD)
AC_CACHE_CHECK([size of wchar_t], wx_cv_sizeof_wchar_t,
[
AC_TRY_RUN(
[
#include <wchar.h>
#ifdef HAVE_WCHAR_H
# include <wchar.h>
#endif
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
#include <stdio.h>
int main()
{
@@ -2495,8 +2562,6 @@ if test "$wx_cv_func_vsscanf" = yes; then
AC_DEFINE(HAVE_VSSCANF)
fi
AC_LANG_RESTORE
dnl the following tests are for Unix(like) systems only
if test "$TOOLKIT" != "MSW"; then
@@ -2509,9 +2574,9 @@ AC_CACHE_CHECK([if iconv() takes char**], wx_cv_iconv_takes_char,
AC_TRY_COMPILE([#include <iconv.h>],
[
char **inbuf, **outbuf;
iconv_t cd;
size_t insz, outsz;
iconv(cd, inbuf, &insz, outbuf, &outsz);
iconv_t cd;
size_t insz, outsz;
iconv(cd, inbuf, &insz, outbuf, &outsz);
],
wx_cv_iconv_takes_char=yes,
wx_cv_iconv_takes_char=no)
@@ -2559,10 +2624,21 @@ fi
dnl check for vfork() (even if it's the same as fork() in modern Unices)
AC_CHECK_FUNCS(vfork)
dnl check for fcntl() or at least flock() needed by Unix implementation of
dnl wxSingleInstanceChecker
if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
AC_CHECK_FUNCS(fcntl flock, break)
if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
AC_MSG_WARN(wxSingleInstanceChecker not available)
wxUSE_SNGLINST_CHECKER=no
fi
fi
dnl check for timegm() used by datetime.cpp
AC_CHECK_FUNCS(timegm)
dnl look for a functiopn to modify the environment
dnl look for a function to modify the environment
AC_CHECK_FUNCS(putenv setenv, break)
HAVE_SOME_SLEEP_FUNC=0
@@ -2593,9 +2669,9 @@ if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
],
[
AC_CHECK_FUNCS(usleep,
AC_DEFINE(HAVE_USLEEP),
)
AC_MSG_WARN([wxSleep() function will not work])
AC_DEFINE(HAVE_USLEEP),
AC_MSG_WARN([wxSleep() function will not work])
)
]
)
]
@@ -2682,8 +2758,6 @@ if test "$wxUSE_THREADS" = "yes" ; then
dnl AIX calls the library libpthreads - thanks IBM!
if test "$USE_AIX" = 1; then
THREADS_LIB=pthreads
elif test "$USE_MAC" = 1; then
THREADS_LIB=cc_dynamic
else
THREADS_LIB=pthread
fi
@@ -2700,15 +2774,9 @@ if test "$wxUSE_THREADS" = "yes" ; then
THREADS_OBJ="threadpsx.lo"
THREADS_LINK="c_r"
], [
dnl thread functions are in libcc_dynamic under Mac OS X/Darwin
AC_CHECK_LIB(cc_dynamic, pthread_create, [
THREADS_OBJ="threadpsx.lo"
THREADS_LINK="cc_dynamic"
], [
dnl VZ: SGI threads are not supported currently
AC_CHECK_HEADER(sys/prctl.h, [
THREADS_OBJ="threadsgi.lo"
])
dnl VZ: SGI threads are not supported currently
AC_CHECK_HEADER(sys/prctl.h, [
THREADS_OBJ="threadsgi.lo"
])
])
])
@@ -2731,7 +2799,7 @@ if test "$wxUSE_THREADS" = "yes" ; then
dnl [
dnl AC_CHECK_LIB($THREADS_LINK, $1,
dnl AC_DEFINE(HAVE_`'translit($1, `A-Z', 'a-z'),
dnl [AC_CHECK_LIB("posix4", $1,
dnl [AC_CHECK_LIB([posix4], $1,
dnl [AC_DEFINE(HAVE_`'translit($1, `A-Z', 'a-z'))
dnl POSIX4_LINK="-lposix4"
dnl ])
@@ -2742,7 +2810,7 @@ if test "$wxUSE_THREADS" = "yes" ; then
AC_CHECK_LIB($THREADS_LINK, sched_yield,
AC_DEFINE(HAVE_SCHED_YIELD),
[AC_CHECK_LIB("posix4", sched_yield,
[AC_CHECK_LIB([posix4], sched_yield,
[AC_DEFINE(HAVE_SCHED_YIELD) POSIX4_LINK="-lposix4"],
AC_MSG_WARN(wxThread::Yield will not work properly)
)]
@@ -2759,7 +2827,7 @@ if test "$wxUSE_THREADS" = "yes" ; then
AC_CHECK_LIB($THREADS_LINK, pthread_attr_setschedparam,
AC_CHECK_LIB($THREADS_LINK, sched_get_priority_max,
HAVE_PRIOR_FUNCS=1,
AC_CHECK_LIB("posix4", sched_get_priority_max,
AC_CHECK_LIB([posix4], sched_get_priority_max,
[
HAVE_PRIOR_FUNCS=1
POSIX4_LINK="-lposix4"
@@ -2836,7 +2904,7 @@ if test "$wxUSE_THREADS" = "yes" ; then
]
)
])
if test "$wx_cv_type_pthread_rec_mutex_init"="yes"; then
if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
AC_DEFINE(HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER)
else
dnl this may break code working elsewhere, so at least warn about it
@@ -3054,7 +3122,7 @@ fi
TIFF_INCLUDE=
if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
AC_DEFINE(wxUSE_LIBTIFF)
if test "$wxUSE_LIBTIFF" = "yes" ; then
if test "$wxUSE_LIBTIFF" = "yes" ; then
TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
else
TIFF_LINK=
@@ -3167,6 +3235,10 @@ if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
AC_DEFINE(wxUSE_ON_FATAL_EXCEPTION)
fi
if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
AC_DEFINE(wxUSE_SNGLINST_CHECKER)
fi
if test "$wxUSE_BUSYINFO" = "yes"; then
AC_DEFINE(wxUSE_BUSYINFO)
fi
@@ -3299,13 +3371,16 @@ if test "$wxUSE_TIMEDATE" = "yes"; then
],
[
wx_cv_struct_tm_has_gmtoff=yes
AC_DEFINE(WX_GMTOFF_IN_TM)
],
wx_cv_struct_tm_has_gmtoff=no
)
])
fi
if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
AC_DEFINE(WX_GMTOFF_IN_TM)
fi
dnl check for gettimeofday (SVr4, BSD 4.3) and ftime (V7, BSD 4.3) for the
dnl function to be used for high resolution timers
AC_CHECK_FUNCS(gettimeofday ftime, break)
@@ -3685,9 +3760,6 @@ if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
AC_CHECK_HEADERS(ole2.h)
dnl for some reason this test always fails here??
dnl if test "x$HAVE_OLE2_H" != x ; then
dnl this one does the right thing though
if test "$ac_cv_header_ole2_h" = "yes" ; then
if test "$GCC" = yes ; then
ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
@@ -3854,7 +3926,14 @@ if test "$wxUSE_TABDIALOG" = "yes"; then
fi
if test "$wxUSE_TOGGLEBTN" = "yes"; then
AC_DEFINE(wxUSE_TOGGLEBTN)
if test "$wxUSE_MAC" = 1; then
AC_MSG_WARN([Toggle button is not yet supported under Mac OS X])
wxUSE_TOGGLEBTN=no
fi
if test "$wxUSE_TOGGLEBTN" = "yes"; then
AC_DEFINE(wxUSE_TOGGLEBTN)
fi
fi
if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
@@ -4177,12 +4256,12 @@ if test -d include; then
if test -d include/wx; then
if test -d include/wx/${TOOLKIT_DIR}; then
if test -f include/wx/${TOOLKIT_DIR}/setup.h; then
mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
mv -f include/wx/${TOOLKIT_DIR}/setup.h setup.h
fi
fi
fi
fi
AC_CONFIG_HEADER(setup.h:setup.h.in)
dnl some more GUI only things
@@ -4194,6 +4273,10 @@ if test "$wxUSE_GUI" = "yes"; then
wx_cv_program_ext=$PROGRAM_EXT
wx_cv_target_library=$WX_TARGET_LIBRARY
wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
dnl we need to export them because passing them through cache won't
dnl work when cache=/dev/null (which is default for autoconf 2.50)
export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
wx_cv_target_library wx_cv_target_libtype
AC_CONFIG_SUBDIRS(demos samples utils contrib)
fi
dnl from wxUSE_GUI
@@ -4209,13 +4292,18 @@ AC_OUTPUT([
Makefile
],
[
chmod +x wx-config
mv wx-config wx${TOOLKIT_NAME}-config
${LN_S} wx${TOOLKIT_NAME}-config wx-config
dnl don't move the file on itself - this happens when we run
dnl config.status which, as configure, executes these commands
dnl but, unlike it, doesn't create wx-config
if test ! -L wx-config; then
chmod +x wx-config
mv wx-config wx${TOOLKIT_NAME}-config
${LN_S} wx${TOOLKIT_NAME}-config wx-config
fi
dnl the debian build process wants setup.h in the lib subdir so we
dnl can pretend wxWin is already installed, so we *copy* it there
if test ! -d lib; then
mkdir lib
fi
@@ -4249,7 +4337,7 @@ AC_OUTPUT([
if test -f setup.h; then
cp -fp setup.h include/wx/${TOOLKIT_DIR}/setup.h
fi
],
[
TOOLKIT_DIR="${TOOLKIT_DIR}"
@@ -4258,3 +4346,4 @@ AC_OUTPUT([
]
)
dnl vi: set et ts=4 sw=4 list:

14
contrib/configure vendored
View File

@@ -817,10 +817,11 @@ trap 'rm -fr `echo "
src/ogl/Makefile
src/mmedia/Makefile
src/stc/Makefile
src/xml/Makefile
src/xrc/Makefile
src/canvas/Makefile
src/gizmos/Makefile
src/plot/Makefile
src/applet/Makefile
samples/Makefile
samples/mmedia/Makefile
samples/ogl/Makefile
@@ -833,8 +834,10 @@ trap 'rm -fr `echo "
samples/gizmos/Makefile
samples/gizmos/multicell/Makefile
samples/gizmos/splittree/Makefile
samples/xml/Makefile
samples/gizmos/editlbox/Makefile
samples/xrc/Makefile
samples/plot/Makefile
samples/applet/Makefile
utils/Makefile
utils/wxrc/Makefile
utils/wxrcedit/Makefile
@@ -922,10 +925,11 @@ CONFIG_FILES=\${CONFIG_FILES-"Makefile
src/ogl/Makefile
src/mmedia/Makefile
src/stc/Makefile
src/xml/Makefile
src/xrc/Makefile
src/canvas/Makefile
src/gizmos/Makefile
src/plot/Makefile
src/applet/Makefile
samples/Makefile
samples/mmedia/Makefile
samples/ogl/Makefile
@@ -938,8 +942,10 @@ CONFIG_FILES=\${CONFIG_FILES-"Makefile
samples/gizmos/Makefile
samples/gizmos/multicell/Makefile
samples/gizmos/splittree/Makefile
samples/xml/Makefile
samples/gizmos/editlbox/Makefile
samples/xrc/Makefile
samples/plot/Makefile
samples/applet/Makefile
utils/Makefile
utils/wxrc/Makefile
utils/wxrcedit/Makefile

View File

@@ -42,10 +42,11 @@ AC_OUTPUT([
src/ogl/Makefile
src/mmedia/Makefile
src/stc/Makefile
src/xml/Makefile
src/xrc/Makefile
src/canvas/Makefile
src/gizmos/Makefile
src/plot/Makefile
src/applet/Makefile
samples/Makefile
samples/mmedia/Makefile
samples/ogl/Makefile
@@ -58,8 +59,10 @@ AC_OUTPUT([
samples/gizmos/Makefile
samples/gizmos/multicell/Makefile
samples/gizmos/splittree/Makefile
samples/xml/Makefile
samples/gizmos/editlbox/Makefile
samples/xrc/Makefile
samples/plot/Makefile
samples/applet/Makefile
utils/Makefile
utils/wxrc/Makefile
utils/wxrcedit/Makefile

View File

@@ -0,0 +1,85 @@
/****************************************************************************
*
* wxWindows HTML Applet Package
*
* Copyright (C) 1991-2001 SciTech Software, Inc.
* All rights reserved.
*
* ========================================================================
*
* The contents of this file are subject to the wxWindows License
* Version 3.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.wxwindows.org/licence3.txt
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* ========================================================================
*
* Language: ANSI C++
* Environment: Any
*
* Description: Header file for the wxApplet class
*
****************************************************************************/
#ifndef __WX_APPLET_H
#define __WX_APPLET_H
#include "wx/panel.h"
#include "wx/html/htmlwin.h"
// Forward declaration
class wxHtmlAppletWindow;
/*--------------------------- Class Definitions ---------------------------*/
/****************************************************************************
REMARKS:
Defines the abstract base class for wxApplet objects.
****************************************************************************/
class wxApplet : public wxPanel {
private:
DECLARE_ABSTRACT_CLASS(wxApplet);
DECLARE_EVENT_TABLE();
protected:
//wxHtmlAppletWindow *m_parent;
// Special handler for background erase messages
void OnEraseBackground(wxEraseEvent&);
public:
// Constructor (called during dynamic creation)
wxApplet() { m_parent = NULL; };
// Psuedo virtual constructor
virtual bool Create(
wxHtmlAppletWindow *parent,
const wxHtmlTag& params,
const wxSize& size,
long style = wxTAB_TRAVERSAL | wxNO_BORDER);
// Virtual destructor
virtual ~wxApplet();
// Handle HTML navigation to a new URL
virtual void OnLinkClicked(const wxHtmlLinkInfo& link) = 0;
// Handle HTML navigation forward command in applet
virtual void OnHistoryForward() = 0;
// Handle HTML navigation back command in applet
virtual void OnHistoryBack() = 0;
// Handle messages from the wxAppletManager and other applets
virtual void OnMessage(wxEvent& msg) = 0;
};
#endif // __WX_APPLET_H

View File

@@ -0,0 +1,95 @@
/****************************************************************************
*
* wxWindows HTML Applet Package
*
* Copyright (C) 1991-2001 SciTech Software, Inc.
* All rights reserved.
*
* ========================================================================
*
* The contents of this file are subject to the wxWindows License
* Version 3.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.wxwindows.org/licence3.txt
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* ========================================================================
*
* Language: ANSI C++
* Environment: Any
*
* Description: Header file for wxEchoVariable Class, Dynamically constructed
* objects representing variables in SSI #echo directive
*
****************************************************************************/
#ifndef __WX_ECHOVAR_H
#define __WX_ECHOVAR_H
/*--------------------------- Class Definitions ---------------------------*/
/****************************************************************************
REMARKS:
wxEchoVariable class Definition
****************************************************************************/
class wxEchoVariable : public wxObject {
private:
DECLARE_ABSTRACT_CLASS(wxEchoVariable);
public:
wxEchoVariable() : wxObject() {}
~wxEchoVariable() {}
/****************************************************************************
RETURNS:
The boolean value of the variable
PARAMETERS:
parms - Optional parameter string passed from parm= field in HTML
REMARKS:
To create new variables for the #echo HTML preprocessing directives
you need to derive classes from wxEchoVariable and override the
pure virtual GetValue function. However this should not be done directly
but by using the BEGIN_ECHO_VARIABLE and END_ECHO_VARIABLE macros
SEE ALSO:
wxEchoPrep, BEGIN_ECHO_VARIABLE, END_ECHO_VARIABLE
****************************************************************************/
virtual wxString GetValue(const char *parms = NULL) const = 0;
public:
// static function to retrieve any variable avaliable
static wxString GetValue(const wxString &cls, const char *parms = NULL);
};
/*--------------------------------- MACROS --------------------------------*/
#define ECHO_PARM (_BEV_parm)
#define BEGIN_ECHO_VARIABLE(name) \
class wxEchoVariable##name : public wxEchoVariable { \
private: \
DECLARE_DYNAMIC_CLASS(wxEchoVariable##name##); \
public: \
wxEchoVariable##name##() : wxEchoVariable() {} \
virtual wxString GetValue(const char *parms = NULL) const; \
}; \
IMPLEMENT_DYNAMIC_CLASS(wxEchoVariable##name##, wxEchoVariable); \
wxString wxEchoVariable##name :: GetValue(const char *parms) const { \
wxString _BEV_parm = wxString(parms);
#define END_ECHO_VARIABLE(name, returnval) \
return returnval; \
}
#define STRING_ECHO_VARIABLE(name, string) \
BEGIN_ECHO_VARIABLE(##name##); \
END_ECHO_VARIABLE(##name##, wxString(##string##))
#endif // __WX_ECHOVAR_H

View File

@@ -0,0 +1,95 @@
/****************************************************************************
*
* wxWindows HTML Applet Package
*
* Copyright (C) 1991-2001 SciTech Software, Inc.
* All rights reserved.
*
* ========================================================================
*
* The contents of this file are subject to the wxWindows License
* Version 3.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.wxwindows.org/licence3.txt
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* ========================================================================
*
* Language: ANSI C++
* Environment: Any
*
* Description: Header file for wxIfElseVariable Class, Dynamically constructed
* objects representing variables in SSI #if, #else and #endif directives
*
****************************************************************************/
#ifndef __WX_IFELSEVAR_H
#define __WX_IFELSEVAR_H
/*--------------------------- Class Definitions ---------------------------*/
/****************************************************************************
REMARKS:
This class is used to create variables for the HTML preprocessor #if, #else,
and #endif directives.
SEE ALSO:
wxIfElsePrep
****************************************************************************/
class wxIfElseVariable : public wxObject {
private:
DECLARE_ABSTRACT_CLASS(wxIfElseVariable);
public:
wxIfElseVariable() : wxObject() {}
~wxIfElseVariable() {}
/****************************************************************************
RETURNS:
The boolean value of the variable
REMARKS:
To create new variables for the #if, #else and #endif HTML preprocessing
blocks you need to derive classes from wxIfElseVariable and override the
pure virtual GetValue function. However this should not be done directly
but by using the BEGIN_IFELSE_VARIABLE and END_IFELSE_VARIABLE macros
SEE ALSO:
wxIfElsePrep, BEGIN_IFELSE_VARIABLE, END_IFELSE_VARIABLE
****************************************************************************/
virtual bool GetValue() const = 0;
public:
// static function to retrieve any variable avaliable
static bool GetValue(const wxString &cls);
};
/*--------------------------------- MACROS --------------------------------*/
#define BEGIN_IFELSE_VARIABLE(name) \
class wxIfElseVariable##name : public wxIfElseVariable { \
private: \
DECLARE_DYNAMIC_CLASS(wxIfElseVariable##name##); \
public: \
wxIfElseVariable##name##() : wxIfElseVariable() {} \
virtual bool GetValue() const; \
}; \
IMPLEMENT_DYNAMIC_CLASS(wxIfElseVariable##name##, wxIfElseVariable); \
bool wxIfElseVariable##name :: GetValue() const {
#define END_IFELSE_VARIABLE(name, returnval) \
return returnval; \
}
#define IFELSE_VARIABLE(name, state) \
BEGIN_IFELSE_VARIABLE(##name##); \
END_IFELSE_VARIABLE(##name##, bool (state))
#endif // __WX_IFELSEVAR_H

View File

@@ -0,0 +1,109 @@
/****************************************************************************
*
* wxWindows HTML Applet Package
*
* Copyright (C) 1991-2001 SciTech Software, Inc.
* All rights reserved.
*
* ========================================================================
*
* The contents of this file are subject to the wxWindows License
* Version 3.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.wxwindows.org/licence3.txt
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* ========================================================================
*
* Language: ANSI C++
* Environment: Any
*
* Description: Header file for the wxLoadPage Event class
*
****************************************************************************/
#ifndef __WX_LOAD_PAGE_H
#define __WX_LOAD_PAGE_H
#include "wx/html/htmlwin.h"
// Forward declaration
class wxHtmlAppletWindow;
// If we are compiling this code into a library that links against
// the DLL, we need to remove all the __declspec(dllimports) that
// would declare our classes below incorrectly.
#ifndef WXMAKINGDLL
#undef WXDLLEXPORT
#define WXDLLEXPORT
#endif
// Declare our local load page event type
BEGIN_DECLARE_EVENT_TYPES()
DECLARE_EVENT_TYPE(wxEVT_LOAD_PAGE, wxEVT_USER_FIRST+1)
DECLARE_EVENT_TYPE(wxEVT_PAGE_LOADED, wxEVT_USER_FIRST+2)
END_DECLARE_EVENT_TYPES()
/*--------------------------- Class Definitions ---------------------------*/
/****************************************************************************
REMARKS:
Defines the class for load page events.
****************************************************************************/
class wxLoadPageEvent : public wxEvent {
DECLARE_DYNAMIC_CLASS(wxLoadPageEvent);
protected:
wxString m_hRef;
wxHtmlAppletWindow *m_htmlWindow;
public:
// Constructor
wxLoadPageEvent(const wxString &hRef = "",wxHtmlAppletWindow *htmlWindow = NULL);
// Destructor
~wxLoadPageEvent() {}
// Return the hmtl window for the load page operation
wxHtmlAppletWindow *GetHtmlWindow() { return m_htmlWindow; };
// Get the hRef string for the load page operation
const wxString & GetHRef() { return m_hRef; };
// Copy constructor for the object
void CopyObject(wxObject& obj) const;
};
// Define the macro to create our event type
typedef void (wxEvtHandler::*wxLoadPageEventFunction)(wxLoadPageEvent&);
#define EVT_LOAD_PAGE(fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_LOAD_PAGE, -1, -1, (wxObjectEventFunction)(wxEventFunction)(wxLoadPageEventFunction) & fn, (wxObject *) NULL ),
/****************************************************************************
REMARKS:
Defines the class for pageloaded events.
****************************************************************************/
class wxPageLoadedEvent : public wxEvent {
DECLARE_DYNAMIC_CLASS(wxPageLoadedEvent);
public:
// Constructor
wxPageLoadedEvent();
// Destructor
~wxPageLoadedEvent() {}
// Copy constructor for the object
void CopyObject(wxObject& obj) const;
};
// Define the macro to create our event type
typedef void (wxEvtHandler::*wxPageLoadedEventFunction)(wxPageLoadedEvent&);
#define EVT_PAGE_LOADED(fn) DECLARE_EVENT_TABLE_ENTRY( wxEVT_PAGE_LOADED, -1, -1, (wxObjectEventFunction)(wxEventFunction)(wxPageLoadedEventFunction) & fn, (wxObject *) NULL ),
#endif // __WX_LOAD_PAGE_H

View File

@@ -0,0 +1,59 @@
/****************************************************************************
*
* wxWindows HTML Applet Package
*
* Copyright (C) 1991-2001 SciTech Software, Inc.
* All rights reserved.
*
* ========================================================================
*
* The contents of this file are subject to the wxWindows License
* Version 3.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.wxwindows.org/licence3.txt
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* ========================================================================
*
* Language: ANSI C++
* Environment: Any
*
* Description: Header file for the Preprocessor of the #echo directive
* in wxHTML.
*
****************************************************************************/
#ifndef __WX_PREPECHO_H
#define __WX_PREPECHO_H
#include "wx/html/htmlproc.h"
/*--------------------------- Class Definitions ---------------------------*/
/****************************************************************************
REMARKS:
Echo Preprocessor class Definition
****************************************************************************/
class wxEchoPrep : public wxHtmlProcessor {
private:
//DECLARE_DYNAMIC_CLASS(wxEchoPrep);
public:
wxEchoPrep() : wxHtmlProcessor() {}
~wxEchoPrep() {}
// Process input text and return processed result
wxString Process(const wxString& text) const;
// Return priority value of this processor. The higher, the sooner
// is the processor applied to the text.
int GetPriority() const { return wxHTML_PRIORITY_SYSTEM-2; }
};
#endif // __WX_PREPECHO_H

View File

@@ -0,0 +1,59 @@
/****************************************************************************
*
* wxWindows HTML Applet Package
*
* Copyright (C) 1991-2001 SciTech Software, Inc.
* All rights reserved.
*
* ========================================================================
*
* The contents of this file are subject to the wxWindows License
* Version 3.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.wxwindows.org/licence3.txt
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* ========================================================================
*
* Language: ANSI C++
* Environment: Any
*
* Description: Header file for the Preprocessor of the #if SSI directive
* in wxHTML.
*
****************************************************************************/
#ifndef __WX_PREPIFELSE_H
#define __WX_PREPIFELSE_H
#include "wx/html/htmlproc.h"
/*--------------------------- Class Definitions ---------------------------*/
/****************************************************************************
REMARKS:
If Else Preprocessor class Definition
****************************************************************************/
class wxIfElsePrep : public wxHtmlProcessor {
private:
//DECLARE_DYNAMIC_CLASS(wxIfElsePrep);
public:
wxIfElsePrep() : wxHtmlProcessor() {}
~wxIfElsePrep() {}
// Process input text and return processed result
wxString Process(const wxString& text) const;
// Return priority value of this processor. The higher, the sooner
// is the processor applied to the text.
int GetPriority() const { return wxHTML_PRIORITY_SYSTEM-2; }
};
#endif // __WX_PREPECHO_H

View File

@@ -0,0 +1,63 @@
/****************************************************************************
*
* wxWindows HTML Applet Package
*
* Copyright (C) 1991-2001 SciTech Software, Inc.
* All rights reserved.
*
* ========================================================================
*
* The contents of this file are subject to the wxWindows License
* Version 3.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.wxwindows.org/licence3.txt
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* ========================================================================
*
* Language: ANSI C++
* Environment: Any
*
* Description: Header file for the Preprocessor of the #include directive
* in wxHTML.
*
****************************************************************************/
#ifndef __WX_PREPINCLUDE_H
#define __WX_PREPINCLUDE_H
#include "wx/html/htmlproc.h"
/*--------------------------- Class Definitions ---------------------------*/
/****************************************************************************
REMARKS:
wxIncludePrep class Definition
****************************************************************************/
class wxIncludePrep : public wxHtmlProcessor {
private:
//DECLARE_DYNAMIC_CLASS(wxIncludePrep);
wxString DOC_ROOT;
public:
wxIncludePrep() : wxHtmlProcessor() {DOC_ROOT = wxString("");}
~wxIncludePrep() {}
// Process input text and return processed result
wxString Process(const wxString& text) const;
// Return priority value of this processor. The higher, the sooner
// is the processor applied to the text.
int GetPriority() const { return wxHTML_PRIORITY_SYSTEM; }
void ChangeDirectory(const wxString &dir);
wxString GetDirectory() { return DOC_ROOT; }
};
#endif // __WX_PREPINCLUDE_H

View File

@@ -0,0 +1,165 @@
/****************************************************************************
*
* wxWindows HTML Applet Package
*
* Copyright (C) 1991-2001 SciTech Software, Inc.
* All rights reserved.
*
* ========================================================================
*
* The contents of this file are subject to the wxWindows License
* Version 3.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.wxwindows.org/licence3.txt
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* ========================================================================
*
* Language: ANSI C++
* Environment: Any
*
* Description: Header file for the wxHtmlAppletWindow class
*
****************************************************************************/
#ifndef __WX_APPLET_WINDOW_H
#define __WX_APPLET_WINDOW_H
#include "wx/html/htmlwin.h"
// Forward declare
class wxApplet;
class wxLoadPageEvent;
class wxPageLoadedEvent;
class wxIncludePrep;
// Declare a linked list of wxApplet pointers
WX_DECLARE_LIST(wxApplet, wxAppletList);
/*--------------------------- Class Definitions ---------------------------*/
/****************************************************************************
REMARKS:
Defines the class for virtual-link data types
****************************************************************************/
class VirtualData : public wxObject {
private:
wxString m_name;
wxString m_group;
wxString m_href;
public:
// Ctors
VirtualData(
wxString& name,
wxString& group,
wxString& href );
// Gets
wxString GetName(){ return m_name;};
wxString GetGroup(){ return m_group;};
wxString GetHref(){ return m_href;};
// Sets
void SetName (wxString& s){ m_name = s; };
void SetGroup(wxString& s){ m_group = s; };
void SetHref (wxString& s){ m_href = s; };
};
/****************************************************************************
REMARKS:
Defines the class for wxAppletWindow. This class is derived from the
wxHtmlWindow class and extends it with functionality to handle embedded
wxApplet's on the HTML pages.
****************************************************************************/
class wxHtmlAppletWindow : public wxHtmlWindow {
private:
DECLARE_CLASS(wxHtmlAppletWindow);
DECLARE_EVENT_TABLE();
bool m_mutexLock;
wxIncludePrep *incPreprocessor; // deleted by list it is added too in constructor
protected:
wxAppletList m_AppletList;
static wxHashTable m_Cookies;
wxToolBarBase *m_NavBar;
int m_NavBackId;
int m_NavForwardId;
public:
// Constructor
wxHtmlAppletWindow(
wxWindow *parent,
wxWindowID id = -1,
wxToolBarBase *navBar = NULL,
int navBackId = -1,
int navForwardId = -1,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxHW_SCROLLBAR_AUTO,
const wxString& name = "htmlAppletWindow");
// Destructor
~wxHtmlAppletWindow();
// Create an instance of an applet based on it's class name
wxApplet *CreateApplet(
const wxString& classId,
const wxString& iName,
const wxHtmlTag &params,
const wxSize& size);
// Find an instance of an applet based on it's class name
wxApplet *FindApplet(const wxString& className);
// Remove an applet from the window. Called during applet destruction
bool RemoveApplet(const wxApplet *applet);
// Load a new URL page
virtual bool LoadPage(const wxString& location);
// Called when users clicked on hypertext link.
virtual void OnLinkClicked(const wxHtmlLinkInfo& link);
// Handles forward navigation within the HTML stack
bool HistoryForward();
// Handles backwards navigation within the HTML stack
bool HistoryBack();
// Broadcast a message to all applets on the page
void SendMessage(wxEvent& msg);
// Register a cookie of data in the applet manager
bool RegisterCookie(const wxString& name,wxObject *cookie);
// UnRegister a cookie of data in the applet manager
bool UnRegisterCookie(const wxString& name);
// Find a cookie of data given it's public name
wxObject *FindCookie(const wxString& name);
// Event handlers to load a new page
void OnLoadPage(wxLoadPageEvent &event);
// Event handlers to load a new page
void OnPageLoaded(wxPageLoadedEvent &event);
// LoadPage mutex locks
void Lock() { m_mutexLock = true;};
void UnLock() { m_mutexLock = false;};
// Returns TRUE if the mutex is locked, FALSE otherwise.
bool IsLocked() { return m_mutexLock;};
// Tries to lock the mutex. If it can't, returns immediately with false.
bool TryLock();
};
#endif // __WX_APPLET_WINDOW_H

View File

@@ -0,0 +1,59 @@
/////////////////////////////////////////////////////////////////////////////
// Name: editlbox.h
// Purpose: ListBox with editable items
// Author: Vaclav Slavik
// RCS-ID: $Id$
// Copyright: (c) Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef __WX_EDITLBOX_H__
#define __WX_EDITLBOX_H__
#ifdef __GNUG__
#pragma interface "editlbox.h"
#endif
#include "wx/panel.h"
class WXDLLEXPORT wxBitmapButton;
class WXDLLEXPORT wxListCtrl;
class WXDLLEXPORT wxListEvent;
// This class provides a composite control that lets the
// user easily enter list of strings
class WXDLLEXPORT wxEditableListBox : public wxPanel
{
DECLARE_CLASS(wxEditableListBox);
public:
wxEditableListBox(wxWindow *parent, wxWindowID id,
const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
const wxString& name = wxT("editableListBox"));
void SetStrings(const wxArrayString& strings);
void GetStrings(wxArrayString& strings);
protected:
wxBitmapButton *m_bDel, *m_bNew, *m_bUp, *m_bDown, *m_bEdit;
wxListCtrl *m_listCtrl;
int m_selection;
bool m_edittingNew;
void OnItemSelected(wxListEvent& event);
void OnEndLabelEdit(wxListEvent& event);
void OnNewItem(wxCommandEvent& event);
void OnDelItem(wxCommandEvent& event);
void OnEditItem(wxCommandEvent& event);
void OnUpItem(wxCommandEvent& event);
void OnDownItem(wxCommandEvent& event);
DECLARE_EVENT_TABLE()
};
#endif

View File

@@ -35,7 +35,7 @@ class WXDLLEXPORT wxPlotYAxisArea;
class WXDLLEXPORT wxPlotWindow;
//-----------------------------------------------------------------------------
// classes
// consts
//-----------------------------------------------------------------------------
extern const int wxEVT_PLOT_SEL_CHANGING;
@@ -60,9 +60,6 @@ extern const int wxEVT_PLOT_BEGIN_TITLE_EDIT;
extern const int wxEVT_PLOT_END_TITLE_EDIT;
extern const int wxEVT_PLOT_AREA_CREATE;
//-----------------------------------------------------------------------------
// consts
//-----------------------------------------------------------------------------
#define wxPLOT_X_AXIS 0x0004
#define wxPLOT_Y_AXIS 0x0008
@@ -377,6 +374,8 @@ private:
typedef void (wxEvtHandler::*wxPlotEventFunction)(wxPlotEvent&);
#if WXWIN_COMPATIBILITY_EVENT_TYPES
#define EVT_PLOT(id, fn) { wxEVT_PLOT_DOUBLECLICKED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL },
#define EVT_PLOT_SEL_CHANGING(id, fn) { wxEVT_PLOT_SEL_CHANGING, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL },
#define EVT_PLOT_SEL_CHANGED(id, fn) { wxEVT_PLOT_SEL_CHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL },
@@ -399,5 +398,31 @@ typedef void (wxEvtHandler::*wxPlotEventFunction)(wxPlotEvent&);
#define EVT_PLOT_BEGIN_TITLE_EDIT(id, fn) { wxEVT_PLOT_BEGIN_TITLE_EDIT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL },
#define EVT_PLOT_END_TITLE_EDIT(id, fn) { wxEVT_PLOT_END_TITLE_EDIT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL },
#else
#define EVT_PLOT(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_DOUBLECLICKED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_SEL_CHANGING(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_SEL_CHANGING, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_SEL_CHANGED(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_SEL_CHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_CLICKED(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_CLICKED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_DOUBLECLICKED(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_DOUBLECLICKED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_ZOOM_IN(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_ZOOM_IN, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_ZOOM_OUT(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_ZOOM_OUT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_VALUE_SEL_CREATING(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_VALUE_SEL_CREATING, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_VALUE_SEL_CREATED(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_VALUE_SEL_CREATED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_VALUE_SEL_CHANGING(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_VALUE_SEL_CHANGING, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_VALUE_SEL_CHANGED(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_VALUE_SEL_CHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_AREA_SEL_CREATING(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_AREA_SEL_CREATING, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_AREA_SEL_CREATED(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_AREA_SEL_CREATED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_AREA_SEL_CHANGING(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_AREA_SEL_CHANGING, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_AREA_SEL_CHANGED(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_AREA_SEL_CHANGED, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_BEGIN_X_LABEL_EDIT(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_BEGIN_X_LABEL_EDIT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_END_X_LABEL_EDIT(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_END_X_LABEL_EDIT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_BEGIN_Y_LABEL_EDIT(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_BEGIN_Y_LABEL_EDIT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_END_Y_LABEL_EDIT(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_END_Y_LABEL_EDIT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_BEGIN_TITLE_EDIT(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_BEGIN_TITLE_EDIT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#define EVT_PLOT_END_TITLE_EDIT(id, fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_PLOT_END_TITLE_EDIT, id, -1, (wxObjectEventFunction) (wxEventFunction) (wxCommandEventFunction) (wxNotifyEventFunction) (wxPlotEventFunction) & fn, (wxObject *) NULL ),
#endif
#endif
// _WX_PLOT_H_

View File

@@ -1256,6 +1256,7 @@ private:
void OnMouseMove(wxMouseEvent& evt);
void OnMouseLeftUp(wxMouseEvent& evt);
void OnMouseRightUp(wxMouseEvent& evt);
void OnMouseWheel(wxMouseEvent& evt);
void OnChar(wxKeyEvent& evt);
void OnKeyDown(wxKeyEvent& evt);
void OnLoseFocus(wxFocusEvent& evt);

View File

@@ -1,49 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: xh_all.h
// Purpose: includes all xh_*.h files
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
// Copyright: (c) 2000 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_XH_ALL_H_
#define _WX_XH_ALL_H_
// Existing handlers:
#include "wx/xml/xh_menu.h"
#include "wx/xml/xh_panel.h"
#include "wx/xml/xh_dlg.h"
#include "wx/xml/xh_bttn.h"
#include "wx/xml/xh_chckb.h"
#include "wx/xml/xh_gauge.h"
#include "wx/xml/xh_html.h"
#include "wx/xml/xh_spin.h"
#include "wx/xml/xh_sttxt.h"
#include "wx/xml/xh_slidr.h"
#include "wx/xml/xh_radbt.h"
#include "wx/xml/xh_radbx.h"
#include "wx/xml/xh_combo.h"
#include "wx/xml/xh_chckl.h"
#include "wx/xml/xh_choic.h"
#include "wx/xml/xh_sizer.h"
#include "wx/xml/xh_stbmp.h"
#include "wx/xml/xh_notbk.h"
#include "wx/xml/xh_text.h"
#include "wx/xml/xh_listb.h"
#include "wx/xml/xh_toolb.h"
#include "wx/xml/xh_bmpbt.h"
#include "wx/xml/xh_stbox.h"
#include "wx/xml/xh_scrol.h"
#include "wx/xml/xh_tree.h"
#include "wx/xml/xh_cald.h"
#include "wx/xml/xh_listc.h"
#include "wx/xml/xh_stlin.h"
#include "wx/xml/xh_bmp.h"
#include "wx/xml/xh_unkwn.h"
#include "wx/xml/xh_frame.h"
#endif // _WX_XMLRES_H_

View File

@@ -1,239 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: xml.h
// Purpose: wxXmlDocument - XML parser & data holder class
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
// Copyright: (c) 2000 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_XML_H_
#define _WX_XML_H_
#ifdef __GNUG__
#pragma interface "xml.h"
#endif
#include "wx/defs.h"
#include "wx/string.h"
#include "wx/object.h"
#include "wx/list.h"
class WXDLLEXPORT wxXmlNode;
class WXDLLEXPORT wxXmlProperty;
class WXDLLEXPORT wxXmlDocument;
class WXDLLEXPORT wxXmlIOHandler;
class WXDLLEXPORT wxInputStream;
class WXDLLEXPORT wxOutputStream;
// Represents XML node type.
enum wxXmlNodeType
{
// note: values are synchronized with xmlElementType from libxml
wxXML_ELEMENT_NODE = 1,
wxXML_ATTRIBUTE_NODE = 2,
wxXML_TEXT_NODE = 3,
wxXML_CDATA_SECTION_NODE = 4,
wxXML_ENTITY_REF_NODE = 5,
wxXML_ENTITY_NODE = 6,
wxXML_PI_NODE = 7,
wxXML_COMMENT_NODE = 8,
wxXML_DOCUMENT_NODE = 9,
wxXML_DOCUMENT_TYPE_NODE = 10,
wxXML_DOCUMENT_FRAG_NODE = 11,
wxXML_NOTATION_NODE = 12,
wxXML_HTML_DOCUMENT_NODE = 13
};
// Types of XML files:
enum wxXmlIOType
{
wxXML_IO_AUTO = 0, // detect it automatically
wxXML_IO_LIBXML, // use libxml2 to parse/save XML document
wxXML_IO_BIN, // save in binary uncompressed proprietary format
wxXML_IO_BINZ // svae in binary zlib-compressed proprietary format
};
// Represents node property(ies).
// Example: in <img src="hello.gif" id="3"/> "src" is property with value
// "hello.gif" and "id" is prop. with value "3".
class WXDLLEXPORT wxXmlProperty
{
public:
wxXmlProperty() : m_Next(NULL) {}
wxXmlProperty(const wxString& name, const wxString& value, wxXmlProperty *next)
: m_Name(name), m_Value(value), m_Next(next) {}
~wxXmlProperty() { delete m_Next; }
wxString GetName() const { return m_Name; }
wxString GetValue() const { return m_Value; }
wxXmlProperty *GetNext() const { return m_Next; }
void SetName(const wxString& name) { m_Name = name; }
void SetValue(const wxString& value) { m_Value = value; }
void SetNext(wxXmlProperty *next) { m_Next = next; }
private:
wxString m_Name;
wxString m_Value;
wxXmlProperty *m_Next;
};
// Represents node in XML document. Node has name and may have content
// and properties. Most common node types are wxXML_TEXT_NODE (name and props
// are irrelevant) and wxXML_ELEMENT_NODE (e.g. in <title>hi</title> there is
// element with name="title", irrelevant content and one child (wxXML_TEXT_NODE
// with content="hi").
class WXDLLEXPORT wxXmlNode
{
public:
wxXmlNode() : m_Properties(NULL), m_Parent(NULL),
m_Children(NULL), m_Next(NULL) {}
wxXmlNode(wxXmlNode *parent,wxXmlNodeType type,
const wxString& name, const wxString& content,
wxXmlProperty *props, wxXmlNode *next);
~wxXmlNode() { delete m_Properties; delete m_Next; delete m_Children; }
// copy ctor & operator=. Note that this does NOT copy syblings
// and parent pointer, i.e. m_Parent and m_Next will be NULL
// after using copy ctor and are never unmodified by operator=.
// On the other hand, it DOES copy children and properties.
wxXmlNode(const wxXmlNode& node);
wxXmlNode& operator=(const wxXmlNode& node);
// user-friendly creation:
wxXmlNode(wxXmlNodeType type, const wxString& name,
const wxString& content = wxEmptyString);
void AddChild(wxXmlNode *child);
void InsertChild(wxXmlNode *child, wxXmlNode *before_node);
bool RemoveChild(wxXmlNode *child);
void AddProperty(const wxString& name, const wxString& value);
bool DeleteProperty(const wxString& name);
// access methods:
wxXmlNodeType GetType() const { return m_Type; }
wxString GetName() const { return m_Name; }
wxString GetContent() const { return m_Content; }
wxXmlNode *GetParent() const { return m_Parent; }
wxXmlNode *GetNext() const { return m_Next; }
wxXmlNode *GetChildren() const { return m_Children; }
wxXmlProperty *GetProperties() const { return m_Properties; }
bool GetPropVal(const wxString& propName, wxString *value) const;
wxString GetPropVal(const wxString& propName, const wxString& defaultVal) const;
bool HasProp(const wxString& propName) const;
void SetType(wxXmlNodeType type) { m_Type = type; }
void SetName(const wxString& name) { m_Name = name; }
void SetContent(const wxString& con) { m_Content = con; }
void SetParent(wxXmlNode *parent) { m_Parent = parent; }
void SetNext(wxXmlNode *next) { m_Next = next; }
void SetChildren(wxXmlNode *child) { m_Children = child; }
void SetProperties(wxXmlProperty *prop) { m_Properties = prop; }
void AddProperty(wxXmlProperty *prop);
private:
wxXmlNodeType m_Type;
wxString m_Name;
wxString m_Content;
wxXmlProperty *m_Properties;
wxXmlNode *m_Parent, *m_Children, *m_Next;
void DoCopy(const wxXmlNode& node);
};
// This class holds XML data/document as parsed by libxml. Note that
// internal representation is independant on libxml and you can use
// it without libxml (see Load/SaveBinary).
class WXDLLEXPORT wxXmlDocument : public wxObject
{
public:
wxXmlDocument() : wxObject(), m_Version(wxT("1.0")), m_Root(NULL) {}
wxXmlDocument(const wxString& filename, wxXmlIOType io_type = wxXML_IO_AUTO);
wxXmlDocument(wxInputStream& stream, wxXmlIOType io_type = wxXML_IO_AUTO);
~wxXmlDocument() { delete m_Root; }
wxXmlDocument(const wxXmlDocument& doc);
wxXmlDocument& operator=(const wxXmlDocument& doc);
// Parses .xml file and loads data. Returns TRUE on success, FALSE
// otherwise.
// NOTE: Any call to this method will result into linking against libxml
// and app's binary size will grow by ca. 250kB
bool Load(const wxString& filename, wxXmlIOType io_type = wxXML_IO_AUTO);
bool Load(wxInputStream& stream, wxXmlIOType io_type = wxXML_IO_AUTO);
// Saves document as .xml file.
bool Save(const wxString& filename, wxXmlIOType io_type) const;
bool Save(wxOutputStream& stream, wxXmlIOType io_type) const;
// Returns root node of the document.
wxXmlNode *GetRoot() const { return m_Root; }
// Returns version of document (may be empty).
wxString GetVersion() const { return m_Version; }
// Returns encoding of document (may be empty).
wxString GetEncoding() const { return m_Encoding; }
// Write-access methods:
void SetRoot(wxXmlNode *node) { delete m_Root ; m_Root = node; }
void SetVersion(const wxString& version) { m_Version = version; }
void SetEncoding(const wxString& encoding) { m_Encoding = encoding; }
static void AddHandler(wxXmlIOHandler *handler);
static void CleanUpHandlers();
static void InitStandardHandlers();
protected:
static wxList *sm_Handlers;
private:
wxString m_Version, m_Encoding;
wxXmlNode *m_Root;
void DoCopy(const wxXmlDocument& doc);
};
// wxXmlIOHandler takes care of loading and/or saving XML data.
// see xmlio.h for available handlers
class WXDLLEXPORT wxXmlIOHandler : public wxObject
{
public:
wxXmlIOHandler() {}
virtual wxXmlIOType GetType() = 0;
virtual bool CanLoad(wxInputStream& stream) = 0;
virtual bool CanSave() = 0;
virtual bool Load(wxInputStream& stream, wxXmlDocument& doc) = 0;
virtual bool Save(wxOutputStream& stream, const wxXmlDocument& doc) = 0;
};
#endif // _WX_XML_H_

View File

@@ -1,72 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: xmlio.h
// Purpose: wxXmlIOHandler - XML I/O classes
// Author: Vaclav Slavik
// Created: 2000/07/24
// RCS-ID: $Id$
// Copyright: (c) 2000 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_XMLIO_H_
#define _WX_XMLIO_H_
#ifdef __GNUG__
#pragma interface "xmlio.h"
#endif
#include "wx/defs.h"
#include "wx/string.h"
#include "wx/xml/xml.h"
class WXDLLEXPORT wxXmlIOHandlerBin : public wxXmlIOHandler
{
public:
wxXmlIOHandlerBin() {}
virtual wxXmlIOType GetType() { return wxXML_IO_BIN; }
virtual bool CanLoad(wxInputStream& stream);
virtual bool CanSave() { return TRUE; }
virtual bool Load(wxInputStream& stream, wxXmlDocument& doc);
virtual bool Save(wxOutputStream& stream, const wxXmlDocument& doc);
protected:
wxString ReadHeader(wxInputStream& stream);
void WriteHeader(wxOutputStream& stream, const wxString& header);
};
#if wxUSE_ZLIB
class WXDLLEXPORT wxXmlIOHandlerBinZ : public wxXmlIOHandlerBin
{
public:
wxXmlIOHandlerBinZ() {}
virtual wxXmlIOType GetType() { return wxXML_IO_BINZ; }
virtual bool CanLoad(wxInputStream& stream);
virtual bool Load(wxInputStream& stream, wxXmlDocument& doc);
virtual bool Save(wxOutputStream& stream, const wxXmlDocument& doc);
};
#endif
class WXDLLEXPORT wxXmlIOHandlerLibxml : public wxXmlIOHandler
{
public:
virtual wxXmlIOType GetType() { return wxXML_IO_LIBXML; }
virtual bool CanLoad(wxInputStream& stream);
virtual bool CanSave();
virtual bool Load(wxInputStream& stream, wxXmlDocument& doc);
virtual bool Save(wxOutputStream& stream, const wxXmlDocument& doc);
};
#endif // _WX_XMLIO_H_

View File

@@ -1,303 +0,0 @@
/////////////////////////////////////////////////////////////////////////////
// Name: xmlres.h
// Purpose: XML resources
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
// Copyright: (c) 2000 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_XMLRES_H_
#define _WX_XMLRES_H_
#ifdef __GNUG__
#pragma interface "xmlres.h"
#endif
#include "wx/defs.h"
#include "wx/string.h"
#include "wx/dynarray.h"
#include "wx/datetime.h"
#include "wx/list.h"
#include "wx/gdicmn.h"
#include "wx/filesys.h"
#include "wx/bitmap.h"
#include "wx/icon.h"
class WXDLLEXPORT wxMenu;
class WXDLLEXPORT wxMenuBar;
class WXDLLEXPORT wxDialog;
class WXDLLEXPORT wxPanel;
class WXDLLEXPORT wxWindow;
class WXDLLEXPORT wxFrame;
class WXDLLEXPORT wxToolBar;
class WXDLLEXPORT wxXmlResourceHandler;
#include "wx/xml/xml.h"
class WXDLLEXPORT wxXmlResourceDataRecord
{
public:
wxXmlResourceDataRecord() : Doc(NULL), Time(wxDateTime::Now()) {}
~wxXmlResourceDataRecord() {delete Doc;}
wxString File;
wxXmlDocument *Doc;
wxDateTime Time;
};
WX_DECLARE_EXPORTED_OBJARRAY(wxXmlResourceDataRecord, wxXmlResourceDataRecords);
// This class holds XML resources from one or more .xml files
// (or derived forms, either binary or zipped -- see manual for
// details).
class WXDLLEXPORT wxXmlResource : public wxObject
{
public:
// Ctor. If use_locale is TRUE, translatable strings are
// translated via _(). You can disable it by passing use_locale=FALSE
// (for example if you provide resource file for each locale)
wxXmlResource(bool use_locale = TRUE);
wxXmlResource(const wxString& filemask, bool use_locale = TRUE);
~wxXmlResource();
// Loads resources from XML files that match given filemask.
// This method understands VFS (see filesys.h).
bool Load(const wxString& filemask);
// Initialize handlers for all supported controls/windows. This will
// make the executable quite big because it forces linking against
// most of wxWin library
void InitAllHandlers();
// Initialize only specific handler (or custom handler). Convention says
// that handler name is equal to control's name plus 'XmlHandler', e.g.
// wxTextCtrlXmlHandler, wxHtmlWindowXmlHandler. XML resource compiler
// (xmlres) can create include file that contains initialization code for
// all controls used within the resource.
void AddHandler(wxXmlResourceHandler *handler);
// Removes all handlers
void ClearHandlers();
// Loads menu from resource. Returns NULL on failure.
wxMenu *LoadMenu(const wxString& name);
// Loads menubar from resource. Returns NULL on failure.
wxMenuBar *LoadMenuBar(const wxString& name);
#if wxUSE_TOOLBAR
// Loads toolbar
wxToolBar *LoadToolBar(wxWindow *parent, const wxString& name);
#endif
// Loads dialog. dlg points to parent window (if any). Second form
// is used to finish creation of already existing instance (main reason
// for this is that you may want to use derived class with new event table)
// Example (typical usage):
// MyDialog dlg;
// wxTheXmlResource->LoadDialog(&dlg, mainFrame, "my_dialog");
// dlg->ShowModal();
wxDialog *LoadDialog(wxWindow *parent, const wxString& name);
bool LoadDialog(wxDialog *dlg, wxWindow *parent, const wxString& name);
// Loads panel. panel points to parent window (if any). Second form
// is used to finish creation of already existing instance.
wxPanel *LoadPanel(wxWindow *parent, const wxString& name);
bool LoadPanel(wxPanel *panel, wxWindow *parent, const wxString& name);
bool LoadFrame(wxFrame* frame, wxWindow *parent, const wxString& name);
// Loads bitmap or icon resource from file:
wxBitmap LoadBitmap(const wxString& name);
wxIcon LoadIcon(const wxString& name);
// Returns numeric ID that is equivalent to string id used in XML
// resource. To be used in event tables
// Macro XMLID is provided for convenience
static int GetXMLID(const char *str_id);
protected:
// Scans resources list for unloaded files and loads them. Also reloads
// files that have been modified since last loading.
void UpdateResources();
// Finds resource (calls UpdateResources) and returns node containing it
wxXmlNode *FindResource(const wxString& name, const wxString& classname);
// Creates resource from info in given node:
wxObject *CreateResFromNode(wxXmlNode *node, wxObject *parent, wxObject *instance = NULL);
// Remove nodes with property "platform" that does not
// match current platform
void ProcessPlatformProperty(wxXmlNode *node);
bool GetUseLocale() { return m_UseLocale; }
private:
bool m_UseLocale;
wxList m_Handlers;
wxXmlResourceDataRecords m_Data;
#if wxUSE_FILESYSTEM
wxFileSystem m_CurFileSystem;
wxFileSystem& GetCurFileSystem() { return m_CurFileSystem; }
#endif
friend class wxXmlResourceHandler;
};
// Global instance of resource class. For your convenience.
extern wxXmlResource *wxTheXmlResource;
// This macro translates string identifier (as used in XML resource,
// e.g. <menuitem id="my_menu">...</menuitem>) to integer id that is needed by
// wxWindows event tables.
// Example:
// BEGIN_EVENT_TABLE(MyFrame, wxFrame)
// EVT_MENU(XMLID("quit"), MyFrame::OnQuit)
// EVT_MENU(XMLID("about"), MyFrame::OnAbout)
// EVT_MENU(XMLID("new"), MyFrame::OnNew)
// EVT_MENU(XMLID("open"), MyFrame::OnOpen)
// END_EVENT_TABLE()
#define XMLID(str_id) \
wxXmlResource::GetXMLID(wxT(str_id))
// This macro returns pointer to particular control in dialog
// created using XML resources. You can use it to set/get values from
// controls.
// Example:
// wxDialog dlg;
// wxTheXmlResource->LoadDialog(&dlg, mainFrame, "my_dialog");
// XMLCTRL(dlg, "my_textctrl", wxTextCtrl)->SetValue(wxT("default value"));
#define XMLCTRL(window, id, type) \
((type*)((window).FindWindow(XMLID(id))))
class WXDLLEXPORT wxXmlResourceHandler : public wxObject
{
public:
wxXmlResourceHandler();
virtual ~wxXmlResourceHandler() {}
// Creates object (menu, dialog, control, ...) from XML node.
// Should check for validity.
// parent is higher-level object (usually window, dialog or panel)
// that is often neccessary to create resource
// if instance != NULL it should not create new instance via 'new' but
// rather use this one and call its Create method
wxObject *CreateResource(wxXmlNode *node, wxObject *parent, wxObject *instance);
// This one is called from CreateResource after variables
// were filled
virtual wxObject *DoCreateResource() = 0;
// Returns TRUE if it understands this node and can create
// resource from it, FALSE otherwise.
virtual bool CanHandle(wxXmlNode *node) = 0;
void SetParentResource(wxXmlResource *res) { m_Resource = res; }
protected:
wxXmlResource *m_Resource;
wxArrayString m_StyleNames;
wxArrayInt m_StyleValues;
// Variables (filled by CreateResource)
wxXmlNode *m_Node;
wxString m_Class;
wxObject *m_Parent, *m_Instance;
wxWindow *m_ParentAsWindow, *m_InstanceAsWindow;
// --- Handy methods:
// Returns true if the node has property class equal to classname,
// e.g. <object class="wxDialog">
bool IsOfClass(wxXmlNode *node, const wxString& classname)
{ return node->GetPropVal(wxT("class"), wxEmptyString) == classname; }
// Gets node content from wxXML_ENTITY_NODE
// (the problem is, <tag>content<tag> is represented as
// wxXML_ENTITY_NODE name="tag", content=""
// |-- wxXML_TEXT_NODE or
// wxXML_CDATA_SECTION_NODE name="" content="content"
wxString GetNodeContent(wxXmlNode *node);
// Check to see if a param exists
bool HasParam(const wxString& param);
// Finds the node or returns NULL
wxXmlNode *GetParamNode(const wxString& param);
wxString GetParamValue(const wxString& param);
// Add style flag (e.g. wxMB_DOCKABLE) to list of flags
// understood by this handler
void AddStyle(const wxString& name, int value);
// Add styles common to all wxWindow-derived classes
void AddWindowStyles();
// Gets style flags from text in form "flag | flag2| flag3 |..."
// Only understads flags added with AddStyle
int GetStyle(const wxString& param = wxT("style"), int defaults = 0);
// Gets text from param and does some convertions:
// - replaces \n, \r, \t by respective chars (according to C syntax)
// - replaces $ by & and $$ by $ (needed for $File => &File because of XML)
// - calls wxGetTranslations (unless disabled in wxXmlResource)
wxString GetText(const wxString& param);
// Return XMLID
int GetID();
wxString GetName();
// Get bool flag (1,t,yes,on,true are TRUE, everything else is FALSE)
bool GetBool(const wxString& param, bool defaultv = FALSE);
// Get integer value from param
long GetLong( const wxString& param, long defaultv = 0 );
// Get colour in HTML syntax (#RRGGBB)
wxColour GetColour(const wxString& param);
// Get size/position (may be in dlg units):
wxSize GetSize(const wxString& param = wxT("size"));
wxPoint GetPosition(const wxString& param = wxT("pos"));
// Get dimension (may be in dlg units):
wxCoord GetDimension(const wxString& param, wxCoord defaultv = 0);
// Get bitmap:
wxBitmap GetBitmap(const wxString& param = wxT("bitmap"), wxSize size = wxDefaultSize);
wxIcon GetIcon(const wxString& param = wxT("icon"), wxSize size = wxDefaultSize);
// Get font:
wxFont GetFont(const wxString& param = wxT("font"));
// Sets common window options:
void SetupWindow(wxWindow *wnd);
void CreateChildren(wxObject *parent, bool this_hnd_only = FALSE);
void CreateChildrenPrivately(wxObject *parent, wxXmlNode *rootnode = NULL);
wxObject *CreateResFromNode(wxXmlNode *node, wxObject *parent, wxObject *instance = NULL)
{ return m_Resource->CreateResFromNode(node, parent, instance); }
// helper
wxFileSystem& GetCurFileSystem() { return m_Resource->GetCurFileSystem(); }
};
#define ADD_STYLE(style) AddStyle(wxT(#style), style)
#endif // _WX_XMLRES_H_

View File

@@ -0,0 +1,49 @@
/////////////////////////////////////////////////////////////////////////////
// Name: xh_all.h
// Purpose: includes all xh_*.h files
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
// Copyright: (c) 2000 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_XH_ALL_H_
#define _WX_XH_ALL_H_
// Existing handlers:
#include "wx/xrc/xh_menu.h"
#include "wx/xrc/xh_panel.h"
#include "wx/xrc/xh_dlg.h"
#include "wx/xrc/xh_bttn.h"
#include "wx/xrc/xh_chckb.h"
#include "wx/xrc/xh_gauge.h"
#include "wx/xrc/xh_html.h"
#include "wx/xrc/xh_spin.h"
#include "wx/xrc/xh_sttxt.h"
#include "wx/xrc/xh_slidr.h"
#include "wx/xrc/xh_radbt.h"
#include "wx/xrc/xh_radbx.h"
#include "wx/xrc/xh_combo.h"
#include "wx/xrc/xh_chckl.h"
#include "wx/xrc/xh_choic.h"
#include "wx/xrc/xh_sizer.h"
#include "wx/xrc/xh_stbmp.h"
#include "wx/xrc/xh_notbk.h"
#include "wx/xrc/xh_text.h"
#include "wx/xrc/xh_listb.h"
#include "wx/xrc/xh_toolb.h"
#include "wx/xrc/xh_bmpbt.h"
#include "wx/xrc/xh_stbox.h"
#include "wx/xrc/xh_scrol.h"
#include "wx/xrc/xh_tree.h"
#include "wx/xrc/xh_cald.h"
#include "wx/xrc/xh_listc.h"
#include "wx/xrc/xh_stlin.h"
#include "wx/xrc/xh_bmp.h"
#include "wx/xrc/xh_unkwn.h"
#include "wx/xrc/xh_frame.h"
#endif // _WX_XMLRES_H_

View File

@@ -15,23 +15,23 @@
#pragma interface "xh_bmp.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxBitmapXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxBitmapXmlHandler : public wxXmlResourceHandler
{
public:
wxBitmapXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxBitmapXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
class WXDLLEXPORT wxIconXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxIconXmlHandler : public wxXmlResourceHandler
{
public:
wxIconXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxIconXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};

View File

@@ -15,15 +15,15 @@
#pragma interface "xh_bmpbt.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxBitmapButtonXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxBitmapButtonXmlHandler : public wxXmlResourceHandler
{
public:
wxBitmapButtonXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxBitmapButtonXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};

View File

@@ -15,14 +15,14 @@
#pragma interface "xh_bttn.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxButtonXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxButtonXmlHandler : public wxXmlResourceHandler
{
public:
wxButtonXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxButtonXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};

View File

@@ -15,14 +15,14 @@
#pragma interface "xh_cald.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxCalendarCtrlXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxCalendarCtrlXmlHandler : public wxXmlResourceHandler
{
public:
wxCalendarCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxCalendarCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};

View File

@@ -15,17 +15,17 @@
#pragma interface "xh_chckb.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
#include "wx/defs.h"
#if wxUSE_CHECKBOX
class WXDLLEXPORT wxCheckBoxXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxCheckBoxXmlHandler : public wxXmlResourceHandler
{
public:
wxCheckBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxCheckBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
#endif

View File

@@ -15,17 +15,17 @@
#pragma interface "xh_chckl.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxCheckListXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxCheckListXmlHandler : public wxXmlResourceHandler
{
public:
wxCheckListXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_InsideBox;
wxArrayString strList;
public:
wxCheckListXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_insideBox;
wxArrayString strList;
};

View File

@@ -15,17 +15,17 @@
#pragma interface "xh_choic.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxChoiceXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxChoiceXmlHandler : public wxXmlResourceHandler
{
public:
wxChoiceXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_InsideBox;
wxArrayString strList;
public:
wxChoiceXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_insideBox;
wxArrayString strList;
};

View File

@@ -15,19 +15,19 @@
#pragma interface "xh_combo.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
#if wxUSE_COMBOBOX
class WXDLLEXPORT wxComboBoxXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxComboBoxXmlHandler : public wxXmlResourceHandler
{
public:
wxComboBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_InsideBox;
wxArrayString strList;
public:
wxComboBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_insideBox;
wxArrayString strList;
};
#endif

View File

@@ -15,14 +15,14 @@
#pragma interface "xh_dlg.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxDialogXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxDialogXmlHandler : public wxXmlResourceHandler
{
public:
wxDialogXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxDialogXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};

View File

@@ -15,14 +15,14 @@
#pragma interface "xh_frame.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxFrameXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxFrameXmlHandler : public wxXmlResourceHandler
{
public:
wxFrameXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxFrameXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};

View File

@@ -19,20 +19,20 @@
#if wxUSE_GAUGE
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxGaugeXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxGaugeXmlHandler : public wxXmlResourceHandler
{
enum
enum
{
wxGAUGE_DEFAULT_RANGE = 100
};
public:
wxGaugeXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxGaugeXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
#endif

View File

@@ -15,18 +15,18 @@
#pragma interface "xh_html.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
#include "wx/defs.h"
#if wxUSE_HTML
class WXDLLEXPORT wxHtmlWindowXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxHtmlWindowXmlHandler : public wxXmlResourceHandler
{
public:
wxHtmlWindowXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxHtmlWindowXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
#endif

View File

@@ -15,19 +15,19 @@
#pragma interface "xh_listb.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
#if wxUSE_LISTBOX
class WXDLLEXPORT wxListBoxXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxListBoxXmlHandler : public wxXmlResourceHandler
{
public:
wxListBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_InsideBox;
wxArrayString strList;
public:
wxListBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_insideBox;
wxArrayString strList;
};
#endif

View File

@@ -15,14 +15,14 @@
#pragma interface "xh_listc.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxListCtrlXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxListCtrlXmlHandler : public wxXmlResourceHandler
{
public:
wxListCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxListCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};

View File

@@ -15,20 +15,20 @@
#pragma interface "xh_menu.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxMenuXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxMenuXmlHandler : public wxXmlResourceHandler
{
public:
wxMenuXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_InsideMenu;
public:
wxMenuXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_insideMenu;
};
class WXDLLEXPORT wxMenuBarXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxMenuBarXmlHandler : public wxXmlResourceHandler
{
public:
wxMenuBarXmlHandler();

View File

@@ -14,22 +14,22 @@
#pragma interface "xh_notbk.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
#if wxUSE_NOTEBOOK
class WXDLLEXPORT wxNotebook;
class WXDLLEXPORT wxNotebookXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxNotebookXmlHandler : public wxXmlResourceHandler
{
public:
wxNotebookXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_IsInside;
wxNotebook *m_Notebook;
public:
wxNotebookXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_isInside;
wxNotebook *m_notebook;
};
#endif

View File

@@ -15,14 +15,14 @@
#pragma interface "xh_panel.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxPanelXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxPanelXmlHandler : public wxXmlResourceHandler
{
public:
wxPanelXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxPanelXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};

View File

@@ -15,17 +15,17 @@
#pragma interface "xh_radbt.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
#include "wx/defs.h"
#if wxUSE_RADIOBOX
class WXDLLEXPORT wxRadioButtonXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxRadioButtonXmlHandler : public wxXmlResourceHandler
{
public:
wxRadioButtonXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxRadioButtonXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
#endif

View File

@@ -15,19 +15,19 @@
#pragma interface "xh_radbx.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
#if wxUSE_RADIOBOX
class WXDLLEXPORT wxRadioBoxXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxRadioBoxXmlHandler : public wxXmlResourceHandler
{
public:
wxRadioBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_InsideBox;
wxArrayString strList;
public:
wxRadioBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_insideBox;
wxArrayString strList;
};
#endif

View File

@@ -15,24 +15,24 @@
#pragma interface "xh_scrol.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
#include "wx/defs.h"
class WXDLLEXPORT wxScrollBarXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxScrollBarXmlHandler : public wxXmlResourceHandler
{
enum
enum
{
wxSL_DEFAULT_VALUE = 0,
wxSL_DEFAULT_MIN = 0,
wxSL_DEFAULT_MAX = 100
};
public:
wxScrollBarXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxScrollBarXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};

View File

@@ -15,23 +15,23 @@
#pragma interface "xh_sizer.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxSizer;
class WXDLLEXPORT wxSizerXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxSizerXmlHandler : public wxXmlResourceHandler
{
public:
wxSizerXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_IsInside;
wxSizer *m_ParentSizer;
bool IsSizerNode(wxXmlNode *node);
public:
wxSizerXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_isInside;
wxSizer *m_parentSizer;
bool IsSizerNode(wxXmlNode *node);
};

View File

@@ -15,24 +15,24 @@
#pragma interface "xh_slidr.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
#include "wx/defs.h"
#if wxUSE_SLIDER
class WXDLLEXPORT wxSliderXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxSliderXmlHandler : public wxXmlResourceHandler
{
enum
enum
{
wxSL_DEFAULT_VALUE = 0,
wxSL_DEFAULT_MIN = 0,
wxSL_DEFAULT_MAX = 100
};
public:
wxSliderXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxSliderXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
#endif

View File

@@ -15,40 +15,40 @@
#pragma interface "xh_spin.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
#include "wx/defs.h"
#if wxUSE_SPINBTN
class WXDLLEXPORT wxSpinButtonXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxSpinButtonXmlHandler : public wxXmlResourceHandler
{
enum
enum
{
wxSP_DEFAULT_VALUE = 0,
wxSP_DEFAULT_MIN = 0,
wxSP_DEFAULT_MAX = 100
};
public:
wxSpinButtonXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxSpinButtonXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
#endif
#if wxUSE_SPINCTRL
class WXDLLEXPORT wxSpinCtrlXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxSpinCtrlXmlHandler : public wxXmlResourceHandler
{
enum
enum
{
wxSP_DEFAULT_VALUE = 0,
wxSP_DEFAULT_MIN = 0,
wxSP_DEFAULT_MAX = 100
};
public:
wxSpinCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxSpinCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
#endif

View File

@@ -15,15 +15,15 @@
#pragma interface "xh_stbmp.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxStaticBitmapXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxStaticBitmapXmlHandler : public wxXmlResourceHandler
{
public:
wxStaticBitmapXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxStaticBitmapXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};

View File

@@ -15,15 +15,15 @@
#pragma interface "xh_stbox.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxStaticBoxXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxStaticBoxXmlHandler : public wxXmlResourceHandler
{
public:
wxStaticBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxStaticBoxXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};

View File

@@ -15,16 +15,16 @@
#pragma interface "xh_stlin.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
#if wxUSE_STATLINE
class WXDLLEXPORT wxStaticLineXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxStaticLineXmlHandler : public wxXmlResourceHandler
{
public:
wxStaticLineXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxStaticLineXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};
#endif

View File

@@ -15,15 +15,15 @@
#pragma interface "xh_sttxt.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxStaticTextXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxStaticTextXmlHandler : public wxXmlResourceHandler
{
public:
wxStaticTextXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxStaticTextXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};

View File

@@ -15,15 +15,15 @@
#pragma interface "xh_text.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxTextCtrlXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxTextCtrlXmlHandler : public wxXmlResourceHandler
{
public:
wxTextCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxTextCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};

View File

@@ -15,22 +15,22 @@
#pragma interface "xh_toolb.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
#if wxUSE_TOOLBAR
class WXDLLEXPORT wxToolBar;
class WXDLLEXPORT wxToolBarXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxToolBarXmlHandler : public wxXmlResourceHandler
{
public:
wxToolBarXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_IsInside;
wxToolBar *m_Toolbar;
public:
wxToolBarXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
private:
bool m_isInside;
wxToolBar *m_toolbar;
};
#endif

View File

@@ -15,14 +15,14 @@
#pragma interface "xh_tree.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxTreeCtrlXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxTreeCtrlXmlHandler : public wxXmlResourceHandler
{
public:
wxTreeCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxTreeCtrlXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};

View File

@@ -15,15 +15,15 @@
#pragma interface "xh_unkwn.h"
#endif
#include "wx/xml/xmlres.h"
#include "wx/xrc/xmlres.h"
class WXDLLEXPORT wxUnknownWidgetXmlHandler : public wxXmlResourceHandler
class WXXMLDLLEXPORT wxUnknownWidgetXmlHandler : public wxXmlResourceHandler
{
public:
wxUnknownWidgetXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
public:
wxUnknownWidgetXmlHandler();
virtual wxObject *DoCreateResource();
virtual bool CanHandle(wxXmlNode *node);
};

View File

@@ -0,0 +1,264 @@
/////////////////////////////////////////////////////////////////////////////
// Name: xml.h
// Purpose: wxXmlDocument - XML parser & data holder class
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
// Copyright: (c) 2000 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_XML_H_
#define _WX_XML_H_
#ifdef __GNUG__
#pragma interface "xml.h"
#endif
#include "wx/defs.h"
#include "wx/string.h"
#include "wx/object.h"
#include "wx/list.h"
#ifdef WXXMLISDLL
#define WXXMLDLLEXPORT WXDLLEXPORT
#else
#define WXXMLDLLEXPORT
#endif
class WXXMLDLLEXPORT wxXmlNode;
class WXXMLDLLEXPORT wxXmlProperty;
class WXXMLDLLEXPORT wxXmlDocument;
class WXXMLDLLEXPORT wxXmlIOHandler;
class WXDLLEXPORT wxInputStream;
class WXDLLEXPORT wxOutputStream;
// Represents XML node type.
enum wxXmlNodeType
{
// note: values are synchronized with xmlElementType from libxml
wxXML_ELEMENT_NODE = 1,
wxXML_ATTRIBUTE_NODE = 2,
wxXML_TEXT_NODE = 3,
wxXML_CDATA_SECTION_NODE = 4,
wxXML_ENTITY_REF_NODE = 5,
wxXML_ENTITY_NODE = 6,
wxXML_PI_NODE = 7,
wxXML_COMMENT_NODE = 8,
wxXML_DOCUMENT_NODE = 9,
wxXML_DOCUMENT_TYPE_NODE = 10,
wxXML_DOCUMENT_FRAG_NODE = 11,
wxXML_NOTATION_NODE = 12,
wxXML_HTML_DOCUMENT_NODE = 13
};
// Types of XML files:
enum wxXmlIOType
{
wxXML_IO_AUTO = 0, // detect it automatically
wxXML_IO_EXPAT, // use Expat to load from text/xml document
wxXML_IO_TEXT_OUTPUT, // generic saver into text/xml
wxXML_IO_BIN, // save in binary uncompressed proprietary format
wxXML_IO_BINZ // svae in binary zlib-compressed proprietary format
};
// Represents node property(ies).
// Example: in <img src="hello.gif" id="3"/> "src" is property with value
// "hello.gif" and "id" is prop. with value "3".
class WXXMLDLLEXPORT wxXmlProperty
{
public:
wxXmlProperty() : m_next(NULL) {}
wxXmlProperty(const wxString& name, const wxString& value,
wxXmlProperty *next)
: m_name(name), m_value(value), m_next(next) {}
~wxXmlProperty() { delete m_next; }
wxString GetName() const { return m_name; }
wxString GetValue() const { return m_value; }
wxXmlProperty *GetNext() const { return m_next; }
void SetName(const wxString& name) { m_name = name; }
void SetValue(const wxString& value) { m_value = value; }
void SetNext(wxXmlProperty *next) { m_next = next; }
private:
wxString m_name;
wxString m_value;
wxXmlProperty *m_next;
};
// Represents node in XML document. Node has name and may have content
// and properties. Most common node types are wxXML_TEXT_NODE (name and props
// are irrelevant) and wxXML_ELEMENT_NODE (e.g. in <title>hi</title> there is
// element with name="title", irrelevant content and one child (wxXML_TEXT_NODE
// with content="hi").
//
// If wxUSE_UNICODE is 0, all strings are encoded in UTF-8 encoding (same as
// ASCII for characters 0-127). You can use wxMBConvUTF8 to convert then to
// desired encoding:
//
// wxCSConv myConv("iso8859-2");
// wxString s(cMB2WC(node->GetContent().c_str()), myConv);
class WXXMLDLLEXPORT wxXmlNode
{
public:
wxXmlNode() : m_properties(NULL), m_parent(NULL),
m_children(NULL), m_next(NULL) {}
wxXmlNode(wxXmlNode *parent,wxXmlNodeType type,
const wxString& name, const wxString& content,
wxXmlProperty *props, wxXmlNode *next);
~wxXmlNode() { delete m_properties; delete m_next; delete m_children; }
// copy ctor & operator=. Note that this does NOT copy syblings
// and parent pointer, i.e. m_parent and m_next will be NULL
// after using copy ctor and are never unmodified by operator=.
// On the other hand, it DOES copy children and properties.
wxXmlNode(const wxXmlNode& node);
wxXmlNode& operator=(const wxXmlNode& node);
// user-friendly creation:
wxXmlNode(wxXmlNodeType type, const wxString& name,
const wxString& content = wxEmptyString);
void AddChild(wxXmlNode *child);
void InsertChild(wxXmlNode *child, wxXmlNode *before_node);
bool RemoveChild(wxXmlNode *child);
void AddProperty(const wxString& name, const wxString& value);
bool DeleteProperty(const wxString& name);
// access methods:
wxXmlNodeType GetType() const { return m_type; }
wxString GetName() const { return m_name; }
wxString GetContent() const { return m_content; }
wxXmlNode *GetParent() const { return m_parent; }
wxXmlNode *GetNext() const { return m_next; }
wxXmlNode *GetChildren() const { return m_children; }
wxXmlProperty *GetProperties() const { return m_properties; }
bool GetPropVal(const wxString& propName, wxString *value) const;
wxString GetPropVal(const wxString& propName,
const wxString& defaultVal) const;
bool HasProp(const wxString& propName) const;
void SetType(wxXmlNodeType type) { m_type = type; }
void SetName(const wxString& name) { m_name = name; }
void SetContent(const wxString& con) { m_content = con; }
void SetParent(wxXmlNode *parent) { m_parent = parent; }
void SetNext(wxXmlNode *next) { m_next = next; }
void SetChildren(wxXmlNode *child) { m_children = child; }
void SetProperties(wxXmlProperty *prop) { m_properties = prop; }
void AddProperty(wxXmlProperty *prop);
private:
wxXmlNodeType m_type;
wxString m_name;
wxString m_content;
wxXmlProperty *m_properties;
wxXmlNode *m_parent, *m_children, *m_next;
void DoCopy(const wxXmlNode& node);
};
// This class holds XML data/document as parsed by libxml. Note that
// internal representation is independant on libxml and you can use
// it without libxml (see Load/SaveBinary).
class WXXMLDLLEXPORT wxXmlDocument : public wxObject
{
public:
wxXmlDocument() : wxObject(), m_version(wxT("1.0")), m_root(NULL) {}
wxXmlDocument(const wxString& filename,
wxXmlIOType io_type = wxXML_IO_AUTO);
wxXmlDocument(wxInputStream& stream,
wxXmlIOType io_type = wxXML_IO_AUTO);
~wxXmlDocument() { delete m_root; }
wxXmlDocument(const wxXmlDocument& doc);
wxXmlDocument& operator=(const wxXmlDocument& doc);
// Parses .xml file and loads data. Returns TRUE on success, FALSE
// otherwise.
// NOTE: Any call to this method will result into linking against libxml
// and app's binary size will grow by ca. 250kB
bool Load(const wxString& filename, wxXmlIOType io_type = wxXML_IO_AUTO);
bool Load(wxInputStream& stream, wxXmlIOType io_type = wxXML_IO_AUTO);
// Saves document as .xml file.
bool Save(const wxString& filename,
wxXmlIOType io_type = wxXML_IO_TEXT_OUTPUT) const;
bool Save(wxOutputStream& stream,
wxXmlIOType io_type = wxXML_IO_TEXT_OUTPUT) const;
bool IsOk() const { return m_root != NULL; }
// Returns root node of the document.
wxXmlNode *GetRoot() const { return m_root; }
// Returns version of document (may be empty).
wxString GetVersion() const { return m_version; }
// Returns encoding of document (may be empty).
// Note: this is the encoding original fail was saved in, *not* the
// encoding of in-memory representation! Data in wxXmlNode are always
// stored in wchar_t (in Unicode build) or UTF-8 encoded
// (if wxUSE_UNICODE is 0).
wxString GetEncoding() const { return m_encoding; }
// Write-access methods:
void SetRoot(wxXmlNode *node) { delete m_root ; m_root = node; }
void SetVersion(const wxString& version) { m_version = version; }
void SetEncoding(const wxString& encoding) { m_encoding = encoding; }
static void AddHandler(wxXmlIOHandler *handler);
static void CleanUpHandlers();
static void InitStandardHandlers();
protected:
static wxList *sm_handlers;
private:
wxString m_version, m_encoding;
wxXmlNode *m_root;
void DoCopy(const wxXmlDocument& doc);
};
// wxXmlIOHandler takes care of loading and/or saving XML data.
// see xmlio.h for available handlers
class WXXMLDLLEXPORT wxXmlIOHandler : public wxObject
{
public:
wxXmlIOHandler() {}
virtual wxXmlIOType GetType() = 0;
virtual bool CanLoad(wxInputStream& stream) = 0;
virtual bool CanSave() = 0;
virtual bool Load(wxInputStream& stream, wxXmlDocument& doc) = 0;
virtual bool Save(wxOutputStream& stream, const wxXmlDocument& doc) = 0;
};
void wxXmlInitXmlModule();
#endif // _WX_XML_H_

View File

@@ -0,0 +1,85 @@
/////////////////////////////////////////////////////////////////////////////
// Name: xmlio.h
// Purpose: wxXmlIOHandler - XML I/O classes
// Author: Vaclav Slavik
// Created: 2000/07/24
// RCS-ID: $Id$
// Copyright: (c) 2000 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_XMLIO_H_
#define _WX_XMLIO_H_
#ifdef __GNUG__
#pragma interface "xmlio.h"
#endif
#include "wx/defs.h"
#include "wx/string.h"
#include "wx/xrc/xml.h"
class WXXMLDLLEXPORT wxXmlIOHandlerExpat : public wxXmlIOHandler
{
public:
virtual wxXmlIOType GetType() { return wxXML_IO_EXPAT; }
virtual bool CanLoad(wxInputStream& stream);
virtual bool CanSave() { return FALSE; }
virtual bool Load(wxInputStream& stream, wxXmlDocument& doc);
virtual bool Save(wxOutputStream& WXUNUSED(stream), const wxXmlDocument& WXUNUSED(doc))
{ return FALSE; }
};
class WXXMLDLLEXPORT wxXmlIOHandlerWriter : public wxXmlIOHandler
{
public:
virtual wxXmlIOType GetType() { return wxXML_IO_TEXT_OUTPUT; }
virtual bool CanLoad(wxInputStream& WXUNUSED(stream)) { return FALSE; }
virtual bool CanSave() { return TRUE; }
virtual bool Load(wxInputStream& WXUNUSED(stream), wxXmlDocument& WXUNUSED(doc))
{ return FALSE; }
virtual bool Save(wxOutputStream& stream, const wxXmlDocument& doc);
};
class WXXMLDLLEXPORT wxXmlIOHandlerBin : public wxXmlIOHandler
{
public:
wxXmlIOHandlerBin() {}
virtual wxXmlIOType GetType() { return wxXML_IO_BIN; }
virtual bool CanLoad(wxInputStream& stream);
virtual bool CanSave() { return TRUE; }
virtual bool Load(wxInputStream& stream, wxXmlDocument& doc);
virtual bool Save(wxOutputStream& stream, const wxXmlDocument& doc);
protected:
wxString ReadHeader(wxInputStream& stream);
void WriteHeader(wxOutputStream& stream, const wxString& header);
};
#if wxUSE_ZLIB
class WXXMLDLLEXPORT wxXmlIOHandlerBinZ : public wxXmlIOHandlerBin
{
public:
wxXmlIOHandlerBinZ() {}
virtual wxXmlIOType GetType() { return wxXML_IO_BINZ; }
virtual bool CanLoad(wxInputStream& stream);
virtual bool Load(wxInputStream& stream, wxXmlDocument& doc);
virtual bool Save(wxOutputStream& stream, const wxXmlDocument& doc);
};
#endif
#endif // _WX_XMLIO_H_

View File

@@ -0,0 +1,358 @@
/////////////////////////////////////////////////////////////////////////////
// Name: xmlres.h
// Purpose: XML resources
// Author: Vaclav Slavik
// Created: 2000/03/05
// RCS-ID: $Id$
// Copyright: (c) 2000 Vaclav Slavik
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
#ifndef _WX_XMLRES_H_
#define _WX_XMLRES_H_
#ifdef __GNUG__
#pragma interface "xmlres.h"
#endif
#include "wx/defs.h"
#include "wx/string.h"
#include "wx/dynarray.h"
#include "wx/datetime.h"
#include "wx/list.h"
#include "wx/gdicmn.h"
#include "wx/filesys.h"
#include "wx/bitmap.h"
#include "wx/icon.h"
#include "wx/xrc/xml.h"
class WXDLLEXPORT wxMenu;
class WXDLLEXPORT wxMenuBar;
class WXDLLEXPORT wxDialog;
class WXDLLEXPORT wxPanel;
class WXDLLEXPORT wxWindow;
class WXDLLEXPORT wxFrame;
class WXDLLEXPORT wxToolBar;
class WXXMLDLLEXPORT wxXmlResourceHandler;
// These macros indicate current version of XML resources (this information is
// encoded in root node of XRC file as "version" property).
//
// Rules for increasing version number:
// - change it only if you made incompatible change to the format. Addition of new
// attribute to control handler is _not_ incompatible change, because older
// versions of the library may ignore it.
// - if you change version number, follow these steps:
// - set major, minor and release numbers to respective version numbers of
// the wxWindows library (see wx/version.h)
// - reset revision to 0 unless the first three are same as before, in which
// case you should increase revision by one
#define WX_XMLRES_CURRENT_VERSION_MAJOR 2
#define WX_XMLRES_CURRENT_VERSION_MINOR 3
#define WX_XMLRES_CURRENT_VERSION_RELEASE 0
#define WX_XMLRES_CURRENT_VERSION_REVISION 1
#define WX_XMLRES_CURRENT_VERSION_STRING "2.3.0.1"
#define WX_XMLRES_CURRENT_VERSION \
(WX_XMLRES_CURRENT_VERSION_MAJOR * 256*256*256 + \
WX_XMLRES_CURRENT_VERSION_MINOR * 256*256 + \
WX_XMLRES_CURRENT_VERSION_RELEASE * 256 + \
WX_XMLRES_CURRENT_VERSION_REVISION)
class WXXMLDLLEXPORT wxXmlResourceDataRecord
{
public:
wxXmlResourceDataRecord() : Doc(NULL), Time(wxDateTime::Now()) {}
~wxXmlResourceDataRecord() {delete Doc;}
wxString File;
wxXmlDocument *Doc;
wxDateTime Time;
};
#ifdef WXXMLISDLL
WX_DECLARE_EXPORTED_OBJARRAY(wxXmlResourceDataRecord, wxXmlResourceDataRecords);
#else
WX_DECLARE_OBJARRAY(wxXmlResourceDataRecord, wxXmlResourceDataRecords);
#endif
// This class holds XML resources from one or more .xml files
// (or derived forms, either binary or zipped -- see manual for
// details).
class WXXMLDLLEXPORT wxXmlResource : public wxObject
{
public:
// Ctor. If use_locale is TRUE, translatable strings are
// translated via _(). You can disable it by passing use_locale=FALSE
// (for example if you provide resource file for each locale)
wxXmlResource(bool use_locale = TRUE);
wxXmlResource(const wxString& filemask, bool use_locale = TRUE);
~wxXmlResource();
// Loads resources from XML files that match given filemask.
// This method understands VFS (see filesys.h).
bool Load(const wxString& filemask);
// Initialize handlers for all supported controls/windows. This will
// make the executable quite big because it forces linking against
// most of wxWin library
void InitAllHandlers();
// Initialize only specific handler (or custom handler). Convention says
// that handler name is equal to control's name plus 'XmlHandler', e.g.
// wxTextCtrlXmlHandler, wxHtmlWindowXmlHandler. XML resource compiler
// (xmlres) can create include file that contains initialization code for
// all controls used within the resource.
void AddHandler(wxXmlResourceHandler *handler);
// Removes all handlers
void ClearHandlers();
// Loads menu from resource. Returns NULL on failure.
wxMenu *LoadMenu(const wxString& name);
// Loads menubar from resource. Returns NULL on failure.
wxMenuBar *LoadMenuBar(const wxString& name);
#if wxUSE_TOOLBAR
// Loads toolbar
wxToolBar *LoadToolBar(wxWindow *parent, const wxString& name);
#endif
// Loads dialog. dlg points to parent window (if any). Second form
// is used to finish creation of already existing instance (main reason
// for this is that you may want to use derived class with new event table)
// Example (typical usage):
// MyDialog dlg;
// wxTheXmlResource->LoadDialog(&dlg, mainFrame, "my_dialog");
// dlg->ShowModal();
wxDialog *LoadDialog(wxWindow *parent, const wxString& name);
bool LoadDialog(wxDialog *dlg, wxWindow *parent, const wxString& name);
// Loads panel. panel points to parent window (if any). Second form
// is used to finish creation of already existing instance.
wxPanel *LoadPanel(wxWindow *parent, const wxString& name);
bool LoadPanel(wxPanel *panel, wxWindow *parent, const wxString& name);
bool LoadFrame(wxFrame* frame, wxWindow *parent, const wxString& name);
// Loads bitmap or icon resource from file:
wxBitmap LoadBitmap(const wxString& name);
wxIcon LoadIcon(const wxString& name);
// Attaches unknown control into given panel/window/dialog:
// (unknown controls are used in conjunction with <object class="unknown">)
bool AttachUnknownControl(const wxString& name, wxWindow *control,
wxWindow *parent = NULL);
// Returns numeric ID that is equivalent to string id used in XML
// resource. To be used in event tables
// Macro XMLID is provided for convenience
static int GetXMLID(const char *str_id);
// Returns version info (a.b.c.d = d+ 256*c + 256^2*b + 256^3*a)
long GetVersion() const { return m_version; }
// Compares resources version to argument. Returns -1 if resources version
// is less than the argument, +1 if greater and 0 if they equal.
int CompareVersion(int major, int minor, int release, int revision) const
{ return GetVersion() -
(major*256*256*256 + minor*256*256 + release*256 + revision); }
protected:
// Scans resources list for unloaded files and loads them. Also reloads
// files that have been modified since last loading.
void UpdateResources();
// Finds resource (calls UpdateResources) and returns node containing it
wxXmlNode *FindResource(const wxString& name, const wxString& classname);
// Creates resource from info in given node:
wxObject *CreateResFromNode(wxXmlNode *node, wxObject *parent, wxObject *instance = NULL);
// Remove nodes with property "platform" that does not
// match current platform
void ProcessPlatformProperty(wxXmlNode *node);
bool GetUseLocale() { return m_useLocale; }
private:
long m_version;
bool m_useLocale;
wxList m_handlers;
wxXmlResourceDataRecords m_data;
#if wxUSE_FILESYSTEM
wxFileSystem m_curFileSystem;
wxFileSystem& GetCurFileSystem() { return m_curFileSystem; }
#endif
friend class wxXmlResourceHandler;
};
// Global instance of resource class. For your convenience.
extern WXXMLDLLEXPORT wxXmlResource *wxTheXmlResource;
// This macro translates string identifier (as used in XML resource,
// e.g. <menuitem id="my_menu">...</menuitem>) to integer id that is needed by
// wxWindows event tables.
// Example:
// BEGIN_EVENT_TABLE(MyFrame, wxFrame)
// EVT_MENU(XMLID("quit"), MyFrame::OnQuit)
// EVT_MENU(XMLID("about"), MyFrame::OnAbout)
// EVT_MENU(XMLID("new"), MyFrame::OnNew)
// EVT_MENU(XMLID("open"), MyFrame::OnOpen)
// END_EVENT_TABLE()
#define XMLID(str_id) \
wxXmlResource::GetXMLID(wxT(str_id))
// This macro returns pointer to particular control in dialog
// created using XML resources. You can use it to set/get values from
// controls.
// Example:
// wxDialog dlg;
// wxTheXmlResource->LoadDialog(&dlg, mainFrame, "my_dialog");
// XMLCTRL(dlg, "my_textctrl", wxTextCtrl)->SetValue(wxT("default value"));
#ifdef __WXDEBUG__
#define XMLCTRL(window, id, type) \
(wxDynamicCast((window).FindWindow(XMLID(id)), type))
#else
#define XMLCTRL(window, id, type) \
((type*)((window).FindWindow(XMLID(id))))
#endif
class WXXMLDLLEXPORT wxXmlResourceHandler : public wxObject
{
public:
wxXmlResourceHandler();
virtual ~wxXmlResourceHandler() {}
// Creates object (menu, dialog, control, ...) from XML node.
// Should check for validity.
// parent is higher-level object (usually window, dialog or panel)
// that is often neccessary to create resource
// if instance != NULL it should not create new instance via 'new' but
// rather use this one and call its Create method
wxObject *CreateResource(wxXmlNode *node, wxObject *parent,
wxObject *instance);
// This one is called from CreateResource after variables
// were filled
virtual wxObject *DoCreateResource() = 0;
// Returns TRUE if it understands this node and can create
// resource from it, FALSE otherwise.
virtual bool CanHandle(wxXmlNode *node) = 0;
void SetParentResource(wxXmlResource *res) { m_resource = res; }
protected:
wxXmlResource *m_resource;
wxArrayString m_styleNames;
wxArrayInt m_styleValues;
// Variables (filled by CreateResource)
wxXmlNode *m_node;
wxString m_class;
wxObject *m_parent, *m_instance;
wxWindow *m_parentAsWindow, *m_instanceAsWindow;
// --- Handy methods:
// Returns true if the node has property class equal to classname,
// e.g. <object class="wxDialog">
bool IsOfClass(wxXmlNode *node, const wxString& classname)
{ return node->GetPropVal(wxT("class"), wxEmptyString) == classname; }
// Gets node content from wxXML_ENTITY_NODE
// (the problem is, <tag>content<tag> is represented as
// wxXML_ENTITY_NODE name="tag", content=""
// |-- wxXML_TEXT_NODE or
// wxXML_CDATA_SECTION_NODE name="" content="content"
wxString GetNodeContent(wxXmlNode *node);
// Check to see if a param exists
bool HasParam(const wxString& param);
// Finds the node or returns NULL
wxXmlNode *GetParamNode(const wxString& param);
wxString GetParamValue(const wxString& param);
// Add style flag (e.g. wxMB_DOCKABLE) to list of flags
// understood by this handler
void AddStyle(const wxString& name, int value);
// Add styles common to all wxWindow-derived classes
void AddWindowStyles();
// Gets style flags from text in form "flag | flag2| flag3 |..."
// Only understads flags added with AddStyle
int GetStyle(const wxString& param = wxT("style"), int defaults = 0);
// Gets text from param and does some convertions:
// - replaces \n, \r, \t by respective chars (according to C syntax)
// - replaces $ by & and $$ by $ (needed for $File => &File because of XML)
// - calls wxGetTranslations (unless disabled in wxXmlResource)
wxString GetText(const wxString& param);
// Return XMLID
int GetID();
wxString GetName();
// Get bool flag (1,t,yes,on,true are TRUE, everything else is FALSE)
bool GetBool(const wxString& param, bool defaultv = FALSE);
// Get integer value from param
long GetLong( const wxString& param, long defaultv = 0 );
// Get colour in HTML syntax (#RRGGBB)
wxColour GetColour(const wxString& param);
// Get size/position (may be in dlg units):
wxSize GetSize(const wxString& param = wxT("size"));
wxPoint GetPosition(const wxString& param = wxT("pos"));
// Get dimension (may be in dlg units):
wxCoord GetDimension(const wxString& param, wxCoord defaultv = 0);
// Get bitmap:
wxBitmap GetBitmap(const wxString& param = wxT("bitmap"),
wxSize size = wxDefaultSize);
wxIcon GetIcon(const wxString& param = wxT("icon"),
wxSize size = wxDefaultSize);
// Get font:
wxFont GetFont(const wxString& param = wxT("font"));
// Sets common window options:
void SetupWindow(wxWindow *wnd);
void CreateChildren(wxObject *parent, bool this_hnd_only = FALSE);
void CreateChildrenPrivately(wxObject *parent, wxXmlNode *rootnode = NULL);
wxObject *CreateResFromNode(wxXmlNode *node,
wxObject *parent, wxObject *instance = NULL)
{ return m_resource->CreateResFromNode(node, parent, instance); }
// helper
wxFileSystem& GetCurFileSystem() { return m_resource->GetCurFileSystem(); }
};
#define ADD_STYLE(style) AddStyle(wxT(#style), style)
void wxXmlInitResourceModule();
#endif // _WX_XMLRES_H_

View File

@@ -1,6 +1,6 @@
# $Id$
CONTRIB_SAMPLES=mmedia ogl stc gizmos canvas xml plot
CONTRIB_SAMPLES=mmedia ogl stc gizmos canvas xrc plot applet
all:
@for d in $(CONTRIB_SAMPLES); do (cd $$d && $(MAKE)); done

View File

@@ -0,0 +1,25 @@
#
# File: Makefile.in
# Author: Julian Smart
# Created: 2000
# Updated:
# Copyright: (c) 2000 Julian Smart
#
# "%W% %G%"
#
# Makefile for the multicell example (UNIX).
top_srcdir = @top_srcdir@/..
top_builddir = ../../..
program_dir = contrib/samples/applet
PROGRAM=monitor
DATAFILES=about.html index.html
OBJECTS=applet.o dialogs_wdr.o monitorapplet.o combobox.o
APPEXTRALIBS=$(top_builddir)/lib/libapplet.@WX_TARGET_LIBRARY_TYPE@
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
include $(top_builddir)/src/makeprog.env

View File

@@ -0,0 +1,10 @@
<html>
<head><title>Scitech Display Doctor</title></head>
<body>
<BODY BGCOLOR="#FFFFFF" >
<center><IMG SRC="biglogo.bmp"></center>
<hr>
</body>
</html>

View File

@@ -0,0 +1,156 @@
/****************************************************************************
*
* wxWindows HTML Applet Package
*
* Copyright (C) 1991-2001 SciTech Software, Inc.
* All rights reserved.
*
* ========================================================================
*
* The contents of this file are subject to the wxWindows License
* Version 3.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.wxwindows.org/licence3.txt
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* ========================================================================
*
* Language: ANSI C++
* Environment: Any
*
* Description: Main wxApplet sample program
*
****************************************************************************/
// For compilers that support precompilation, includes "wx/wx.h".
#include <wx/wxprec.h>
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#include "wx/wx.h"
#include "wx/applet/window.h"
#include "applet.h"
/*---------------------------- Global variables ---------------------------*/
// Define the event tables for handling application frame events
BEGIN_EVENT_TABLE(MyFrame, wxFrame)
EVT_MENU(Minimal_Quit, MyFrame::OnQuit)
EVT_MENU(Minimal_About, MyFrame::OnAbout)
EVT_MENU(Minimal_Back, MyFrame::OnBack)
EVT_MENU(Minimal_Forward, MyFrame::OnForward)
END_EVENT_TABLE()
// Create a new application object: this macro will allow wxWindows to create
// the application object during program execution (it's better than using a
// static object for many reasons) and also declares the accessor function
// wxGetApp() which will return the reference of the right type (i.e. MyApp and
// not wxApp)
IMPLEMENT_APP(MyApp)
/*------------------------- Implementation --------------------------------*/
/****************************************************************************
PARAMETERS:
title - Title for the frame window
pos - Position to place to frame window
size - Size of the frame window
REMARKS:
Application frame window constructor
****************************************************************************/
MyFrame::MyFrame(
const wxString& title,
const wxPoint& pos,
const wxSize& size)
: wxFrame(NULL, -1, title, pos, size)
{
// Create a menu bar
wxMenu *menuFile = new wxMenu;
wxMenu *menuNav = new wxMenu;
menuFile->Append(Minimal_Quit, "E&xit");
menuNav->Append(Minimal_Back, "Go &back");
menuNav->Append(Minimal_Forward, "Go &forward");
// Now append the freshly created menu to the menu bar...
wxMenuBar *menuBar = new wxMenuBar;
menuBar->Append(menuFile, "&File");
menuBar->Append(menuNav, "&Navigate");
// ... and attach this menu bar to the frame
SetMenuBar(menuBar);
CreateStatusBar(2);
// Create the HTML window
html = new wxHtmlAppletWindow(this);
html->SetRelatedFrame(this, "wxApplet Demo: '%s'");
html->SetRelatedStatusBar(1);
html->LoadPage("index.html");
}
/****************************************************************************
REMARKS:
Event handler for the 'Exit' menu item
****************************************************************************/
void MyFrame::OnQuit(
wxCommandEvent&)
{
// TRUE is to force the frame to close
Close(TRUE);
}
/****************************************************************************
REMARKS:
Event handler for the 'About' menu item
****************************************************************************/
void MyFrame::OnAbout(
wxCommandEvent&)
{
// TODO: Bring up and about html page!
}
/****************************************************************************
REMARKS:
Event handler for the 'Go back' menu item
****************************************************************************/
void MyFrame::OnBack(
wxCommandEvent&)
{
if (!html -> HistoryBack())
wxMessageBox("You reached prehistory era!");
}
/****************************************************************************
REMARKS:
Event handler for the 'Go forward' menu item
****************************************************************************/
void MyFrame::OnForward(
wxCommandEvent&)
{
if (!html -> HistoryForward())
wxMessageBox("No more items in history!");
}
/****************************************************************************
REMARKS:
`Main program' equivalent: the program execution "starts" here
****************************************************************************/
bool MyApp::OnInit()
{
// Create the main application window
MyFrame *frame = new MyFrame("wxApplet testing application",
wxPoint(50, 50), wxSize(640, 480));
// Show it and tell the application that it's our main window
frame->Show(TRUE);
SetTopWindow(frame);
// Success: wxApp::OnRun() will be called to run the application
return TRUE;
}

View File

@@ -0,0 +1,77 @@
/****************************************************************************
*
* wxWindows HTML Applet Package
*
* Copyright (C) 1991-2001 SciTech Software, Inc.
* All rights reserved.
*
* ========================================================================
*
* The contents of this file are subject to the wxWindows License
* Version 3.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.wxwindows.org/licence3.txt
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* ========================================================================
*
* Language: ANSI C++
* Environment: Any
*
* Description: Main wxApplet sample program header file
*
****************************************************************************/
#ifndef __SAMPLE_H
/*------------------------------ Constants --------------------------------*/
enum {
// Menu items
Minimal_Quit = 1,
Minimal_About,
Minimal_Back,
Minimal_Forward,
// Controls start here (the numbers are, of course, arbitrary)
Minimal_Text = 1000,
};
/*--------------------------- Class Definitions ---------------------------*/
/****************************************************************************
REMARKS:
Define a new application type, each program should derive a class from wxApp
****************************************************************************/
class MyApp : public wxApp {
public:
// Initialise the application on startup
virtual bool OnInit();
};
/****************************************************************************
REMARKS:
Define a new frame type: this is going to be our main frame
****************************************************************************/
class MyFrame : public wxFrame {
private:
DECLARE_EVENT_TABLE() // Declare event table
wxHtmlAppletWindow *html; // Pointer to the html applet window
public:
// Constructor
MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size);
// Event handlers
void OnQuit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
void OnBack(wxCommandEvent& event);
void OnForward(wxCommandEvent& event);
};
#endif // __SAMPLE_H

View File

@@ -0,0 +1,2 @@
#include "wx/msw/wx.rc"

View File

@@ -0,0 +1,173 @@
/****************************************************************************
*
* wxWindows HTML Applet Package
*
* Copyright (C) 1991-2001 SciTech Software, Inc.
* All rights reserved.
*
* ========================================================================
*
* The contents of this file are subject to the wxWindows License
* Version 3.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.wxwindows.org/licence3.txt
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* ========================================================================
*
* Language: ANSI C++
* Environment: Any
*
* Description: Combobox wrapper. This file implements the custom
* combo boxes used for this sample program.
*
****************************************************************************/
// For compilers that support precompilation, includes "wx/wx.h".
#include <wx/wxprec.h>
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#include "wx/wx.h"
#include "combobox.h"
/*------------------------- Implementation --------------------------------*/
ComboBox::ComboBox(
wxWindow *parent,
int listid,
int textid)
: m_Parent(parent), m_ListBoxId(listid), m_TextCtrlId(textid)
{
m_ListBox = wxDynamicCast(m_Parent->FindWindow(listid),wxListBox);
m_TextCtrl = wxDynamicCast(m_Parent->FindWindow(textid),wxTextCtrl);
}
int ComboBox::GetListBoxId()
{
return m_ListBoxId;
}
int ComboBox::GetSelection()
{
return m_ListBox->GetSelection();
}
wxString ComboBox::GetStringSelection()
{
return m_ListBox->GetStringSelection();
}
bool ComboBox::SetStringSelection(const wxString& s, bool select)
{
select = TRUE;
select = m_ListBox->SetStringSelection(s, select);
m_TextCtrl->SetValue(GetStringSelection());
return select;
}
void ComboBox::Select(int n)
{
m_ListBox->Select(n);
m_TextCtrl->SetValue(GetStringSelection());
}
void ComboBox::Deselect(int n)
{
m_ListBox->Deselect(n);
}
void ComboBox::Insert(const wxString& item, int pos)
{
m_ListBox->Insert(item,pos);
}
void ComboBox::Insert(const wxString& item, int pos, void *clientData)
{
m_ListBox->Insert(item, pos, clientData);
}
void ComboBox::Insert(const wxString& item, int pos, wxClientData *clientData)
{
m_ListBox->Insert(item, pos, clientData);
}
void ComboBox::InsertItems(int nItems, const wxString *items, int pos)
{
m_ListBox->InsertItems(nItems, items, pos);
}
void ComboBox::InsertItems(const wxArrayString& items, int pos)
{
m_ListBox->InsertItems(items, pos);
}
void ComboBox::Set(int n, const wxString* items, void **clientData)
{
m_ListBox->Set(n, items, clientData);
m_TextCtrl->SetValue(GetStringSelection());
}
void ComboBox::Set(const wxArrayString& items, void **clientData)
{
m_ListBox->Set(items, clientData);
m_TextCtrl->SetValue(GetStringSelection());
}
int ComboBox::FindString(const wxString &s)
{
return (m_ListBox->FindString(s));
}
void ComboBox::SetFirstItem(int n)
{
m_ListBox->SetFirstItem(n);
m_TextCtrl->SetValue(GetStringSelection());
}
void ComboBox::SetFirstItem(const wxString &s)
{
m_ListBox->SetFirstItem(s);
m_TextCtrl->SetValue(GetStringSelection());
}
void ComboBox::Append(const wxString &item)
{
m_ListBox->Append(item);
m_TextCtrl->SetValue(GetStringSelection());
}
void ComboBox::Append(const wxString& item, void *clientData)
{
m_ListBox->Append(item, clientData);
m_TextCtrl->SetValue(GetStringSelection());
}
void ComboBox::Append(const wxString& item, wxClientData *clientData)
{
m_ListBox->Append(item, clientData);
m_TextCtrl->SetValue(GetStringSelection());
}
void ComboBox::Clear()
{
m_ListBox->Clear();
m_TextCtrl->SetValue(GetStringSelection());
}
void ComboBox::Delete(int n)
{
m_ListBox->Delete(n);
m_TextCtrl->SetValue(GetStringSelection());
}
void ComboBox::OnChange(wxCommandEvent &)
{
m_TextCtrl->SetValue(GetStringSelection());
}

View File

@@ -0,0 +1,97 @@
/****************************************************************************
*
* wxWindows HTML Applet Package
*
* Copyright (C) 1991-2001 SciTech Software, Inc.
* All rights reserved.
*
* ========================================================================
*
* The contents of this file are subject to the wxWindows License
* Version 3.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.wxwindows.org/licence3.txt
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* ========================================================================
*
* Language: ANSI C++
* Environment: Any
*
* Description: Combobox wrapper. This header file defines the custom
* combo boxes used for this sample program.
*
****************************************************************************/
#ifndef __COMBOBOX_H
#define __COMBOBOX_H
/*--------------------------- Class Definitions ---------------------------*/
/****************************************************************************
REMARKS:
Defines a Custom ComboBox. This combobox is a portable implementation of
the msw combobox control. It is made of the wxWindows textctrl primitive and
the listbox primitive. This object does not create or display the controls,
it provides the relationship and underlying behavior layer for the primitives
allready created via wxDesigner.
****************************************************************************/
class ComboBox {
private:
int m_ListBoxId;
int m_TextCtrlId;
wxWindow *m_Parent;
wxListBox *m_ListBox;
wxTextCtrl *m_TextCtrl;
public:
// Constructor
ComboBox(wxWindow *parent, int,int);
// Returns the id of the listbox: listBoxId.
int GetListBoxId();
// Inserts: Used to insert items into the listbox
void Insert(const wxString& item, int pos);
void Insert(const wxString& item, int pos, void *clientData);
void Insert(const wxString& item, int pos, wxClientData *clientData);
void InsertItems(int nItems, const wxString *items, int pos);
void InsertItems(const wxArrayString& items, int pos);
// Sets: Used to set items in the combo box
void Set(int n, const wxString* items, void **clientData );
void Set(const wxArrayString& items, void **clientData);
int FindString(const wxString &s);
// Selections: Used to get/de/select items in the listbox
void Select(int n);
void Deselect(int n);
int GetSelection();
wxString GetStringSelection();
bool SetStringSelection(const wxString& s, bool select);
// Set the specified item at the first visible item or scroll to max
// range.
void SetFirstItem(int n);
void SetFirstItem(const wxString& s);
// Append items to the listbox
void Append(const wxString& item);
void Append(const wxString& item, void *clientData);
void Append(const wxString& item, wxClientData *clientData);
// Deleting items from the list box
void Clear();
void Delete(int n);
// OnChange event function (called from SDD dialog box code, see: dialog.h) Mimic
// msw combobox behavior: Click on listbox item it shows in textbox.
void OnChange(wxCommandEvent &event);
};
#endif // __COMBOBOX_H

Binary file not shown.

View File

@@ -0,0 +1,106 @@
//------------------------------------------------------------------------------
// Source code generated by wxDesigner from file: dialogs.wdr
// Do not modify this file, all changes will be lost!
//------------------------------------------------------------------------------
#ifdef __GNUG__
#pragma implementation "dialogs_wdr.cpp"
#endif
// For compilers that support precompilation
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// Include private header
#include "dialogs_wdr.h"
// Implement window functions
wxSizer *MonitorDialogFunc( wxPanel *parent, bool call_fit, bool set_sizer )
{
wxSizer *item0 = new wxBoxSizer( wxVERTICAL );
wxSizer *item1 = new wxFlexGridSizer( 2, 0, 0 );
wxSizer *item2 = new wxBoxSizer( wxHORIZONTAL );
wxStaticText *item3 = new wxStaticText( parent, ID_TEXT_MANUFACTURER, "Manufacturer:", wxDefaultPosition, wxSize(180,-1), 0 );
item3->SetForegroundColour( *wxBLACK );
item3->SetBackgroundColour( *wxWHITE );
item2->Add( item3, 0, wxALIGN_CENTRE, 5 );
item2->Add( 10, 20, 0, wxALIGN_CENTRE, 5 );
item1->Add( item2, 0, wxALIGN_CENTER_VERTICAL, 5 );
wxSizer *item4 = new wxBoxSizer( wxHORIZONTAL );
wxStaticText *item5 = new wxStaticText( parent, ID_TEXT_MODEL, "Model:", wxDefaultPosition, wxSize(250,-1), 0 );
item5->SetForegroundColour( *wxBLACK );
item5->SetBackgroundColour( *wxWHITE );
item4->Add( item5, 0, wxALIGN_CENTRE, 5 );
item1->Add( item4, 0, wxALIGN_CENTER_VERTICAL, 5 );
wxSizer *item6 = new wxBoxSizer( wxHORIZONTAL );
wxTextCtrl *item7 = new wxTextCtrl( parent, ID_TEXTCTRL_MFTR, "", wxDefaultPosition, wxSize(190,-1), wxTE_READONLY );
item7->SetForegroundColour( *wxBLACK );
item7->SetBackgroundColour( *wxWHITE );
item6->Add( item7, 0, wxALIGN_CENTRE, 5 );
item6->Add( 15, 20, 0, wxALIGN_CENTRE, 5 );
item1->Add( item6, 0, wxALIGN_CENTRE, 5 );
wxSizer *item8 = new wxBoxSizer( wxHORIZONTAL );
wxTextCtrl *item9 = new wxTextCtrl( parent, ID_TEXTCTRL_MDL, "", wxDefaultPosition, wxSize(260,-1), wxTE_READONLY );
item8->Add( item9, 0, wxALIGN_CENTRE, 5 );
item1->Add( item8, 0, wxALIGN_CENTRE, 5 );
wxSizer *item10 = new wxBoxSizer( wxHORIZONTAL );
wxString *strs11 = (wxString*) NULL;
wxListBox *item11 = new wxListBox( parent, ID_LISTBOX_MFTR, wxDefaultPosition, wxSize(190,150), 0, strs11, wxLB_SORT|wxLB_ALWAYS_SB );
item10->Add( item11, 0, wxALIGN_CENTRE, 5 );
item10->Add( 15, 20, 0, wxALIGN_CENTRE, 5 );
item1->Add( item10, 0, wxALIGN_CENTRE, 5 );
wxSizer *item12 = new wxBoxSizer( wxHORIZONTAL );
wxString *strs13 = (wxString*) NULL;
wxListBox *item13 = new wxListBox( parent, ID_LISTBOX_MDL, wxDefaultPosition, wxSize(260,150), 0, strs13, wxLB_SORT|wxLB_NEEDED_SB );
item13->SetForegroundColour( *wxBLACK );
item13->SetBackgroundColour( *wxWHITE );
item12->Add( item13, 0, wxALIGN_CENTRE, 5 );
item1->Add( item12, 0, wxALIGN_CENTRE, 5 );
item0->Add( item1, 0, wxALIGN_CENTRE, 15 );
if (set_sizer)
{
parent->SetAutoLayout( TRUE );
parent->SetSizer( item0 );
if (call_fit)
{
item0->Fit( parent );
item0->SetSizeHints( parent );
}
}
return item0;
}
// Implement bitmap functions
// End of generated file

View File

@@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// Header generated by wxDesigner from file: dialogs.wdr
// Do not modify this file, all changes will be lost!
//------------------------------------------------------------------------------
#ifndef __WDR_dialogs_H__
#define __WDR_dialogs_H__
#ifdef __GNUG__
#pragma interface "dialogs_wdr.cpp"
#endif
// Include wxWindows' headers
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <wx/image.h>
#include <wx/statline.h>
#include <wx/spinbutt.h>
#include <wx/spinctrl.h>
#include <wx/splitter.h>
#include <wx/listctrl.h>
#include <wx/treectrl.h>
#include <wx/notebook.h>
// Declare window functions
#define ID_TEXT_MANUFACTURER 10000
#define ID_TEXT_MODEL 10001
#define ID_TEXTCTRL_MFTR 10
#define ID_TEXTCTRL_MDL 20
#define ID_LISTBOX_MFTR 11
#define ID_LISTBOX_MDL 21
wxSizer *MonitorDialogFunc( wxPanel *parent, bool call_fit = TRUE, bool set_sizer = TRUE );
// Declare bitmap functions
#endif
// End of generated file

View File

@@ -0,0 +1,21 @@
<html>
<head><title>Widgets demo</title></head>
<body text="#000000" bgcolor="#D0D0D0">
<h3>wxHtmlWidgetCell demonstration</h3>
There is an embedded window somewhere around. Enjoy it.
<A HREF="about.html">About...</A>
<insert "wxChipsetName">
<hr>
<center>
<embed applet="MonitorApplet" width=100 height=100>
</center>
<hr>
</body>
</html>

View File

@@ -0,0 +1,218 @@
/****************************************************************************
*
* wxWindows HTML Applet Package
*
* Copyright (C) 1991-2001 SciTech Software, Inc.
* All rights reserved.
*
* ========================================================================
*
* The contents of this file are subject to the wxWindows License
* Version 3.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.wxwindows.org/licence3.txt
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* ========================================================================
*
* Language: ANSI C++
* Environment: Any
*
* Description: Main wxApplet class implementation
*
****************************************************************************/
// For compilers that support precompilation
#include "wx/wxprec.h"
// Include private headers
#include "wx/wx.h"
#include "monitorapplet.h"
/*---------------------------- Global variables ---------------------------*/
// Implement the dynamic class so it can be constructed dynamically
IMPLEMENT_DYNAMIC_CLASS(MonitorApplet, wxApplet);
// Event handler table.
BEGIN_EVENT_TABLE(MonitorApplet, wxApplet)
EVT_LISTBOX(ID_LISTBOX_MFTR, MonitorApplet::OnChange)
EVT_LISTBOX(ID_LISTBOX_MDL, MonitorApplet::OnChange)
END_EVENT_TABLE()
// Include database of known monitors. Normally this would come from a
// real database on disk, but for this simple example we hard code all
// the values into a table.
#include "monitors.c"
/*------------------------- Implementation --------------------------------*/
/****************************************************************************
REMARKS:
Constructor called during dynamic creation. Simple initialise all
internal values for the class so that it can be properly created later
via the virtual Create member function.
****************************************************************************/
MonitorApplet::MonitorApplet()
{
m_Mfr = NULL;
m_Model = NULL;
m_Data = NULL;
}
/****************************************************************************
REMARKS:
Psuedo virtual constructor for the MonitorApplet class.
****************************************************************************/
bool MonitorApplet::Create(
wxHtmlAppletWindow *parent,
const wxSize& size,
long style)
{
bool ret = wxApplet::Create(parent, size, style);
if (ret) {
// Read our cookie or create it if it does not exist
if ((m_Data = (MonitorData*)parent->FindCookie(MONITOR_COOKIE_NAME)) == NULL) {
m_Data = new MonitorData;
memset(&m_Data->m_Monitor,0,sizeof(m_Data->m_Monitor));
parent->RegisterCookie(MONITOR_COOKIE_NAME,m_Data);
}
// Create all the controls and initialise them
MonitorDialogFunc(this,true,true);
if ((m_Mfr = new ComboBox(this , ID_LISTBOX_MFTR, ID_TEXTCTRL_MFTR)) == NULL)
return false;
if ((m_Model = new ComboBox(this , ID_LISTBOX_MDL, ID_TEXTCTRL_MDL)) == NULL)
return false;
ReadMfrList();
ReadModelList(true);
}
return ret;
}
/****************************************************************************
REMARKS:
Destructor for the MonitorApplet class.
****************************************************************************/
MonitorApplet::~MonitorApplet()
{
delete m_Mfr;
delete m_Model;
}
/****************************************************************************
REMARKS:
Save the current state for the applet to our cookie
****************************************************************************/
void MonitorApplet::SaveCurrentState()
{
// Read currently selected strings into cookie
strcpy(m_Data->m_Monitor.m_Mfr,m_Mfr->GetStringSelection());
strcpy(m_Data->m_Monitor.m_Model,m_Model->GetStringSelection());
}
/****************************************************************************
REMARKS:
Handles user navigation away from the applet via an HTML link
****************************************************************************/
void MonitorApplet::OnLinkClicked(
const wxHtmlLinkInfo&)
{
SaveCurrentState();
}
/****************************************************************************
REMARKS:
Handles user navigation away from the applet via the history forward command
****************************************************************************/
void MonitorApplet::OnHistoryForward()
{
SaveCurrentState();
}
/****************************************************************************
REMARKS:
Handles user navigation away from the applet via the history back command
****************************************************************************/
void MonitorApplet::OnHistoryBack()
{
SaveCurrentState();
}
/****************************************************************************
REMARKS:
Handles inter applet communication messages
****************************************************************************/
void MonitorApplet::OnMessage(
wxEvent& msg)
{
msg.Skip(true);
}
/****************************************************************************
REMARKS:
****************************************************************************/
void MonitorApplet::OnChange(
wxCommandEvent &evt)
{
if (evt.GetId() == m_Mfr->GetListBoxId()) {
m_Mfr->OnChange(evt);
ReadModelList(true);
}
else if (evt.GetId() == m_Model->GetListBoxId()) {
m_Model->OnChange(evt);
}
}
/****************************************************************************
REMARKS:
Updates the manufacturer list for the dialog box from the database.
****************************************************************************/
void MonitorApplet::ReadMfrList()
{
char buf[80] = "";
int i,selected = 0;
MonitorEntry *m;
m_Mfr->Clear();
for (m = m_Monitors,i = 0; m->m_Mfr[0] != 0; m++) {
if (wxStricmp(buf,m->m_Mfr) != 0) {
m_Mfr->Append(m->m_Mfr);
if (wxStricmp(m_Data->m_Monitor.m_Mfr,m->m_Mfr) == 0)
selected = i;
strcpy(buf,m->m_Mfr);
i++;
}
}
m_Mfr->Select(selected);
}
/****************************************************************************
REMARKS:
Updates the model list for the dialog box for the currently selected
manufacturer type.
****************************************************************************/
void MonitorApplet::ReadModelList(
bool selectCurrent)
{
int i,selected = 0;
MonitorEntry *m;
wxString mfrStr;
mfrStr = m_Mfr->GetStringSelection();
m_Model->Clear();
for (m = m_Monitors,i = 0; m->m_Mfr[0] != 0; m++) {
if (wxStricmp(mfrStr,m->m_Mfr) == 0) {
m_Model->Append(m->m_Model);
if (selectCurrent && wxStricmp(m_Data->m_Monitor.m_Model,m->m_Model) == 0)
selected = i;
i++;
}
}
m_Model->Select(selected);
}

View File

@@ -0,0 +1,112 @@
/****************************************************************************
*
* wxWindows HTML Applet Package
*
* Copyright (C) 1991-2001 SciTech Software, Inc.
* All rights reserved.
*
* ========================================================================
*
* The contents of this file are subject to the wxWindows License
* Version 3.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.wxwindows.org/licence3.txt
*
* Software distributed under the License is distributed on an
* "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* ========================================================================
*
* Language: ANSI C++
* Environment: Any
*
* Description: Header file for the MonitorApplet class
*
****************************************************************************/
#ifndef __WX_MONITORAPPLET_H
#define __WX_MONITORAPPLET_H
#include "wx/applet/applet.h"
#include "combobox.h"
#include "dialogs_wdr.h"
/*--------------------------- Class Definitions ---------------------------*/
/****************************************************************************
REMARKS:
Structure defining the simple monitor database records.
****************************************************************************/
struct MonitorEntry {
char m_Mfr[60];
char m_Model[60];
};
/****************************************************************************
REMARKS:
Defines our wxMonitorData cookie object that is stored to maintain state
information for this MonitorApplet.
****************************************************************************/
class MonitorData : public wxObject {
public:
MonitorEntry m_Monitor;
};
// Name used to track the monitor data cookie
#define MONITOR_COOKIE_NAME "MonitorData"
/****************************************************************************
REMARKS:
Defines our wxMonitor applet class
****************************************************************************/
class MonitorApplet : public wxApplet {
private:
DECLARE_DYNAMIC_CLASS(MonitorApplet);
DECLARE_EVENT_TABLE();
protected:
ComboBox *m_Mfr;
ComboBox *m_Model;
MonitorData *m_Data;
static MonitorEntry m_Monitors[];
// Flush the current state to a cookie
void SaveCurrentState();
public:
// Constructor (called during dynamic creation)
MonitorApplet();
// Psuedo virtual constructor
virtual bool Create(
wxHtmlAppletWindow *parent,
const wxSize& size,
long style);
// Virtual destructor
virtual ~MonitorApplet();
// Handle HTML navigation to a new URL
virtual void OnLinkClicked(const wxHtmlLinkInfo& link);
// Handle HTML navigation forward command in applet
virtual void OnHistoryForward();
// Handle HTML navigation back command in applet
virtual void OnHistoryBack();
// Handle messages from the wxAppletManager and other applets
virtual void OnMessage(wxEvent& msg);
// Update the model and menufacturer lists
void ReadMfrList();
void ReadModelList(bool selectCurrent);
// Event handlers
void OnChange(wxCommandEvent &event);
};
#endif // __WX_MONITORAPPLET_H

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,175 @@
# Microsoft Developer Studio Project File - Name="SimpleVC" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
CFG=SimpleVC - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "SimpleVC.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "SimpleVC.mak" CFG="SimpleVC - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "SimpleVC - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "SimpleVC - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE "SimpleVC - Win32 Debug DLL" (based on "Win32 (x86) Application")
!MESSAGE "SimpleVC - Win32 Release DLL" (based on "Win32 (x86) Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "SimpleVC - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
# SUBTRACT CPP /YX
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
# ADD BASE RSC /l 0x809 /d "NDEBUG"
# ADD RSC /l 0x809 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wx.lib png.lib zlib.lib jpeg.lib tiff.lib canvas.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/simple.exe" /libpath:"../../../../lib"
!ELSEIF "$(CFG)" == "SimpleVC - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../../include" /I "../../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
# SUBTRACT CPP /YX /Yc /Yu
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
# ADD BASE RSC /l 0x809 /d "_DEBUG"
# ADD RSC /l 0x809 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib canvasd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/simple.exe" /pdbtype:sept /libpath:"../../../../lib"
!ELSEIF "$(CFG)" == "SimpleVC - Win32 Debug DLL"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "DebugDLL"
# PROP BASE Intermediate_Dir "DebugDLL"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "DebugDLL"
# PROP Intermediate_Dir "DebugDLL"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../../include" /I "../../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D WXUSINGDLL=1 /Yu"wx/wxprec.h" /FD /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
# ADD BASE RSC /l 0x809 /d "_DEBUG"
# ADD RSC /l 0x809 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxdlld.lib canvasd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/simple.exe" /pdbtype:sept /libpath:"../../../../lib"
!ELSEIF "$(CFG)" == "SimpleVC - Win32 Release DLL"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "ReleaseDLL"
# PROP BASE Intermediate_Dir "ReleaseDLL"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "ReleaseDLL"
# PROP Intermediate_Dir "ReleaseDLL"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D WXUSINGDLL=1 /FD /c
# SUBTRACT CPP /YX
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
# ADD BASE RSC /l 0x809 /d "NDEBUG"
# ADD RSC /l 0x809 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxdll.lib canvas.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/simple.exe" /libpath:"../../../../lib"
!ENDIF
# Begin Target
# Name "SimpleVC - Win32 Release"
# Name "SimpleVC - Win32 Debug"
# Name "SimpleVC - Win32 Debug DLL"
# Name "SimpleVC - Win32 Release DLL"
# Begin Source File
SOURCE=.\simple.cpp
!IF "$(CFG)" == "SimpleVC - Win32 Release"
!ELSEIF "$(CFG)" == "SimpleVC - Win32 Debug"
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "SimpleVC - Win32 Debug DLL"
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "SimpleVC - Win32 Release DLL"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\simple.rc
# ADD BASE RSC /l 0x809
# ADD RSC /l 0x809 /i "..\..\include"
# End Source File
# End Target
# End Project

View File

@@ -3,7 +3,7 @@ Microsoft Developer Studio Workspace File, Format Version 6.00
###############################################################################
Project: "XmlDemoVC"=.\XmlDemoVC.dsp - Package Owner=<4>
Project: "SimpleVC"=.\SimpleVC.dsp - Package Owner=<4>
Package=<5>
{{{

View File

@@ -9,9 +9,9 @@
WXDIR = $(WXWIN)
TARGET=xmldemo
TARGET=simple
EXTRALIBS=$(WXDIR)\contrib\lib\wxxml.lib
EXTRALIBS=$(WXDIR)\lib\canvas.lib
OBJECTS = $(TARGET).obj
!include $(WXDIR)\src\makeprog.b32

View File

@@ -0,0 +1,14 @@
# File: makefile.g95 for Plot demo
# Author: Julian Smart
# Created: 2001-06-12
# Updated:
WXDIR = ../../../..
TARGET = simple
OBJECTS = $(TARGET).o
EXTRAINC = -I$(WXDIR)/contrib/include
EXTRALIBS = -lcanvas
include $(WXDIR)/src/makeprog.g95

View File

@@ -0,0 +1,14 @@
# File: makefile.vc for Plot sample
# Author: Julian Smart
# Created: 2001-06-12
# Updated:
WXDIR = $(WXWIN)
PROGRAM = simple
OBJECTS = $(PROGRAM).obj
EXTRALIBS = $(WXDIR)\lib\canvas$(LIBEXT).lib
EXTRAINC = -I$(WXDIR)\contrib\include
!include $(WXDIR)\src\makeprog.vc

View File

@@ -0,0 +1,175 @@
# Microsoft Developer Studio Project File - Name="TestVC" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
CFG=TestVC - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "TestVC.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "TestVC.mak" CFG="TestVC - Win32 Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "TestVC - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "TestVC - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE "TestVC - Win32 Debug DLL" (based on "Win32 (x86) Application")
!MESSAGE "TestVC - Win32 Release DLL" (based on "Win32 (x86) Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
MTL=midl.exe
RSC=rc.exe
!IF "$(CFG)" == "TestVC - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "Release"
# PROP Intermediate_Dir "Release"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
# SUBTRACT CPP /YX
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
# ADD BASE RSC /l 0x809 /d "NDEBUG"
# ADD RSC /l 0x809 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wx.lib png.lib zlib.lib jpeg.lib tiff.lib canvas.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/test.exe" /libpath:"../../../../lib"
!ELSEIF "$(CFG)" == "TestVC - Win32 Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "Debug"
# PROP BASE Intermediate_Dir "Debug"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "Debug"
# PROP Intermediate_Dir "Debug"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../../include" /I "../../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
# SUBTRACT CPP /YX /Yc /Yu
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
# ADD BASE RSC /l 0x809 /d "_DEBUG"
# ADD RSC /l 0x809 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib canvasd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/test.exe" /pdbtype:sept /libpath:"../../../../lib"
!ELSEIF "$(CFG)" == "TestVC - Win32 Debug DLL"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "DebugDLL"
# PROP BASE Intermediate_Dir "DebugDLL"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "DebugDLL"
# PROP Intermediate_Dir "DebugDLL"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../../include" /I "../../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D WXUSINGDLL=1 /Yu"wx/wxprec.h" /FD /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
# ADD BASE RSC /l 0x809 /d "_DEBUG"
# ADD RSC /l 0x809 /d "_DEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxdlld.lib canvasd.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/test.exe" /pdbtype:sept /libpath:"../../../../lib"
!ELSEIF "$(CFG)" == "TestVC - Win32 Release DLL"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "ReleaseDLL"
# PROP BASE Intermediate_Dir "ReleaseDLL"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "ReleaseDLL"
# PROP Intermediate_Dir "ReleaseDLL"
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D WXUSINGDLL=1 /FD /c
# SUBTRACT CPP /YX
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
# ADD BASE RSC /l 0x809 /d "NDEBUG"
# ADD RSC /l 0x809 /d "NDEBUG"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxdll.lib canvas.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/test.exe" /libpath:"../../../../lib"
!ENDIF
# Begin Target
# Name "TestVC - Win32 Release"
# Name "TestVC - Win32 Debug"
# Name "TestVC - Win32 Debug DLL"
# Name "TestVC - Win32 Release DLL"
# Begin Source File
SOURCE=.\test.cpp
!IF "$(CFG)" == "TestVC - Win32 Release"
!ELSEIF "$(CFG)" == "TestVC - Win32 Debug"
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "TestVC - Win32 Debug DLL"
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "TestVC - Win32 Release DLL"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\test.rc
# ADD BASE RSC /l 0x809
# ADD RSC /l 0x809 /i "..\..\..\include"
# End Source File
# End Target
# End Project

View File

@@ -3,7 +3,7 @@ Microsoft Developer Studio Workspace File, Format Version 6.00
###############################################################################
Project: "wxXMLVC"=.\wxXMLVC.dsp - Package Owner=<4>
Project: "TestVC"=.\TestVC.dsp - Package Owner=<4>
Package=<5>
{{{

View File

@@ -0,0 +1,18 @@
#
# File: makefile.b32
# Author: Julian Smart
# Created: 1999
# Updated:
# Copyright:
#
# Makefile : Builds sample for 32-bit BC++
WXDIR = $(WXWIN)
TARGET=test
EXTRALIBS=$(WXDIR)\lib\canvas.lib
OBJECTS = $(TARGET).obj
!include $(WXDIR)\src\makeprog.b32

View File

@@ -0,0 +1,14 @@
# File: makefile.g95 for Plot demo
# Author: Julian Smart
# Created: 2001-06-12
# Updated:
WXDIR = ../../../..
TARGET = test
OBJECTS = $(TARGET).o
EXTRAINC = -I$(WXDIR)/contrib/include
EXTRALIBS = -lcanvas
include $(WXDIR)/src/makeprog.g95

View File

@@ -0,0 +1,14 @@
# File: makefile.vc for Plot sample
# Author: Julian Smart
# Created: 2001-06-12
# Updated:
WXDIR = $(WXWIN)
PROGRAM = test
OBJECTS = $(PROGRAM).obj
EXTRALIBS = $(WXDIR)\lib\canvas$(LIBEXT).lib
EXTRAINC = -I$(WXDIR)\contrib\include
!include $(WXDIR)\src\makeprog.vc

View File

@@ -0,0 +1,3 @@
#include "wx/msw/wx.rc"

View File

@@ -1,6 +1,6 @@
# $Id$
CONTRIB_SAMPLES=multicell splittree
CONTRIB_SAMPLES=multicell splittree editlbox
all:
@for d in $(CONTRIB_SAMPLES); do (cd $$d && $(MAKE)); done

View File

@@ -0,0 +1,23 @@
#
# File: Makefile.in
# Author: Julian Smart
# Created: 2000
# Updated:
# Copyright: (c) 2000 Julian Smart
#
# "%W% %G%"
#
# Makefile for the editlbox example (UNIX).
top_srcdir = @top_srcdir@/..
top_builddir = ../../../..
program_dir = contrib/samples/gizmos/editlbox
PROGRAM=test
OBJECTS=test.o
APPEXTRALIBS=$(top_builddir)/lib/libgizmos.@WX_TARGET_LIBRARY_TYPE@
APPEXTRADEFS=-I$(top_srcdir)/contrib/include
include $(top_builddir)/src/makeprog.env

View File

@@ -0,0 +1,17 @@
#
# File: makefile.b32
# Author: Julian Smart
# Created: 1999
# Updated:
# Copyright:
#
# Makefile : Builds sample for 32-bit BC++
WXDIR = $(WXWIN)
TARGET=test
OBJECTS = $(TARGET).obj
EXTRALIBS=$(WXDIR)\lib\gizmos.lib
!include $(WXDIR)\src\makeprog.b32

View File

@@ -0,0 +1,11 @@
# Purpose: makefile for multicell example (Cygwin/Mingw32)
# Created 2000-07-28
WXDIR = ../../../..
TARGET=test
OBJECTS = $(TARGET).o
EXTRALIBS=$(WXDIR)/lib/libgizmos.a
include $(WXDIR)/src/makeprog.g95

View File

@@ -0,0 +1,19 @@
# Makefile : Builds sample (VC++, WIN32)
# Use FINAL=1 argument to nmake to build final version with no debug info.
# Created 2000-07-28
# Set WXDIR for your system
WXDIR = $(WXWIN)
FINAL=0
PROGRAM=test
OBJECTS = $(PROGRAM).obj
!if "$(FINAL)" == "0"
EXTRALIBS=$(WXDIR)\lib\gizmosd.lib
!else
EXTRALIBS=$(WXDIR)\lib\gizmos.lib
!endif
!include $(WXDIR)\src\makeprog.vc

View File

@@ -0,0 +1,65 @@
// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
// for all others, include the necessary headers (this file is usually all you
// need because it includes almost all "standard" wxWindows headers)
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include "wx/gizmos/editlbox.h"
#include "wx/sizer.h"
class MyApp : public wxApp
{
public:
virtual bool OnInit();
};
IMPLEMENT_APP(MyApp)
bool MyApp::OnInit()
{
wxDialog dlg(NULL, -1, _("Test dialog"), wxDefaultPosition, wxDefaultSize,
wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER);
wxSizer *sizer = new wxBoxSizer(wxVERTICAL);
sizer->Add(new wxEditableListBox(&dlg, -1, _("Match these wildcards:"),
wxDefaultPosition,wxSize(300,200)),
1, wxEXPAND|wxALL, 10);
sizer->Add(5,5);
wxEditableListBox *lb = new wxEditableListBox(&dlg, -1, _("Except:"),
wxDefaultPosition,wxSize(300,200));
wxArrayString ar;
ar.Add(_T("*.cpp"));
ar.Add(_T("*.h"));
ar.Add(_T("*.c"));
lb->SetStrings(ar);
sizer->Add(lb, 1, wxEXPAND|wxALL, 10);
sizer->Add(5,5);
sizer->Add(new wxButton(&dlg, wxID_OK, _("OK")), 0, wxALIGN_RIGHT | wxALL, 10);
dlg.SetAutoLayout(TRUE);
dlg.SetSizer(sizer);
sizer->Fit(&dlg);
dlg.Centre();
dlg.ShowModal();
wxString res = _("'Except' contains these strings:\n\n");
lb->GetStrings(ar);
for (size_t i = 0; i < ar.GetCount(); i++)
res << ar[i] << _T("\n");
wxMessageBox(res);
return FALSE;
}

View File

@@ -0,0 +1,3 @@
#include "wx/msw/wx.rc"

View File

@@ -5,6 +5,7 @@ WXDIR = $(WXWIN)
TARGET=mtest
OBJECTS = $(TARGET).obj
EXTRALIBS=$(WXDIR)\lib\gizmos.lib
!include $(WXDIR)\src\makeprog.b32

View File

@@ -5,7 +5,7 @@ WXDIR = ../../../..
TARGET=mtest
OBJECTS = $(TARGET).o
EXTRALIBS=$(WXDIR)/lib/libgizmos.lib
EXTRALIBS=$(WXDIR)/lib/libgizmos.a
include $(WXDIR)/src/makeprog.g95

View File

@@ -56,7 +56,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 wx.lib xpm.lib png.lib zlib.lib jpeg.lib tiff.lib gizmos.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/tree.exe" /libpath:"d:\wx2\wxWindows\lib"
# ADD LINK32 wx.lib png.lib zlib.lib jpeg.lib tiff.lib gizmos.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/tree.exe" /libpath:"d:\wx2\wxWindows\lib"
!ELSEIF "$(CFG)" == "TreeVC - Win32 Debug"
@@ -82,7 +82,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 wxd.lib xpmd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib gizmosd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/tree.exe" /pdbtype:sept /libpath:"d:\wx2\wxWindows\lib"
# ADD LINK32 wxd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib gizmosd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/tree.exe" /pdbtype:sept /libpath:"d:\wx2\wxWindows\lib"
!ELSEIF "$(CFG)" == "TreeVC - Win32 Debug DLL"

View File

@@ -9,8 +9,9 @@
WXDIR = $(WXWIN)
TARGET=minimal
TARGET=tree
OBJECTS = $(TARGET).obj
EXTRALIBS=$(WXDIR)\lib\gizmos.lib
!include $(WXDIR)\src\makeprog.b32

View File

@@ -7,10 +7,11 @@
#
# Makefile for wxWindows sample (Cygwin/Mingw32).
WXDIR = ../..
WXDIR = ../../../..
TARGET=minimal
TARGET=tree
OBJECTS = $(TARGET).o
EXTRALIBS=$(WXDIR)/lib/libgizmos.a
include $(WXDIR)/src/makeprog.g95

View File

@@ -217,7 +217,7 @@ void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
{
wxString msg;
msg.Printf( _T("This is the about dialog of tree sample.\n")
msg.Printf( _T("This is the about dialog of splittree sample.\n")
_T("Welcome to %s"), wxVERSION_STRING);
wxMessageBox(msg, "About Tree Test", wxOK | wxICON_INFORMATION, this);
@@ -282,8 +282,6 @@ void TestTree::OnPaint(wxPaintEvent& event)
// Reset the device origin since it may have been set
dc.SetDeviceOrigin(0, 0);
wxSize sz = GetClientSize();
wxPen pen(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DLIGHT), 1, wxSOLID);
dc.SetPen(pen);
dc.SetBrush(* wxTRANSPARENT_BRUSH);

View File

@@ -56,7 +56,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wx.lib xpm.lib png.lib zlib.lib jpeg.lib tiff.lib mmedia.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib,libci.lib,msvcrtd.lib" /out:"Release/mmboard.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wx.lib png.lib zlib.lib jpeg.lib tiff.lib mmedia.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib,libci.lib,msvcrtd.lib" /out:"Release/mmboard.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Debug"
@@ -82,7 +82,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxd.lib xpmd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib mmediad.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib,libcid.lib,msvcrt.lib" /out:"Debug/mmboard.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib mmediad.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib,libcid.lib,msvcrt.lib" /out:"Debug/mmboard.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Debug DLL"
@@ -108,7 +108,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wx23_0d.lib mmediad.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/mmboard.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wx23_1d.lib mmediad.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/mmboard.exe" /pdbtype:sept /libpath:"../../../lib" /libpath:"../../../contrib/lib"
!ELSEIF "$(CFG)" == "MMboardVC - Win32 Release DLL"
@@ -135,7 +135,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wx23_0.lib mmedia.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/mmboard.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wx23_1.lib mmedia.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/mmboard.exe" /libpath:"../../../lib" /libpath:"../../../contrib/lib"
!ENDIF

View File

@@ -1,6 +1,5 @@
# Microsoft Developer Studio Project File - Name="OGLEditVC" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 5.00
# (Actually, generated by MakeProject, (c) Julian Smart, 1998)
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Application" 0x0101
@@ -8,23 +7,24 @@
CFG=OGLEditVC - Win32 Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE
!MESSAGE NMAKE /f "OGLEditVC.mak".
!MESSAGE
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE
!MESSAGE NMAKE /f "OGLEditVC.mak" CFG="OGLEditVC - Win32 Debug"
!MESSAGE
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE
!MESSAGE "OGLEditVC - Win32 Release" (based on "Win32 (x86) Application")
!MESSAGE "OGLEditVC - Win32 Debug" (based on "Win32 (x86) Application")
!MESSAGE "OGLEditVC - Win32 Debug DLL" (based on "Win32 (x86) Application")
!MESSAGE "OGLEditVC - Win32 Release DLL" (based on "Win32 (x86) Application")
!MESSAGE
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
CPP=cl.exe
@@ -47,8 +47,8 @@ RSC=rc.exe
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /FD /c
# SUBTRACT CPP /YX
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
# ADD BASE RSC /l 0x809 /d "NDEBUG"
# ADD RSC /l 0x809 /d "NDEBUG"
BSC32=bscmake.exe
@@ -56,7 +56,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wx.lib xpm.lib png.lib zlib.lib jpeg.lib tiff.lib ogl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib,libci.lib,msvcrtd.lib" /out:"Release/ogledit.exe" /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wx.lib png.lib zlib.lib jpeg.lib tiff.lib ogl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /nodefaultlib:"msvcrtd.lib" /out:"Release/ogledit.exe" /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug"
@@ -72,9 +72,9 @@ LINK32=link.exe
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "../../../../include" /I "../../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../../include" /I "../../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /Yu"wx/wxprec.h" /FD /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
# ADD BASE RSC /l 0x809 /d "_DEBUG"
# ADD RSC /l 0x809 /d "_DEBUG"
BSC32=bscmake.exe
@@ -82,7 +82,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxd.lib xpmd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib ogld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib,libcid.lib,msvcrt.lib" /out:"Debug/ogledit.exe" /pdbtype:sept /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxd.lib pngd.lib zlibd.lib jpegd.lib tiffd.lib ogld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /nodefaultlib:"msvcrt.lib" /out:"Debug/ogledit.exe" /pdbtype:sept /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug DLL"
@@ -98,9 +98,9 @@ LINK32=link.exe
# PROP Ignore_Export_Lib 0
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "../../../../include" /I "../../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D WXUSINGDLL=1 /Yu"wx/wxprec.h" /FD /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o NUL /win32
# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "../../../../include" /I "../../../../contrib/include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D DEBUG=1 /D "__WXDEBUG__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D WXUSINGDLL=1 /Yu"wx/wxprec.h" /FD /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
# ADD BASE RSC /l 0x809 /d "_DEBUG"
# ADD RSC /l 0x809 /d "_DEBUG"
BSC32=bscmake.exe
@@ -108,7 +108,7 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wx23_0d.lib ogld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/ogledit.exe" /pdbtype:sept /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wx23_1d.lib ogld.lib /nologo /subsystem:windows /debug /machine:I386 /nodefaultlib:"libcd.lib" /nodefaultlib:"libcid.lib" /out:"DebugDLL/ogledit.exe" /pdbtype:sept /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Release DLL"
@@ -126,8 +126,8 @@ LINK32=link.exe
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
# ADD CPP /nologo /MD /W3 /GX /O1 /Ob2 /I "../../../../include" /I "../../../../contrib/include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "__WINDOWS__" /D "__WXMSW__" /D "__WIN95__" /D "__WIN32__" /D WINVER=0x0400 /D "STRICT" /D WXUSINGDLL=1 /FD /c
# SUBTRACT CPP /YX
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o NUL /win32
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
# ADD BASE RSC /l 0x809 /d "NDEBUG"
# ADD RSC /l 0x809 /d "NDEBUG"
BSC32=bscmake.exe
@@ -135,9 +135,9 @@ BSC32=bscmake.exe
# ADD BSC32 /nologo
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wsock32.lib winmm.lib /nologo /subsystem:windows /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wx23_0.lib ogl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/ogledit.exe" /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wx23_1.lib ogl.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"libc.lib" /nodefaultlib:"libci.lib" /out:"ReleaseDLL/ogledit.exe" /libpath:"../../../../lib" /libpath:"../../../../contrib/lib"
!ENDIF
!ENDIF
# Begin Target
@@ -147,26 +147,6 @@ LINK32=link.exe
# Name "OGLEditVC - Win32 Release DLL"
# Begin Source File
SOURCE=.\ogledit.cpp
!IF "$(CFG)" == "OGLEditVC - Win32 Release"
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug"
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug DLL"
# SUBTRACT BASE CPP /YX /Yc /Yu
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Release DLL"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\doc.cpp
!IF "$(CFG)" == "OGLEditVC - Win32 Release"
@@ -182,11 +162,45 @@ SOURCE=.\doc.cpp
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Release DLL"
!ENDIF
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\doc.h
# End Source File
# Begin Source File
SOURCE=.\ogledit.cpp
!IF "$(CFG)" == "OGLEditVC - Win32 Release"
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug"
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug DLL"
# SUBTRACT BASE CPP /YX /Yc /Yu
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Release DLL"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\ogledit.h
# End Source File
# Begin Source File
SOURCE=.\ogledit.rc
# ADD BASE RSC /l 0x809
# ADD RSC /l 0x809 /i "../../../../include" /i "../../../../contrib/include"
# End Source File
# Begin Source File
SOURCE=.\palette.cpp
!IF "$(CFG)" == "OGLEditVC - Win32 Release"
@@ -202,11 +216,15 @@ SOURCE=.\palette.cpp
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Release DLL"
!ENDIF
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\palette.h
# End Source File
# Begin Source File
SOURCE=.\view.cpp
!IF "$(CFG)" == "OGLEditVC - Win32 Release"
@@ -222,94 +240,12 @@ SOURCE=.\view.cpp
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Release DLL"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\doc.h
!IF "$(CFG)" == "OGLEditVC - Win32 Release"
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug"
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug DLL"
# SUBTRACT BASE CPP /YX /Yc /Yu
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Release DLL"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\ogledit.h
!IF "$(CFG)" == "OGLEditVC - Win32 Release"
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug"
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug DLL"
# SUBTRACT BASE CPP /YX /Yc /Yu
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Release DLL"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\palette.h
!IF "$(CFG)" == "OGLEditVC - Win32 Release"
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug"
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug DLL"
# SUBTRACT BASE CPP /YX /Yc /Yu
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Release DLL"
!ENDIF
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\view.h
!IF "$(CFG)" == "OGLEditVC - Win32 Release"
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug"
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Debug DLL"
# SUBTRACT BASE CPP /YX /Yc /Yu
# SUBTRACT CPP /YX /Yc /Yu
!ELSEIF "$(CFG)" == "OGLEditVC - Win32 Release DLL"
!ENDIF
# End Source File
# Begin Source File
SOURCE=.\ogledit.rc
# ADD BASE RSC /l 0x809
# ADD RSC /l 0x809 /i "../../../../include" /i "../../../../contrib/include"
# End Source File
# End Target
# End Project

View File

@@ -1,4 +1,4 @@
Microsoft Developer Studio Workspace File, Format Version 5.00
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################

View File

@@ -34,7 +34,7 @@
#include "view.h"
#if wxUSE_STD_IOSTREAM
#include <iostream.h>
#include <ioswrap.h>
#endif
IMPLEMENT_DYNAMIC_CLASS(DiagramDocument, wxDocument)
@@ -54,7 +54,7 @@ bool DiagramDocument::OnCloseDocument(void)
}
#if wxUSE_STD_IOSTREAM
ostream& DiagramDocument::SaveObject(ostream& stream)
wxSTD ostream& DiagramDocument::SaveObject(wxSTD ostream& stream)
{
wxDocument::SaveObject(stream);
@@ -69,7 +69,7 @@ ostream& DiagramDocument::SaveObject(ostream& stream)
return stream;
}
istream& DiagramDocument::LoadObject(istream& stream)
wxSTD istream& DiagramDocument::LoadObject(wxSTD istream& stream)
{
wxDocument::LoadObject(stream);

View File

@@ -23,8 +23,7 @@
#include <wx/ogl/ogl.h>
#if wxUSE_STD_IOSTREAM
class ostream;
class istream;
#include <iosfwd>
#endif
/*
@@ -98,8 +97,8 @@ class DiagramDocument: public wxDocument
~DiagramDocument(void);
#if wxUSE_STD_IOSTREAM
virtual ostream& SaveObject(ostream& stream);
virtual istream& LoadObject(istream& stream);
virtual wxSTD ostream& SaveObject(wxSTD ostream& stream);
virtual wxSTD istream& LoadObject(wxSTD istream& stream);
#else
virtual wxOutputStream& SaveObject(wxOutputStream& stream);
virtual wxInputStream& LoadObject(wxInputStream& stream);

Some files were not shown because too many files have changed in this diff Show More