Vadim Zeitlin [Fri, 26 Jul 2013 16:02:46 +0000 (16:02 +0000)]
Remove all lines containing cvs/svn "$Id$" keyword.
This keyword is not expanded by Git which means it's not replaced with the
correct revision value in the releases made using git-based scripts and it's
confusing to have lines with unexpanded "$Id$" in the released files. As
expanding them with Git is not that simple (it could be done with git archive
and export-subst attribute) and there are not many benefits in having them in
the first place, just remove all these lines.
If nothing else, this will make an eventual transition to Git simpler.
Closes #14487.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 26 Jul 2013 15:27:51 +0000 (15:27 +0000)]
Remove wxUniversal configuration from the MSVC 10 project files.
As these configurations are not present in the automatically generated files
any more, remove them from the manually created ones too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74601
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 26 Jul 2013 10:38:39 +0000 (10:38 +0000)]
Fix duplicate symbol link errors in wxMSW wxTextEntry code.
Don't include <initguid.h> too soon, as this affects the headers included
after it instead of just our own uses of DEFINE_GUID() as intended.
This resulted in link errors because of duplicate definitions of the many
standard GUIDs when using MinGW for which we include, for whatever reason,
shlguid.h.
This fixes the change of r67573.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74600
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 25 Jul 2013 23:36:07 +0000 (23:36 +0000)]
Disable tests in Travis configuration.
As cppunit is not available, building tests fails.
Also disable optimizations in an attempt to make the build faster as we risk
being killed because it takes so long.
Finally, test compilation of the minimal sample using the installed library
for completeness.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74599
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 25 Jul 2013 21:55:17 +0000 (21:55 +0000)]
Add a configuration file for Travis CI system.
Try to use Travis in addition to buildbot to see if it can be useful for us.
Closes #15355.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74598
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 25 Jul 2013 21:55:13 +0000 (21:55 +0000)]
Allow using custom method names in wxHTTP.
Add wxHTTP::SetMethod().
Also simplify the code by determining the method to use in Connect() instead
of doing it in BuildRequest() itself.
Get rid of the now unused wxHTTP_Req enum.
Closes #15354.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74597
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 25 Jul 2013 21:55:06 +0000 (21:55 +0000)]
Fix build with wxUSE_FFILE=0.
Add the missing "#if wxUSE_FFILE" checks and add fallbacks to wxFile if it's
available.
Closes #15353.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74596
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 25 Jul 2013 21:54:58 +0000 (21:54 +0000)]
Define wxLongLong_t for Intel compiler.
It supports the same __int64 type and printf() format specifier for it as
MSVC does under Windows.
Closes #15359.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74595
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 25 Jul 2013 21:54:53 +0000 (21:54 +0000)]
Don't crash when creating wxStaticBox in wxGTK.
Since r74585, wxWindow::SetCanFocus() is called from wxStaticBoxBase ctor,
i.e. before the real window is created, and this results in a crash in wxGTK
where SetCanFocus() needs a valid widget.
Fix this simply by doing nothing in SetCanFocus() if the widget is not created
yet as this should result in the same behaviour as before r74585. This doesn't
seem like the right thing to do, however, and we should probably remove this
call from wxStaticBoxBase ctor and do it in wxStaticBox implementation itself
instead.
Closes #15358.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74594
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 24 Jul 2013 06:14:48 +0000 (06:14 +0000)]
wiring OnInit on osx to a later point in event processing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74592
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 23 Jul 2013 20:11:59 +0000 (20:11 +0000)]
support for iPhone callbacks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74591
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 23 Jul 2013 17:57:05 +0000 (17:57 +0000)]
adding OnLaunched
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74590
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Tue, 23 Jul 2013 14:41:14 +0000 (14:41 +0000)]
use GTK-specific method to delete selection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74589
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 23 Jul 2013 13:18:30 +0000 (13:18 +0000)]
Compilation fix for PCH-less build after r74586.
Don't use wxWindow methods in wx/container.h, move AcceptsFocus()
implementation to containr.cpp.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74588
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 23 Jul 2013 12:44:36 +0000 (12:44 +0000)]
Document wxKill(wxSIGTERM) reliance on having an open window in wxMSW.
wxKill(wxSIGTERM) doesn't work if the child process has no open windows as it
doesn't have anything to post the WM_QUIT message to.
Document this and point out that wxKill(wxSIGKILL) still works in this case.
Closes #15356.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74587
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 23 Jul 2013 12:44:33 +0000 (12:44 +0000)]
Fix tab navigation bug with radio boxes without enabled items.
There was a bug similar to the one in the preceding commit with radio boxes
under wxMSW too: if all radio box buttons were disabled (or hidden, although
this should be much more rare in practice, unlike the disabled case which was
deemed to be rare in r74583 commit message but turned out to actually happen),
the radio box still pretended to accept focus but didn't really do it.
Fix this by allowing to override wxWindow::CanBeFocused() and do it in
wxRadioBox to check whether we have any enabled visible items.
Also add a check for CanBeFocused() to wxControlContainer code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74586
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 23 Jul 2013 12:44:29 +0000 (12:44 +0000)]
Fix tab navigation bug with static boxes without enabled children.
wxControlContainer::AcceptsFocusFromKeyboard() returned true even if the
control didn't have any currently enabled -- and hence accepting focus --
children. This resulted in strange wxEVT_NAVIGATION_KEY propagation as it
unexpectedly wasn't handled in the control which pretended to accept focus and
instead bubbled up back into the parent, resulting in the focus returning to
the first child of the parent instead of skipping the static box with disabled
children and going to the next enabled child.
Fix this by checking that we have children that can be focused right now and
not only children that are focusable. Notice that this doesn't take care of
calling wxWindow::SetCanFocus() correctly when the children enabled/disabled
state changes so there might still be other problems, notably under wxGTK
where SetCanFocus() does something non-trivial, but it at least improves
things under wxMSW.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74585
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Tue, 23 Jul 2013 05:13:32 +0000 (05:13 +0000)]
merge DoDrawText() and DoDrawRotatedText() into one function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74584
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 23 Jul 2013 00:43:33 +0000 (00:43 +0000)]
Fix tab navigation into radio boxes in wxMSW.
Radio boxes refused to take focus from keyboard as their
wxControlContainer::AcceptsFocusFromKeyboard() always returned false because
the base wxStaticBox class disabled setting the focus to the control itself
and wxRadioBox doesn't have any children at wx level in wxMSW.
Fix this by reenabling "self focus" in wxRadioBox to make it possible to
accept focus from keyboard. This is not ideal as it doesn't take into account
e.g. radio boxes without any items or with all items disabled or hidden, but
this should be rare and would require virtualizing all children access at
wxControlContainer level, i.e. would be quite non-trivial so don't do this for
now as this, at least, fixes the navigation in common/normal case.
Also remove the unnecessary AcceptsFocus() override from wxRadioBox as this is
now done at wxControlContainer level.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74583
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 23 Jul 2013 00:43:29 +0000 (00:43 +0000)]
No real changes, just refactor wxControlContainer code a little.
Extract the call to wxWindow::SetCanFocus() into a separate
UpdateParentCanFocus() function as it can be necessary to do it from places
other than UpdateCanFocusChildren() too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74582
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 22 Jul 2013 23:37:24 +0000 (23:37 +0000)]
Rearrange Windows checks in wx/platform.h to be more logical.
Use __WINDOWS__ symbol as the primary symbol indicating Windows instead of
using all of _WIN32, __WIN32__ and __WINDOWS__.
Also automatically define __WINDOWS__ if __WXMSW__ is defined as this port
only can be used under Windows and doing it like this fixes compilation in the
case when the platform ends up being not defined at all, closes #15342.
Finally, don't assume Windows by default but give an error if we can't detect
the platform. This shouldn't happen in practice but seems a safer thing to do
if it ever does happen.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74581
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 22 Jul 2013 18:33:01 +0000 (18:33 +0000)]
further routing into wxApp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74580
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 22 Jul 2013 16:18:39 +0000 (16:18 +0000)]
cocoa wiring
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74579
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 22 Jul 2013 16:17:27 +0000 (16:17 +0000)]
wiring osx native notification during launch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74578
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Mon, 22 Jul 2013 15:32:00 +0000 (15:32 +0000)]
use pango_matrix_scale() to scale text
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74577
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Sun, 21 Jul 2013 10:30:22 +0000 (10:30 +0000)]
Fix wxWebView documentation warnings.
See #15346.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74575
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Sun, 21 Jul 2013 10:05:03 +0000 (10:05 +0000)]
Add functor-taking overload of CallAfter().
This is a generalization of the existing method-calling overloads.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74574
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 18 Jul 2013 10:07:18 +0000 (10:07 +0000)]
Don't assume that KeySym is always defined as long in wxGTK.
Apparently this is not the case when using Wayland and using "%ld" to print it
out results in an assert failure.
Closes #15351.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74573
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Wed, 17 Jul 2013 19:25:13 +0000 (19:25 +0000)]
Fix interface definition of GetMouseCursorAt
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74572
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 17:27:20 +0000 (17:27 +0000)]
Just forward Stricmp() in wx/string.h to wxCRT_StricmpA().
Don't redo the tests already done in wx/wxcrtbase.h in wx/string.h too,
especially as they were not done correctly there (they didn't take into
account the case of MinGW in strict ANSI mode). Just call wxCRT_StricmpA().
This also allows us to get rid of HAVE_STRCASECMP_IN_STRING[S]_H tests in
configure.
Closes #15349.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74571
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 17:27:14 +0000 (17:27 +0000)]
Set mouse cursor correctly over image map links in wxHTML.
The cursor didn't change to a link one when the mouse was over link areas in
an image map.
Fix this by generalizing wxHtmlCell::GetMouseCursor() into GetMouseCursorAt().
Closes #15350.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74570
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 17:27:09 +0000 (17:27 +0000)]
Check the number of points in the image map in wxHTML.
Don't crash if an <area> element is incorrect and doesn't have the required
number of coords attributes.
Closes #15348.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74569
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 17:27:04 +0000 (17:27 +0000)]
No changes, just remove an extra pair of braces in wxHTML code.
See #15348.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74568
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 17:27:00 +0000 (17:27 +0000)]
Handle wxALWAYS_SHOW_SB in wxOSX.
Initialize m_[hv]ScrollBarAlwaysShown to true if this flag is given when
creating the window.
Closes #15344.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74567
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 12:57:44 +0000 (12:57 +0000)]
Mention more announcement channels in the release making instructions.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74566
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 12:57:41 +0000 (12:57 +0000)]
Remove more exclusions from Inno Setup file.
Some excluded entries were not-existent anyhow (.cvsignore, wxPython, *.pch)
while others could be useful to have (misc).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74565
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 12:57:38 +0000 (12:57 +0000)]
Don't exclude tests from wxMSW-Setup.exe.
The tests are useful to have to be able to check some functionality.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74564
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 12:57:35 +0000 (12:57 +0000)]
Exclude "osx" files, not "mac" ones, from Inno Setup file.
"mac" subdirectories don't exist any more.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74563
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 12:57:32 +0000 (12:57 +0000)]
Remove redundant lines from Inno Setup file.
We don't need to handle the documentation files separately when they are
already taken care of together with everything else anyhow.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74562
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 12:57:29 +0000 (12:57 +0000)]
Document the release scripts really used for making releases.
End the polite fiction that build/tools/create-archive.py is used to build the
release because it isn't and all the last releases were built using different
scripts. Document their use in more details.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74561
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 12:57:26 +0000 (12:57 +0000)]
Remove Inno Setup file dependency on c:\daily path.
Generate the output file in the parent of the sources directory and take care
of copying it to c:\daily in bld_chm_exe.bat itself.
This allows to use wxwidgets.iss without that batch file and also on systems
without c:\ drive at all.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74560
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 12:57:23 +0000 (12:57 +0000)]
Use "INNO" env var in Inno Setup script only if it's defined.
Just use the sources directory itself if %INNO% is not defined. In fact, I
think we could always use the source directory, actually, but just in case
there was some reason to do it like this, keep using %INNO% if it is defined.
Also check that WXW_VER environment variable that we use is, in fact, defined.
FIX: Use relative path, not %WXWIN% in ISS script.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74559
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 12:57:21 +0000 (12:57 +0000)]
Update binaries release notes for 2.9.5.
Correct the compiler versions used and update the checksums.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74558
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 12:57:18 +0000 (12:57 +0000)]
Update SHA1 sums for 2.9.5 release files.
Add CHM and wxMSW setup, remove Headers.7z which is in binaries subdirectory.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74557
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 12:57:15 +0000 (12:57 +0000)]
Add a test for eol-native file existence in the release script.
Otherwise it could silently create a distribution with the files with wrong
EOLs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74556
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 12:57:13 +0000 (12:57 +0000)]
Mention that wxWidgets-x.y.z_Headers.7z must be uploaded to binaries subdir.
This file goes with the binaries, not the sources. Also fix its extension.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74555
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Jul 2013 12:57:07 +0000 (12:57 +0000)]
Make it possible to use svn-find-native-eols script without svn checkout.
This should make it simpler to use it for other people.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74554
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Wed, 17 Jul 2013 10:46:09 +0000 (10:46 +0000)]
fixing parameter name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74552
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 16 Jul 2013 19:16:45 +0000 (19:16 +0000)]
Updated release notes for 2.9.5.
Change the version and update sha1sums.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74551
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 16 Jul 2013 15:47:14 +0000 (15:47 +0000)]
Add manually created VC10 project and solution files for the library.
These files were obtained by importing the VC9 files and then setting up the
dependencies correctly in the solution. This is just a temporary solution and
we'll hopefully generate them with bakefile-1 for the 3.0 release but for now
this is better than nothing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74549
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 16 Jul 2013 14:10:39 +0000 (14:10 +0000)]
Fix insertion of radio menu items in wxOSX wxMenu.
Deal correctly with updating the indices when a radio item is inserted into an
existing radio group (which wasn't done previously and resulted in a unit test
failure in MenuTestCase::RadioItems()) and also with inserting the normal
items before an existing radio group as the stored indices were not updated
correctly.
The code is still ugly and it probably wouldn't be a bad idea to reuse
wxMenuRadioItemsData used in wxMSW for similar purposes, but at least the unit
tests pass now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74548
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 16 Jul 2013 14:10:35 +0000 (14:10 +0000)]
Allow unsetting wxMenuItem as start of radio group too.
This must be called if another radio item is inserted before the current
starting one.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74547
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 16 Jul 2013 14:10:32 +0000 (14:10 +0000)]
No changes, just fix some comments in wxOSX wxMenu header.
Mostly clarify DoInsertOrAppend() comment, the "is"/"if" typo made it rather
unclear.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74546
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 16 Jul 2013 14:10:29 +0000 (14:10 +0000)]
No changes, just renamed "pItem" to "item" in wxOSX menu code.
Get rid of this pseudo-Hungarian notation and make the naming of the variables
consistent across the whole file.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74545
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 16 Jul 2013 14:10:26 +0000 (14:10 +0000)]
Get rid of wxMenu::m_startRadioGroup in wxOSX.
This code was probably copied from wxUniv but was wrong as we can't rely on
the items being always inserted in order. This commit on its own fixes
removing the first radio group menu item but it also makes possible to
properly implement the insertion of new items in the middle of an existing
radio group which couldn't be done with m_startRadioGroup approach at all.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74544
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 16 Jul 2013 14:10:22 +0000 (14:10 +0000)]
Fix harmless unused parameter warning in wxOSX.
We don't use the timestamp in wxNonOwnedWindow::HandleResized().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74543
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 16 Jul 2013 14:10:20 +0000 (14:10 +0000)]
Add wxMenuItem::IsCheck() and IsRadio() accessors.
The latter will be convenient to use in the upcoming changes to wxOSX radio
items management code and add the former for the symmetry.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74542
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 16 Jul 2013 14:10:17 +0000 (14:10 +0000)]
Use [DOMRange markupString] to get selection source.
This DOMRange method, previously used in GetSelectedText(), seems to provide
exactly what we need so there doesn't seem to be any reason to use JS to get
the selection text, especially as it didn't even work under OS X 10.8 and
returned an empty string in the unit test.
The unit test still needs adjustment to pass because we don't get back exactly
the same HTML as we used originally, but with more relaxed matching it does
pass now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74541
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 16 Jul 2013 14:10:14 +0000 (14:10 +0000)]
Return raw text, not markup, from wxWebViewWebKit::GetSelectedText().
Under OS X the markup string was returned, unlike in all the other ports,
resulting in a unit test failure, fix this.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74540
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 16 Jul 2013 14:10:11 +0000 (14:10 +0000)]
No changes, just get rid of some wxT()s in wxString unit test.
They were unnecessary and cluttered the code too much.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74539
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 16 Jul 2013 05:13:35 +0000 (05:13 +0000)]
never return negative client sizes, fixes #15338
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74538
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 22:37:52 +0000 (22:37 +0000)]
Really fix wxUSE_PREFERENCES_EDITOR requirements check.
The changes of r74532 were incomplete/wrong and the fix of r74536 didn't
entirely fix the logic here, so try to do it again, hopefully correctly this
time.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74537
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Mon, 15 Jul 2013 18:04:43 +0000 (18:04 +0000)]
Only disable wxUSE_PREFERENCES_EDITOR if wxUSE_NOTEBOOK is False, not if it's True.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74536
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 15 Jul 2013 17:31:25 +0000 (17:31 +0000)]
keeping selected page, fixes #15334
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74535
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 16:42:10 +0000 (16:42 +0000)]
Move HAVE_WCSXXX from wx/osx/config_xcode.h to wx/osx/chkconf.h.
The latter file is also used when building from the command line while the
former is only used in Xcode build, as its name indicates (which didn't help
me to notice it, however).
Also restore the test for wcsftime() in configure as it is available even on
older systems but do not test for strnlen() -- as it is not.
These changes amend those of r74523.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74534
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Mon, 15 Jul 2013 16:36:20 +0000 (16:36 +0000)]
making sure images are in synch with the pages
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74533
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 15:14:59 +0000 (15:14 +0000)]
Add wxUSE_PREFERENCES_EDITOR and the corresponding configure option.
This was somehow forgotten when wxPreferencesEditor was added.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74532
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 15:14:53 +0000 (15:14 +0000)]
Fix new wxExecute() code compilation with wxUSE_CONSOLE_EVENTLOOP==0.
Nothing is going to work without the console apps/base traits support for the
event loop but at least make it compile.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74531
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 15:14:49 +0000 (15:14 +0000)]
Fix wxGTK compilation in wxUSE_MENUS==0 case.
Add missing check for it to wxWindow::DoFindFocus().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74530
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 15:14:46 +0000 (15:14 +0000)]
Avoid including pipe stream headers when streams are disabled.
Fixes compilation with wxUSE_STREAMS==0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74529
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 01:49:02 +0000 (01:49 +0000)]
Romanian translations update from Cătălin Răceanu.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74528
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 01:48:57 +0000 (01:48 +0000)]
Don't hard code "2.9.3" in the release preparation instructions.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74527
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 01:32:03 +0000 (01:32 +0000)]
Don't use images in wxToolBar with wxTB_NOICONS in wxOSX.
This results in asserts when adding items without bitmaps, but this should be
allowed when using wxTB_NOICONS.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74526
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 01:32:00 +0000 (01:32 +0000)]
Disable wxFont::SetStrikethrough() test under wxOSX.
Strike through support is not available in wxFont under this platform, as
documented.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74525
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 01:31:56 +0000 (01:31 +0000)]
Support using GetTextExtent() with empty string to get descent in wxOSX.
Allow measuring the descent and external leading of an empty string by
measuring just a space instead in wxOSX. This makes the behaviour more
consistent with wxMSW and makes the unit test added in r74464 pass under OS X
too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74524
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 01:31:51 +0000 (01:31 +0000)]
Don't test for wide character functions in configure under OS X.
The tests for these functions may succeed on the system we're running under
but the functions may not be actually available on the system the application
is going to run under (if it's < 10.7).
So use our own replacements for these functions unless 10.7 was explicitly
chosen as the minimal possible version.
An alternative solution could have been to use weak linking but this is more
difficult and there is no real gain (performance would need to be measured
first).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74523
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 01:31:47 +0000 (01:31 +0000)]
Fix totally broken LocaleSetter class in the test suite.
It was based on a completely erroneous assumption that setlocale() returns the
locale that had been previously active when it actually returns the newly set
locale.
This fixes unit test failures in StringTestCase under OS X, as the locale
wasn't correctly restored by DateTimeTestCase that used this class.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74522
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 01:31:43 +0000 (01:31 +0000)]
Fix harmless Clang warning about unused class member in a test.
The m_i field is only used in the currently commented out debugging messages,
suppress a warning about it being unused.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74521
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 01:31:40 +0000 (01:31 +0000)]
Fix harmless Clang warning about an unused function.
GlobalOnAnotherEvent() is not used in normal testing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74520
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 01:31:36 +0000 (01:31 +0000)]
Suppress harmless clang 3.3 warning about unused wxMessageOutputBest field.
Clang detects that a class member is unused (under non-Windows systems) which
is quite impressive but not really useful in this particular case, so suppress
this warning by "using" it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74519
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 15 Jul 2013 01:31:32 +0000 (01:31 +0000)]
Fix error checking in wxFileSystemWatcher::Remove() under OS X.
The boolean return value was compared with -1 which was always false.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74518
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 14 Jul 2013 17:12:48 +0000 (17:12 +0000)]
Disable wxUSE_ENH_METAFILE for wxGTK builds.
This can happen to be defined in wxGTK builds under Windows.
Closes #15332.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74517
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 14 Jul 2013 15:45:00 +0000 (15:45 +0000)]
Make wxMSW wxSpinCtrl "not enough space" messages more helpful.
And also less annoying: remove the messages from DoMoveWindow() which could be
given during resizing but not necessarily corresponded to the final control
size.
And give more details about which control is not being given enough space when
a too small size is given in the ctor.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74516
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 14 Jul 2013 15:26:36 +0000 (15:26 +0000)]
Fix crash in docview code if view initialization failed.
The change of r71371 resulted in using the already destroyed (implicitly, done
as part of destroying the wxView that failed to initialize) wxDocument in
wxScopeGuard destructor.
Avoid this and make the old (i.e. pre-r71371) code exception safe while
keeping its semantics exactly, i.e. only delete all views if the document
still exists.
Also add a comment explaining what's going on here because the ownership rules
in docview code are frankly crazy.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74515
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 14 Jul 2013 14:22:35 +0000 (14:22 +0000)]
Swedish translations update from Jonas Rydberg.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74514
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 14 Jul 2013 11:34:27 +0000 (11:34 +0000)]
Don't use wxCriticalSection in wxWakeUpPipeMT if wxUSE_THREADS==0.
In fact, don't define wxWakeUpPipeMT class at all when not using threads.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74513
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 14 Jul 2013 11:32:46 +0000 (11:32 +0000)]
Don't build tex2rtf and HelpGen utils in non-GUI buildbot builds.
Both of those are obsolete and don't exist in 2.9 any longer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74512
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 14 Jul 2013 11:16:32 +0000 (11:16 +0000)]
support for @2x notation for wxBITMAP_TYPE_PNG (non-resource) on retina displays
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74511
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 13 Jul 2013 23:35:55 +0000 (23:35 +0000)]
Better fix for wxX11 linking problems than r74499.
Fix wxX11 without breaking wxGTK/Windows makefiles generation.
Closes #15327.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74510
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 13 Jul 2013 23:23:27 +0000 (23:23 +0000)]
Restore embedding manifest when using MinGW.
The changes of r73483 broke inclusion of the manifest in the programs built
using MinGW because wxUSE_RC_MANIFEST was never defined. Somehow nobody
complained about it but this resulted in using comctl32.dll 5.80 instead of
6.0 and e.g. problems with toolbar appearance (see #13512).
Do use the manifest by default with MinGW and, in fact, all the other
compilers if any other ones still work, as only MSVC is known to embed the
manifest automatically and we take care of it separately.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74509
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 13 Jul 2013 23:23:23 +0000 (23:23 +0000)]
Remove some completely unused variables from configure.
RESFLAGS, RESPROGRAMOBJ, WIN32INSTALL and AFMINSTALL were not used anywhere so
don't bother defining them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74508
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 13 Jul 2013 23:23:19 +0000 (23:23 +0000)]
Remove the long obsolete and unused since 2.7.0 __WIN95__ define.
Don't confuse things by defining it unnecessarily.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74507
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 13 Jul 2013 23:23:14 +0000 (23:23 +0000)]
Move wx/msw/gccpriv.h inclusion back to wx/platform.h from wx/compiler.h.
Do keep compiler-specific wxCHECK_MINGW32_VERSION() in wx/compiler.h as it's
needed by wx/cpp.h which includes wx/compiler.h only. But put the rest of the
stuff in gccpriv.h in its old place as including it before wx/setup.h didn't
work correctly and was unnecessary anyhow.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74506
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 13 Jul 2013 23:23:08 +0000 (23:23 +0000)]
Use wxNotebook background colour for the tab row background in wxMSW.
The free space near the tabs was always filled with the default light grey
colour, use wxNotebook background colour itself to fill it now.
Do it by changing the code in wxNotebook::OnPaint() to use the background
colour brush and ExtFloodFill() to paint over the default grey, instead of the
patterned background brush which is supposed to be used for the pages area
only and not for the tabs and which was not even taken into account anyhow as
the default window proc erases the entire contents of the DC we pass to it
anyhow (at least in the default top-aligned tabs case).
Also inherit the background colour from parent by default now, this ensures
that wxNotebook blends with its parent when its background colour has been
explicitly set by default, without the need to call its SetBackgroundColour()
explicitly.
See #13745.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74505
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 13 Jul 2013 23:23:01 +0000 (23:23 +0000)]
Add a possibility to change the layout direction in the widgets sample.
This allows to test whether a widget is drawn correctly in RTL variant as well
as the default LTR one easily.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74504
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Sat, 13 Jul 2013 21:59:26 +0000 (21:59 +0000)]
Regenerated Xcode projects.
Updated the Xcode projects to include wakeuppipe.cpp.
Also fixes the wxiphone project which appeared to have 2 source file references concatenated (stattext.mm and slider.mm) since the last commit. This unfortunately happens sometimes when running makeprojects.applescript.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74503
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 13 Jul 2013 20:07:51 +0000 (20:07 +0000)]
Use "MSW" and "Windows" more accurately to avoid confusion.
"MSW" is used as the name of toolkit using the standard Windows UI while
"Windows" is the name of the OS under which wxGTK can be now used too (in
addition to wxMSW).
This terminology is not perfect but at least let's keep it unambiguous.
Closes #15328.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74502
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Sat, 13 Jul 2013 16:28:45 +0000 (16:28 +0000)]
deleted svn:executable property from src/expat/ files that don't need it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74501
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 13 Jul 2013 14:58:45 +0000 (14:58 +0000)]
Use Cocoa by default under OS X in configure.
Carbon is deprecated.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74500
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 13 Jul 2013 13:03:09 +0000 (13:03 +0000)]
Do include src/generic/animateg.cpp in wxUniv/X11 sources.
This fixes linking of the widgets sample when using wxUniv/X11.
It partially reverts the changes of r73290 which only included this file in
some selected ports instead of all of them for some reason.
Closes #15327.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74499
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775