Commit Graph

15444 Commits

Author SHA1 Message Date
Julian Smart
d4aeebb808 Added wxX11 distribution script
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-22 19:07:03 +00:00
Václav Slavík
0357e1513d sanitized library names in contrib hierarchy
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-22 15:08:16 +00:00
Vadim Zeitlin
4bfedab037 added missing _T()s; deTABified
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-22 14:53:45 +00:00
Julian Smart
556469d8ba Fixed bug [ 413614 ] native wxDragImage w/o mask is broken
by adding ILC_MASK even when there's no mask.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-22 14:32:23 +00:00
Julian Smart
91bbbdf8a6 Fixed bug [ 495532 ] wxFileDialog limits multiple file load
"The wxMAXPATH constant prevents the loading of
multiple file names in a multiple selection dialog
when selecting a large number of files.

The number of selected files can easily exceed the
memory allocated to store the selected file names and
paths."

I'm increasing the buffer size to 65536 which should be adequate
for most purposes. There's apparently no way to work around the
fixed buffer size. -- JACS


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-22 11:36:52 +00:00
Mattia Barbon
7242785858 Fixed wxRadioBox for Lesstif when compiled to emulate Motif 1.2
(as in Debian 3.0).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-22 08:46:08 +00:00
Vadim Zeitlin
833adb3bb1 made GetResourceHandle() const everywhere, not just in wxBrush (fixes first part of the bug 612658)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 23:01:25 +00:00
Vadim Zeitlin
e2531c0c29 removed mdig.cpp (??) from msw/files.lst as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 21:59:53 +00:00
Mattia Barbon
490317bb9f Before this change wxComboBox was unconditionally white, which looked
very ugly. Now the textcontrol and popup background are unconditionally
white, while the rest has parent's background color. I think it
looks better now...


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 20:53:58 +00:00
Stefan Csomor
4df9aff134 added new command ids
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 20:52:34 +00:00
Stefan Csomor
8ffb0bb9f0 added forcing for bitmap types
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 20:51:00 +00:00
Stefan Csomor
7143fe6b26 switched menu handling to command ids
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 20:49:35 +00:00
Vadim Zeitlin
c6ec726bd8 fixed some warnings about assigning literal strings to char *
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 20:42:40 +00:00
Vadim Zeitlin
ad2e39c11d made ProvideBackground() const
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 20:38:05 +00:00
Vadim Zeitlin
a34d639546 really override IsCanvasWindow() in wxPanel (this wasn't the case because of a missing const before)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 20:32:53 +00:00
Vadim Zeitlin
1b3947754a fix warning about hiding virtual Select()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 20:31:32 +00:00
Vadim Zeitlin
f637c8e680 compilation fix: removed trailing comma in enum
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 20:27:57 +00:00
Vadim Zeitlin
9551c623db removed C++ comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 20:25:56 +00:00
Julian Smart
59a6c6e6c9 Added Makefile.in for Windows samples, so we can build
them using MinGW


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 17:20:52 +00:00
Stefan Csomor
9ad7df7d60 corrected var overflow under classic
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 16:26:05 +00:00
Stefan Csomor
c175803628 corrected typos
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 16:21:15 +00:00
Mattia Barbon
64e8d107f0 Applied Motif patches from Ian Brown
[ 609894 ] motif staticbox improvement
[ 611042 ] fix for motif crash

Everything looks fine with Lesstif from Debian 3.0 (emulated
Motif version is 1.2).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 16:20:49 +00:00
Mattia Barbon
93add80831 GCC 3.2 is really picky about friends & dllexport.
Now wxWindows compiles (again) as DLL with MinGW GCC 3.2


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 16:16:57 +00:00
Julian Smart
b2162f4c83 Fixed bug [ 597643 ] SashWindow-borders cause sticky arrow
Needed an OnSetCursor as per splitter window, for MSW only.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 14:16:24 +00:00
Václav Slavík
69c18e92a0 fixed stupid bug in my previous check in
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 13:53:53 +00:00
Ron Lee
63b53115ce Ok, so the patch looks huge, but it's really not that scary.
Most of it is just reformatting to our coding standard to
make debugging possible in the first place.  The (finally)
significant change is in DeleteSubGroup where we now check
correctly for deleting the last group from the root.
Prior to this it was impossible without a crash or worse.
Since it was such a pig to track down, I've left the LogTrace
code in place for now too.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 12:20:47 +00:00
Vadim Zeitlin
f14f5c6740 don't set Alt/Ctrl modifiers for the AltGr char events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 11:44:49 +00:00
Vadim Zeitlin
3f4d464b9b fixed operator++() for wxRegioIterator in wxGTK too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 10:38:36 +00:00
Stefan Neis
b8595cfb2a Fixed bug introduced in v 1.8 by changed parameter list of SelectBlock, but
mostly hidden by default values of new parameters.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 01:49:20 +00:00
Stefan Neis
d2121dd382 Fixed yet another part of the typo fixed in 1.232.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 00:26:08 +00:00
Stefan Neis
e19f4ed3fa Added some sanity checks for empty grids.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 00:07:20 +00:00
Stefan Neis
07cbd27aaa Fix in wxArrayString::Grow to also handle situation where array is not yet
full but the nIncrement is greater than the space left.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-21 00:01:26 +00:00
Vadim Zeitlin
6d9a4c4d6f 1. fixed bug in wxRegion::Combine() which was modifying all shared regions,
not just the given one
2. added wxRegionIterator copy ctor and assignment operator
3. fixed wxRegionIterator::operators++() to do what they say
4. generic code cleanup


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 23:36:23 +00:00
Vadim Zeitlin
b254accad1 base class must have virtual dtors and wxMBConv is no exception
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 23:01:58 +00:00
Vadim Zeitlin
302adc47d6 use _tcsdup() for compilers with TCHAR support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 23:00:32 +00:00
Vadim Zeitlin
93fe555876 no changes, really
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 23:00:08 +00:00
Robin Dunn
9441da1902 Fix in <array>::Grow for when the array is not yet full but the
nIncrement is greater than the space left.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 21:39:59 +00:00
Robin Dunn
fa0e662ad9 typo fix for the branch too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 21:38:57 +00:00
Robert Roebling
2bcf7f2fed Added ugly hack for pda's message and
other common dialogs.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 21:07:22 +00:00
Robert Roebling
7e9dfde99b Fix typo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 21:06:47 +00:00
Stefan Csomor
65653bad15 switched hide and show calls to using transition window calls, this supports animation and sound support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 19:16:56 +00:00
Stefan Csomor
a14865055c changed resize code to reflect minimum and maximum sizes already when dragging the size rectangle
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 19:15:16 +00:00
Robin Dunn
63684edb71 Fixed some of the cleanup commands
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 17:33:03 +00:00
Vadim Zeitlin
a19f8994da apparently MipsPRO compiler needs -KPIC and not -fPIC for the shared libraries creation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 13:28:33 +00:00
Vadim Zeitlin
fda7f3a124 compilation fix: missing forward decl for wxTextCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 12:57:31 +00:00
Vadim Zeitlin
fe25fb0c68 (blind) fixes for building shared libraries under AIX with gcc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 12:53:45 +00:00
Julian Smart
536d412453 Applied fix for [ 439207 ] Monochrome PNG images come up black
Joel Tesler (jtesler)

A monochrome black and white PNG image comes up all
black. This is referring to a single bit greyscale
pixmap, not a one bit palette pxiamp.

The easiest way to reproduce is to grab
http://www.schaik.com/pngsuite/basn0g01.png and go
into the image sample, and replace horse.png with
this file.

The following patch appears to fix the problem.
However, I do not know what other side effects it
might have.

--- imagpng.cpp~ Fri Jul 6 14:53:33 2001
+++ imagpng.cpp Fri Jul 6 15:17:06 2001
@@ -140,6 +140,8 @@

if (color_type == PNG_COLOR_TYPE_PALETTE)
png_set_expand( png_ptr );
+ if (bit_depth < 8)
+ png_set_expand( png_ptr );

png_set_strip_16( png_ptr );
png_set_packing( png_ptr );


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 08:53:30 +00:00
Julian Smart
4849c8132b Fixed [ 548055 ] Bug in wxToolBarSimple::Realize()
Cédric RICARD

There is an inversion in wxToolBarSimple::Realize():

The current code is :
if ( GetWindowStyleFlag() & wxTB_HORIZONTAL )
m_maxWidth += maxToolWidth;
else
m_maxHeight += maxToolHeight;

I think it should be :
if ( GetWindowStyleFlag() & wxTB_HORIZONTAL )
m_maxHeight += maxToolHeight;
else
m_maxWidth += maxToolWidth;


Just take an example to see the bug, and have a look
to the rest of the function :

If you create an horizontal tool bar with only 3
tools of 16 pixels length each, when you reach this
code, m_maxWidth is equal to 3*16 pixels. So it have
the good width. You needn't to add other 16 pixels.
But m_maxHeight is equal to 0 ! So you have to take
care of the line you have just created...

This is very logical. In an horizontal tool bar,
m_maxWidth is increased after each new tool. But
m_maxHeight is only increased when an entire line is
finished, or when the last tool is added to take care
of the last line.

And at last, I think you should add a :

SetSize(m_maxWidth, m_maxHeight);

after the previous code. Just try the ToolBar sample
code. It only works if I do that...




git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 08:21:00 +00:00
Ron Lee
ddbbd35e11 update python version dependency.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 01:37:43 +00:00
Vadim Zeitlin
326330ac79 don't crash when recreating notebook under wxGTK (bug 571853)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-20 00:11:49 +00:00