Commit Graph

55730 Commits

Author SHA1 Message Date
Vadim Zeitlin
bfa78c63b9 Use wmain() if supported by the compiler/CRT instead of main().
This avoids a needless conversion from (originally Unicode) command line to
ANSI by the CRT and conversion back by wxWidgets and, especially, ensures that
there is no data loss if the Unicode command line arguments can't be converted
into the current charset.

See #14580.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-30 20:19:57 +00:00
Vadim Zeitlin
6ae941a68c Dutch translations update from Thomas De Rocker.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-30 10:18:35 +00:00
Václav Slavík
ee915a646f Include gettext MO files in distribution archives.
It's the usual thing to do. Ideally, we'd also compile them as part of
build process, at least on Unix, but this is better than nothing.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-30 09:59:14 +00:00
Stefan Csomor
f43a398892 avoid duplication in native dialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-29 12:17:31 +00:00
Stefan Csomor
8556919437 use global NSLayoutManager
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-29 12:16:36 +00:00
Stefan Csomor
befe64edb4 add global NSLayoutManager instance
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-29 12:15:50 +00:00
Stefan Csomor
ee6a122fa3 fixes #13557
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-29 12:01:19 +00:00
Stefan Csomor
3e43dbc6c7 temporary workaround
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-29 11:20:23 +00:00
Stefan Csomor
18d5c52d67 propagating font to the individual columns, changing row heights according to font size, fixes #14578
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-29 09:00:51 +00:00
Stefan Csomor
87fcb4945a remove duplicate code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-29 07:11:20 +00:00
Stefan Csomor
0d50568033 fixing usage of load states, set controller visible correctly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-28 19:00:23 +00:00
Steve Lamerton
66ac040060 Add support for searching and highlighting a wxWebView.
Currently supports WebView on GTK and IE. Closes #14045.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-28 17:13:13 +00:00
Jouk Jansen
de3d7096fe Update of OpenVMS compile support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-28 06:27:50 +00:00
Jouk Jansen
117f3eaaa7 compilation fix for case that wxHAS_RAW_BITMAP is NOT defined
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-28 05:57:14 +00:00
Vadim Zeitlin
95bf8d1b76 Refreshed all source message catalogs.
Ran "make allpo" to update the catalogs with the new strings.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-27 09:53:46 +00:00
Vadim Zeitlin
717ca626ae Chinese translations update from Jiawei Huang.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-27 09:53:08 +00:00
Stefan Csomor
43321b802f reverting for the moment, original problem #12227, this leads eg in the mediaplayer sample to a non-show of the noteobook page
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-27 06:36:40 +00:00
Vadim Zeitlin
45f0926d41 Avoid crashes when creating initially hidden MDI child under Unity.
Ignore "hide" signals for the menus without associated shown window. Ubuntu
Unity sends them and we crashed because of a recursive assert in the
corresponding signal handler before.

Now the code doesn't crash any more but the menus still don't behave correctly
when the last MDI child is destroyed.

Closes #13593.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-26 16:35:02 +00:00
Julian Smart
e64dd5d652 Fixed typo in dialog project file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-25 18:04:11 +00:00
Julian Smart
31f95a7faf Fixed a problem with text effects flag always being set on dialog exit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-25 18:03:23 +00:00
Václav Slavík
270bae200d Make sure wchar_t CRT functions work on OS X.
In OS X and iOS, wchar_t CRT functions convert to char* and fail under
some locales. The safest fix is to set LC_CTYPE to UTF-8 to ensure that
they can handle any input.

Note that this must be done for any app, Cocoa or console, whether or
not it uses wxLocale.

See http://stackoverflow.com/questions/11713745/why-does-the-printf-family-of-functions-care-about-locale

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-25 11:14:44 +00:00
Václav Slavík
bb0907b743 Test if wxString::Format() works with non-ASCII format string.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-25 11:14:17 +00:00
Stefan Csomor
ebefc86eae simpler implementation that also works over remote connections by Kevin O.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-25 09:38:12 +00:00
Vadim Zeitlin
4d1155501b Ukrainian translations update from Yuri Chornoivan.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-24 22:08:28 +00:00
Vadim Zeitlin
a1d6c5df6f No changes, just a typo fix in wxRichTextCtrl UI code.
s/minmum/minimum/g

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-24 22:08:05 +00:00
Jouk Jansen
bc9d3d911c updated setup.h for OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-23 14:44:29 +00:00
Jouk Jansen
c4921f7b3b updated setup.h for OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-23 13:43:18 +00:00
Vadim Zeitlin
146b0f259e Added Nepali translation.
Thanks to Him Prasad Gautam and Mesar Hameed.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-22 21:22:31 +00:00
Vadim Zeitlin
efc1880dc4 Finnish translations update from Jani Kinnunen.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-22 21:22:04 +00:00
Julian Smart
122977406d Latvian translation improvements
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-17 09:09:21 +00:00
Robin Dunn
6496e8e32e Correct a missing apostrophe in a doc string.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72350 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-16 00:42:40 +00:00
Robin Dunn
b0c1857ea2 Use the popup's background as a border on wxGTK too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-16 00:42:35 +00:00
Vadim Zeitlin
083ec26fb7 Fix bug in ribbon bar label size calculation.
Due to an off by 1 error in wxString::Mid() call, the size computed was too
small and hence the label could have been not displayed at all.

Fix this and also replace Mid(0, n) with a more clear Left(n) call.

Closes #14566.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-15 23:34:40 +00:00
Vadim Zeitlin
70f86dedfd Add page highlighting to wxRibbonBar.
Allow visually highlighting a page to make it more noticeable to the user.

Closes #14527.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-15 23:34:36 +00:00
Vadim Zeitlin
f2f0e4bea1 Fix AUI appearance when a maximized pane becomes floating.
The other panes were not previously restored, resulting in bad appearance and
behaviour. Do restore them now before making the previous maximized pane
floating.

Closes #14460.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-15 23:34:31 +00:00
Vadim Zeitlin
93b87dd910 Respect item max sizes in wxBoxSizer.
Don't give more space than the max size, if set, to wxBoxSizer elements.

Closes #11497.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-15 23:34:27 +00:00
Vadim Zeitlin
465de0be70 No real changes, just add wxSizerItem::AddBorderToSize() helper.
Factor out this function from GetMinSizeWithBorder() as it will be used for
max size too in a next commit.

See #11497.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-15 23:34:22 +00:00
Vadim Zeitlin
054fdb68eb Honour window min and max sizes in wxWindow::GetBestSize().
The best size of the window should be at least as large as its min size and
less than its max size. This allows to override the windows own best size
determination with an explicit SetMinSize() or SetMaxSize() call.

See #11497.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-15 23:34:18 +00:00
Vadim Zeitlin
7d17499993 Add wxSize::DecToIfSpecified() helper.
This is similar to DecTo() but can be used even if the wxSize argument has
some components set to -1.

Notice that we don't need IncToIfSpecified() because IncTo() already works
correctly anyhow in this case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-15 23:34:15 +00:00
Vadim Zeitlin
532324df23 Don't generate events from wxSpinCtrl::SetRange() in wxMSW.
Other ports don't send wxEVT_COMMAND_SPINCTRL_UPDATED from SetRange() even if
the value changed because it was adjusted to fit into the new range and this
makes sense as this change is not due to a user action, so don't send this
event under wxMSW neither.

Also add a unit test checking for this behaviour.

Closes #14583.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-15 23:34:10 +00:00
Vadim Zeitlin
947873e263 Restore the use of wxListCtrl in report view in wxListbook.
This reverts r71965 for wxMSW as the list mode there doesn't work correctly if
there are sufficiently many items: the native control insists on laying them
out in multiple columns which is inappropriate for wxListbook, so use report
mode for horizontal wxListbooks. Do use the list mode in the vertical case as
we do want to have multiple columns -- and not rows -- then.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-15 11:34:46 +00:00
Vadim Zeitlin
524a2c6e51 Fixes for forwarding events to parent in wxGenericListCtrl.
Set the event object and the event ID correctly, i.e. to the values
corresponding to the main wxListCtrl itself, when forwarding mouse and
keyboard events from wxListMainWindow to wxListCtrl.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-15 11:34:43 +00:00
Robin Dunn
c4bdd8225a fix some compile warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-14 07:13:39 +00:00
Robin Dunn
d01ca1e4d1 Update the wxVersionInfo, and don't forget to initialize the new attributes of the event class.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-14 05:55:23 +00:00
Robin Dunn
65d6e39ba3 Update stc interface docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-14 05:55:15 +00:00
Robin Dunn
54173563c3 Update new names to conform, add new event types and event attributes, etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-14 05:55:08 +00:00
Robin Dunn
9b01abb82d Minimal tweaks and additions to get wxSTC compiling successfully again, with Scintilla 3.21
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-14 05:14:46 +00:00
Robin Dunn
0926a31276 fix a couple typos
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-14 05:14:35 +00:00
Robin Dunn
6342ec7aba rebake make/project files for new scintilla
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-14 05:14:27 +00:00
Robin Dunn
1dcf666dc7 Initial copy of Scintilla 3.21 code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-14 05:14:09 +00:00