]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
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

13 years agoDeprecate old style wxPanel ctor taking separate coordinates.
Vadim Zeitlin [Sun, 20 Mar 2011 00:00:42 +0000 (00:00 +0000)] 
Deprecate old style wxPanel ctor taking separate coordinates.

wxPanel had a ctor in very old (wx 1.x-compatible?) style which was marked as
"old" and not documented but not officially deprecated. Do deprecate it now in
view of removing it in later releases.

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

13 years agoSplit wxPanel in wxPanelBase and platform-specific files.
Vadim Zeitlin [Sun, 20 Mar 2011 00:00:38 +0000 (00:00 +0000)] 
Split wxPanel in wxPanelBase and platform-specific files.

So far we have only wxMSW-specific implementation (and also a trivial
wxUniv-specific one) but it's still tidier to have all platform-specific code
in separate files, especially as we're going to have more of it for wxMSW
soon.

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

13 years agoNo changes, just refactor wxMSW background brush methods.
Vadim Zeitlin [Sun, 20 Mar 2011 00:00:29 +0000 (00:00 +0000)] 
No changes, just refactor wxMSW background brush methods.

Factor out MSWGetCustomBgBrush() from MSWGetBgBrushForChild(). This is useful
as in the vast majority of cases the parent window will want to use the same
background brush for all of its children so it doesn't really care about the
concrete child passed to MSWGetBgBrushForChild() and we can adjust the brush
to the child origin in the common code instead of asking each derived class
overriding MSWGetBgBrushForChild() to do this.

This doesn't change anything but will make the upcoming changes to wxPanel
background painting simpler.

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

13 years agoFix wxRegKey::GetKeyInfo() output parameters in 64 bit builds.
Vadim Zeitlin [Sat, 19 Mar 2011 11:57:13 +0000 (11:57 +0000)] 
Fix wxRegKey::GetKeyInfo() output parameters in 64 bit builds.

Use intermediate 32 bit DWORD variables for ::RegQueryInfoKey() outputs as
size_t is 64 bit in 64 bit MSW builds and so the variables of type size_t
can't/shouldn't be passed directly to this function to avoid only filling
their lower 32 bits.

Closes #11778.

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

13 years agoSlightly improve wxMouseCaptureLostEvent documentation.
Vadim Zeitlin [Sat, 19 Mar 2011 11:57:10 +0000 (11:57 +0000)] 
Slightly improve wxMouseCaptureLostEvent documentation.

Minor changes to make the event description more clear.

Closes #13052.

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

13 years agoDocument wxPopupTransientWindow.
Vadim Zeitlin [Sat, 19 Mar 2011 11:57:06 +0000 (11:57 +0000)] 
Document wxPopupTransientWindow.

Also fix a typo in a comment in the real class declaration.

Closes #13044.

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

13 years agogoing private with userpane info
Stefan Csomor [Sat, 19 Mar 2011 08:36:23 +0000 (08:36 +0000)] 
going private with userpane info

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

13 years agoFixed documentation of enum wxImageResizeQuality.
Dimitri Schoolwerth [Fri, 18 Mar 2011 22:22:01 +0000 (22:22 +0000)] 
Fixed documentation of enum wxImageResizeQuality.

A C-style comment was not closed and resulted in the explanation of wxIMAGE_QUALITY_NORMAL additionally containing the explanation of wxIMAGE_QUALITY_BOX_AVERAGE and the latter having none. Regression since r67203.

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

13 years agomoving userpane attribute into implementation
Stefan Csomor [Fri, 18 Mar 2011 15:45:51 +0000 (15:45 +0000)] 
moving userpane attribute into implementation

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

13 years agoSet svn properties on various files throughout the repository (skipped docs/ ).
Dimitri Schoolwerth [Fri, 18 Mar 2011 15:10:15 +0000 (15:10 +0000)] 
Set svn properties on various files throughout the repository (skipped docs/ ).

Added missing svn:eol-style (set to native) and svn:keywords (set to Id) properties to c/cpp/cxx/h/mm files.

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

13 years agogoing private for m_peer to give a foundation for better encapsulation
Stefan Csomor [Fri, 18 Mar 2011 14:33:57 +0000 (14:33 +0000)] 
going private for m_peer to give a foundation for better encapsulation

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

13 years agogoing private for m_peer to give a foundation for better encapsulation
Stefan Csomor [Fri, 18 Mar 2011 14:20:12 +0000 (14:20 +0000)] 
going private for m_peer to give a foundation for better encapsulation

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

13 years agoFix exporting clipboard data to primary selection in wxGTK.
Vadim Zeitlin [Fri, 18 Mar 2011 09:16:19 +0000 (09:16 +0000)] 
Fix exporting clipboard data to primary selection in wxGTK.

Honour the requested selection in our selection handler instead of always
returning the default one resulting in wrong data being pasted when using
primary selection (e.g. middle clicking).

Closes #12947.

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

13 years agoAdd wxHtmlHelpController::SetShouldPreventAppExit().
Vadim Zeitlin [Fri, 18 Mar 2011 09:16:14 +0000 (09:16 +0000)] 
Add wxHtmlHelpController::SetShouldPreventAppExit().

Add a method which can be used to indicate that the help window should prevent
the application from exiting and use it in the help sample to prevent it from
closing prematurely.

Closes #13046.

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

13 years agoLimit the search in wxMSW virtual wxListCtrl by time.
Vadim Zeitlin [Fri, 18 Mar 2011 09:16:06 +0000 (09:16 +0000)] 
Limit the search in wxMSW virtual wxListCtrl by time.

Instead of performing the search only up to a certain number of items, do it
for as long as it takes less than the given time threshold (currently fixed at
half a second).

Closes #13038.

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

13 years agoUpdate configuration for OpenVMS
Jouk Jansen [Fri, 18 Mar 2011 07:16:00 +0000 (07:16 +0000)] 
Update configuration for OpenVMS

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

13 years agoAdd a wxStaticText to the erase simple.
Vadim Zeitlin [Thu, 17 Mar 2011 11:35:37 +0000 (11:35 +0000)] 
Add a wxStaticText to the erase simple.

This control explains better what is going on in the sample and also allows to
test whether wxStaticText itself has properly transparent background (this is
not currently the case under MSW).

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

13 years agoFixed problems caused by duplicated names across different style types.
Julian Smart [Thu, 17 Mar 2011 09:46:59 +0000 (09:46 +0000)] 
Fixed problems caused by duplicated names across different style types.

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

13 years agoadding missing newline at end of file
Stefan Csomor [Wed, 16 Mar 2011 19:16:13 +0000 (19:16 +0000)] 
adding missing newline at end of file

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

13 years agoremoving condition that is always true anyway (unsigned>=0)
Stefan Csomor [Wed, 16 Mar 2011 13:15:16 +0000 (13:15 +0000)] 
removing condition that is always true anyway (unsigned>=0)

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

13 years agoAdded support for reading image resolutions from PNG images.
Dimitri Schoolwerth [Wed, 16 Mar 2011 12:46:03 +0000 (12:46 +0000)] 
Added support for reading image resolutions from PNG images.

Patch by scottb. Closes #12893.

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

13 years agofixing unused params
Stefan Csomor [Wed, 16 Mar 2011 10:58:46 +0000 (10:58 +0000)] 
fixing unused params

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

13 years agoalways skip OnSize
Stefan Csomor [Wed, 16 Mar 2011 10:57:08 +0000 (10:57 +0000)] 
always skip OnSize

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

13 years agocalling explicit base class constructor from copy constructor
Stefan Csomor [Wed, 16 Mar 2011 10:56:41 +0000 (10:56 +0000)] 
calling explicit base class constructor from copy constructor

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

13 years agocalling explicit base class constructor from copy constructor
Stefan Csomor [Wed, 16 Mar 2011 10:55:30 +0000 (10:55 +0000)] 
calling explicit base class constructor from copy constructor

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

13 years agoreplace usage of objective-c keyword 'id'
Stefan Csomor [Wed, 16 Mar 2011 07:22:56 +0000 (07:22 +0000)] 
replace usage of objective-c keyword 'id'

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

13 years agofixing iterator use
Stefan Csomor [Wed, 16 Mar 2011 07:18:25 +0000 (07:18 +0000)] 
fixing iterator use

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

13 years agoreplace usage of objective-c keyword 'id'
Stefan Csomor [Wed, 16 Mar 2011 07:16:10 +0000 (07:16 +0000)] 
replace usage of objective-c keyword 'id'

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

13 years agoreplace usage of objective-c keyword 'id'
Stefan Csomor [Wed, 16 Mar 2011 07:06:43 +0000 (07:06 +0000)] 
replace usage of objective-c keyword 'id'

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

13 years agoreplace usage of objective-c keyword 'id'
Stefan Csomor [Wed, 16 Mar 2011 07:00:59 +0000 (07:00 +0000)] 
replace usage of objective-c keyword 'id'

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

13 years agomaking conversion explicit silences deprecation warning
Stefan Csomor [Wed, 16 Mar 2011 06:57:03 +0000 (06:57 +0000)] 
making conversion explicit silences deprecation warning

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

13 years agosigned/unsigned warning fix
Stefan Csomor [Wed, 16 Mar 2011 06:49:51 +0000 (06:49 +0000)] 
signed/unsigned warning fix

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

13 years agosigned/unsigned warning fix
Stefan Csomor [Wed, 16 Mar 2011 06:40:07 +0000 (06:40 +0000)] 
signed/unsigned warning fix

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

13 years agoreplace usage of objective-c keyword 'id'
Stefan Csomor [Wed, 16 Mar 2011 06:36:43 +0000 (06:36 +0000)] 
replace usage of objective-c keyword 'id'

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

13 years agosilence incorrect warning about missing return value
Stefan Csomor [Wed, 16 Mar 2011 06:34:20 +0000 (06:34 +0000)] 
silence incorrect warning about missing return value

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

13 years agofixing iphone build
Stefan Csomor [Tue, 15 Mar 2011 20:21:39 +0000 (20:21 +0000)] 
fixing iphone build

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

13 years agoChanged behaviour of wxImageResizeQuality parameter in wxImage.Scale and wxImage...
Dimitri Schoolwerth [Tue, 15 Mar 2011 16:42:34 +0000 (16:42 +0000)] 
Changed behaviour of wxImageResizeQuality parameter in wxImage.Scale and wxImage.Rescale.

Made the following changes:

* Formerly specifying to resize using wxIMAGE_QUALITY_BICUBIC or wxIMAGE_QUALITY_BILINEAR could result in the ResampleBox method being used. Now always resize with the method that the user actually specified.

* Added wxIMAGE_QUALITY_BOX_AVERAGE to explicitly allow resizing with the ResampleBox method.

* Previously wxIMAGE_QUALITY_HIGH was equal to wxIMAGE_QUALITY_BICUBIC. It has been changed to use wxIMAGE_QUALITY_BOX_AVERAGE when reducing the size of an image and wxIMAGE_QUALITY_BICUBIC in all other cases.

Closes #12845.

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