Commit Graph

62822 Commits

Author SHA1 Message Date
Vadim Zeitlin
7df843f396 Don't document wxDataViewModel notification methods as virtual
This is just wrong, they're virtual in wxDataViewModelNotifier, but not
in wxDataViewModel itself.

Closes #17928.
2017-07-29 20:39:26 +02:00
scootergrisen
132ad714c5 Complee Danish translation 2017-07-27 13:39:03 +02:00
Troels Knakkergaard
d255dc6706 Do not set wxUnknownControlContainer background to a fixed color
Don't explicitly set the background colour if it's not specified.

Closes #17675.
2017-07-27 13:26:00 +02:00
Vadim Zeitlin
9592823cde Add missing wxOVERRIDE to wxNSText{Field,View}Control in wxOSX
No real changes, just avoid (tons of) -Winconsistent-missing-override
warnings when building wxOSX.
2017-07-25 16:23:02 +02:00
Vadim Zeitlin
df37c4f9e9 Add missing file required by Expat 2.2.2
Expat configure fails without this file.

See https://github.com/wxWidgets/wxWidgets/pull/524
2017-07-25 16:03:22 +02:00
Paul Cornett
a533fb141d Fix unresponsive frame after using wxHtmlHelpFrame from a dialog. See #17837 2017-07-24 08:56:59 -07:00
Artur Wieczorek
572ec50827 Implement wxTextCtrl::ShowPosition() (wxOSX)
Closes #17811.
2017-07-22 22:23:34 +02:00
Artur Wieczorek
d233b8939b Implement wxTextCtrl::PositionToXY() and XYToPosition() (wxOSX)
Apparently there is no native API to retrieve such information in a simple
way so all calculations have to be done with raw text stored in
the corresponding control(s).

Closes #4146.
See #17811.
2017-07-22 22:23:34 +02:00
Paul Cornett
c4acd5f9dd Fix drawing miniframe resize grip with GTK3, see #17918 2017-07-22 12:04:56 -07:00
Stefan Csomor
537cf17ca9 Supporting updated expat for Xcode builds 2017-07-21 16:52:39 +02:00
Paul Cornett
0c06fc6358 Avoid unused parameter warnings 2017-07-20 08:51:36 -07:00
Paul Cornett
f23d3e45b0 Use correct signature for C callbacks 2017-07-20 08:34:05 -07:00
Paul Cornett
ccb8da2054 Fix build error after dfd03f5 2017-07-20 08:10:33 -07:00
Cătălin Răceanu
305ff51314 Add check for wxUSE_EXTENDED_RTTI to the xti sample header
The sample requires wxUSE_EXTENDED_RTTI to be enabled, and that is correctly signalled
in the source files. Just avoid the header flooding the output with errors.

Closes https://github.com/wxWidgets/wxWidgets/pull/525

* Removed BOM.
2017-07-20 00:20:25 +02:00
Vadim Zeitlin
ca96abd119 Remove more hard-coded wxSpinCtrl sizes from the aui sample
This should have been part of 672cf7d199
and is done for the same reason: hard-coding control width to 50
truncates it under wxGTK3 as it's much wider than this there.

Closes #17919.
2017-07-19 21:04:20 +02:00
Vadim Zeitlin
a43e25c3d6 Fix wxWebViewWebKit build with WebKit2 < 2.8
This allows this code to be compiled with WebKit2 2.6 included in Debian
Jessie.

Closes https://github.com/wxWidgets/wxWidgets/pull/519
2017-07-19 15:58:09 +02:00
Vadim Zeitlin
88a767773f Fix harmless warning about bool conversion in wxGenericColourButton
Make the conversion explicit to avoid MSVC warning C4800 about it being
done implicitly (which appears in release builds only).
2017-07-18 21:33:24 +02:00
VZ
1f6cd7a780 Upgrade bundled expat to 2.2.2+
Merge https://github.com/wxWidgets/wxWidgets/pull/524
2017-07-18 01:51:46 +02:00
Vadim Zeitlin
2fffbde096 Change wxSecretStore API to allow retrieving the username
The old API didn't make any sense for the most common case when both the
user name and password need to be stored, as it required providing the
user name as input, which couldn't work (but somehow this went
unnoticed for more than a year...).

Fix this by returning the username, and not only the password, from
Load() instead of taking it as parameter and removing this parameter
from Delete() as well.

Also improve the documentation, notably include a simple example of
using this class.

Notice that this is a backwards-incompatible change, but the old API was
really badly broken and didn't appear in 3.1.0 yet, so the breakage is
both unavoidable and, hopefully, shouldn't affect much code.
Nevertheless, a special wxHAS_SECRETSTORE_LOAD_USERNAME symbol is added
to allow testing for it if necessary.
2017-07-17 18:26:20 +02:00
Cătălin Răceanu
5e9d9dc2f9 Define XML_STATIC in Expat header rather than Expat projects.
This defines XML_STATIC unconditionally in Expat sources themselves as the built-in Expat is always used as a static library, so this solution is simpler and more portable.
2017-07-17 02:54:13 +03:00
Cătălin Răceanu
791fa1050d Update libexpat to commit 5f1f1f1d98fef39ef885d4271029b4c3fd814a2d, after version 2.2.2 2017-07-17 02:52:00 +03:00
PB
362b1220b4 Fix a few more BSTR leaks in wxWebViewIE
Use wxBasicString to ensure that temporary BSTRs are correctly freed.
2017-07-16 23:04:22 +02:00
Artur Wieczorek
54275bb2c9 Fix positioning of ComboBoxEditor in wxPG (wxOSX), cont.
By mistake, parameter for improper platform was set in dd9c08447e.
2017-07-16 20:58:34 +02:00
Artur Wieczorek
97b6244748 Fix positioning of TextCtrlEditor in wxPG (wxOSX), cont.
By mistake, improper value was used in 836bbcbfcb.
2017-07-16 20:57:38 +02:00
Vadim Zeitlin
3e7f70f368 Merge branch 'fix-basicstring-use'
Fix recently introduced bug in wxWMP10MediaBackend and simplify
wxBasicString.

See #17889.

Closes https://github.com/wxWidgets/wxWidgets/pull/515
2017-07-16 20:00:44 +02:00
Artur Wieczorek
6395e7805a Fix repositioning of active property editor in wxPG
When there is open an editor for some property and in the same time
wxPropertyGrid layout is changed (due to the adding or removing a property,
sorting), it is necessary to recalculate the actual position of the active
editor to display it in the cell dedicated for the edited property. Under
some platforms the position of the edit control is shifted within the cell
and we have to take this shift into account in repositioning process.
Because actual value of the shift depends on the platform and on
the particular control, it is convenient to determine actual shift when
the editor is created and use this value whenever repositioning is done.

Close #17912.
2017-07-16 19:38:08 +02:00
Artur Wieczorek
dd9c08447e Fix positioning of ComboBoxEditor in wxPG (wxOSX)
Position of the combo box editor associated with properties having custom
bitmaps like e.g. ColourProperty, needs to be adjusted in order to display
edited text at the same position as the text which is displayed as
a property value prior to the editing.
2017-07-16 19:13:37 +02:00
Artur Wieczorek
836bbcbfcb Fix positioning of TextCtrlEditor in wxPG (wxOSX)
Position of the editor associated with properties like StringProperty,
IntProperty, etc. needs to be adjusted in order to display edited text
at the same position as the text which is displayed as a property value
prior to the editing.
2017-07-16 19:12:20 +02:00
Artur Wieczorek
9994288688 Fix positioning of ComboBoxEditor in wxPG (wxGTK)
Position of the combo box editor associated with properties having custom
bitmaps like e.g. ColourProperty, needs to be adjusted in order to display
edited text at the same position as the text which is displayed as
a property value prior to the editing.
2017-07-16 19:09:18 +02:00
Artur Wieczorek
3212f7eab9 Fix positioning of TextCtrlEditor in wxPG (wxGTK)
Position of the editor associated with properties like StringProperty,
IntProperty, etc. needs to be adjusted in order to display edited text
string at the same position as the text which is displayed as a property
value prior to the editing.
2017-07-16 19:03:38 +02:00
Artur Wieczorek
afdb7eca87 Use quotes and not angle brackets around the includes of wxWidgets itself 2017-07-16 18:31:54 +02:00
Paul Cornett
a03c2ef4e0 Fix wxComboBox entry sizing with GTK+ >= 3.20, see #17852 2017-07-16 09:09:06 -07:00
Vadim Zeitlin
10f7d35694 Remove unwanted CR characters from MSW OLE source file
Somehow recent changes to this file added CRs (^M) characters to the
ends of some lines, remove them to avoid having a mix of Unix and DOS
EOLs in the same file.

No real changes.
2017-07-16 16:32:52 +02:00
PB
4ebef67e3e Update update constructing wxBasicString from literal strings
No real changes, just replace wxT() with wxS() as wxBasicString ctor now
that it takes wxString and not "const wchar_t*" and remove the now
unnecessary explicit "wxString()".
2017-07-16 16:32:51 +02:00
PB
cfb3ef98fc Make wxBasicString as simple and safe to use as possible
Don't try to write a general purpose class, but provide just the methods
that we need in our code.

This fixes the bug added in 294436c8bb
which resulted in a crash because a literal string, not a BSTR, was
passed to wxBasicString ctor.
2017-07-16 16:32:50 +02:00
Vadim Zeitlin
bde5e535dc Merge branch 'more-msw-ignore'
Ignore MSW build directories for more compilers.
2017-07-16 16:04:49 +02:00
Vadim Zeitlin
a07013a6f1 Tab navigation improvements for wxOSX
Closes #17341.

Closes https://github.com/wxWidgets/wxWidgets/pull/493
2017-07-16 15:59:48 +02:00
Vadim Zeitlin
16fdbb4e97 Credit ikamakj for the tab navigation fixes in wxOSX
See the description of https://github.com/wxWidgets/wxWidgets/pull/493.
2017-07-16 15:58:27 +02:00
Vadim Zeitlin
4defd593dc Compilation fix for wxOSX when not using PCH
Explicitly include wx/containr.h in a header using wxNavigationEnabled.
2017-07-16 15:57:54 +02:00
Vadim Zeitlin
de3087c0de Tab navigation improvements for wxOSX
Closes https://github.com/wxWidgets/wxWidgets/pull/493
2017-07-16 15:52:38 +02:00
Vadim Zeitlin
d34dd2f92f Ignore build directories under tests/benchmarks 2017-07-16 15:47:04 +02:00
Vadim Zeitlin
5456345bb9 Ignore more bakefile-generated MSVS solutions under tests
This covers test_vc*.sln too.
2017-07-16 15:46:11 +02:00
Vadim Zeitlin
c0199ccfd2 Ignore samples, demos, tests build directories for all compilers
Generalize the "vc_msw*" exclusions under the other directories
(samples, demos, tests, utils) to all compilers and versions, like it
was already done for the directories under build/msw.
2017-07-16 15:43:14 +02:00
Vadim Zeitlin
05e7916938 Ignore build/msw/wx_local.props file
It is supposed to be used for local installation only and never be
checked in.
2017-07-16 15:34:14 +02:00
Vadim Zeitlin
d52c86fa63 Add another email address for Steve Browne
Ensure that "git log --use-mailmap" shows committer email consistently.
2017-07-16 15:22:05 +02:00
Steve Browne
1525e84e56 Fix unwanted refreshes when setting size of wxChoice in wxMSW
The window was still resized even if its size didn't really change,
which, in particular, unexpectedly resulted in closing its drop down if
it was shown.

Fix this by moving the code dealing with the different interpretation of
the control height between wxMSW and MSW (for the former, it's just the
height of the visible part, while for the latter it includes drop down
as well), from wxChoice::DoSetSize() to DoMoveWindow(). This allows the
base class DoSetSize() to correctly filter out calls not really changing
the size, while still setting the height correctly when it does change.

See #17075.

See https://github.com/wxWidgets/wxWidgets/pull/389
2017-07-16 15:17:03 +02:00
Vadim Zeitlin
0bae199ffe Merge branch 'msw-locale'
Fixes for setting locale under MSW when using older compilers and minor
simplifications and optimizations in wxLocale code.

See https://github.com/wxWidgets/wxWidgets/pull/517
2017-07-16 15:04:16 +02:00
Vadim Zeitlin
019e9d041f Fix setting locale under MSW when using locale name
Previously, all MSW-specific stuff like calling SetThreadLocale() and
SetThreadUILanguage() was only done when initializing wxLocale from a
wxLanguage value, but not when using a string name for it.

Fix this by implicitly calling Init(wxLanguage) from Init(wxString) if
we can find the language corresponding to the given name, and if the
other parameter is not incompatible with it.
2017-07-16 15:03:24 +02:00
Vadim Zeitlin
8cb4e70064 Refactor wxLocale initialization code
Don't call wxSetlocale() in DoInit() any more, this was redundant when
it was called from Init(wxLanguage) overload.

Add new DoCommonPostInit() called from both Init() overloads after
setting the locale in whichever way they do it to avoid code
duplication.

As a side effect of this change, the error message given if the locale
can't be set is the same now independently of the ctor/Init() overload
used (previously it differed depending on whether a wxLanguage or the
name of the language as string was passed) and it's always logged using
wxLogWarning() and not it in one case and wxLogError() in the other one.
2017-07-16 15:03:22 +02:00
Vadim Zeitlin
2deca99789 Don't duplicate "ret" flag in wxLocale::Init()
Simplify the code by just using "retloc != NULL" as success indicator
until the call to DoInit() instead of keeping a separate "bool ret"
variable in sync with "retloc".
2017-07-16 15:03:20 +02:00