Commit Graph

52876 Commits

Author SHA1 Message Date
Vadim Zeitlin
ea9fee8541 Correct Javanese language code.
It is "jv" and not "jw", the latter was an error in a previous edition of ISO
639 standard and was corrected since then.

Closes #13131.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-10 15:35:56 +00:00
Julian Smart
c1dd924de0 Correction to position in character insertion event when also deleting selected text.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-09 10:28:45 +00:00
Stefan Csomor
26632ccd72 fixing configure builds for iphone
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-09 09:22:51 +00:00
Stefan Csomor
89db201aba see #9715
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-08 16:31:12 +00:00
Stefan Csomor
bbca44f104 workaround OSX bug, fixes #4555
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-08 15:09:38 +00:00
Stefan Csomor
f27479e6bd support 3.X deployment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-08 12:16:41 +00:00
Jouk Jansen
472b795e53 Update OpenVMS compile support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-08 08:08:10 +00:00
Stefan Csomor
9061b0300c adding 10.5 APIs to avoid CGErrors, fixes #13121
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-07 12:55:36 +00:00
Paul Cornett
736722fb4d build fix for wxUSE_LOG==0
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-06 17:04:12 +00:00
Paul Cornett
4c2ea5999b avoid GCC warning "suggest braces around empty body in an ‘else’ statement"
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-06 17:03:31 +00:00
Paul Cornett
628e8d444c fix typo from r67326
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-06 17:02:28 +00:00
Vadim Zeitlin
02c9435466 Fix vararg function in wxXml unit test broken by recent changes.
The changes in r67345 changed CheckXml() vararg function to take a reference
as the first argument but this doesn't work with va_start(), so revert to
using a pointer here.

This fixes the current unit test failures in the XML tests.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-06 16:37:24 +00:00
Vadim Zeitlin
3672f9d04d Avoid dereferencing invalid iterator in wxMessageDialog code.
The iterator wxString::rbegin().base()+1 is invalid so check that we don't use
it.

Closes #13126.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-06 14:37:36 +00:00
Vadim Zeitlin
cee25be77b Correctly restore the old locale in wxXLocale functions.
In non-wxHAS_XLOCALE_SUPPORT case we didn't restore the original locale
correctly in wxStrtoxxx_l() functions as the return value of wxSetlocale() was
incorrectly assumed to be the old locale instead of the new one.

Fix this and also replace the macros used by the old code with a small helper
class, this simplifies the code and is less ugly.

Finally add a unit test which failed before these changes when the program ran
in any non-C locale but passes now.

Closes #13117.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-06 14:37:32 +00:00
Vadim Zeitlin
fd1c361c33 Fix incorrect use of setlocale() in wxLocale::IsAvailable().
The return value of setlocale() was used incorrectly in this code: it
represents the newly set locale and not the previously active one so we didn't
actually restore the original locale before.

Fix the code and check that we do actually restore the locale in a new unit
test for it.

See #13117.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-06 14:37:27 +00:00
Jouk Jansen
3668a4f69e Update OpenVMS compile support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-06 08:53:57 +00:00
Jouk Jansen
655e246b86 Fix for broken wxGTK1 compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-06 08:47:45 +00:00
Vadim Zeitlin
e042c3b582 Don't do anything in WX_ASSERT_FAILS_WITH_ASSERT when wxDEBUG_LEVEL==0.
We can't test for assert failure when using a build of wxWidgets in which
asserts don't exist at all.

Closes #13119.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-05 22:29:58 +00:00
Vadim Zeitlin
cda937864f Fix VarArgTestCase compilation when type traits are unavailable.
When type traits are unavailable we can't check whether a type can be passed
to a vararg function but we still need to pass a copyable object to
wxString::Format() for the code to compile, even if we just want to check that
it will fail with the assert at run-time.

Closes #13118.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-05 22:29:55 +00:00
Paul Cornett
04e4045183 build fix for gtk1
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-05 15:50:54 +00:00
Dimitri Schoolwerth
88def1632e Compilation fixes for wxUSE_LOCALE and wxUSE_XLOCALE set to 0.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-04 22:07:42 +00:00
Julian Smart
326c0adbfc Corrected XML conversion in style names and face names
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67389 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-04 17:56:53 +00:00
Julian Smart
b3169c12bc Further commenting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-04 17:55:56 +00:00
Dimitri Schoolwerth
3fdcd5d5ab Changed licence references to "wxWindows licence".
Use "wxWindows licence" and not "wxWidgets licence" and also use British spelling for licence. Updated new occurrences in recently added files and a couple of previously (r64940) missed ones.

See #12165.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-04 09:21:52 +00:00
Dimitri Schoolwerth
a5a0ba3dbd Fixed failing image test.
ImageTestCase::DibPadding was always failing due to differences in pixel data between the decoded GIF and encoded ICO image. Instead of comparing image content just check if the saving of the ICO succeeds (prior to r67296 it would crash).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-03 22:41:58 +00:00
Dimitri Schoolwerth
fa68bafba7 No code changes, fixed forgotten typo that is a part of r67384.
See #13076.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-03 20:52:18 +00:00
Dimitri Schoolwerth
d13b34d3f2 No code changes, fixed various typos.
Applied patch by snowleopard2 fixing typos in interface/. Extended the fixes throughout trunk.

Closes #13076.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-03 20:31:32 +00:00
Paul Cornett
a17305ea87 For wxGTK2, link with X11 explicitly, since we use many X11 functions directly.
Some linkers, notably newer Linux ones, don't implicitly link against dependent libs
Fixes #13100


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-03 05:19:59 +00:00
Vadim Zeitlin
640a1b8474 Disable wxUSE_STD_CONTAINERS by default for MSVC6.
This compiler can't compile its own standard headers with the default options
as it overflows an internal heap. Disable the use of standard containers by
default for it to avoid this problem and indicate that /Zm option must be used
to avoid this.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-02 23:31:27 +00:00
Paul Cornett
ba9eca1aef make sure value label updates even if handle position does not change, fixes #13042
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-02 22:19:44 +00:00
Paul Cornett
8ca8714b3c need to override DoGetBestClientSize() to get correct size, fixes #13088
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-02 20:43:29 +00:00
Paul Cornett
4f4f76dee4 fix overwrite of upper left part of parent window with sunken/raised border, fixes #13072
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-02 18:28:52 +00:00
Vadim Zeitlin
b2a1c6f51b No real changes, just some more minor cleanup in wxSVGFileDC.
Harmonize spaces, remove unnecessary semicolons, remove useless return
statements from void functions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-02 16:38:04 +00:00
Vadim Zeitlin
af58e08750 Remove wxSVG_DEBUG from wxSVGFileDC.
Remove the weird wxSVG_DEBUG which could apparently be used to trace the code
execution by triggering asserts in all functions. This is really not the right
way to implement tracing and seems pretty useless, just remove it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-02 16:38:02 +00:00
Vadim Zeitlin
85675f1019 Clean up of string operations in wxSVGFileDC code.
Use operator+=() instead of "s = s + ...".

See #13086.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-02 16:37:58 +00:00
Vadim Zeitlin
403695b323 Add support for alpha channel in colours in wxSVGFileDC.
Use stroke-opacity and fill-opacity SVG attributes to handle pens and brushes
created from colours with alpha channel in wxSVGFileDC.

Closes #13086.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-02 16:37:54 +00:00
Vadim Zeitlin
b72ed64277 No changes, just merge some strings in wxSVGFileDC.
Concatenate string literals at compile-time instead of run-time.

See #13086.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-02 16:37:50 +00:00
Vadim Zeitlin
f645356813 Use wxPENSTYLE_XXX and wxBRUSHSTYLE_XXX instead of wxXXX constants.
Use non-deprecated constants in wxMSW wxGC code.

Closes #13109.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-02 16:37:44 +00:00
Paul Cornett
554895848b build fix for GTK1 after r67299
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-01 16:20:17 +00:00
Jaakko Salli
df3c4a42d9 Added wxComboPopup::DestroyPopup(), which responsibility is to call Destroy() for the popup control and also delete the combo popup object itself. The default implementation should be able to handle common cases.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-31 17:22:51 +00:00
Julian Smart
a3c125765f Buffer size calculation correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-31 13:11:14 +00:00
Jouk Jansen
4ac8367504 Update configuration for OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-31 10:52:30 +00:00
Vadim Zeitlin
3130a8d014 Compilation fix for wxUSE_STL==1 build after r67356.
An explicit conversion to char* is required in wxUSE_STL build.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-31 10:08:41 +00:00
Vadim Zeitlin
b129eaa377 Implement wxGraphicsContext::GetSize() for Cairo.
As the implementation of this method is basically the same for all ports move
it to the base class itself instead of requiring the derived classes to
implement it. Now the derived classes need to fill in m_width and m_height
members instead.

Do fill them when creating wxGraphicsContext in Cairo version.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67359 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-31 09:38:03 +00:00
Vadim Zeitlin
cdcc1edaf2 Tentative compilation fix for wxMSW with MinGW after STL changes.
Include wx/stack.h, which includes the standard <stack> header, before
<windows.h> as the latter redefines min and max as macros conflicting with the
standard headers.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-31 09:37:59 +00:00
Vadim Zeitlin
6e793355df Add wx/msw/panel.h to the list of wxMSW headers in bakefile.
Also move src/msw/panel.cpp to the list of normal wxMSW sources from the list
of low-level ones as it's not needed by wxUniv.

Closes #13103.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-31 09:28:47 +00:00
Vadim Zeitlin
f0e52da8dc Fix alpha handling in CSS syntax in wxColour in non-"C" locale.
Use locale-independent functions to parse and generate the floating point
alpha representation in CSS syntax for colours to make it work in locales
which don't use period as decimal separator.

Closes #13077.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-31 09:28:41 +00:00
Vadim Zeitlin
a99a3029c8 Fix HMENU to wxMenu translation in wxMSW code.
We didn't find the menus corresponding to the submenu handles. This resulted
in incorrect processing of EVT_UPDATE_UI events for the submenus and probably
other problems.

Fix this by searching for the HMENU recursively in all menus.

Closes #13080.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-31 09:28:38 +00:00
Vadim Zeitlin
40cb56e248 Document unexpected wxWindowDisabler taskbar UI in wxMSW.
It may be unexpected that the application can still be closed from the taskbar
even if its main window is disabled. Mention this in the documentation and
indicate how to prevent this from happening if required.

Closes #13081.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-31 09:28:34 +00:00
Vadim Zeitlin
25941fc53b Correct wxGraphicsContext::StrokeLines(n, points) documentation.
This method draws a single polyline.

Closes #13099.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-03-31 09:28:30 +00:00