]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
14 years agoRefactor owner-drawing code.
Vadim Zeitlin [Sat, 23 Jan 2010 13:21:12 +0000 (13:21 +0000)] 
Refactor owner-drawing code.

Only keep common code in the base class and extract all menu/listbox-specific
stuff into derived classes.

This makes the code cleaner and more maintainable but introduces some problems
in wxCheckListBox appearance which will be fixed by the next patch.

Closes #10635.

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

14 years agoReturn old, not new, selection from wxMSW wxNotebook::ChangeSelection().
Vadim Zeitlin [Sat, 23 Jan 2010 13:20:54 +0000 (13:20 +0000)] 
Return old, not new, selection from wxMSW wxNotebook::ChangeSelection().

The function is documented to return the old selection and not the new one, so
correct it to behave as expected.

Closes #11646.

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

14 years agoCorrection on previous commit: statement order corrected
Jouk Jansen [Fri, 22 Jan 2010 15:52:20 +0000 (15:52 +0000)] 
Correction on previous commit: statement order corrected

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

14 years agoGet wxDC defined when nescessary
Jouk Jansen [Fri, 22 Jan 2010 07:55:26 +0000 (07:55 +0000)] 
Get wxDC defined when nescessary

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

14 years agoHandle the case of NSNotFound result properly.
Kevin Ollivier [Wed, 20 Jan 2010 02:07:22 +0000 (02:07 +0000)] 
Handle the case of NSNotFound result properly.

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

14 years agoDisable size grip for TLW status bar if TLW is not resizeable.
Vadim Zeitlin [Wed, 20 Jan 2010 00:17:08 +0000 (00:17 +0000)] 
Disable size grip for TLW status bar if TLW is not resizeable.

wxSTB_SIZEGRIP is part of default status bar style but it doesn't make sense
for non-resizeable TLWs, so turn it off in this case.

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

14 years agoFix wxMulDivInt32() to round the result like win32 MulDiv() does.
Václav Slavík [Tue, 19 Jan 2010 22:02:59 +0000 (22:02 +0000)] 
Fix wxMulDivInt32() to round the result like win32 MulDiv() does.

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

14 years agoMake ConvertPixelsToDialog() and ConvertDialogToPixels() const.
Václav Slavík [Tue, 19 Jan 2010 17:53:29 +0000 (17:53 +0000)] 
Make ConvertPixelsToDialog() and ConvertDialogToPixels() const.

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

14 years agoDon't query metrics that won't be used.
Václav Slavík [Tue, 19 Jan 2010 16:32:31 +0000 (16:32 +0000)] 
Don't query metrics that won't be used.

If ConvertPixelsToDialog() or ConvertDialogToPixels() was called with
one of the two input values set to -1, the respective font metric was
queried needlessly.

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

14 years agoSupport XHTML ' entity.
Václav Slavík [Tue, 19 Jan 2010 14:47:20 +0000 (14:47 +0000)] 
Support XHTML ' entity.

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

14 years agoFurther enhancement to the samples overview page.
Vadim Zeitlin [Tue, 19 Jan 2010 13:49:12 +0000 (13:49 +0000)] 
Further enhancement to the samples overview page.

Add links to samples sources in svn to all the individual samples and be even
more explicit about their location on the local disk.

Move the paragraph explaining the samples location further below -- but <hr>
still doesn't work somehow.

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

14 years agoExplain the location of samples better in the samples overview page.
Vadim Zeitlin [Tue, 19 Jan 2010 13:02:21 +0000 (13:02 +0000)] 
Explain the location of samples better in the samples overview page.

Don't mention controls sample, just the widgets one, as the latter is much
richer and easier to understand.

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

14 years agoDon't set initial size as min size for top level windows in wxMSW.
Vadim Zeitlin [Tue, 19 Jan 2010 13:02:14 +0000 (13:02 +0000)] 
Don't set initial size as min size for top level windows in wxMSW.

This was accidentally done because wxWindowBase::CreateBase() didn't recognize
the window as being top level as it was called before the window was appended
to wxTopLevelWindows list.

Fix this by doing the same thing wxGTK already did: just call
wxTopLevelWindows.Append() before CreateBase().

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

14 years agoAdd wxThreadEvent::SetPayload<T>().
Václav Slavík [Tue, 19 Jan 2010 13:01:40 +0000 (13:01 +0000)] 
Add wxThreadEvent::SetPayload<T>().

This makes it possible to easily pass custom data between threads, in
type-safe way (thanks to internal use of wxAny). This adds
sizeof(wxAny)==16+sizeof(void*) overhead to wxThreadEvent, but I think
it's cheaper than doing malloc/free on copying.

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

14 years agoDon't make full copy of string in wxThreadEvent::Clone().
Václav Slavík [Tue, 19 Jan 2010 13:01:33 +0000 (13:01 +0000)] 
Don't make full copy of string in wxThreadEvent::Clone().

It's enough to do it once to ensure thread-safety. Doing it twice (once
in copy ctor called by Clone(), once in Clone() itself) only wastes
time.

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

14 years agomoving GetPageInfo to later stage, closes #11494
Stefan Csomor [Mon, 18 Jan 2010 11:05:27 +0000 (11:05 +0000)] 
moving GetPageInfo to later stage, closes #11494

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

14 years agoswitching to LaunchServices implementation, fixes #11508
Stefan Csomor [Mon, 18 Jan 2010 10:56:17 +0000 (10:56 +0000)] 
switching to LaunchServices implementation, fixes #11508

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

14 years agofixing type for 64 bit, closes #11550
Stefan Csomor [Mon, 18 Jan 2010 10:09:47 +0000 (10:09 +0000)] 
fixing type for 64 bit, closes #11550

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

14 years agoavoiding Insert shadowing superclass methods, closes #11616
Stefan Csomor [Mon, 18 Jan 2010 09:45:32 +0000 (09:45 +0000)] 
avoiding Insert shadowing superclass methods, closes #11616

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

14 years agosetting correct 'default' for m_filterIndex, closes #11541
Stefan Csomor [Mon, 18 Jan 2010 09:12:53 +0000 (09:12 +0000)] 
setting correct 'default' for m_filterIndex, closes #11541

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

14 years agoapplying patch, closes #11309
Stefan Csomor [Mon, 18 Jan 2010 09:03:05 +0000 (09:03 +0000)] 
applying patch, closes #11309

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

14 years agosetting correct refcon in menus (was incorrectly changed to menuimpl), fixes #11611
Stefan Csomor [Mon, 18 Jan 2010 08:56:20 +0000 (08:56 +0000)] 
setting correct refcon in menus (was incorrectly changed to menuimpl), fixes #11611

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

14 years agoavoiding double define warning
Stefan Csomor [Mon, 18 Jan 2010 08:52:46 +0000 (08:52 +0000)] 
avoiding double define warning

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

14 years agoDocument wxCENTRE style for wxMessageDialog.
Vadim Zeitlin [Mon, 18 Jan 2010 00:29:12 +0000 (00:29 +0000)] 
Document wxCENTRE style for wxMessageDialog.

This is currently only implemented for MSW but we could implement it for the
other ports in the future.

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

14 years agoDon't set stretchable spacers size to 0, this doesn't work so use 1 instead.
Vadim Zeitlin [Mon, 18 Jan 2010 00:29:05 +0000 (00:29 +0000)] 
Don't set stretchable spacers size to 0, this doesn't work so use 1 instead.

If the toolbar is not big enough for its fixed-size contents, we set the size
of the tools corresponding to stretchable spacers to 0 but this didn't really
work and resulted in bad toolbar appearance even after resizing it to be big
enough (as could be seen in samples/xrc).

So set the spacers size to at least 1 to ensure that we do resize them
correctly.

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

14 years agoAdd support for stretchable spacers to XRC wxToolBar handler.
Vadim Zeitlin [Mon, 18 Jan 2010 00:29:00 +0000 (00:29 +0000)] 
Add support for stretchable spacers to XRC wxToolBar handler.

Notice that currently only stretchable spacers are supported via
separator-like "space" XRC element. If we ever add support for fixed spacers
in the toolbar we should do it via its fixed sub-element, e.g. they would be
specified with <fixed>1</fixed> in XRC file.

Also use spacers instead of separator in the XRC sample and ensure that the
toolbars in it are resized.

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

14 years agoCorrect test for parent being on screen in wxTLW::DoCentre().
Vadim Zeitlin [Mon, 18 Jan 2010 00:28:53 +0000 (00:28 +0000)] 
Correct test for parent being on screen in wxTLW::DoCentre().

The old test was needlessly complicated, didn't take all cases into account
and had a typo in it which prevented it from working in half of the cases
which it did [try to] take into account.

Correct this by simply checking if the parent rectangle intersects the visible
display area at all.

Also simplify the code a little by checking for the window being maximized
from the beginning as centering a maximized window on either screen or parent
is a no-op.

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

14 years agoInvalidate stored wxTreeItemIds when the corresponding item is deleted in wxMSW.
Vadim Zeitlin [Mon, 18 Jan 2010 00:28:47 +0000 (00:28 +0000)] 
Invalidate stored wxTreeItemIds when the corresponding item is deleted in wxMSW.

m_htSelStart and m_htClickedItem stored in wxTreeCtrl must be invalidated when
the item they point to is deleted (which also happens when all the items are
deleted), otherwise the selection doesn't behave correctly after doing it.

Closes #11619.

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

14 years agoGenerate wxEVT_KEY_DOWN events for navigation keys in wxMSW wxTreeCtrl.
Vadim Zeitlin [Mon, 18 Jan 2010 00:28:41 +0000 (00:28 +0000)] 
Generate wxEVT_KEY_DOWN events for navigation keys in wxMSW wxTreeCtrl.

We only generated wxEVT_COMMAND_TREE_KEY_DOWN events for the keys which can be
used for tree control navigation and which are handled specially in the code
but not the wxEVT_KEY_DOWN ones. This was inconsistent with the other keys and
incompatible with wx 2.8 and other ports, so generate both events unless the
wxEVT_KEY_DOWN one was handled by the user code.

Closes #11621.

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

14 years agoShow the more metrics for the selected font in the sample.
Vadim Zeitlin [Mon, 18 Jan 2010 00:28:35 +0000 (00:28 +0000)] 
Show the more metrics for the selected font in the sample.

Show the result of wxDC::GetChar{Width,Height}() and the font size in pixels
in addition to the font size in points.

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

14 years agoDon't call base class version unnecessarily in wxLogWindow::DoLogTextAtLevel().
Vadim Zeitlin [Mon, 18 Jan 2010 00:28:21 +0000 (00:28 +0000)] 
Don't call base class version unnecessarily in wxLogWindow::DoLogTextAtLevel().

This is unnecessary as the log message is already passed to the previous
logger by the base class wxLogChain::DoLogRecord() implementation. Worse, it's
actively harmful as it resulted in asserts in wxLog::DoLogText() when built
with WXWIN_COMPATIBILITY_2_8==0.

Closes #11526.

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

14 years agoNo changes, just fix an unused parameter warning.
Vadim Zeitlin [Mon, 18 Jan 2010 00:28:15 +0000 (00:28 +0000)] 
No changes, just fix an unused parameter warning.

Fix warning in mingw32 wxMSW build.

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

14 years agoAdd wxIsascii() function and use it instead of isascii() in our code.
Vadim Zeitlin [Mon, 18 Jan 2010 00:28:11 +0000 (00:28 +0000)] 
Add wxIsascii() function and use it instead of isascii() in our code.

isascii() is non-ANSI and is not available under all platforms. While we
currently define it ourselves in wx/wxcrtbase.h in this case, it's not a good
idea as this can't be easily done correctly for all platforms so start
transitioning away from using isascii() by adding wxIsascii() and using it in
our own code.

The only remaining occurrences of isascii() are in Scintilla code which we
probably don't want to modify.

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

14 years agoOnly disable use of non-ANSI functions in strict ANSI mode under Windows.
Vadim Zeitlin [Mon, 18 Jan 2010 00:27:59 +0000 (00:27 +0000)] 
Only disable use of non-ANSI functions in strict ANSI mode under Windows.

The changes of r62518 fixed compilation of wx headers in g++ strict ANSI mode
(enabled by th use of -ansi or -std=c++{98,0x} options) with mingw32 but
broke it when using g++ in ANSI mode under Unix. The problems arose at least
due to redeclaration of isascii() with different exception specifier and due
to the lack of wxCRT_StrdupA() definition in the library.

Fix this by simply not disabling the use of non-ANSI functions such as
isascii() and strdup() under Unix as they are still available in the headers
by default because of _GNU_SOURCE predefined by g++.

Notice that if _GNU_SOURCE is explicitly undefined, compilation would probably
still be broken. To fix this we might check whether __USE_SVID is defined
under Linux. Unfortunately doing tests in configure is not an answer as
wxWidgets might not be compiled with the same -std option as the programs
using it, so there is no obviously correct way to fix this.

See #11374.

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

14 years agoupdate docs for wxMAXIMIZE on GTK
Paul Cornett [Sat, 16 Jan 2010 04:14:18 +0000 (04:14 +0000)] 
update docs for wxMAXIMIZE on GTK

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

14 years agoWhen checking whether the parent has wxTAB_TRAVERSAL style, take into account that...
Jaakko Salli [Fri, 15 Jan 2010 17:19:54 +0000 (17:19 +0000)] 
When checking whether the parent has wxTAB_TRAVERSAL style, take into account that the wxComboCtrl can be part of a composite control

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

14 years agohonor wxMAXIMIZE frame style, fixes #11631
Paul Cornett [Fri, 15 Jan 2010 17:09:29 +0000 (17:09 +0000)] 
honor wxMAXIMIZE frame style, fixes #11631

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

14 years agoMore wx(Flex)GridSizer constructors documentation improvements.
Vadim Zeitlin [Thu, 14 Jan 2010 22:51:04 +0000 (22:51 +0000)] 
More wx(Flex)GridSizer constructors documentation improvements.

Mention that the number of columns may also be automatically deduced.

Don't duplicate the same documentation in wxGridSizer and wxFlexGridSizer as
this inevitably results in forgetting to update one of the versions (as in the
previous commit). Instead, just link to wxGridSizer from wxFlexGridSizer.

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

14 years agoMinor corrections to wxFlexGridSizer ctor documentation.
Vadim Zeitlin [Thu, 14 Jan 2010 22:43:23 +0000 (22:43 +0000)] 
Minor corrections to wxFlexGridSizer ctor documentation.

Be more clear about what does it mean to specify the number of rows. Don't use
@code for inline expressions. Remove an extraneous "it".

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

14 years agofixing comments, making sure sound always gets the completion call in the same thread...
Stefan Csomor [Thu, 14 Jan 2010 19:04:38 +0000 (19:04 +0000)] 
fixing comments, making sure sound always gets the completion call in the same thread as it was created, otherwise iphone sometimes crashes

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

14 years agoNo real changes, just fix a typo in comments and documentation.
Vadim Zeitlin [Thu, 14 Jan 2010 18:02:26 +0000 (18:02 +0000)] 
No real changes, just fix a typo in comments and documentation.

Use "surprising" instead of (common) "surprizing" misspelling.

Closes #11627.

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

14 years agoFixed bug: wxPGEditor::SetControlAppearance() was calling SetValueToUnspecified(...
Jaakko Salli [Wed, 13 Jan 2010 18:29:09 +0000 (18:29 +0000)] 
Fixed bug: wxPGEditor::SetControlAppearance() was calling SetValueToUnspecified() unconditionally, disregarding value of 'unspecified' argument.

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

14 years agoCheck for a function existing in all libpng releases in configure.
Vadim Zeitlin [Tue, 12 Jan 2010 15:47:16 +0000 (15:47 +0000)] 
Check for a function existing in all libpng releases in configure.

We tested for png_check_sig() which was deprecated and is not available in the
latest libpng 1.4 any more. Just use another, not deprecated and not new,
function for the test.

See #11625.

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

14 years agoAdd wx/osx/textentry.h to the list of OS X headers.
Vadim Zeitlin [Tue, 12 Jan 2010 15:47:07 +0000 (15:47 +0000)] 
Add wx/osx/textentry.h to the list of OS X headers.

Fix problem with "make install" which didn't install this header.

Closes #11624.

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

14 years agoadding protocol support for 10.6
Stefan Csomor [Mon, 11 Jan 2010 14:19:28 +0000 (14:19 +0000)] 
adding protocol support for 10.6

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

14 years agoRemove duplicate fields in wxTextCtrl / wxTextEntry. Fixes #11618.
Kevin Ollivier [Sun, 10 Jan 2010 01:52:22 +0000 (01:52 +0000)] 
Remove duplicate fields in wxTextCtrl / wxTextEntry. Fixes #11618.

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

14 years agoUse GraphicsContext (if available) for drawing in SurfaceImpl::AlphaRectangle. Fixes...
Robin Dunn [Sun, 10 Jan 2010 00:40:49 +0000 (00:40 +0000)] 
Use GraphicsContext (if available) for drawing in SurfaceImpl::AlphaRectangle.  Fixes #10542.

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

14 years agoRebake.
Kevin Ollivier [Sat, 9 Jan 2010 19:56:18 +0000 (19:56 +0000)] 
Rebake.

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

14 years agoImplement native OS X ComboBox for OS X Cocoa, and implement wxTextEntry methods...
Kevin Ollivier [Sat, 9 Jan 2010 19:50:55 +0000 (19:50 +0000)] 
Implement native OS X ComboBox for OS X Cocoa, and implement wxTextEntry methods to share code between wxComboBox and wxTextCtrl.

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

14 years agoRestore default WM_ERASEBKGND handling for wxMDIParentFrame.
Vadim Zeitlin [Sat, 9 Jan 2010 17:57:52 +0000 (17:57 +0000)] 
Restore default WM_ERASEBKGND handling for wxMDIParentFrame.

We pretended that we erased the background ourselves but actually we did not.
Just let DefWindowProc() do whatever it does by default to fix the problem
with wrong toolbar background colour since r62971.

Also removed the unused and unneeded WM_SIZE handler as well.

Closes #11607.

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

14 years agoMinor fixes and enhancements to wxWindowID documentation.
Vadim Zeitlin [Sat, 9 Jan 2010 17:39:45 +0000 (17:39 +0000)] 
Minor fixes and enhancements to wxWindowID documentation.

Document NewControlId() more precisely. Fix various spelling and grammar
problems.

Closes #11613.

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

14 years agoRebake.
Kevin Ollivier [Fri, 8 Jan 2010 18:20:39 +0000 (18:20 +0000)] 
Rebake.

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

14 years agofor file load/save, always try wxImage first, fallback to pixbuf
Paul Cornett [Fri, 8 Jan 2010 18:19:23 +0000 (18:19 +0000)] 
for file load/save, always try wxImage first, fallback to pixbuf

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

14 years agofix broken #elif
Paul Cornett [Fri, 8 Jan 2010 04:05:31 +0000 (04:05 +0000)] 
fix broken #elif

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

14 years agoSupport mouse click through as otherwise clicking inside an inactive window causes...
Kevin Ollivier [Fri, 8 Jan 2010 01:29:51 +0000 (01:29 +0000)] 
Support mouse click through as otherwise clicking inside an inactive window causes us to lose the first mouse down, unlike with MSW.

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

14 years agoImproved documentation for wxPGProperty::DoSetAttribute()
Jaakko Salli [Thu, 7 Jan 2010 19:43:12 +0000 (19:43 +0000)] 
Improved documentation for wxPGProperty::DoSetAttribute()

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

14 years agoFixed deprecation message (brings include file in line with the the interface)
Jaakko Salli [Thu, 7 Jan 2010 19:37:42 +0000 (19:37 +0000)] 
Fixed deprecation message (brings include file in line with the the interface)

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

14 years agoDo not use deprecated property attribute wxPG_ATTR_INLINE_HELP (fixes #11605)
Jaakko Salli [Thu, 7 Jan 2010 19:35:33 +0000 (19:35 +0000)] 
Do not use deprecated property attribute wxPG_ATTR_INLINE_HELP (fixes #11605)

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

14 years agoFixed a deprecation message
Jaakko Salli [Thu, 7 Jan 2010 19:31:56 +0000 (19:31 +0000)] 
Fixed a deprecation message

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

14 years agoremove unused function GetGdkVisual()
Paul Cornett [Thu, 7 Jan 2010 18:30:18 +0000 (18:30 +0000)] 
remove unused function GetGdkVisual()

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

14 years agodefer creating bitmap representation until it is needed
Paul Cornett [Thu, 7 Jan 2010 18:16:45 +0000 (18:16 +0000)] 
defer creating bitmap representation until it is needed

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

14 years agoImprove hit detection in wxMSW wxTreeCtrl with wxTR_FULL_ROW_HIGHLIGHT style.
Vadim Zeitlin [Thu, 7 Jan 2010 13:16:01 +0000 (13:16 +0000)] 
Improve hit detection in wxMSW wxTreeCtrl with wxTR_FULL_ROW_HIGHLIGHT style.

When wxTR_FULL_ROW_HIGHLIGHT is used, the item visually takes up the entire
breadth of the window so clicking both to the left or to the right of the item
should have the same effect as clicking on it.

So add a MSWIsOnItem() helper which tests for whether a point is above the
item correctly and use it in order to:

1. In multi selection mode, allow clicking anywhere to select the item(s)
   when Ctrl or Shift is pressed (Closes #11598).
2. Generate activation event when clicking to the right of the item too
   (Closes #11602).
3. Detect item bounds correctly in WM_LBUTTONUP handler (although it's
   not really clear what does this code do and hence what problem does this
   fix...).

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

14 years agoGerman translations update from Thomas Krebs.
Vadim Zeitlin [Thu, 7 Jan 2010 13:15:51 +0000 (13:15 +0000)] 
German translations update from Thomas Krebs.

Closes #11562.

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

14 years agoFix typos in IMediaPlayer2 and INSPlay interfaces declarations.
Vadim Zeitlin [Thu, 7 Jan 2010 13:15:43 +0000 (13:15 +0000)] 
Fix typos in IMediaPlayer2 and INSPlay interfaces declarations.

Fix missing/extraneous parentheses.

Closes #11600.

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

14 years agoForward port 2.8 fix.
Kevin Ollivier [Wed, 6 Jan 2010 22:02:59 +0000 (22:02 +0000)] 
Forward port 2.8 fix.

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

14 years agoFix another line somehow missing from the wxGraphicsBitmap forward port.
Kevin Ollivier [Wed, 6 Jan 2010 02:22:38 +0000 (02:22 +0000)] 
Fix another line somehow missing from the wxGraphicsBitmap forward port.

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

14 years agoadded zlib directly to dynamic targets
Stefan Csomor [Tue, 5 Jan 2010 18:27:30 +0000 (18:27 +0000)] 
added zlib directly to dynamic targets

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

14 years agoremove never-implemented palette support
Paul Cornett [Tue, 5 Jan 2010 17:53:37 +0000 (17:53 +0000)] 
remove never-implemented palette support

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

14 years agoCall virtual ctrl->GetDefaultAttributes() instead of static GetClassDefaultAttributes()
Jaakko Salli [Tue, 5 Jan 2010 16:42:35 +0000 (16:42 +0000)] 
Call virtual ctrl->GetDefaultAttributes() instead of static GetClassDefaultAttributes()

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

14 years agoadded zlib directly to dynamic targets
Stefan Csomor [Tue, 5 Jan 2010 13:55:20 +0000 (13:55 +0000)] 
added zlib directly to dynamic targets

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

14 years agoadd zlib only in dynamic build targets
Stefan Csomor [Tue, 5 Jan 2010 13:54:44 +0000 (13:54 +0000)] 
add zlib only in dynamic build targets

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

14 years agoBrazilian Portuguese translations updae from Allann Jones.
Vadim Zeitlin [Tue, 5 Jan 2010 12:56:40 +0000 (12:56 +0000)] 
Brazilian Portuguese translations updae from Allann Jones.

Closes #11597.

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

14 years agoAllow wxPropertyGridInterface::EnableProperty() to work even if property->GetGrid...
Jaakko Salli [Mon, 4 Jan 2010 16:07:47 +0000 (16:07 +0000)] 
Allow wxPropertyGridInterface::EnableProperty() to work even if property->GetGrid() returns NULL.

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

14 years agoAdd assert checking that window has no event handlers when destroyed.
Vadim Zeitlin [Mon, 4 Jan 2010 12:51:48 +0000 (12:51 +0000)] 
Add assert checking that window has no event handlers when destroyed.

Forgetting to pop custom event handlers pushed onto the window before it is
destroyed will result in a crash later on, so try to detect this immediately
with an assert.

We might want to forcefully pop them off too, this could result in memory
leaks but would be still better than crashing.

Closes #11533.

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

14 years agoFix wxConvAuto behaviour when it is used by wxTextInputStream.
Vadim Zeitlin [Mon, 4 Jan 2010 12:22:49 +0000 (12:22 +0000)] 
Fix wxConvAuto behaviour when it is used by wxTextInputStream.

wxConvAuto implicitly supposed that the chunk of data passed to it for
translation was big enough to allow it to at least detect the BOM from it.
However this isn't necessarily the case and never is with wxTextInputStream
which reads the bytes one by one.

Fix this by waiting until we have enough data to be able to detect the BOM.
This still doesn't fix the problem with streams without BOM and the
corresponding unit test still fails -- it will need to be fixed at the level
of wxTextInputStream itself later but handling correctly the cases when a BOM
is present is already better than before.

See #11570.

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

14 years agoMake calling wxLog::IsAllowedTraceMask() safe during static init time.
Vadim Zeitlin [Mon, 4 Jan 2010 12:22:42 +0000 (12:22 +0000)] 
Make calling wxLog::IsAllowedTraceMask() safe during static init time.

Although using wxLog during statics initialization is not recommended, it may
still happen, possibly indirectly so make it work correctly by using an
accessor function for the array of trace masks which ensures that this array
is always correctly initialized before being used.

Closes #11592.

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

14 years agoCompilation fix for VC6 after r63061.
Vadim Zeitlin [Mon, 4 Jan 2010 12:22:34 +0000 (12:22 +0000)] 
Compilation fix for VC6 after r63061.

VC6 doesn't support empty struct initializers apparently.

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

14 years agoCorrectly parse times without seconds in wxDateTime::ParseTime().
Vadim Zeitlin [Mon, 4 Jan 2010 11:05:47 +0000 (11:05 +0000)] 
Correctly parse times without seconds in wxDateTime::ParseTime().

This was always supposed to work but never did because of a typo in the "24
hour format without seconds" format specification. Fix this by removing the
extra "%S" from it and add a test for this case.

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

14 years agoDon't dereference invalid iterator in wxDateTime::ParseDate().
Vadim Zeitlin [Mon, 4 Jan 2010 10:59:40 +0000 (10:59 +0000)] 
Don't dereference invalid iterator in wxDateTime::ParseDate().

If the string passed to this method contained only spaces (possibly 0 of them,
i.e. was empty) we would dereference the end string iterator. Fix this by
adding an explicit test for "p != pEnd".

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

14 years agofixing include type
Stefan Csomor [Mon, 4 Jan 2010 10:08:01 +0000 (10:08 +0000)] 
fixing include type

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

14 years agoadding stc support
Stefan Csomor [Mon, 4 Jan 2010 07:53:45 +0000 (07:53 +0000)] 
adding stc support

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

14 years agoadding kqueue define for xcode builds
Stefan Csomor [Mon, 4 Jan 2010 07:52:45 +0000 (07:52 +0000)] 
adding kqueue define for xcode builds

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

14 years agofixing include types
Stefan Csomor [Mon, 4 Jan 2010 07:50:31 +0000 (07:50 +0000)] 
fixing include types

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

14 years agoGet the OS X Cocoa native combobox building by having the native code compile if...
Kevin Ollivier [Mon, 4 Jan 2010 01:57:42 +0000 (01:57 +0000)] 
Get the OS X Cocoa native combobox building by having the native code compile if wxOSX_USE_NATIVE_COMBOBOX is defined. It must be explicitly enabled by adding that define to the build flags as the native implementation is mostly just stubs right now.

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

14 years agoRebake from clean wx tree.
Kevin Ollivier [Mon, 4 Jan 2010 00:45:45 +0000 (00:45 +0000)] 
Rebake from clean wx tree.

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

14 years agoDon't use a destroy event handler to disconnect the native control's delegate as...
Kevin Ollivier [Sun, 3 Jan 2010 23:59:32 +0000 (23:59 +0000)] 
Don't use a destroy event handler to disconnect the native control's delegate as the destroy event propagates and can cause the TLW to remove its delegate at unexpected times, such as when a child control is destroyed but the TLW remains active. Instead, do it in response to the Destroy() call.

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

14 years agoCreate a text measuring context until a real context is assigned, this allows things...
Kevin Ollivier [Sun, 3 Jan 2010 22:52:04 +0000 (22:52 +0000)] 
Create a text measuring context until a real context is assigned, this allows things like text measurement code using wxMemoryDC to work on Mac.

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

14 years agocorrecting error message
Stefan Csomor [Sun, 3 Jan 2010 19:58:18 +0000 (19:58 +0000)] 
correcting error message

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

14 years agofixing name collision ocuring in a specific script runner
Stefan Csomor [Sun, 3 Jan 2010 18:55:00 +0000 (18:55 +0000)] 
fixing name collision ocuring in a specific script runner

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

14 years agoRemoved some outdated compiler checks in OLE code.
Václav Slavík [Sun, 3 Jan 2010 18:29:09 +0000 (18:29 +0000)] 
Removed some outdated compiler checks in OLE code.

We don't support VC++ 4 for ages and any recent version of GCC has
cVal, too.

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

14 years agoRemoved wxClearVariant() and wxReleaseVariant().
Václav Slavík [Sun, 3 Jan 2010 18:29:02 +0000 (18:29 +0000)] 
Removed wxClearVariant() and wxReleaseVariant().

Replaced them with standard VariantInit() and VariantClear() functions
respectively. They appear to be just reimplementations of these.

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

14 years agoMoved wxConvertVariantToOle and wxConvertOleToVariant to oleutils.cpp.
Václav Slavík [Sun, 3 Jan 2010 18:28:56 +0000 (18:28 +0000)] 
Moved wxConvertVariantToOle and wxConvertOleToVariant to oleutils.cpp.

These are declared in oleutils.h, so that's where they should be. More
importantly, they are used by wxActiveXContainer and so are required
even if wxUSE_OLE_AUTOMATION is off.

Also added "wx" prefix to (Clear|Release)Variant, because they cannot be
static any longer.

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

14 years agobuilding xcode projects from files.bkl
Stefan Csomor [Sun, 3 Jan 2010 18:20:28 +0000 (18:20 +0000)] 
building xcode projects from files.bkl

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

14 years agoRomanian translation update from Catalin.
Vadim Zeitlin [Sun, 3 Jan 2010 17:37:24 +0000 (17:37 +0000)] 
Romanian translation update from Catalin.

This is more of a replacement than an update but apparently the old
translation had a lot of problems. The new translation is undoubtedly more
complete (1523 translated messages against 230 for the old one).

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

14 years agoAdded missing ResetEditorAppearance() call
Jaakko Salli [Sun, 3 Jan 2010 10:24:12 +0000 (10:24 +0000)] 
Added missing ResetEditorAppearance() call

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

14 years agoIn wxPGEditor::SetControlAppearance() use GetClassDefaultAttributes() instead of...
Jaakko Salli [Sun, 3 Jan 2010 10:23:40 +0000 (10:23 +0000)] 
In wxPGEditor::SetControlAppearance() use GetClassDefaultAttributes() instead of GetDefaultAttributes()

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

14 years agoAdded wxAutoOleInterface<T> template.
Václav Slavík [Sat, 2 Jan 2010 13:07:17 +0000 (13:07 +0000)] 
Added wxAutoOleInterface<T> template.

This replaces WX_DECLARE_AUTOOLE with easier-to-debug version. The
macro is still preserved for backward compatibility.

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

14 years ago Document wxPerl interface differences for wxRichTextCtrl.
Mattia Barbon [Sat, 2 Jan 2010 11:29:00 +0000 (11:29 +0000)] 
  Document wxPerl interface differences for wxRichTextCtrl.

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

14 years ago Build with WXINTL_NO_GETTEXT_MACRO defined.
Mattia Barbon [Sat, 2 Jan 2010 11:22:59 +0000 (11:22 +0000)] 
  Build with WXINTL_NO_GETTEXT_MACRO defined.

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

14 years ago Fix method name in wxInfoBar interface.
Mattia Barbon [Sat, 2 Jan 2010 10:40:31 +0000 (10:40 +0000)] 
  Fix method name in wxInfoBar interface.

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