]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
13 years agoCorrected XML conversion in style names and face names
Julian Smart [Mon, 4 Apr 2011 17:56:53 +0000 (17:56 +0000)] 
Corrected XML conversion in style names and face names

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFurther commenting
Julian Smart [Mon, 4 Apr 2011 17:55:56 +0000 (17:55 +0000)] 
Further commenting

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoChanged licence references to "wxWindows licence".
Dimitri Schoolwerth [Mon, 4 Apr 2011 09:21:52 +0000 (09:21 +0000)] 
Changed licence references to "wxWindows licence".

Use "wxWindows licence" and not "wxWidgets licence" and also use British spelling for licence. Updated new occurrences in recently added files and a couple of previously (r64940) missed ones.

See #12165.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFixed failing image test.
Dimitri Schoolwerth [Sun, 3 Apr 2011 22:41:58 +0000 (22:41 +0000)] 
Fixed failing image test.

ImageTestCase::DibPadding was always failing due to differences in pixel data between the decoded GIF and encoded ICO image. Instead of comparing image content just check if the saving of the ICO succeeds (prior to r67296 it would crash).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoNo code changes, fixed forgotten typo that is a part of r67384.
Dimitri Schoolwerth [Sun, 3 Apr 2011 20:52:18 +0000 (20:52 +0000)] 
No code changes, fixed forgotten typo that is a part of r67384.

See #13076.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoNo code changes, fixed various typos.
Dimitri Schoolwerth [Sun, 3 Apr 2011 20:31:32 +0000 (20:31 +0000)] 
No code changes, fixed various typos.

Applied patch by snowleopard2 fixing typos in interface/. Extended the fixes throughout trunk.

Closes #13076.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFor wxGTK2, link with X11 explicitly, since we use many X11 functions directly.
Paul Cornett [Sun, 3 Apr 2011 05:19:59 +0000 (05:19 +0000)] 
For wxGTK2, link with X11 explicitly, since we use many X11 functions directly.
Some linkers, notably newer Linux ones, don't implicitly link against dependent libs
Fixes #13100

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoDisable wxUSE_STD_CONTAINERS by default for MSVC6.
Vadim Zeitlin [Sat, 2 Apr 2011 23:31:27 +0000 (23:31 +0000)] 
Disable wxUSE_STD_CONTAINERS by default for MSVC6.

This compiler can't compile its own standard headers with the default options
as it overflows an internal heap. Disable the use of standard containers by
default for it to avoid this problem and indicate that /Zm option must be used
to avoid this.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agomake sure value label updates even if handle position does not change, fixes #13042
Paul Cornett [Sat, 2 Apr 2011 22:19:44 +0000 (22:19 +0000)] 
make sure value label updates even if handle position does not change, fixes #13042

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoneed to override DoGetBestClientSize() to get correct size, fixes #13088
Paul Cornett [Sat, 2 Apr 2011 20:43:29 +0000 (20:43 +0000)] 
need to override DoGetBestClientSize() to get correct size, fixes #13088

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agofix overwrite of upper left part of parent window with sunken/raised border, fixes...
Paul Cornett [Sat, 2 Apr 2011 18:28:52 +0000 (18:28 +0000)] 
fix overwrite of upper left part of parent window with sunken/raised border, fixes #13072

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoNo real changes, just some more minor cleanup in wxSVGFileDC.
Vadim Zeitlin [Sat, 2 Apr 2011 16:38:04 +0000 (16:38 +0000)] 
No real changes, just some more minor cleanup in wxSVGFileDC.

Harmonize spaces, remove unnecessary semicolons, remove useless return
statements from void functions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoRemove wxSVG_DEBUG from wxSVGFileDC.
Vadim Zeitlin [Sat, 2 Apr 2011 16:38:02 +0000 (16:38 +0000)] 
Remove wxSVG_DEBUG from wxSVGFileDC.

Remove the weird wxSVG_DEBUG which could apparently be used to trace the code
execution by triggering asserts in all functions. This is really not the right
way to implement tracing and seems pretty useless, just remove it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoClean up of string operations in wxSVGFileDC code.
Vadim Zeitlin [Sat, 2 Apr 2011 16:37:58 +0000 (16:37 +0000)] 
Clean up of string operations in wxSVGFileDC code.

Use operator+=() instead of "s = s + ...".

See #13086.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAdd support for alpha channel in colours in wxSVGFileDC.
Vadim Zeitlin [Sat, 2 Apr 2011 16:37:54 +0000 (16:37 +0000)] 
Add support for alpha channel in colours in wxSVGFileDC.

Use stroke-opacity and fill-opacity SVG attributes to handle pens and brushes
created from colours with alpha channel in wxSVGFileDC.

Closes #13086.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoNo changes, just merge some strings in wxSVGFileDC.
Vadim Zeitlin [Sat, 2 Apr 2011 16:37:50 +0000 (16:37 +0000)] 
No changes, just merge some strings in wxSVGFileDC.

Concatenate string literals at compile-time instead of run-time.

See #13086.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoUse wxPENSTYLE_XXX and wxBRUSHSTYLE_XXX instead of wxXXX constants.
Vadim Zeitlin [Sat, 2 Apr 2011 16:37:44 +0000 (16:37 +0000)] 
Use wxPENSTYLE_XXX and wxBRUSHSTYLE_XXX instead of wxXXX constants.

Use non-deprecated constants in wxMSW wxGC code.

Closes #13109.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agobuild fix for GTK1 after r67299
Paul Cornett [Fri, 1 Apr 2011 16:20:17 +0000 (16:20 +0000)] 
build fix for GTK1 after r67299

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAdded wxComboPopup::DestroyPopup(), which responsibility is to call Destroy() for...
Jaakko Salli [Thu, 31 Mar 2011 17:22:51 +0000 (17:22 +0000)] 
Added wxComboPopup::DestroyPopup(), which responsibility is to call Destroy() for the popup control and also delete the combo popup object itself. The default implementation should be able to handle common cases.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoBuffer size calculation correction
Julian Smart [Thu, 31 Mar 2011 13:11:14 +0000 (13:11 +0000)] 
Buffer size calculation correction

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoUpdate configuration for OpenVMS
Jouk Jansen [Thu, 31 Mar 2011 10:52:30 +0000 (10:52 +0000)] 
Update configuration for OpenVMS

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoCompilation fix for wxUSE_STL==1 build after r67356.
Vadim Zeitlin [Thu, 31 Mar 2011 10:08:41 +0000 (10:08 +0000)] 
Compilation fix for wxUSE_STL==1 build after r67356.

An explicit conversion to char* is required in wxUSE_STL build.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoImplement wxGraphicsContext::GetSize() for Cairo.
Vadim Zeitlin [Thu, 31 Mar 2011 09:38:03 +0000 (09:38 +0000)] 
Implement wxGraphicsContext::GetSize() for Cairo.

As the implementation of this method is basically the same for all ports move
it to the base class itself instead of requiring the derived classes to
implement it. Now the derived classes need to fill in m_width and m_height
members instead.

Do fill them when creating wxGraphicsContext in Cairo version.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoTentative compilation fix for wxMSW with MinGW after STL changes.
Vadim Zeitlin [Thu, 31 Mar 2011 09:37:59 +0000 (09:37 +0000)] 
Tentative compilation fix for wxMSW with MinGW after STL changes.

Include wx/stack.h, which includes the standard <stack> header, before
<windows.h> as the latter redefines min and max as macros conflicting with the
standard headers.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAdd wx/msw/panel.h to the list of wxMSW headers in bakefile.
Vadim Zeitlin [Thu, 31 Mar 2011 09:28:47 +0000 (09:28 +0000)] 
Add wx/msw/panel.h to the list of wxMSW headers in bakefile.

Also move src/msw/panel.cpp to the list of normal wxMSW sources from the list
of low-level ones as it's not needed by wxUniv.

Closes #13103.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix alpha handling in CSS syntax in wxColour in non-"C" locale.
Vadim Zeitlin [Thu, 31 Mar 2011 09:28:41 +0000 (09:28 +0000)] 
Fix alpha handling in CSS syntax in wxColour in non-"C" locale.

Use locale-independent functions to parse and generate the floating point
alpha representation in CSS syntax for colours to make it work in locales
which don't use period as decimal separator.

Closes #13077.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix HMENU to wxMenu translation in wxMSW code.
Vadim Zeitlin [Thu, 31 Mar 2011 09:28:38 +0000 (09:28 +0000)] 
Fix HMENU to wxMenu translation in wxMSW code.

We didn't find the menus corresponding to the submenu handles. This resulted
in incorrect processing of EVT_UPDATE_UI events for the submenus and probably
other problems.

Fix this by searching for the HMENU recursively in all menus.

Closes #13080.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoDocument unexpected wxWindowDisabler taskbar UI in wxMSW.
Vadim Zeitlin [Thu, 31 Mar 2011 09:28:34 +0000 (09:28 +0000)] 
Document unexpected wxWindowDisabler taskbar UI in wxMSW.

It may be unexpected that the application can still be closed from the taskbar
even if its main window is disabled. Mention this in the documentation and
indicate how to prevent this from happening if required.

Closes #13081.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoCorrect wxGraphicsContext::StrokeLines(n, points) documentation.
Vadim Zeitlin [Thu, 31 Mar 2011 09:28:30 +0000 (09:28 +0000)] 
Correct wxGraphicsContext::StrokeLines(n, points) documentation.

This method draws a single polyline.

Closes #13099.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoRemove REMOVE_UNUSED_ARG option from setup.h files.
Vadim Zeitlin [Wed, 30 Mar 2011 14:16:25 +0000 (14:16 +0000)] 
Remove REMOVE_UNUSED_ARG option from setup.h files.

This identifier wasn't used anywhere as WXUNUSED() is always defined as
nothing for all compilers since quite some time.

Also moved wxUSE_IOSTREAMH together with the other wxUSE_STD_XXX options and
removed the "compiler (mis)features" section which became empty after doing
this.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAdd support for elements preceding the document node in wxXML.
Vadim Zeitlin [Wed, 30 Mar 2011 14:16:19 +0000 (14:16 +0000)] 
Add support for elements preceding the document node in wxXML.

This is mainly useful for parsing and generating processing instructions but
can be used for any kind of elements, e.g. also comments, occurring before the
document node in XML documents.

Closes #11593.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix memory leaks in wxXml unit test.
Vadim Zeitlin [Wed, 30 Mar 2011 14:16:13 +0000 (14:16 +0000)] 
Fix memory leaks in wxXml unit test.

Ensure that the root wxXmlNode is deleted by storing it in a wxScopedPtr
instead of a raw pointer.

See #11593.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAlways update internally stored AUI floating frame position.
Vadim Zeitlin [Wed, 30 Mar 2011 14:16:07 +0000 (14:16 +0000)] 
Always update internally stored AUI floating frame position.

Update the internally stored position of a floating AUI frame even if the user
is dragging it too fast to update its position on screen. This prevents the
frame from snapping back to the initial position when movement is over.

Closes #13014.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAdd wxUSE_STD_CONTAINERS and turn it on by default.
Vadim Zeitlin [Wed, 30 Mar 2011 14:16:04 +0000 (14:16 +0000)] 
Add wxUSE_STD_CONTAINERS and turn it on by default.

Previously, wxUSE_STL enabled both implicit conversion of wxString to
std::[w]string and use of standard containers for the implementation of their
wx equivalents. Split up the two roles now by allowing to enable the use of
the standard containers independently of (backwards incompatible) implicit
conversion in wxString and actually enable wxUSE_STD_CONTAINERS by default.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix XTI compilation in STL build.
Vadim Zeitlin [Wed, 30 Mar 2011 14:15:53 +0000 (14:15 +0000)] 
Fix XTI compilation in STL build.

Use explicit c_str() calls in XTI code as implicit conversion to "const char
*" doesn't exist in STL build.

This fixes compilation problems when wxUSE_EXTENDED_RTTI && wxUSE_STL.

Closes #13087.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agobuild fix for older GTK2
Paul Cornett [Wed, 30 Mar 2011 05:59:34 +0000 (05:59 +0000)] 
build fix for older GTK2

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoconvert assertdlg_gtk to C++
Paul Cornett [Wed, 30 Mar 2011 05:35:24 +0000 (05:35 +0000)] 
convert assertdlg_gtk to C++

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoprepare to convert file to C++
Paul Cornett [Wed, 30 Mar 2011 05:29:49 +0000 (05:29 +0000)] 
prepare to convert file to C++

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agofix clang warning (? having two different operand types)
Stefan Csomor [Tue, 29 Mar 2011 18:40:18 +0000 (18:40 +0000)] 
fix clang warning (? having two different operand types)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agomust use deprecated function for gtk2
Paul Cornett [Tue, 29 Mar 2011 17:49:36 +0000 (17:49 +0000)] 
must use deprecated function for gtk2

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agodon't crash on error
Paul Cornett [Tue, 29 Mar 2011 05:29:42 +0000 (05:29 +0000)] 
don't crash on error

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agobuild fix
Paul Cornett [Tue, 29 Mar 2011 05:17:00 +0000 (05:17 +0000)] 
build fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agofix typo
Paul Cornett [Tue, 29 Mar 2011 05:16:25 +0000 (05:16 +0000)] 
fix typo

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoGTK_WIDGET_SENSITIVE should have been converted to gtk_widget_get_sensitive
Paul Cornett [Tue, 29 Mar 2011 05:15:54 +0000 (05:15 +0000)] 
GTK_WIDGET_SENSITIVE should have been converted to gtk_widget_get_sensitive

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agowxDataViewChoiceRenderer's editor control should have the same size as the cell.
Václav Slavík [Mon, 28 Mar 2011 14:10:31 +0000 (14:10 +0000)] 
wxDataViewChoiceRenderer's editor control should have the same size as the cell.

It looks weird when it's significantly shorter than the content cell being edited.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoavoid deprecated functions and direct struct access
Paul Cornett [Mon, 28 Mar 2011 06:27:49 +0000 (06:27 +0000)] 
avoid deprecated functions and direct struct access

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoyet more avoiding direct struct access
Paul Cornett [Sun, 27 Mar 2011 19:38:10 +0000 (19:38 +0000)] 
yet more avoiding direct struct access

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoadd more functions we will need
Paul Cornett [Sun, 27 Mar 2011 18:41:07 +0000 (18:41 +0000)] 
add more functions we will need

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67321 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoInstead of just deleting m_popupInterface, call Destroy() of its wxWindow-based popup...
Jaakko Salli [Sun, 27 Mar 2011 18:30:56 +0000 (18:30 +0000)] 
Instead of just deleting m_popupInterface, call Destroy() of its wxWindow-based popup control obtained via GetControl() member function. Also still delete m_popupInterface if there was no popup control, or if it was implemented as a separate class (versus being multiple-inherited along side wxComboPopup, as has been the common practice).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAlways use gtk2-compat.h definitions.
Václav Slavík [Sun, 27 Mar 2011 17:23:43 +0000 (17:23 +0000)] 
Always use gtk2-compat.h definitions.

We support building against newer GTK+ version and using an older
one at runtime, so we must provide our implementations of these
functions even if GTK_CHECK_VERSION would indicate the function is
already available in GTK+.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoRenamed wx/gtk/private/compat.h to gtk2-compat.h.
Václav Slavík [Sun, 27 Mar 2011 17:23:39 +0000 (17:23 +0000)] 
Renamed wx/gtk/private/compat.h to gtk2-compat.h.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agomore avoiding direct struct access
Paul Cornett [Sun, 27 Mar 2011 07:17:05 +0000 (07:17 +0000)] 
more avoiding direct struct access

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoremove unused mouse event and redundant checks
Paul Cornett [Sun, 27 Mar 2011 06:51:28 +0000 (06:51 +0000)] 
remove unused mouse event and redundant checks

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoa few changes for gtk3, avoiding direct struct access
Paul Cornett [Sun, 27 Mar 2011 06:38:44 +0000 (06:38 +0000)] 
a few changes for gtk3, avoiding direct struct access

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoCompilation fix for r67312: add explicit cast to GtkStateType.
Václav Slavík [Sat, 26 Mar 2011 18:09:58 +0000 (18:09 +0000)] 
Compilation fix for r67312: add explicit cast to GtkStateType.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoUse accessor functions instead of deprecated GTK+ macros.
Václav Slavík [Sat, 26 Mar 2011 15:49:57 +0000 (15:49 +0000)] 
Use accessor functions instead of deprecated GTK+ macros.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix for image saving speedup
Julian Smart [Fri, 25 Mar 2011 16:42:02 +0000 (16:42 +0000)] 
Fix for image saving speedup

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoDon't use deprecated gtk_widget_ref().
Václav Slavík [Fri, 25 Mar 2011 15:08:25 +0000 (15:08 +0000)] 
Don't use deprecated gtk_widget_ref().

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoRevert r67137.
Václav Slavík [Fri, 25 Mar 2011 11:00:56 +0000 (11:00 +0000)] 
Revert r67137.

GTK_DISABLE_SINGLE_INCLUDES causes trouble with other included
libraries (libgnomeprint this time) too. This check for trivially fixed
problems is not worth the continuing trouble.

Fixes #13078.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agofix tool item enter/leave notify, fixes #13083
Paul Cornett [Thu, 24 Mar 2011 16:52:55 +0000 (16:52 +0000)] 
fix tool item enter/leave notify, fixes #13083

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoSet m_inheritBgCol flag in wxPanel with a background bitmap.
Vadim Zeitlin [Thu, 24 Mar 2011 16:08:11 +0000 (16:08 +0000)] 
Set m_inheritBgCol flag in wxPanel with a background bitmap.

This ensures that the panel background is used by its transparent children
under wxMSW even when the panel itself is inside a wxNotebook with themed
background: making InheritsBackgroundColour() return true prevents the
notebook from overriding our background.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoSpeeded up image saving to XML (WriteHex).
Julian Smart [Thu, 24 Mar 2011 10:59:47 +0000 (10:59 +0000)] 
Speeded up image saving to XML (WriteHex).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agomove deprecated GtkTooltips forward declaration to one place that still needs it
Paul Cornett [Wed, 23 Mar 2011 17:37:14 +0000 (17:37 +0000)] 
move deprecated GtkTooltips forward declaration to one place that still needs it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoclean up wxGTK tooltip code
Paul Cornett [Wed, 23 Mar 2011 17:36:10 +0000 (17:36 +0000)] 
clean up wxGTK tooltip code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFixed buffer overflow when saving certain images in the Windows icon format.
Dimitri Schoolwerth [Wed, 23 Mar 2011 15:20:25 +0000 (15:20 +0000)] 
Fixed buffer overflow when saving certain images in the Windows icon format.

When an image did not have a width with a multiple of 4 the calculations for the number of padding bytes (to get a scan line DWORD aligned) would be wrong. This caused a buffer overrun when saving the 1 bits per pixel mask.

Fixes #12937.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoOnly react to clicks on the checkbox in wxDataViewToggleRenderer.
Václav Slavík [Wed, 23 Mar 2011 13:57:52 +0000 (13:57 +0000)] 
Only react to clicks on the checkbox in wxDataViewToggleRenderer.

Previously, left click anywhere in the cell toggled the checkbox.
This was unexpected when the cursor was far from the checkbox
in a wide column. With this change, one has to be over the
checkbox to toggle it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAdd WXK_CONTROL_A..WXK_CONTROL_Z constants.
Vadim Zeitlin [Wed, 23 Mar 2011 12:59:59 +0000 (12:59 +0000)] 
Add WXK_CONTROL_A..WXK_CONTROL_Z constants.

These key codes provide nicer symbolic values for ASCII values in 1..26 range
generated by Ctrl+Letter keys.

Closes #13075.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoPrevent event generation in wxGtkCalendarCtrl::SetDate().
Vadim Zeitlin [Wed, 23 Mar 2011 10:37:38 +0000 (10:37 +0000)] 
Prevent event generation in wxGtkCalendarCtrl::SetDate().

Block not only gtk_day_selected_callback() but also gtk_month_changed_callback()
as we don't want wxEVT_CALENDAR_PAGE_CHANGED generated neither when calling
SetDate().

This fixes partial resetting of the just set value in wxDatePickerCtrl as
calling SetDate() there resulted in the date being reset from inside it and
the behaviour of the control was clearly wrong as could be seen in the widgets
sample.

Closes #13073.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoUse correct month in the date picker page of the widgets sample.
Vadim Zeitlin [Wed, 23 Mar 2011 10:37:35 +0000 (10:37 +0000)] 
Use correct month in the date picker page of the widgets sample.

Months returned by wxDateTime::GetMonth() start from 0 while people mostly
expect to have 1-based months in the UI.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix <object_ref> processing to respect overridden attributes.
Václav Slavík [Tue, 22 Mar 2011 19:13:28 +0000 (19:13 +0000)] 
Fix <object_ref> processing to respect overridden attributes.

r60494 accidentally broke this, by adding faster code path for
child-less <object_ref>s. Unfortunately, this made it ignore
<object_ref>s without children, but with attributes overrides.

Fixes #13061.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agowiring notifications
Stefan Csomor [Tue, 22 Mar 2011 18:44:43 +0000 (18:44 +0000)] 
wiring notifications

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAdd wxUSE_THREADS checks around wxMSW functions dealing with threads.
Vadim Zeitlin [Tue, 22 Mar 2011 17:15:56 +0000 (17:15 +0000)] 
Add wxUSE_THREADS checks around wxMSW functions dealing with threads.

This removes the code unneeded in wxUSE_THREADS==0 build and also fixes
compilation of wxGUIAppTraits::WaitForThread() which didn't compile any more
with wxUSE_THREADS==0 since r67185.

Closes #13050.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67288 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoDon't consider fully opaque bitmaps as having alpha in wxMSW.
Vadim Zeitlin [Tue, 22 Mar 2011 17:15:49 +0000 (17:15 +0000)] 
Don't consider fully opaque bitmaps as having alpha in wxMSW.

Remove the alpha channel from the DIB we create not only if all of its pixels
are fully transparent but also if they are all fully opaque. This prevents us
from erroneously creating bitmaps with alpha channel when none is needed nor
expected.

Closes #13056.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAdd wxText{Input,Output}Stream::Get{Input,Output}Stream() methods.
Vadim Zeitlin [Tue, 22 Mar 2011 17:15:45 +0000 (17:15 +0000)] 
Add wxText{Input,Output}Stream::Get{Input,Output}Stream() methods.

These methods simply return the underlying low-level stream.

See #10807.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoPost size events to the event handler and not window itself.
Vadim Zeitlin [Tue, 22 Mar 2011 17:15:38 +0000 (17:15 +0000)] 
Post size events to the event handler and not window itself.

Post the artificial wxSizeEvent to the window event handler and not window
itself in SendSizeEvent() as otherwise any event handlers wouldn't see this
event at all.

Closes #13066.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoUse disabled version of normal bitmap for disabled one in wxMSW::wxButton.
Vadim Zeitlin [Tue, 22 Mar 2011 17:15:34 +0000 (17:15 +0000)] 
Use disabled version of normal bitmap for disabled one in wxMSW::wxButton.

Initialize the disabled button bitmap with a greyed out version of the normal
one instead of using the same normal bitmap for it. This is more consistent
with the other ports and makes more sense.

Closes #13070.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agofirst version of osx_cocoa implementation
Stefan Csomor [Tue, 22 Mar 2011 16:40:28 +0000 (16:40 +0000)] 
first version of osx_cocoa implementation

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoonly remove from parent if not content view, fixes #13068
Stefan Csomor [Tue, 22 Mar 2011 16:39:26 +0000 (16:39 +0000)] 
only remove from parent if not content view, fixes #13068

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoCorrectly align background brush when erasing owner drawn bitmaps in wxMSW.
Vadim Zeitlin [Tue, 22 Mar 2011 15:07:20 +0000 (15:07 +0000)] 
Correctly align background brush when erasing owner drawn bitmaps in wxMSW.

Add a hack to work around the problem with background alignment when drawing
the owner-drawn buttons in wxMSW. This fixes the alignment for any custom
brushes used for background painting but doesn't help with user-defined
EVT_ERASE_BACKGROUND handlers which still don't work well with the owner-drawn
buttons. Unfortunately DrawThemeParentBackground() remains a mystery and I
couldn't understand why not only doesn't it position the DC correctly on its
own but also ignores any attempts to do it manually.

This also doesn't help with the stubbornly remaining one pixel non-transparent
border around non-owner-drawn buttons which I just can't get rid of.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFixed various typos.
Dimitri Schoolwerth [Tue, 22 Mar 2011 14:17:38 +0000 (14:17 +0000)] 
Fixed various typos.

Applied patch by snowleopard2 fixing a bunch of typos such as misspellings and double words in the documentation. Combined the patch with some local queued typos waiting to be committed as well as adding new typo fixes inspired by the patch.

Function names with American spelling were not changed nor was third-party code touched. The only code changes involve some changes in strings that are translated ("Can not" -> "Cannot").

Closes #13063 (again).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoExtensive documentation typo patch (closes #13063).
Bryan Petty [Tue, 22 Mar 2011 14:08:30 +0000 (14:08 +0000)] 
Extensive documentation typo patch (closes #13063).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoNo code changes, removed tabs from source file.
Dimitri Schoolwerth [Tue, 22 Mar 2011 14:06:20 +0000 (14:06 +0000)] 
No code changes, removed tabs from source file.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoUpdate OpenVMS makefiles for WXMARKUP
Jouk Jansen [Tue, 22 Mar 2011 10:57:09 +0000 (10:57 +0000)] 
Update OpenVMS makefiles for WXMARKUP

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoTo have better support for themed and custom backgrounds for wxMSW wxComboCtrl, use...
Jaakko Salli [Tue, 22 Mar 2011 09:56:40 +0000 (09:56 +0000)] 
To have better support for themed and custom backgrounds for wxMSW wxComboCtrl, use WS_EX_COMPOSITED and wxBG_STYLE_ERASE instead of custom double-buffering (when made possible by the OS version)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoIn wxComboCtrlBase::DrawButton(), let the button background rendering changes also...
Jaakko Salli [Tue, 22 Mar 2011 08:59:59 +0000 (08:59 +0000)] 
In wxComboCtrlBase::DrawButton(), let the button background rendering changes also apply to buttons with user-defined bitmaps

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAdded entry for recent wxComboCtrl background rendering changes
Jaakko Salli [Tue, 22 Mar 2011 08:45:48 +0000 (08:45 +0000)] 
Added entry for recent wxComboCtrl background rendering changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agofixes #13064
Stefan Csomor [Tue, 22 Mar 2011 07:10:41 +0000 (07:10 +0000)] 
fixes #13064

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agofixes #12579
Stefan Csomor [Tue, 22 Mar 2011 06:44:08 +0000 (06:44 +0000)] 
fixes #12579

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix wxMSW build without PCH after recent wxPanel changes.
Vadim Zeitlin [Mon, 21 Mar 2011 11:00:03 +0000 (11:00 +0000)] 
Fix wxMSW build without PCH after recent wxPanel changes.

Add missing include of wx/bitmap.h in !WX_PRECOMP case.

Closes #13060.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAllow using milliseconds in wxLog timestamp.
Vadim Zeitlin [Mon, 21 Mar 2011 10:59:59 +0000 (10:59 +0000)] 
Allow using milliseconds in wxLog timestamp.

Use wxDateTime::UNow() instead of time() and wxDateTime::Format() instead of
localtime() to make it possible to use "%l" specifier in wxLog time stamp.

Closes #13059.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAdded a simple example of semi-transparent window to the erase sample.
Vadim Zeitlin [Sun, 20 Mar 2011 22:33:25 +0000 (22:33 +0000)] 
Added a simple example of semi-transparent window to the erase sample.

Show how to create a custom control with transparent background.

Notice that this doesn't work in wxGTK currently.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoRemove keyboard-related code from the erase sample.
Vadim Zeitlin [Sun, 20 Mar 2011 22:33:21 +0000 (22:33 +0000)] 
Remove keyboard-related code from the erase sample.

This code seems irrelevant in this sample and just complicates it
unnecessarily.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoDon't draw the mysterious black rectangle in the erase sample.
Vadim Zeitlin [Sun, 20 Mar 2011 22:33:16 +0000 (22:33 +0000)] 
Don't draw the mysterious black rectangle in the erase sample.

The black rectangle drawn in EVT_PAINT handler in the sample prevented the
custom background from showing through the wxStaticBitmap. Maybe it was
initially done intentionally but this makes the sample look broken so just
don't do this.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoMade some TIFF reading adjustments.
Dimitri Schoolwerth [Sun, 20 Mar 2011 19:48:03 +0000 (19:48 +0000)] 
Made some TIFF reading adjustments.

Read a few TIFF tags that assist with having a similar TIFF file when saving the image again, instead of (by default) always saving as a 24-bit RGB image. Also, in accordance with libtiff, allow reading X and Y resolution values even if the resolution unit tag is not set.

Applied (modified) patch by scottb. Closes #13015.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoFix test for wxHAS_GENERIC_PANEL for PCH-less build.
Vadim Zeitlin [Sun, 20 Mar 2011 11:50:47 +0000 (11:50 +0000)] 
Fix test for wxHAS_GENERIC_PANEL for PCH-less build.

wxHAS_GENERIC_PANEL is only defined in wx/panel.h so test for it after
including this file, not before.

This fixes link errors due to missing wxPanel symbols in PCH-less builds.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agospinctrl on mac is generic, so the peer is a userpane, fixes #13058
Stefan Csomor [Sun, 20 Mar 2011 11:50:39 +0000 (11:50 +0000)] 
spinctrl on mac is generic, so the peer is a userpane, fixes #13058

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAdded wxComboCtrlBase::m_hasTcBgCol. Re-using base wxWindow::m_hasBgCol was trouble.
Jaakko Salli [Sun, 20 Mar 2011 11:15:17 +0000 (11:15 +0000)] 
Added wxComboCtrlBase::m_hasTcBgCol. Re-using base wxWindow::m_hasBgCol was trouble.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoRedone (generic) wxComboCtrl background painting and handling. The 'actual' wxWindow...
Jaakko Salli [Sun, 20 Mar 2011 10:59:22 +0000 (10:59 +0000)] 
Redone (generic) wxComboCtrl background painting and handling. The 'actual' wxWindow background colour is now largely ignored and overridden to refer the text-area's background colour instead (as is usually the case with controls like this). Base 'transparent' background is now only painted when double-buffered rendering is required, and otherwise delegated to the system, as appropriate. This should significantly improve control's appearance and compliancy with GTK+ and OS X themes and custom backgrounds.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoNo changes, synchronised source names that appear commented at the top of files with...
Dimitri Schoolwerth [Sun, 20 Mar 2011 00:14:35 +0000 (00:14 +0000)] 
No changes, synchronised source names that appear commented at the top of files with the actual path to the files.

Fixed commented names (path, filename, and extension) of files in include/ and src/. Prepended the names in src/ with "src/" everywhere, while starting those in include/wx/ with "wx/".

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

13 years agoAdd wxPanel::SetBackgroundBitmap().
Vadim Zeitlin [Sun, 20 Mar 2011 00:00:49 +0000 (00:00 +0000)] 
Add wxPanel::SetBackgroundBitmap().

This method provides a simple way to set a background bitmap without defining
an EVT_ERASE_BACKGROUND handler and, more importantly, one that works
correctly in wxMSW for a window with children as it paints the background of
transparent children too.

Add a test of this method to the erase sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775