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

13 years agoadd member for sheetdialog
Stefan Csomor [Thu, 9 Jun 2011 00:29:13 +0000 (00:29 +0000)] 
add member for sheetdialog

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

13 years agoadd member for sheetdialog
Stefan Csomor [Thu, 9 Jun 2011 00:28:28 +0000 (00:28 +0000)] 
add member for sheetdialog

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

13 years agobetter retain/release semantics
Stefan Csomor [Thu, 9 Jun 2011 00:24:21 +0000 (00:24 +0000)] 
better retain/release semantics

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

13 years agoadapting to init pattern
Stefan Csomor [Wed, 8 Jun 2011 23:05:54 +0000 (23:05 +0000)] 
adapting to init pattern

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

13 years agoadding fallback
Stefan Csomor [Wed, 8 Jun 2011 23:05:23 +0000 (23:05 +0000)] 
adding fallback

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

13 years agonewstate already set
Stefan Csomor [Wed, 8 Jun 2011 23:02:25 +0000 (23:02 +0000)] 
newstate already set

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

13 years agoadding fallback
Stefan Csomor [Wed, 8 Jun 2011 23:01:53 +0000 (23:01 +0000)] 
adding fallback

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

13 years agomaking intention clearer by explicit parentheses
Stefan Csomor [Wed, 8 Jun 2011 23:00:36 +0000 (23:00 +0000)] 
making intention clearer by explicit parentheses

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

13 years agofixing uninit vars warning and memory errors
Stefan Csomor [Wed, 8 Jun 2011 22:58:57 +0000 (22:58 +0000)] 
fixing uninit vars warning and memory errors

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

13 years agoadapting to init pattern
Stefan Csomor [Wed, 8 Jun 2011 22:50:28 +0000 (22:50 +0000)] 
adapting to init pattern

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

13 years agoadapting to init pattern
Stefan Csomor [Wed, 8 Jun 2011 22:48:29 +0000 (22:48 +0000)] 
adapting to init pattern

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

13 years agoAdd wxDataViewCtrl::SetRowHeight() and provide its generic implementation.
Vadim Zeitlin [Tue, 7 Jun 2011 22:49:56 +0000 (22:49 +0000)] 
Add wxDataViewCtrl::SetRowHeight() and provide its generic implementation.

Allow changing the (fixed) row height without using wxDV_VARIABLE_LINE_HEIGHT
which may slow down the control display too much.

The new method is not implemented for the native GTK and OS X implementations
yet but should be simple to implement there.

See #12749.

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

13 years agoUpdate status bar fields widths from WM_SIZE handler.
Vadim Zeitlin [Tue, 7 Jun 2011 22:49:51 +0000 (22:49 +0000)] 
Update status bar fields widths from WM_SIZE handler.

Doing it immediately after calling ::SetWindowPos(), as we used to do, didn't
work correctly (presumably because the status bar fields widths were not
updated yet internally) and resulted in not updating the ellipsized fields
values when "Show window contents while dragging" Windows option was off.
Doing it when we get WM_SIZE works in this case too.

Closes #13257.

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

13 years agoHandle colours with alpha channel correctly in wxSVGFileDC.
Vadim Zeitlin [Tue, 7 Jun 2011 22:27:35 +0000 (22:27 +0000)] 
Handle colours with alpha channel correctly in wxSVGFileDC.

wxColour::GetAsString(wxC2S_HTML_SYNTAX) doesn't accept colours with alpha
channel as alpha is not representable in HTML syntax, so avoid calling this
function with such colours, remove the alpha component in the caller before
using it instead.

Also slightly simplify wxBrushString() and wxPenString() functions code in
wxSVGFileDC implementation.

Closes #13214.

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

13 years agoReplace more DECLARE_CLASS occurrences with DECLARE_DYNAMIC_CLASS.
Vadim Zeitlin [Tue, 7 Jun 2011 16:48:36 +0000 (16:48 +0000)] 
Replace more DECLARE_CLASS occurrences with DECLARE_DYNAMIC_CLASS.

Correct more mismatches between DECLARE_CLASS and IMPLEMENT_DYNAMIC_CLASS
usage.

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

13 years agoavoid direct struct access for GTK3
Paul Cornett [Tue, 7 Jun 2011 16:24:26 +0000 (16:24 +0000)] 
avoid direct struct access for GTK3

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

13 years agoUse DECLARE_DYNAMIC_CLASS instead of DECLARE_CLASS.
Vadim Zeitlin [Tue, 7 Jun 2011 14:28:55 +0000 (14:28 +0000)] 
Use DECLARE_DYNAMIC_CLASS instead of DECLARE_CLASS.

Correctly use DECLARE_DYNAMIC_CLASS for the classes that are supposed to be
dynamically creatable as using DECLARE_CLASS doesn't work any longer after the
last commit.

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

13 years agoMake wxDECLARE_CLASS synonym of wxDECLARE_ABSTRACT_CLASS.
Vadim Zeitlin [Tue, 7 Jun 2011 13:06:17 +0000 (13:06 +0000)] 
Make wxDECLARE_CLASS synonym of wxDECLARE_ABSTRACT_CLASS.

Previously wxDECLARE_CLASS was a synonym for wxDECLARE_DYNAMIC_CLASS which was
inconsistent with its documentation and wxIMPLEMENT_CLASS that was the same as
wxIMPLEMENT_ABSTRACT_CLASS.

Resolve this in the most backwards compatible and also arguably logical way.

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

13 years agoVietnamese translation update from Trần Ngọc Quân.
Vadim Zeitlin [Tue, 7 Jun 2011 13:06:14 +0000 (13:06 +0000)] 
Vietnamese translation update from Trần Ngọc Quân.

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

13 years agousing higher abstraction to allow for optimized implementations
Stefan Csomor [Mon, 6 Jun 2011 23:23:35 +0000 (23:23 +0000)] 
using higher abstraction to allow for optimized implementations

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

13 years agospeeding up rectangle drawing by using specific methods, needs 40% less time
Stefan Csomor [Mon, 6 Jun 2011 23:15:27 +0000 (23:15 +0000)] 
speeding up rectangle drawing by using specific methods, needs 40% less time

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

13 years ago10.4 compatibility
Stefan Csomor [Mon, 6 Jun 2011 21:13:33 +0000 (21:13 +0000)] 
10.4 compatibility

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

13 years agoreverting to idle handling
Stefan Csomor [Mon, 6 Jun 2011 21:12:14 +0000 (21:12 +0000)] 
reverting to idle handling

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

13 years agoturning off unconditional usage of filter-delegate, using native capabilities under...
Stefan Csomor [Mon, 6 Jun 2011 19:19:42 +0000 (19:19 +0000)] 
turning off unconditional usage of filter-delegate, using native capabilities under 10.6, proper handling of empty default directories for dialogs by passing in nil to native calls,

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

13 years agosupporting nested window disablers on the same window
Stefan Csomor [Mon, 6 Jun 2011 16:32:41 +0000 (16:32 +0000)] 
supporting nested window disablers on the same window

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

13 years agosupporting native background color on wxWindow descendants that are not themselves...
Stefan Csomor [Mon, 6 Jun 2011 02:28:56 +0000 (02:28 +0000)] 
supporting native background color on wxWindow descendants that are not themselves native controls, like eg wxPanel , see #13032

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

13 years agosupporting native background on nonownedwindow, see #13032
Stefan Csomor [Sun, 5 Jun 2011 16:08:12 +0000 (16:08 +0000)] 
supporting native background on nonownedwindow, see #13032

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

13 years agoadding another assert for tracking modalSession problems
Stefan Csomor [Sun, 5 Jun 2011 15:32:50 +0000 (15:32 +0000)] 
adding another assert for tracking modalSession problems

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

13 years agoRemoved erroneous second reference to status bar height
Julian Smart [Fri, 3 Jun 2011 17:18:35 +0000 (17:18 +0000)] 
Removed erroneous second reference to status bar height

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

13 years agoallowing more system keys in fullscreen mode, properly taking framestyle into account
Stefan Csomor [Fri, 3 Jun 2011 09:15:15 +0000 (09:15 +0000)] 
allowing more system keys in fullscreen mode, properly taking framestyle into account

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

13 years agofirst implementation for state on custom renderer, see #12890
Stefan Csomor [Thu, 2 Jun 2011 09:25:11 +0000 (09:25 +0000)] 
first implementation for state on custom renderer, see #12890

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

13 years agofixes #12867
Stefan Csomor [Thu, 2 Jun 2011 08:36:57 +0000 (08:36 +0000)] 
fixes #12867

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

13 years agoreactivate commented out method
Stefan Csomor [Thu, 2 Jun 2011 08:19:16 +0000 (08:19 +0000)] 
reactivate commented out method

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

13 years agocleanup
Stefan Csomor [Thu, 2 Jun 2011 08:18:11 +0000 (08:18 +0000)] 
cleanup

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

13 years agoNo changes, just avoid unused parameters warnings.
Vadim Zeitlin [Wed, 1 Jun 2011 22:58:05 +0000 (22:58 +0000)] 
No changes, just avoid unused parameters warnings.

Wrap parameters of the stub implementation of the newly added StartEditor() in
WXUNUSED().

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

13 years agofirst stab at supporting custom renderers
Stefan Csomor [Wed, 1 Jun 2011 20:05:03 +0000 (20:05 +0000)] 
first stab at supporting custom renderers

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

13 years agoVirtualize StartEditor and add implementations for the ports that can do it.
Robin Dunn [Tue, 31 May 2011 19:36:47 +0000 (19:36 +0000)] 
Virtualize StartEditor and add implementations for the ports that can do it.

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

13 years agoBuild fixes for using Cairo on MSW.
Robin Dunn [Tue, 31 May 2011 19:16:55 +0000 (19:16 +0000)] 
Build fixes for using Cairo on MSW.

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

13 years agofix memory leak in wxScreenDC, fixes #13249
Paul Cornett [Tue, 31 May 2011 17:16:53 +0000 (17:16 +0000)] 
fix memory leak in wxScreenDC, fixes #13249

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

13 years agomaking sure
Stefan Csomor [Tue, 31 May 2011 08:09:18 +0000 (08:09 +0000)] 
making sure

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

13 years agoFree calloc()'d pointer correctly in wxFSWatchEntryMSW.
Vadim Zeitlin [Sat, 28 May 2011 19:35:13 +0000 (19:35 +0000)] 
Free calloc()'d pointer correctly in wxFSWatchEntryMSW.

OVERLAPPED struct was allocated using calloc() but deleted later. Fix this by
deallocating it with free() instead.

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

13 years agoFixed saving GIFs on big-endian architectures.
Dimitri Schoolwerth [Fri, 27 May 2011 12:25:25 +0000 (12:25 +0000)] 
Fixed saving GIFs on big-endian architectures.

Word (16 bits) values were written in the wrong order resulting in invalid GIF files on for example PowerPC machines.

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

13 years agoUse #ifdef, not #if, to check for __WXGTK26__ symbol.
Vadim Zeitlin [Fri, 27 May 2011 09:46:27 +0000 (09:46 +0000)] 
Use #ifdef, not #if, to check for __WXGTK26__ symbol.

This fixes gcc warning given if __WXGTK26__ is not defined (which almost never
happens nowadays but still).

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

13 years agousing systemui for full screen to allow modal dialogs
Stefan Csomor [Wed, 25 May 2011 11:26:47 +0000 (11:26 +0000)] 
using systemui for full screen to allow modal dialogs

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

13 years agoCorrect the picker button best size computation.
Vadim Zeitlin [Tue, 24 May 2011 21:19:35 +0000 (21:19 +0000)] 
Correct the picker button best size computation.

Fix the typo in the changes of r67763.

See #13232.

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