]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
13 years agoAdd wxCOMPOSITION_INVALID mode and use it to simplify the code.
Vadim Zeitlin [Sat, 2 Jul 2011 10:29:11 +0000 (10:29 +0000)] 
Add wxCOMPOSITION_INVALID mode and use it to simplify the code.

Having an invalid element in wxCompositionMode enum allows to directly return
it from TranslateRasterOp() function instead of needing a separate bool
parameter to indicate that a ROP couldn't be translated.

This also incidentally fixes warnings about possibly uninitialized variables
in optimized g++ builds.

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

13 years agoAvoid g++ warnings about breaking strict aliasing rules in wxTreeCtrl.
Vadim Zeitlin [Sat, 2 Jul 2011 10:29:07 +0000 (10:29 +0000)] 
Avoid g++ warnings about breaking strict aliasing rules in wxTreeCtrl.

The standard TreeView_GetItemRect() macro resulted in warnings about breaking
strict aliasing rules as it passed a variable of one type via a pointer to
another one. Fix this by using a union and our own custom macro instead.

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

13 years agoDon't cause scroll events for position changes from SetScrollbars, broken in r67326.
Paul Cornett [Fri, 1 Jul 2011 17:44:49 +0000 (17:44 +0000)] 
Don't cause scroll events for position changes from SetScrollbars, broken in r67326.
Fixes #13301

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

13 years agoMention the EOL issue in readme.txt.
Vadim Zeitlin [Thu, 30 Jun 2011 21:31:39 +0000 (21:31 +0000)] 
Mention the EOL issue in readme.txt.

Emphasize that building Windows archives under Unix *or vice versa) is not
supported.

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

13 years agoupdate docs for windows checkout process 2/2
Chris Elliott [Thu, 30 Jun 2011 13:20:55 +0000 (13:20 +0000)] 
update docs for windows checkout process 2/2

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

13 years agoupdate docs for windows checkout process 1/2
Chris Elliott [Thu, 30 Jun 2011 13:17:51 +0000 (13:17 +0000)] 
update docs for windows checkout process 1/2

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

13 years agoInitialize variable in UTF{16,32} conversion code to avoid warnings.
Vadim Zeitlin [Thu, 30 Jun 2011 12:20:54 +0000 (12:20 +0000)] 
Initialize variable in UTF{16,32} conversion code to avoid warnings.

In optimized build g++ warned about the second element of two-element array
passed to encode_utf16() being possibly uninitialized. This wasn't really the
case but change the code just to avoid the warnings.

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

13 years agoWork around bogus g++ warnings about possibly missing return.
Vadim Zeitlin [Thu, 30 Jun 2011 12:20:47 +0000 (12:20 +0000)] 
Work around bogus g++ warnings about possibly missing return.

OS X g++ warned that "control may reach end of non-void function" in
wxRichTextHelpInfo::ShowHelp(). This wasn't really the case but change the
function logic slightly to (hopefully) suppress the warning.

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

13 years agoFix harmless warning about unused variable in isosurf sample.
Vadim Zeitlin [Thu, 30 Jun 2011 12:20:38 +0000 (12:20 +0000)] 
Fix harmless warning about unused variable in isosurf sample.

Don't declare and initialize a variable that we never use.

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

13 years agoFix warning about hiding a virtual function in propgrid sample.
Vadim Zeitlin [Thu, 30 Jun 2011 12:20:29 +0000 (12:20 +0000)] 
Fix warning about hiding a virtual function in propgrid sample.

The virtual ColourToString() method was hidden and not overridden in the
sample because it didn't use the last argument of the base class method.

Fix this in the most straightforward (albeit not necessarily the most correct)
way to at least ensure that the function is really overridden.

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

13 years agoChange the loop condition to avoid comparing unsigned value with 0.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:32 +0000 (17:50 +0000)] 
Change the loop condition to avoid comparing unsigned value with 0.

This resulted in (useful) g++ warning and didn't make any sense in any case.

Check for the loop variable value being 0 at the end of the loop instead now.
If the old code was correct it shouldn't change its behaviour and if not, this
might fix a bug.

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

13 years agoAlways initialize SelectInHDC::m_hgdiobj in wxMSW.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:30 +0000 (17:50 +0000)] 
Always initialize SelectInHDC::m_hgdiobj in wxMSW.

Leaving m_hgdiobj uninitialized probably didn't result in any problems
considering how this class is currently used but it did result in g++ warnings
about uninitialized member with aggressive warning flags and also could easily
become a problem in the future so just ensure that we always initialize it.

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

13 years agoFix two harmless gcc warnings about missing initializers.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:27 +0000 (17:50 +0000)] 
Fix two harmless gcc warnings about missing initializers.

Add values to make g++ -Wmissing-field-initializers warnings (implicitly
enabled by -Wextra) go away.

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

13 years agoMention that readme.txt needs to be updated before a release.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:08 +0000 (17:50 +0000)] 
Mention that readme.txt needs to be updated before a release.

Hopefully this means it won't be forgotten the next time.

Also mentioned that the new docs.wxwidgets.org link should be now already
created when the release is being done.

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

13 years agoAdd a tiny script for producing HTML documentation archives.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:05 +0000 (17:50 +0000)] 
Add a tiny script for producing HTML documentation archives.

Also update the release making document to point to it.

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

13 years agoFix typo in error message about incorrect syntax.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:02 +0000 (17:50 +0000)] 
Fix typo in error message about incorrect syntax.

Output the error to stderr, not a file called "2".

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

13 years agoUpdate the readme file for 2.9.2.
Vadim Zeitlin [Wed, 29 Jun 2011 17:49:59 +0000 (17:49 +0000)] 
Update the readme file for 2.9.2.

Just increment version number and year in a couple of places.

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

13 years agofix misisng html format files
Chris Elliott [Wed, 29 Jun 2011 11:33:13 +0000 (11:33 +0000)] 
fix misisng html format files

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

13 years agoUpdated copyright year before 2.9.2 release.
Vadim Zeitlin [Wed, 29 Jun 2011 09:22:35 +0000 (09:22 +0000)] 
Updated copyright year before 2.9.2 release.

Use 2011 instead of 2010 in the manual and in several .plist files.

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

13 years ago2.9.2-rc1 in file
Chris Elliott [Wed, 29 Jun 2011 08:46:13 +0000 (08:46 +0000)] 
2.9.2-rc1 in file

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

13 years agoReplace stc.{h,cpp} with the generated versions with all their typos.
Vadim Zeitlin [Wed, 29 Jun 2011 08:37:49 +0000 (08:37 +0000)] 
Replace stc.{h,cpp} with the generated versions with all their typos.

Revert the changes of r67280 which fixed several typos in these files as they
were getting modified each time gen_iface.py was rerun and we don't want to
touch the original Scintilla files to fix these typos.

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

13 years agoGenerate code using IsOk() instead of Ok() in stc.cpp.
Vadim Zeitlin [Wed, 29 Jun 2011 08:37:46 +0000 (08:37 +0000)] 
Generate code using IsOk() instead of Ok() in stc.cpp.

Modify the script generating this file itself to produce IsOk() instead of
Ok(). This replaces the changes of r67681 which only modified the generated
file.

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

13 years agoMove wxThreadEvent into wxBase.
Václav Slavík [Tue, 28 Jun 2011 17:24:37 +0000 (17:24 +0000)] 
Move wxThreadEvent into wxBase.

For this, it cannot derive from wxCommandEvent. Extracted the bits
from wxCommandEvent useful for passing data between threads into
wxEventBasicPayloadMixin helper class shared by both.

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

13 years agoAdd support for child documents to docview framework.
Vadim Zeitlin [Mon, 27 Jun 2011 00:09:37 +0000 (00:09 +0000)] 
Add support for child documents to docview framework.

Child documents are virtual documents corresponding to parts of their parent
document which can't be saved nor loaded independently of their parent and are
closed when the parent is closed.

This finally makes some use of wxDocument::m_documentParent field which was
always present in the docview code but never used before.

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

13 years agobringing target naming in line with other projects
Stefan Csomor [Sat, 25 Jun 2011 07:16:55 +0000 (07:16 +0000)] 
bringing target naming in line with other projects

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

13 years agoPaper size fix for wxOSX-cocoa
Robin Dunn [Sat, 25 Jun 2011 00:15:00 +0000 (00:15 +0000)] 
Paper size fix for wxOSX-cocoa

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

13 years agoFix code reading from the pipe stream in exec sample.
Vadim Zeitlin [Fri, 24 Jun 2011 13:10:23 +0000 (13:10 +0000)] 
Fix code reading from the pipe stream in exec sample.

We must be reading bytes, not (wide) characters.

Closes #13290.

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

13 years agoadaption to new configurations
Stefan Csomor [Thu, 23 Jun 2011 16:05:08 +0000 (16:05 +0000)] 
adaption to new configurations

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

13 years agoUpdate printing sample to compile again after r68026.
Vadim Zeitlin [Thu, 23 Jun 2011 08:02:12 +0000 (08:02 +0000)] 
Update printing sample to compile again after r68026.

The sample was using Initialize() overload that doesn't exist any longer, use
InitializeWithModality() instead.

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

13 years agoFix bug with out of range date in wxMSW wxDatePickerCtrl under XP too.
Vadim Zeitlin [Wed, 22 Jun 2011 22:58:11 +0000 (22:58 +0000)] 
Fix bug with out of range date in wxMSW wxDatePickerCtrl under XP too.

The bug fix of r67990 relied on DateTime_SetSystemtime() returning FALSE if
setting the date failed but, unfortunately, this function doesn't behave
correctly under XP (and presumably earlier systems) and returns TRUE even if
it didn't actually change the date because it was out of range.

Implement an alternative solution not relying on this function return value
but simply checking the range ourselves.

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

13 years agoRestore wxPreviewFrame::Initialize(void) and add InitializeWithModality().
Vadim Zeitlin [Wed, 22 Jun 2011 22:58:07 +0000 (22:58 +0000)] 
Restore wxPreviewFrame::Initialize(void) and add InitializeWithModality().

The changes of r67619 changed the signature of the virtual Initialize() method
and in doing so broke the existing code overriding it. Avoid this problem by
restoring the old method signature and adding a function with a different name
providing the new functionality.

Also notice in the documentation that there is no real need to override
Initialize() in any case (but this doesn't change the fact that there is
existing code that does do it).

See #13108.

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

13 years agoUse strdup() even in strict ANSI mode with MinGW.
Vadim Zeitlin [Wed, 22 Jun 2011 22:58:04 +0000 (22:58 +0000)] 
Use strdup() even in strict ANSI mode with MinGW.

MinGW headers define MSVC-compatible _strdup() even in strict ANSI mode so we
can always use it with MinGW.

This fixes a linking problem when wx itself was built without strict ANSI but
the program using it does use strict ANSI mode (e.g. due to the use of
-std=c++0x g++ option).

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

13 years agoAvoid crash on startup when using single mode in docview sample.
Vadim Zeitlin [Wed, 22 Jun 2011 22:57:59 +0000 (22:57 +0000)] 
Avoid crash on startup when using single mode in docview sample.

The view doesn't have any associated frame when using the special "single
view" mode in the sample, so don't try to show it when creating a new view.

This resulted in a crash when starting the sample with --single command line
parameter.

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

13 years agocarbon prebuilt
Stefan Csomor [Wed, 22 Jun 2011 20:21:30 +0000 (20:21 +0000)] 
carbon prebuilt

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

13 years agonew settings
Stefan Csomor [Wed, 22 Jun 2011 20:19:35 +0000 (20:19 +0000)] 
new settings

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

13 years agowxcocoa prebuilt
Stefan Csomor [Wed, 22 Jun 2011 19:45:02 +0000 (19:45 +0000)] 
wxcocoa prebuilt

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

13 years agonew settings
Stefan Csomor [Wed, 22 Jun 2011 19:41:15 +0000 (19:41 +0000)] 
new settings

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

13 years agonew settings
Stefan Csomor [Wed, 22 Jun 2011 17:40:41 +0000 (17:40 +0000)] 
new settings

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

13 years agonew settings, removing incorrect setup
Stefan Csomor [Wed, 22 Jun 2011 17:11:46 +0000 (17:11 +0000)] 
new settings, removing incorrect setup

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

13 years agonew settings for iphone
Stefan Csomor [Wed, 22 Jun 2011 17:10:08 +0000 (17:10 +0000)] 
new settings for iphone

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

13 years agonew settings for iphone
Stefan Csomor [Wed, 22 Jun 2011 17:09:56 +0000 (17:09 +0000)] 
new settings for iphone

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

13 years agoadding new xcconfigs
Stefan Csomor [Wed, 22 Jun 2011 16:15:59 +0000 (16:15 +0000)] 
adding new xcconfigs

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

13 years agoFixed shift-click selection
Julian Smart [Tue, 21 Jun 2011 09:56:32 +0000 (09:56 +0000)] 
Fixed shift-click selection

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

13 years agoset default deployment and compiler flags
Stefan Csomor [Tue, 21 Jun 2011 09:01:21 +0000 (09:01 +0000)] 
set default deployment and compiler flags

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

13 years agoset default deployment and compiler flags
Stefan Csomor [Tue, 21 Jun 2011 08:57:05 +0000 (08:57 +0000)] 
set default deployment and compiler flags

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

13 years agouse same flags as command line build
Stefan Csomor [Tue, 21 Jun 2011 08:55:05 +0000 (08:55 +0000)] 
use same flags as command line build

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

13 years agoFix bug when setting an out of range date in wxMSW wxDatePickerCtrl.
Vadim Zeitlin [Sun, 19 Jun 2011 22:46:45 +0000 (22:46 +0000)] 
Fix bug when setting an out of range date in wxMSW wxDatePickerCtrl.

The internally stored date value was getting out of sync with the real date in
the control itself when SetValue() was called with a date out of the currently
set range. This resulted in an assert failure and other unpleasantness later.

Fix the bug and add a unit test checking for it (and also with some other
basic wxDatePickerCtrl checks).

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

13 years agoExtract wxDateTime-related cppunit helpers in a separate header file.
Vadim Zeitlin [Sun, 19 Jun 2011 22:46:42 +0000 (22:46 +0000)] 
Extract wxDateTime-related cppunit helpers in a separate header file.

No real changes, just refactor the code to allow using CPPUNIT_ASSERT_EQUAL
with wxDateTime in other tests in the future.

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

13 years agoDocument surprising behaviour of wxDatePickerCtrl::GetRange() in wxMSW.
Vadim Zeitlin [Sun, 19 Jun 2011 22:46:39 +0000 (22:46 +0000)] 
Document surprising behaviour of wxDatePickerCtrl::GetRange() in wxMSW.

wxMSW native control always has a built-in lower limit as MSW doesn't support
the dates before the year 1601 so wxDatePickerCtrl::GetRange() always returns
a valid range start, even if SetRange() hadn't been called to set it.

As this can be unexpected, document this behaviour clearly.

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

13 years agoImplement wxCalendarCtrl::SetDateRange() in the native GTK version.
Vadim Zeitlin [Sun, 19 Jun 2011 22:46:36 +0000 (22:46 +0000)] 
Implement wxCalendarCtrl::SetDateRange() in the native GTK version.

While GTK+ doesn't support imposing ranges for dates selection natively, we
can do it ourselves by preventing the user from selecting any date outside of
the currently valid range.

This allows to use ranges under all platforms and not only in wxCalendarCtrl
itself but in wxDatePickerCtrl as well.

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

13 years agoSuppress harmless gcc warnings about enum elements unhandled in switch.
Vadim Zeitlin [Sun, 19 Jun 2011 22:46:32 +0000 (22:46 +0000)] 
Suppress harmless gcc warnings about enum elements unhandled in switch.

Latest mingw64 MinGW compiler has the headers required for enabling
wxUSE_DBGHELP, fix the warnings given by g++ when compiling wxDbgHelpDLL code.

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

13 years agofix GTKGetLabel() and DoApplyWidgetStyle(): children are GtkWidget, not GtkBoxChild
Paul Cornett [Sun, 19 Jun 2011 20:52:26 +0000 (20:52 +0000)] 
fix GTKGetLabel() and DoApplyWidgetStyle(): children are GtkWidget, not GtkBoxChild

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

13 years agoadding universal as devices
Stefan Csomor [Sat, 18 Jun 2011 19:40:22 +0000 (19:40 +0000)] 
adding universal as devices

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

13 years agoadding universal as devices
Stefan Csomor [Sat, 18 Jun 2011 16:47:37 +0000 (16:47 +0000)] 
adding universal as devices

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

13 years agoadding instantiated xcodeproj
Stefan Csomor [Sat, 18 Jun 2011 16:46:42 +0000 (16:46 +0000)] 
adding instantiated xcodeproj

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

13 years agoremoving obsolete flags, switching to universal builds
Stefan Csomor [Sat, 18 Jun 2011 15:53:10 +0000 (15:53 +0000)] 
removing obsolete flags, switching to universal builds

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

13 years agofixing iphone build
Stefan Csomor [Sat, 18 Jun 2011 15:23:39 +0000 (15:23 +0000)] 
fixing iphone build

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

13 years agoupdating project format to 3.2
Stefan Csomor [Sat, 18 Jun 2011 14:30:10 +0000 (14:30 +0000)] 
updating project format to 3.2

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

13 years agoremoving old settings
Stefan Csomor [Sat, 18 Jun 2011 14:21:13 +0000 (14:21 +0000)] 
removing old settings

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

13 years agoFix g++ warnings about initialized variables being declared extern.
Vadim Zeitlin [Fri, 17 Jun 2011 21:53:32 +0000 (21:53 +0000)] 
Fix g++ warnings about initialized variables being declared extern.

Don't declare variables extern when initializing them, this is already the
case implicitly anyhow and explicit "extern" results in g++ warnings.

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

13 years agoUse GdipStringFormatCachedGenericTypographic hack for MinGW as well.
Vadim Zeitlin [Fri, 17 Jun 2011 21:53:28 +0000 (21:53 +0000)] 
Use GdipStringFormatCachedGenericTypographic hack for MinGW as well.

When using GDI+ with MinGW, the same hack as for Cygwin is needed (see r66787)
as it uses the same w32api headers and libraries for GDI+ support (if it has
them at all).

See #11716.

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

13 years agoDon't use __declspec(dllexport) for MinGW gcc 4.5 and later.
Vadim Zeitlin [Fri, 17 Jun 2011 21:53:26 +0000 (21:53 +0000)] 
Don't use __declspec(dllexport) for MinGW gcc 4.5 and later.

Due to the changes in gcc 4.5, copies of dllexported inline functions are now
generated in all object files including their declarations, increasing their
sizes tenfold, and they are also now instantiated in the DLL itself increasing
its size fourfold. Moreover, linking such a gigantic DLL requires inordinate
amounts of memory and takes a very long time, see some statistics at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43601.

To avoid all these problems, don't use dllexport at all any more but rely on
binutils support for auto export/import which seems to work fine and results
in much smaller DLLs which are created much faster.

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

13 years agoAvoid problems with conflicting UINT16 definitions in Cygwin headers.
Vadim Zeitlin [Fri, 17 Jun 2011 21:53:22 +0000 (21:53 +0000)] 
Avoid problems with conflicting UINT16 definitions in Cygwin headers.

UINT16 is incorrectly defined inside Gdiplus namespace in w32api gdiplus.h
used by Cygwin and MinGW resulting in compilation errors about ambiguous
symbols.

Fix this by forcefully redefining UINT16 in our own code.

Closes #13113.

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

13 years agoFix wxStringOutputStream in wxUSE_UNICODE_UTF8 build.
Vadim Zeitlin [Thu, 16 Jun 2011 16:22:15 +0000 (16:22 +0000)] 
Fix wxStringOutputStream in wxUSE_UNICODE_UTF8 build.

For some reason the conversion of the bytes written to this stream to Unicode
was only done in wxUSE_UNICODE_WCHAR build but not in wxUSE_UNICODE_UTF8 one.
Do it in any wxUSE_UNICODE build now.

This allows to use wxStringOutputStream under Unix again, in particular it
fixes an assert in samples/html/zip when trying to load the raw contents of a
ZIP file in wxHtmlWindow.

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

13 years agoItalian translations update from Roberto Boriotti.
Vadim Zeitlin [Thu, 16 Jun 2011 16:14:01 +0000 (16:14 +0000)] 
Italian translations update from Roberto Boriotti.

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

13 years agoDisable wxFileSystemWatcher in configure if threads are disabled.
Vadim Zeitlin [Thu, 16 Jun 2011 15:19:55 +0000 (15:19 +0000)] 
Disable wxFileSystemWatcher in configure if threads are disabled.

wxFileSystemWatcher requires threads under MSW so disable it automatically in
configure if --disable-threads was used to avoid compilation errors in
wx/msw/chkconf.h later.

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

13 years agoSuppress various harmless warnings in MinGW build with -Wconversion.
Vadim Zeitlin [Thu, 16 Jun 2011 15:14:02 +0000 (15:14 +0000)] 
Suppress various harmless warnings in MinGW build with -Wconversion.

No real changes, simply add casts to make the implicit conversions that g++
warns about when using -Wconversion explicit.

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

13 years agoMake wxUIActionSimulator mouse move events marginally more precise.
Vadim Zeitlin [Thu, 16 Jun 2011 15:13:59 +0000 (15:13 +0000)] 
Make wxUIActionSimulator mouse move events marginally more precise.

Round the values instead of truncating them when converting from pixel values
to Win32 ::mouse_event() 0..65535 scale. This probably doesn't make any real
difference in practice but seems more correct and also avoids g++ warnings.

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

13 years agoUse symbolic WAIT_FAILED constant instead of raw -1.
Vadim Zeitlin [Thu, 16 Jun 2011 15:13:56 +0000 (15:13 +0000)] 
Use symbolic WAIT_FAILED constant instead of raw -1.

No real changes, just make the code slightly more readable by using a symbolic
constant instead of a magic value.

This also avoids g++ warnings about implicit conversion of a signed value (-1)
to unsigned type (DWORD).

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

13 years agoRound the values in wxDC coordinate calculations.
Vadim Zeitlin [Thu, 16 Jun 2011 15:13:52 +0000 (15:13 +0000)] 
Round the values in wxDC coordinate calculations.

Make the conversion of logical coordinates to the device ones more precise by
avoiding errors due to truncation of floating point values to integer ones.

See #13284.

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

13 years agoRound font sizes in AdjustToSymbolicSize() instead of truncating.
Vadim Zeitlin [Thu, 16 Jun 2011 15:13:49 +0000 (15:13 +0000)] 
Round font sizes in AdjustToSymbolicSize() instead of truncating.

This was mainly done to suppress g++ warning about implicit float to int
conversion but it also seems to make more sense to round the value here
instead of truncating it to int.

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

13 years agoadd src/gtk/anybutton.cpp to OpenVMS makefile
Jouk Jansen [Thu, 16 Jun 2011 09:07:13 +0000 (09:07 +0000)] 
add src/gtk/anybutton.cpp to OpenVMS makefile

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

13 years agoUse wxAnyButton's DoGetBestSize for toggle buttons
Robin Dunn [Thu, 16 Jun 2011 00:43:22 +0000 (00:43 +0000)] 
Use wxAnyButton's DoGetBestSize for toggle buttons

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

13 years agoGeneric wxHyperlinkCtrl appearance and behaviour improvements.
Vadim Zeitlin [Wed, 15 Jun 2011 21:56:23 +0000 (21:56 +0000)] 
Generic wxHyperlinkCtrl appearance and behaviour improvements.

Show focus rectangle around the control when it has focus. Also handle the
space key to trigger the link.

Also allow using either the native or generic version of the class in the
widgets sample.

Closes #11285.

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

13 years agoDon't crash in wxOSX wxTextEntry if the window wasn't created yet.
Vadim Zeitlin [Wed, 15 Jun 2011 21:56:18 +0000 (21:56 +0000)] 
Don't crash in wxOSX wxTextEntry if the window wasn't created yet.

Assert instead of crashing in wxTextEntry method if the associated window
hadn't been fully created yet.

Closes #13218.

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

13 years agoFall back to the valid normal bitmap if no state-specific bitmap is set.
Vadim Zeitlin [Wed, 15 Jun 2011 21:31:48 +0000 (21:31 +0000)] 
Fall back to the valid normal bitmap if no state-specific bitmap is set.

After the recent changes we could try to use an invalid bitmap in wxMSW toggle
button code as GetNormalState() could return State_Pressed and then we used
the bitmap for the pressed state unconditionally even if it wasn't set.

It seems more correct to always fall back to the normal bitmap as the pressed
state is already taken into account by GetButtonState().

This fixes unit test failures under MSW after the button classes refactoring.

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

13 years agoFix keyboard navigation in wxGrid with reordered columns.
Vadim Zeitlin [Wed, 15 Jun 2011 13:33:10 +0000 (13:33 +0000)] 
Fix keyboard navigation in wxGrid with reordered columns.

Don't mix up column internal indices and display positions in wxGrid keyboard
navigation code.

This ensures that pressing left/right cursor arrows always moves the cursor to
the previous/next column on the display, even if the columns were reordered.

Closes #13281.

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

13 years agoRename some parameters in wxGrid code to make them more clear.
Vadim Zeitlin [Wed, 15 Jun 2011 13:33:07 +0000 (13:33 +0000)] 
Rename some parameters in wxGrid code to make them more clear.

No real changes, just call the variables containing display positions "pos"
and not "line" in wxGridOperations to avoid giving the impression that they
contain indices.

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

13 years agoFix crash when creating and quickly destroying a wxTLW in wxGTK.
Vadim Zeitlin [Wed, 15 Jun 2011 13:33:02 +0000 (13:33 +0000)] 
Fix crash when creating and quickly destroying a wxTLW in wxGTK.

Don't crash in timer callback added to work around broken Ubuntu 11.04 WM,
remove it when the window is being destroyed.

This corrects a crash which happened if a TLW was created and destroyed before
this timer had time to fire under Ubuntu.

Closes #13146.

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

13 years agoRemoved header guards
Julian Smart [Wed, 15 Jun 2011 13:14:41 +0000 (13:14 +0000)] 
Removed header guards

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

13 years agoCaret dropout fix
Julian Smart [Wed, 15 Jun 2011 07:54:41 +0000 (07:54 +0000)] 
Caret dropout fix

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

13 years agowxButtonBase::GetDefaultSize is declared but not implemented in the wxOSX-cocoa port...
Robin Dunn [Tue, 14 Jun 2011 22:19:09 +0000 (22:19 +0000)] 
wxButtonBase::GetDefaultSize is declared but not implemented in the wxOSX-cocoa port.  Add an implementation that uses wxAnyButton::GetDefaultSize.

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

13 years agoRefactor wxButton and wxToggleButton to derive from wxAnyButton.
Vadim Zeitlin [Tue, 14 Jun 2011 13:00:42 +0000 (13:00 +0000)] 
Refactor wxButton and wxToggleButton to derive from wxAnyButton.

Introduce wxAnyButton class, a common base class for wxButton and
wxToggleButton, allowing to reuse the same implementation for them.

This also allows to implement support for bitmaps in wxToggleButton for all
platforms and make wxBitmapToggleButton a trivial subclass of it everywhere,
similarly to wxBitmapButton and wxButton.

Closes #13198.

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

13 years agoadding docset processing instructions
Stefan Csomor [Sun, 12 Jun 2011 03:39:17 +0000 (03:39 +0000)] 
adding docset processing instructions

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

13 years agoadding lighter css variant for xcode docsets
Stefan Csomor [Sun, 12 Jun 2011 02:47:24 +0000 (02:47 +0000)] 
adding lighter css variant for xcode docsets

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

13 years agoImplement wxDataViewCtrl::SetRowHeight() for wxGTK.
Vadim Zeitlin [Sat, 11 Jun 2011 23:56:44 +0000 (23:56 +0000)] 
Implement wxDataViewCtrl::SetRowHeight() for wxGTK.

Also document that this method can only be used to increase the row height
compared to the default, not to make it smaller.

See #12749.

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

13 years agoadding more specific info for docset
Stefan Csomor [Sat, 11 Jun 2011 15:41:44 +0000 (15:41 +0000)] 
adding more specific info for docset

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

13 years agoadding implementation for osx
Stefan Csomor [Fri, 10 Jun 2011 03:12:58 +0000 (03:12 +0000)] 
adding implementation for osx

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

13 years agoadding implementation for osx
Stefan Csomor [Thu, 9 Jun 2011 23:05:52 +0000 (23:05 +0000)] 
adding implementation for osx

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

13 years agoadding default interpolation enum
Stefan Csomor [Thu, 9 Jun 2011 23:05:09 +0000 (23:05 +0000)] 
adding default interpolation enum

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

13 years agofixing test, adding minimal docs
Stefan Csomor [Thu, 9 Jun 2011 21:44:19 +0000 (21:44 +0000)] 
fixing test, adding minimal docs

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

13 years agoadding placeholders for interpolation setting
Stefan Csomor [Thu, 9 Jun 2011 21:38:08 +0000 (21:38 +0000)] 
adding placeholders for interpolation setting

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

13 years agofixing two warnings
Stefan Csomor [Thu, 9 Jun 2011 01:25:27 +0000 (01:25 +0000)] 
fixing two warnings

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

13 years agofixing memory leak
Stefan Csomor [Thu, 9 Jun 2011 01:24:21 +0000 (01:24 +0000)] 
fixing memory leak

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

13 years agoinner layout support
Stefan Csomor [Thu, 9 Jun 2011 01:09:33 +0000 (01:09 +0000)] 
inner layout support

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

13 years agoadapting ownership semantics to cocoa convention
Stefan Csomor [Thu, 9 Jun 2011 01:08:43 +0000 (01:08 +0000)] 
adapting ownership semantics to cocoa convention

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

13 years agoinit pattern
Stefan Csomor [Thu, 9 Jun 2011 01:07:39 +0000 (01:07 +0000)] 
init pattern

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

13 years agobetter ownership handling
Stefan Csomor [Thu, 9 Jun 2011 00:32:27 +0000 (00:32 +0000)] 
better ownership handling

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

13 years agoguard against nullptr
Stefan Csomor [Thu, 9 Jun 2011 00:31:05 +0000 (00:31 +0000)] 
guard against nullptr

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

13 years agousing common colorspace method
Stefan Csomor [Thu, 9 Jun 2011 00:30:26 +0000 (00:30 +0000)] 
using common colorspace method

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