wxWidgets.git
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

13 years agoChanged wxImage.ResampleBox to always use a box size of at least 2 by 2 pixels.
Dimitri Schoolwerth [Tue, 15 Mar 2011 16:37:04 +0000 (16:37 +0000)] 
Changed wxImage.ResampleBox to always use a box size of at least 2 by 2 pixels.

Previously when resizing by more than 50% (for example resizing from 100x100 to 51x51 or 140x140) a box size of 1x1 would be used which effectively would give the same result as using nearest neighbour. Make sure that at least a box size of 2x2 pixels is always used.

Patch by scottb, see also #12845.

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

13 years agoAlways use icons with wxToolbook in the notebook sample.
Vadim Zeitlin [Tue, 15 Mar 2011 11:10:46 +0000 (11:10 +0000)] 
Always use icons with wxToolbook in the notebook sample.

wxToolbook asserts and doesn't work if it has no images so always use them
with it in the sample to avoid it.

Closes #11656.

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

13 years agoUse consistent sizes for all icons used in the button page of widgets sample.
Vadim Zeitlin [Tue, 15 Mar 2011 11:10:42 +0000 (11:10 +0000)] 
Use consistent sizes for all icons used in the button page of widgets sample.

Explicitly pass wxART_BUTTON to wxArtProvider to ensure that all the icons are
returned in the same size, otherwise they didn't look well and could result in
an assert too, see #12909.

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

13 years agoFix setting tooltips for generic wxSpinCtrl.
Vadim Zeitlin [Tue, 15 Mar 2011 11:10:38 +0000 (11:10 +0000)] 
Fix setting tooltips for generic wxSpinCtrl.

Forward the tooltip set for the control to its subcontrols.

Closes #9817.

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

13 years agoDocument wxEVT_COMMAND_SLIDER_UPDATED in wxSlider documentation too.
Vadim Zeitlin [Tue, 15 Mar 2011 11:10:34 +0000 (11:10 +0000)] 
Document wxEVT_COMMAND_SLIDER_UPDATED in wxSlider documentation too.

This even was only documented in wxCommandEvent documentation but not in
wxSlider, mention it there too.

Closes #12292.

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

13 years agoNo changes, just clean up wxSVGFileDC code a little.
Vadim Zeitlin [Mon, 14 Mar 2011 23:25:58 +0000 (23:25 +0000)] 
No changes, just clean up wxSVGFileDC code a little.

Use literal strings instead of macros such as "newline", "space" and
"semicolon" and also use wxColour::GetAsString() instead of reimplementing it.

Closes #13037.

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

13 years agoShow wx{Note,Tool}book-specific styles in the notebook sample too.
Vadim Zeitlin [Mon, 14 Mar 2011 11:55:05 +0000 (11:55 +0000)] 
Show wx{Note,Tool}book-specific styles in the notebook sample too.

Demonstrate the use of styles such as wxNB_FIXEDWIDTH or wxTBK_HORZ_LAYOUT
specific to particular controls and not only the ones common to all of them.

Closes #13036.

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

13 years agoDon't generate wxEVT_CHAR_HOOK events while the mouse is captured.
Vadim Zeitlin [Mon, 14 Mar 2011 11:55:01 +0000 (11:55 +0000)] 
Don't generate wxEVT_CHAR_HOOK events while the mouse is captured.

This prevents the parent TLW from interfering with the keyboard handling of
the window that captured the mouse which very often needs Escape for itself to
cancel the capture.

In particular, this fixes the problems with Escape closing the entire dialog
containing the controls instead of closing just the combobox drop down or a
popup menu in wxMSW.

Also modify wxGTK for consistency and update the documentation.

Closes #12952.

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

13 years agoDocument EVT_CHAR_HOOK.
Vadim Zeitlin [Mon, 14 Mar 2011 11:54:55 +0000 (11:54 +0000)] 
Document EVT_CHAR_HOOK.

Explain that it is sent to the active TLW and not the focus window and that
handling it suppresses all the normal keyboard events.

Mention that it is not generated by wxOSX/Cocoa currently, see #12431.

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

13 years agoDon't intercept Escape key while IME is active.
Vadim Zeitlin [Mon, 14 Mar 2011 11:54:51 +0000 (11:54 +0000)] 
Don't intercept Escape key while IME is active.

Escape is used by IME and intercepting it at wxWidgets level to generate
EVT_CHAR_HOOK breaks the IME UI and may result in unexpected loss of data
entered by user.

To work around this, don't generate EVT_CHAR_HOOK for Escape while IME is
active by checking for the special semaphore variable (which could be also
used for other things in the future, see #9102) value.

Closes #11386.

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

13 years agoProduce correct SVG files in all locales.
Vadim Zeitlin [Mon, 14 Mar 2011 11:54:43 +0000 (11:54 +0000)] 
Produce correct SVG files in all locales.

Using wxSVGFileDC in locales using comma as decimal separator resulted in
invalid SVG files being created as a decimal period should always be used in
them.

Fix this by replacing "%g" format specification with wxString::FromCDouble()
call (wrapped in a convenient NumStr() helper function).

Closes #12008.

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

13 years agoFix changing the size of the bitmaps in wxMSW wxButton.
Vadim Zeitlin [Mon, 14 Mar 2011 11:54:39 +0000 (11:54 +0000)] 
Fix changing the size of the bitmaps in wxMSW wxButton.

The size of the wxImageList used to store the bitmaps wasn't updated before
and so the old bitmap size continued to be used even after changing the actual
bitmaps.

Recreate wxXPButtonImageData to ensure that the image list size does change.

Closes #12909.

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

13 years agoPrint everything by default in non-interactive mode.
Vadim Zeitlin [Mon, 14 Mar 2011 11:54:35 +0000 (11:54 +0000)] 
Print everything by default in non-interactive mode.

IF we don't show the dialog allowing the user to select the pages range, we
should print everything by default instead of printing nothing at all as we
used to do.

Closes #12998.

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

13 years agoAllow wxThread::Wait() and Delete() to block, even under wxMSW.
Vadim Zeitlin [Mon, 14 Mar 2011 11:54:32 +0000 (11:54 +0000)] 
Allow wxThread::Wait() and Delete() to block, even under wxMSW.

Add "wait mode" parameter to these methods which can be used to make them
block even under wxMSW where they currently dispatch messages when called
which can be totally unexpected.

Do keep the old behaviour for compatibility however, although it will change i
3.2.

Closes #12998.

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

13 years agoRespect alignment flags for owner-drawn buttons in wxMSW.
Vadim Zeitlin [Mon, 14 Mar 2011 11:54:26 +0000 (11:54 +0000)] 
Respect alignment flags for owner-drawn buttons in wxMSW.

Honour wxBU_{LEFT,RIGHT,TOP,BOTTOM} flags for owner drawn buttons too, this
ensures that you can both change the colour and align the text differently for
buttons under XP and later.

Closes #12995.

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

13 years agoAdded initialisation and checks
Julian Smart [Mon, 14 Mar 2011 10:27:01 +0000 (10:27 +0000)] 
Added initialisation and checks

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

13 years agoAdded precision parameter to wxString::From[C]Double().
Vadim Zeitlin [Sun, 13 Mar 2011 13:53:54 +0000 (13:53 +0000)] 
Added precision parameter to wxString::From[C]Double().

Optionally support fixed precision in wxString::FromDouble() and FromCDouble()
methods. This is mostly useful for the latter to be able to format numbers in
portable way (using dot as decimal separator) without loss of precision but
also do it for the former for consistency.

Closes #12973.

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

13 years agoNo changes, just correct a wrong trailing comment in #else.
Vadim Zeitlin [Sun, 13 Mar 2011 13:53:51 +0000 (13:53 +0000)] 
No changes, just correct a wrong trailing comment in #else.

The test meaning was inverted.

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

13 years agoDocument wxTE_MULTILINE support in wxTextEntryDialog.
Vadim Zeitlin [Sun, 13 Mar 2011 13:33:12 +0000 (13:33 +0000)] 
Document wxTE_MULTILINE support in wxTextEntryDialog.

It wasn't immediately obvious that this dialog could be used for multiline
text entry too so mention it explicitly in the documentation.

Also show this in action in the dialogs sample.

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

13 years agoadd external utf16 text type explicitely, as it otherwise gets treated like plain...
Stefan Csomor [Sat, 12 Mar 2011 15:57:37 +0000 (15:57 +0000)] 
add external utf16 text type explicitely, as it otherwise gets treated like plain-text

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

13 years agosupporting 24 and 64 sizes via scaling up
Stefan Csomor [Fri, 11 Mar 2011 19:54:44 +0000 (19:54 +0000)] 
supporting 24 and 64 sizes via scaling up

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

13 years agounder cocoa a too-small static box leads to erroneous layout information, therefore...
Stefan Csomor [Thu, 10 Mar 2011 18:56:58 +0000 (18:56 +0000)] 
under cocoa a too-small static box leads to erroneous layout information, therefore use fixed code layout info, fixes #13006

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

13 years agosafeguard against not-yet-shown view which leads to crashes under OSX
Stefan Csomor [Thu, 10 Mar 2011 18:55:55 +0000 (18:55 +0000)] 
safeguard against not-yet-shown view which leads to crashes under OSX

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

13 years agoadd wxEVT_MAXIMIZE support to wxGTK
Paul Cornett [Wed, 9 Mar 2011 17:22:43 +0000 (17:22 +0000)] 
add wxEVT_MAXIMIZE support to wxGTK

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

13 years agoMake brush hatches in wxGTK consistent with wxMSW.
Vadim Zeitlin [Wed, 9 Mar 2011 16:35:56 +0000 (16:35 +0000)] 
Make brush hatches in wxGTK consistent with wxMSW.

The cross, vertically and horizontally hatched brushes used 4 pixels between
the hatches in wxGTK but 7 in wxMSW which was very noticeable. Use the same
pattern in wxGTK as MSW uses (as we can't change it there anyhow).

Closes #13029.

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

13 years agoCorrect the name of the header for GTK+ < 2.14.
Vadim Zeitlin [Wed, 9 Mar 2011 16:35:51 +0000 (16:35 +0000)] 
Correct the name of the header for GTK+ < 2.14.

Remove the extra ".h" suffix added during recent GTK+ 3-related changes.

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

13 years agoAdd tests of other hatched brushes to the drawing sample.
Vadim Zeitlin [Wed, 9 Mar 2011 16:35:46 +0000 (16:35 +0000)] 
Add tests of other hatched brushes to the drawing sample.

Test wxCROSS_HATCH, wxVERTICAL_HATCH and wxHORIZONTAL_HATCH brushes and not
only the wxCROSSDIAG_HATCH one.

See #13029.

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

13 years agoDon't pop up annoying message box in the drawing sample.
Vadim Zeitlin [Wed, 9 Mar 2011 16:35:43 +0000 (16:35 +0000)] 
Don't pop up annoying message box in the drawing sample.

The rubber banding selection message box was shown even after a simple click,
i.e. when nothing was actually selected which was quite annoying, so don't do
this.

Also remove unnecessary casts and use wxLogMessage() instead of
wxString::Printf() + wxMessageBox().

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

13 years agoCorrections to wxTextCtrl::HitTest() documentation.
Vadim Zeitlin [Wed, 9 Mar 2011 10:07:58 +0000 (10:07 +0000)] 
Corrections to wxTextCtrl::HitTest() documentation.

Fix the signature of the overload returning row and column which got corrupted
during transition to Doxygen and document the overload returning the position
as well. Also document all the parameters.

Closes #12954.

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

13 years agoSend wxEVT_COMMAND_DATAVIEW_CACHE_HINT to proper window.
Vadim Zeitlin [Wed, 9 Mar 2011 09:44:03 +0000 (09:44 +0000)] 
Send wxEVT_COMMAND_DATAVIEW_CACHE_HINT to proper window.

The event was sent to wxDataViewCtrl parent instead of the control itself for
some reason, fix this.

Closes #13020.

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

13 years agoMention that wxEVT_MAXIMIZE is only generated by a few ports.
Vadim Zeitlin [Wed, 9 Mar 2011 09:40:08 +0000 (09:40 +0000)] 
Mention that wxEVT_MAXIMIZE is only generated by a few ports.

Currently only wxMSW, wxOSX/Cocoa and wxOS2 generate this event. Notably wxGTK
does not.

See #13022.

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

13 years agoCorrect EVT_MAXIMIZE macro name in wxTLW documentation.
Vadim Zeitlin [Wed, 9 Mar 2011 09:40:04 +0000 (09:40 +0000)] 
Correct EVT_MAXIMIZE macro name in wxTLW documentation.

EVT_ACTIVATE was mistakenly used instead.

See #13022.

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

13 years agoFix search for item by text in wxMSW wxListCtrl.
Vadim Zeitlin [Wed, 9 Mar 2011 09:28:41 +0000 (09:28 +0000)] 
Fix search for item by text in wxMSW wxListCtrl.

LVN_ODFINDITEM handler could enter infinite loop if its selection was 0 and a
key not matching any of the items first letters was pressed.

Rewrite the loop in a simpler form to ensure that it is correct. Also clarify
some comments. Finally, fix the behaviour when no matching item was found (if
it didn't hang in infinite loop, it used to select the first item in the
control).

Closes #13026.

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

13 years agoDon't assert if starting search position in LVN_ODFINDITEM is invalid.
Vadim Zeitlin [Wed, 9 Mar 2011 09:28:34 +0000 (09:28 +0000)] 
Don't assert if starting search position in LVN_ODFINDITEM is invalid.

Just use wxLogDebug() if this happens, asserting here is not the right thing
to do as it doesn't indicate an error in the program but rather invalid
external input and, moreover, we can recover from it easily.

No changes in behaviour in normal case.

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

13 years agoAdd another missing #if wxUSE_MARKUP check.
Vadim Zeitlin [Tue, 8 Mar 2011 17:22:15 +0000 (17:22 +0000)] 
Add another missing #if wxUSE_MARKUP check.

The definition of DoSetLabelMarkup() should only be compiled when
wxUSE_MARKUP==1.

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

13 years agoCzech translation update from Zbynek Schwarz.
Vadim Zeitlin [Tue, 8 Mar 2011 17:22:08 +0000 (17:22 +0000)] 
Czech translation update from Zbynek Schwarz.

Fix some incorrect terms.

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

13 years agosupport app activated and deactivated events, also bring back float_on_parent windows...
Stefan Csomor [Mon, 7 Mar 2011 20:26:40 +0000 (20:26 +0000)] 
support app activated and deactivated events, also bring back float_on_parent windows to normal level on deactivate to avoid behaving like stay_on_top

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

13 years agowindow level support
Stefan Csomor [Mon, 7 Mar 2011 19:04:55 +0000 (19:04 +0000)] 
window level support

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

13 years agobracket unused function
Stefan Csomor [Mon, 7 Mar 2011 17:31:19 +0000 (17:31 +0000)] 
bracket unused function

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

13 years agoTo prevent wxPropertyGrid from stealing frocus from other controls, only let SetFocus...
Jaakko Salli [Mon, 7 Mar 2011 13:02:33 +0000 (13:02 +0000)] 
To prevent wxPropertyGrid from stealing frocus from other controls, only let SetFocusOnCanvas() move focus to the main grid 'canvas' if focus was already in on the grid's child controls

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

13 years agogtk/gtkunixprint.h only exists since GTK+ 2.14.
Václav Slavík [Mon, 7 Mar 2011 12:07:58 +0000 (12:07 +0000)] 
gtk/gtkunixprint.h only exists since GTK+ 2.14.

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

13 years agoDon't directly include GTK+ semi-public headers.
Václav Slavík [Sun, 6 Mar 2011 18:22:28 +0000 (18:22 +0000)] 
Don't directly include GTK+ semi-public headers.

Only the main headers (e.g. gtk/gtk.h) should be included and GTK+ 3 is strict about this. Enable compile-time checks for this that work with GTK+ 2.24.

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

13 years agoInclude gdk/gdkkeysyms-compat.h.
Václav Slavík [Sun, 6 Mar 2011 18:22:23 +0000 (18:22 +0000)] 
Include gdk/gdkkeysyms-compat.h.

GTK+ 2.22 changed GDK_* keysym constants to GDK_KEY_* and introduced a new header for the old names. This header must be explicitly included in GTK+ 3, so do it for now. In the long run, we should migrate to the new names.

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

13 years agouse FixedToFloat everywhere to make sure we don't round too early, preserve fractiona...
Stefan Csomor [Sun, 6 Mar 2011 15:27:44 +0000 (15:27 +0000)] 
use FixedToFloat everywhere to make sure we don't round too early, preserve fractional width with CoreText as well

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

13 years agoposition buttons to the right on OSX as well
Stefan Csomor [Sun, 6 Mar 2011 15:24:26 +0000 (15:24 +0000)] 
position buttons to the right on OSX as well

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

13 years agofix positioning bug with window disabler and hidden windows
Stefan Csomor [Sun, 6 Mar 2011 14:49:19 +0000 (14:49 +0000)] 
fix positioning bug with window disabler and hidden windows

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

13 years agoFixed #13017: wxRichTextCtrl CopyToClipboard regression
Julian Smart [Sun, 6 Mar 2011 09:09:42 +0000 (09:09 +0000)] 
Fixed #13017: wxRichTextCtrl CopyToClipboard regression

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

13 years agosupport wxWindowDisabler on osx_cocoa
Stefan Csomor [Sat, 5 Mar 2011 12:21:20 +0000 (12:21 +0000)] 
support wxWindowDisabler on osx_cocoa

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

13 years agoAdd a dependency of wxUSE_TASKBARICON on wxUSE_MENUS.
Vadim Zeitlin [Sat, 5 Mar 2011 11:16:55 +0000 (11:16 +0000)] 
Add a dependency of wxUSE_TASKBARICON on wxUSE_MENUS.

PopupMenu() method of wxTaskBarIcon doesn't make much sense without wxMenu.

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

13 years agoDon't initialize wxGBSpan with invalid values in wxGBSizerItem.
Vadim Zeitlin [Sat, 5 Mar 2011 11:16:51 +0000 (11:16 +0000)] 
Don't initialize wxGBSpan with invalid values in wxGBSizerItem.

Default wxGBSizerItem ctor initialized wxGBSpan with invalid values which
resulted in an assert when loading wxGBSizer from XRC since r66964.

Fix this by simply using the default wxGBSpan ctor instead.

Closes #13004.

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

13 years agofix Activate signature after r67099
Paul Cornett [Thu, 3 Mar 2011 17:51:52 +0000 (17:51 +0000)] 
fix Activate signature after r67099

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

13 years agoproper focus lost for multiline textfields and having all demanding a focusrect
Stefan Csomor [Wed, 2 Mar 2011 21:17:43 +0000 (21:17 +0000)] 
proper focus lost for multiline textfields and having all demanding a focusrect

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

13 years agothe wx part knows better whether it has the focus (may be the embedded NSView, not...
Stefan Csomor [Wed, 2 Mar 2011 21:16:30 +0000 (21:16 +0000)] 
the wx part knows better whether it has the focus (may be the embedded NSView, not the m_peer)

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

13 years agoFixed a problem with paste resetting the content paragraph style.
Julian Smart [Wed, 2 Mar 2011 20:55:39 +0000 (20:55 +0000)] 
Fixed a problem with paste resetting the content paragraph style.

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

13 years agomove accel handling in front of the normal keyDown handling, support non-command...
Stefan Csomor [Wed, 2 Mar 2011 16:23:57 +0000 (16:23 +0000)] 
move accel handling in front of the normal keyDown handling, support non-command menu accels

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

13 years agomove accel handling in front of the normal keyDown handling
Stefan Csomor [Wed, 2 Mar 2011 16:21:24 +0000 (16:21 +0000)] 
move accel handling in front of the normal keyDown handling

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

13 years agosupporting more key equivalents for display, fixing setHidden: method warning
Stefan Csomor [Wed, 2 Mar 2011 15:43:42 +0000 (15:43 +0000)] 
supporting more key equivalents for display, fixing setHidden: method warning

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

13 years agoremoving code that will not have to be updated
Stefan Csomor [Wed, 2 Mar 2011 15:42:45 +0000 (15:42 +0000)] 
removing code that will not have to be updated

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

13 years agoJapanese translations update from Suzumizaki-Kimitaka.
Vadim Zeitlin [Wed, 2 Mar 2011 10:28:25 +0000 (10:28 +0000)] 
Japanese translations update from Suzumizaki-Kimitaka.

Closes #11773.

Closes #13003.

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

13 years agoFix typo in wxStack<T> documentation.
Vadim Zeitlin [Wed, 2 Mar 2011 10:28:20 +0000 (10:28 +0000)] 
Fix typo in wxStack<T> documentation.

I somehow managed to misspell wxStack<T> as wxSort<>.

Closes #13002.

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