Commit Graph

41749 Commits

Author SHA1 Message Date
Julian Smart
0ec6da0248 Now uses the correct selection colours.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 14:53:07 +00:00
Julian Smart
caad01090a Fixed a style application bug inserting a newline other than after the end of a paragraph.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 14:41:21 +00:00
Chris Elliott
e0e742c32e fix png compile bug with DMC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 13:24:49 +00:00
Chris Elliott
8ec67c0bf1 fix compile bug with DMC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 13:06:07 +00:00
Chris Elliott
63ef7db3e9 allow Borland 5.5 again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 11:08:10 +00:00
Chris Elliott
d537baffe9 remove extra ';'
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 11:04:43 +00:00
Chris Elliott
1790256b78 changes to Borland install/usage
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-25 10:48:50 +00:00
Vadim Zeitlin
cfdcfeafbe always delete the menus, even if the menu is attached (at the very least this fixes Purify warnings)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49413 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 23:41:45 +00:00
Vadim Zeitlin
90df603354 release update region as soon as we finished painting the window instead of keeping it indefinitely (bug 1819635)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 23:27:17 +00:00
Vadim Zeitlin
0250efd6f4 use LogLastRepetitionCountIfNeeded() instead of DoLogNumberOfRepeats() in logg.cpp too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 22:19:28 +00:00
David Elliott
5ed63bf59f Don't check for wxMac before overriding WORDS_BIGENDIAN based on compiler
endianness definitions.  This allows any toolkit to be compiled universally
on OS X, not just wxMac.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 21:43:36 +00:00
David Elliott
80da12bc09 Remove defined(__WXMAC__) && defined(__APPLE__) case from the OS if/elif block.
It would never have been used in a configure build since setup.h which defines
__UNIX__ is included from platform.h before the if/elif block.  Likewise, it
would not have been used for wxMac Xcode builds since they use config_xcode.h
which also defines __UNIX__.  That's fortunate since __POWERPC__ was defined
unconditionally in that case.  Note that classic builds wouldn't have used
the case either since they have their own case just before it (which remains).

Add __MACH__ to the list of UNIX defines (e.g. like __hpux) so that the UNIX
case of the OS if/elif block is guaranteed to match for all Mach systems.  In
addition to that, within that case check for __APPLE__ && __MACH__ and make
sure that __BSD__ and __DARWIN__ are defined, TARGET_CARBON is defined,
and wxSIZE_T_IS_ULONG is defined.

Add __ppc__ to the list of defines that will cause __POWERPC__ to be defined
although it's interesting to note that we don't seem to use it anywhere.

Make sure that each case of the OS if/elif block has a /* OS ... */ comment
to make the code a bit easier to follow.

Remove comment about __DARWIN__ being used to work around defects in GCC,
that was removed years ago.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 21:03:53 +00:00
Chris Elliott
9604c99ddf makefiels updated to reflect removal of db sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 19:42:40 +00:00
Paul Cornett
cca410b336 Use a GtkVBox to do TLW layout. Rework some of the remaining sizing code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 18:07:24 +00:00
Vadim Zeitlin
a2d3826500 add a critical section protecting ms_prev variables (replaces patch 1819224)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 17:59:53 +00:00
Vadim Zeitlin
2064113c9d slightly simplified wxLog repetition counting code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 17:55:29 +00:00
Julian Smart
ce04fea594 Small usability improvements
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 14:21:08 +00:00
Julian Smart
f6fe9f9c00 Made dialog captions more standard
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 14:17:37 +00:00
Vadim Zeitlin
cae618d1d3 fix off by 1 pixel error in header drawing (patch 1819260)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 13:37:15 +00:00
Robert Roebling
0677c6cb66 Don't hide wrong border around header button control just to show the problem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 08:14:49 +00:00
Paul Cornett
a74450b48f non-pch build fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-24 02:58:57 +00:00
Vadim Zeitlin
d5ef211ffe fixed another unused parameter warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 23:02:39 +00:00
Vadim Zeitlin
553d2d7db9 removed a wrong WXUNUSED() from DoNavigateIn()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 23:02:19 +00:00
Vadim Zeitlin
e4161a2a08 use -Wunused-parameter with gcc for consistency with MSVC and other compilers which warn about this; fix the uncovered warnings in wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 22:19:34 +00:00
Robin Dunn
87f8a3cf25 Use premultiplied alpha pixel format to match what is used everywhere else in wxMSW.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 21:36:13 +00:00
Robert Roebling
672e58d9e8 Add column to control after association with model (currently a requirement for wxMac)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 21:11:48 +00:00
Vadim Zeitlin
f456baf131 fix a couple more of unused parameters warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 20:59:50 +00:00
Robin Dunn
fde5da316a Factor out code to create a standard sized bitmap so it can be used in
SetBitmapLabel too.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 18:26:41 +00:00
Vadim Zeitlin
e461247b05 do use vswprintf() with mingw32 if STLPort >= 5.1 is used (and not msvcrt which defines vswprintf() in a pre-standard way)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 18:20:44 +00:00
Vadim Zeitlin
3824e0db33 don't compare initial slider position with uninitialized m_pos (modified patch 1818759)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 18:16:06 +00:00
Vadim Zeitlin
9cd808434c implement wxSYS_DCLICK_MSEC support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 16:11:12 +00:00
Vadim Zeitlin
1e6b2edfc8 remove ODBC and DBgrid libraries
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 13:40:27 +00:00
Vadim Zeitlin
f283c68310 added --prefix option which is useful when cross-building
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 13:38:29 +00:00
Julian Smart
96d38a8a71 Small code cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 13:35:26 +00:00
Paul Cornett
a76c2f3715 remove extraneous semicolons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 07:27:12 +00:00
David Elliott
a9a854d73e Go back to my original idea of checking for EILSEQ and EINVAL and failing
immediately if either of those is set after wxVsnprintf call returns a
negative number to indicate some type of failure.

All other errno are assumed to simply mean that the buffer is undersized so
the platform C library function can set errno to anything it likes or simply
not set it at all and our code will keep trying to increase the buffer size
just as it did originally.

This should (hopefully) fix compilation with C libraries that only support
the most basic set of errors (of which EINVAL and EILSEQ are part).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-23 03:30:16 +00:00
Vadim Zeitlin
4488a1d332 added wxBG_STYLE_TRANSPARENT and implemented it for wxMac; documented various transparency-related functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 21:15:04 +00:00
Stefan Csomor
5a2b31a0d7 fixing compilo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 20:11:51 +00:00
Robert Roebling
0eee633069 Added new line
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 18:13:27 +00:00
Robin Dunn
e6d18909c9 Patch [ 1816051 ] MSW DrawEllipticArc inconsistent with other platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 18:06:57 +00:00
Robert Roebling
d81ad1f044 Further attempts to get button header right
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 18:04:14 +00:00
Robert Roebling
4bae66a8de Use CommCtrl to render sortup and sortdown indicators in header control
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 17:39:53 +00:00
Vadim Zeitlin
9e06a15fc2 add HDF_SORTUP/DOWN definitions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 17:30:36 +00:00
Vadim Zeitlin
9bf6a1b80c escape underscores introduced by the last change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 16:12:45 +00:00
Robert Roebling
70a9e561df Trying to get native header button right
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 13:57:33 +00:00
Stefan Csomor
143973fc13 moving os x config defaults
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 13:07:48 +00:00
Vadim Zeitlin
bc0e68ebaf calling SetFocus() in OnMouseUp() is unnecessary if we skip the event in OnMouseDown()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 11:35:19 +00:00
Vadim Zeitlin
bf10569350 removed mention of inexistent file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 11:30:26 +00:00
Vadim Zeitlin
bc2ac5da6a compilation fix for wxUSE_STL==1 after wxList methods changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 11:27:13 +00:00
Robert Roebling
f69c03def9 Use a private GtkCellRendererText for rendering text in a wxDataViewCustomRenderer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-22 11:26:04 +00:00