Commit Graph

54351 Commits

Author SHA1 Message Date
Vadim Zeitlin
eef2e91ffb Fix build with Sun CC under Linux.
We need to explicitly define _GNU_SOURCE when building our code as we use it
configure when running the tests and it's not predefined by Sun CC, unlike g++
so we need to add it to CXXFLAGS ourselves.

An alternative solution would be to run the tests without _GNU_SOURCE but this
would lose too much functionality so it doesn't seem like a good idea.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-07 00:59:43 +00:00
Vadim Zeitlin
be1c88bf3e Remove wxHAVE_GLIBC2 from configure, always predefine _GNU_SOURCE.
We used to test for glibc version first and predefined _GNU_SOURCE only if it
was greater than 2.1 but there doesn't seem to be any harm to just always
predefine _GNU_SOURCE under Linux (not that there are any systems with glibc <
2.1 left anyhow). Also do it much earlier to ensure that all tests are
affected by it.

And as we don't use wxHAVE_GLIBC2 anywhere else just remove it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-07 00:59:40 +00:00
Stefan Csomor
f825123271 avoiding NSToolbarSeparatorItemIdentifier under Lion, where it is not supported anymore, fixes #13363
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-06 18:35:49 +00:00
Julian Smart
83c6ae8e25 Applied patch #13698 to fix wrong border test
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-05 09:59:51 +00:00
Chris Elliott
dc1c249471 add docs to name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-05 09:00:23 +00:00
Vadim Zeitlin
bab2519980 No changes, just remove unnecessary assignment in wxOSX code.
Local size variable was unnecessarily assigned itself.

Closes #13723.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-05 00:00:58 +00:00
Vadim Zeitlin
ecb35373ee Add virtual dtor to wxCustomBackgroundWindowBase.
Suppress g++ warnings about a class with virtual methods but non-virtual dtor
by making the dtor virtual even if we don't need it to be virtual in this
class.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-04 23:57:36 +00:00
Vadim Zeitlin
1f92048725 Compilation fix for wxCarbon after the last commit.
Apply corrected version of the patch for Carbon.

See #13661.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-04 23:57:32 +00:00
Vadim Zeitlin
f0e867e97c Fix wxDataViewCtrl compilation with 10.7 SDK under OS X.
Add the required casts to wxPointerObject.

Closes #13661.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-04 19:23:42 +00:00
Vadim Zeitlin
b54a0e3913 Do not declare "environ" variable ourselves under MSW.
The changes of r69564 making "environ" declaration unconditional broke
MinGW 4.6 build, presumably because "environ" is declared differently (as DLL
exported?) there, so avoid declaring it under MSW, we don't need to do it
there anyhow as it's always defined in system headers.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-04 12:26:24 +00:00
Vadim Zeitlin
f27f9577ca Allow 2-step creation of wxGenericProgressDialog.
Add default ctor and Create() with the same parameters as the non-default
ctor.

Closes #13555.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-03 23:52:39 +00:00
Vadim Zeitlin
45d366f961 Don't include version in the URL created by wxMSW installer.
The link is the same for all version so don't version it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-03 23:52:36 +00:00
Vadim Zeitlin
4cdb79dce8 Don't require admin privileges in the MSW installer.
We don't need any extra privileges so avoid the elevation prompt under Windows
Vista and later.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-03 23:52:33 +00:00
Vadim Zeitlin
c4073f2ce9 Generate makefiles for treelist sample when using configure.
treelist sample was never added to SAMPLES_SUBDIRS.

Closes #13718.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69922 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-03 00:34:24 +00:00
Vadim Zeitlin
17d72a48ff Fix bug with wxStopWatch::Start() not resuming paused stopwatch any more.
Since r69835 the stop watch remained paused even when Start() was called. Do
resume it when restarting it both for backwards compatibility and because it
makes more sense and also document this behaviour.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69921 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-03 00:34:00 +00:00
Dimitri Schoolwerth
238188550e Updated out of date versions and release dates.
Mentioned more files in tn0011.txt that need version updating, and made it more clear which ones need to be changed manually. Modified inc_release to update docs/readme.txt and changed the version references in the readme.txt to 2.9.3. Also changed two references to the month of release from July to December.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 23:44:22 +00:00
Chris Elliott
996785e06a rc1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 17:06:32 +00:00
Stefan Csomor
ee8bc1a8f5 fixing build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 13:25:16 +00:00
Vadim Zeitlin
7920b94beb Link to wxGridCellFloatFormat when it's mentioned in the documentation.
Enum names are not auto-linked by Doxygen so prefix this enum with "::" to
force link creation.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 12:42:35 +00:00
Vadim Zeitlin
4c2b10acad Rebake after webview-related changes in common.bkl.
Forgot to rebake all files (and not just library ones) after changes of
r69589.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 12:04:51 +00:00
Vadim Zeitlin
c9a828e77f Compilation fixes for wxMSW in wxUSE_STL=1 build.
Add explicit conversions from wxString to wchar_t* as they don't happen
implicitly when wxUSE_STL=1.

Closes #13715.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69911 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 12:04:46 +00:00
Vadim Zeitlin
7daecf9e6a Handle OpenBSD in wxDialUpManager code.
Closes #13716.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 12:04:42 +00:00
Dimitri Schoolwerth
ecc3b88b05 set svn:eol-style to CRLF on MSVC project files for wxWebView
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 10:34:46 +00:00
Dimitri Schoolwerth
3037427243 Fixed x64 application termination after exceptions in a file dialog callback.
Since Windows 7 exceptions thrown in a file dialog callback (possibly by third-party utilities) aren't swallowed anymore. Make use of SetProcessUserModeExceptionPolicy (available in Windows 7 SP1) to temporarily restore the old behaviour and prevent the crashing (or summoning of the Program Compatibility Assistant) of an x64 application.

Closes #13674.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 10:15:16 +00:00
Stefan Csomor
44d39160f5 adapting Xcode projects for r69898
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69907 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 07:40:45 +00:00
Robin Dunn
04992872e5 Removed const from a couple methods that are not const in the real code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 01:01:12 +00:00
Vadim Zeitlin
00405b6c68 Rename src/generic/richtooltip.cpp to src/generic/richtooltipg.cpp.
This avoids object file name conflict with src/msw/richtooltip.cpp when using
VC6.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69898 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 00:56:44 +00:00
Vadim Zeitlin
64ac3db840 Update all controls using in-place editors to handle Escape/Return correctly.
Define EVT_CHAR_HOOK handlers to ensure that pressing Escape/Return while an
in-place edit control is active affects only it and is not used for the
keyboard navigation.

Closes #9102.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 00:50:41 +00:00
Vadim Zeitlin
4d7bc8e761 Fix reentrancy in wxDataViewRendererBase::FinishEditing().
Switching focus to the main wxDataViewCtrl window resulted in focus loss event
and a reentrant call to FinishEditing() itself if it wasn't called because the
in-place edit control was being destroyed the first time.

Fix this by destroying the in-place control first and adjusting the focus
later, the effect should be exactly the same but now FinishEditing() can be
safely called from anywhere in the code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69896 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 00:50:35 +00:00
Vadim Zeitlin
4e4841b0ba No changes, just move wxTreeCtrlBase ctor to the source file.
Move inline ctor out of line to prepare for changing it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 00:50:33 +00:00
Vadim Zeitlin
9d79c17697 Don't use ListView_CancelEditLabel() as it doesn't work as expected.
ListView_CancelEditLabel() doesn't revert the controls value to the original
text as expected, so don't use it and revert to sending VK_ESCAPE to the
in-place edit control instead under all versions of Windows.

See #7663.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69894 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 00:50:29 +00:00
Vadim Zeitlin
3a95f73c00 Make wxEVT_CHAR_HOOK propagate upwards and send it to the window itself.
Send wxEVT_CHAR_HOOK events to the focused window itself but make them
propagatable to ensure that the parent windows (including the top level
parent) still get it. This still allows the TLW parent to intercept keyboard
handling in its child but allows the child (or an intermediate parent window)
to have some say in the matter.

See #9102.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69893 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 00:50:25 +00:00
Vadim Zeitlin
f47a359113 Make wxEVT_CHAR_HOOK behave in wxGTK as in wxMSW.
Send wxEVT_CHAR_HOOK before wxEVT_KEY_DOWN and avoid generating both
wxEVT_KEY_DOWN and wxEVT_CHAR if the hook event was handled.

This makes wxGTK behave consistently with wxMSW and wxOSX/Cocoa as can be seen
in the keyboard sample.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 00:50:22 +00:00
Vadim Zeitlin
e45d90901d Added wxKeyEvent ctor for creating event of the different type for same key.
This is useful for implementation code in a couple of ports so provide a
higher level ctor doing this instead of having to use a copy ctor and then
manually changing the event type.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 00:50:19 +00:00
Vadim Zeitlin
dfc7216da7 Refactor wxKeyEvent copying code.
Avoid duplication between copy ctor and assignment operator.

Also extract the assignment of everything not including the event type in a
reusable function as this can be useful for key event generation code in wxGTK
and possibly other ports.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 00:50:16 +00:00
Vadim Zeitlin
edf5822ace Implement EVT_CHAR_HOOK for wxOSX/Cocoa.
Send wxEVT_CHAR_HOOK event from wxOSX/Cocoa code.

Also test for wxEVT_CHAR_HOOK in the keyboard sample and show the effect of
not skipping it.

Closes #12431.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 00:50:12 +00:00
Vadim Zeitlin
8270459a11 No changes, just remove unnecessary #pragma warning.
The warning we disabled occurred in the code that was removed long time ago so
it's not necessary to do it any more.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 00:50:09 +00:00
Stefan Csomor
b54a793bad applying patch for raise and synthesizing mouse-up for built-in controls, fixes #12363
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-01 18:36:58 +00:00
Paul Cornett
71929371c2 fix warning about missing return statement, closes #13713
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69885 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-01 16:54:21 +00:00
Vadim Zeitlin
b450f37eba Only use __declspec(restrict) with VC8+ in libpng.
VC7 doesn't support it.

Closes #13710.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-01 14:22:20 +00:00
Vadim Zeitlin
b9697cb410 Added wxCriticalSection::TryEnter() method.
This is similar to wxMutex::TryLock() and useful for the same reasons.

Closes #13638.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-01 14:22:15 +00:00
Vadim Zeitlin
4c5d5d633d Chinese translations update from Huang Jiawei.
Fix more fuzzy translations.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-01 14:22:11 +00:00
Vadim Zeitlin
e60defcb94 Fix timeout used in POSIX implementation of wxCondition::WaitTimeout().
The time passed to pthread_cond_timedwait() must be in UTC, not local time,
but wxGetLocalTimeMillis() now really returns the time in local time zone so
we must use wxGetUTCTimeMillis() instead.

Closes #13707.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-01 14:22:07 +00:00
Paul Cornett
36307fdf51 remove unused variables
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-01 08:16:42 +00:00
Paul Cornett
612633432a add test for bug fixed in r69878
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69879 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-01 08:08:24 +00:00
Paul Cornett
0f29501b66 Fix crash when appending menuitem after removing it from another menu.
Also remove unused return value from GtkAppend

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-01 06:57:44 +00:00
Vadim Zeitlin
516ed23a94 Fix setting the parent of wxProgressDialog.
Don't call GetParentForModalDialog() with wxProgressDialog style, this doesn't
work as it expects the window style.

Do call SetParent() when using the native MSW implementation as the wx-level
parent is not used then.

Closes #13706.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69874 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-30 10:48:05 +00:00
Vadim Zeitlin
37bea8d229 Don't include all wx/xxx/webviewhistoryitem_xxx.h headers.
Only one of these headers is available for each platform so include at most
one of them.

Closes #13705.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-30 10:21:43 +00:00
Vadim Zeitlin
99644bf127 Include wx/defs.h, not wx/setup.h from wx/webview.h for consistency.
All wx headers start by including wx/defs.h so do it in wx/webview.h as well
even if wx/setup.h was sufficient in this particular case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-30 10:21:40 +00:00
Vadim Zeitlin
a3d73e4c09 Document more wxCommandProcessor methods.
Document CanRedo(), Store() and GetCurrentCommand().

Closes #13700.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-30 09:21:37 +00:00