Commit Graph

61253 Commits

Author SHA1 Message Date
Vadim Zeitlin
72e68c9d9d Update MSVS 200x projects after 3.1.1 version change
Rebake them using bakefile to really take the version change into account.
2016-03-05 15:46:15 +01:00
Vadim Zeitlin
8fbf2bdc78 Revert "Manage VC[789] project files with upmake too"
This reverts commit ebd33579fd because upmake is
not enough for the version updates, we still need to use bakefile for this.
2016-03-05 15:34:45 +01:00
Troels Knakkergaard
bc6eba6043 Reset the parent MDI menu after destroying MDI child in wxMSW
This is necessary to avoid menu corruption in case the child creation fails.

Closes #17315.
2016-03-05 04:04:20 +01:00
Troels Knakkergaard
2ae17ee168 Allow customizing wxGenericProgressDialog style and minor cleanup
Use wxDEFAULT_DIALOG_STYLE by default but allow changing it before really
creating the dialog.

Also use CreateStdDialogButtonSizer() to make the code a bit more high level.

Closes #17275.
2016-03-05 03:48:37 +01:00
Troels Knakkergaard
d5453228aa Fix wxTextEntryDialog parent when using wxTE_MULTILINE
Due to a clash between numeric values of wxTE_MULTILINE and wxDIALOG_NO_PARENT
text entry dialogs for multiline text didn't have a parent.

Fix this by always using a parent for them, which is better than never doing
it, even if still not ideal.

Closes #17136.
2016-03-05 03:37:02 +01:00
Troels Knakkergaard
c9a3a23e5a Add wxHtmlPrintout::SetMargins(wxPageSetupDialogData) overload
Make it simpler to set the user-configured margins.

Closes #16872.
2016-03-05 03:33:08 +01:00
Troels Knakkergaard
10a2049093 Right align sizes in wxGenericFileDialog
Numeric values should be right-aligned.

See #17060.
2016-03-05 03:21:57 +01:00
Troels Knakkergaard
cda7209101 Add wxFileType::GetExpandedCommand()
This new method allows to get the command expanded with the given file name
for commands other than "Open" and "Print".

Closes #17367.
2016-03-05 03:09:59 +01:00
Sebastian Dröge
6ea8ba1e9c Add GstPlayer 1.7.2.1+ based GStreamer backend
Use new simpler API available in the latest GStreamer if available.

Closes #226.
2016-03-05 02:52:59 +01:00
Vadim Zeitlin
b07ce632b6 Regenerate configure for 3.1.1
Forgot to do this in 7eee3576cf
2016-03-05 02:51:37 +01:00
nick863
e495ff2246 Set up extensions filter correctly in wxFileDialog in wxOSX
We need to call DoOnFilterSelected() to restrict the files that can be
initially selected by the user to the filter.

Closes #17415.
2016-03-04 19:43:53 +01:00
VZ
54392cd75f Merge pull request #245 from TcT2k/osx_cleanup
Minor OS X code cleanup
2016-03-04 19:38:06 +01:00
Tobias Taschner
7dd279c49e Remove duplicate wxmac icon file.
osx/carbon/wxmac.icns contained an older version of the logo and was used when building samples.
2016-03-04 15:34:51 +01:00
Tobias Taschner
c17202c696 Remove extra handling of wxAppTraits::GetStandardPaths() on OS X.
Since the removal of carbon in 5ba67c67e4 there is no longer any special handling required.
2016-03-04 15:34:51 +01:00
Tobias Taschner
1125dd8c12 Remove remaining unused carbon implementation code.
Remove code and files which should have already been removed in 5ba67c67e4.
2016-03-04 15:34:51 +01:00
Tobias Taschner
d0d4018748 Remove unused OS X carbon resource files. 2016-03-04 15:34:51 +01:00
Tobias Taschner
54cbd22ded Remove OS X statusbar code targeting MacOS. 2016-03-04 15:34:50 +01:00
Vadim Zeitlin
da7388c9c8 Make wxLogInfo() work even without wxLog::SetVerbose()
It's confusing that wxLogInfo() and wxLogVerbose() are exactly the same and
the former, and not only the latter, doesn't do anything unless SetVerbose()
had been called, even if the log level is wxLOG_Info or higher.

Fix this by checking for GetVerbose() in wxLogVerbose() only and making
wxLogInfo() check the log level only. This makes it very similar to
wxLogMessage() but this is not such a bad thing.

Also improve wxLogVerbose() documentation.
2016-03-04 15:17:35 +01:00
John Roberts
7c32ef2ba3 Remove extra borders around wxFilePickerCtrl in wxOSX
Don't use extra borders to reserve space for the focus ring, this breaks
alignment of wxFilePickerCtrl with the other controls.

Closes #17416.
2016-03-04 14:56:17 +01:00
John Roberts
148dc11f88 Fix wxFLP_DEFAULT_STYLE documentation
Document that it includes wxFLP_USE_TEXTCTRL under OS X too, not just under
MSW as previously stated.

Closes #17421.
2016-03-04 14:53:30 +01:00
Vadim Zeitlin
0be596bde2 Move micro version in the change log under the correct version
It was wrongly merged under 3.1.0 in aa76606287,
move it under 3.1.1 (and reword slightly).
2016-03-04 14:49:40 +01:00
Kolya Kosenko
59b29a3a71 Reset wxStaticBitmap image when passed empty bitmap in wxGTK
This makes the behaviour consistent with the other ports.

Closes #17420.
2016-03-04 14:47:32 +01:00
Vadim Zeitlin
5d9c578df3 Fix build with wxUSE_WINRT=1 and wxUSE_UNICODE=0
IShellLink interface methods take narrow strings in non-Unicode build.

Closes #17422.
2016-03-04 14:44:52 +01:00
Vadim Zeitlin
80664c28c8 Discourage the use of wxTAB_TRAVERSAL in the documentation
This style should almost never be used in the application code, it's mostly an
implementation detail (but not quite as it might make sense to turn it off for
some wxPanel, at least in theory).
2016-03-03 23:43:46 +01:00
Vadim Zeitlin
aa76606287 Merge support for OS and toolkit micro versions
Closes https://github.com/wxWidgets/wxWidgets/pull/234
2016-03-03 23:32:44 +01:00
Vadim Zeitlin
7eee3576cf Update version to 3.1.1
Update misc/scripts/inc_release script: remove non-existent any more files and
update the version in the MSVS 200x project files not generated by bakefile
any more and MSVS 201x project files which were not previously taken into
account.

Run it and rebake.
2016-03-03 23:23:06 +01:00
Vadim Zeitlin
30393a178f Use long version string in the DLL names in MSVS 201x projects
This makes them compatible with the makefiles and MSVS 200x projects.

Notice that wxVersionString will need to be set to "32", not "320", when 3.2.0
release is done, as the micro version component is only used in the DLL names
for the development releases but not stable ones.
2016-03-03 23:23:06 +01:00
Vadim Zeitlin
36febf2d8a Danish translations update from scootergrisen 2016-03-03 22:38:32 +01:00
Vadim Zeitlin
9bbfbf821c Use simpler HTML5 doctype in the documentation index
Also don't pretend to be XML.
2016-03-03 22:17:22 +01:00
David Hart
6cd442fbaf Fix wxNativeWindow::Create() documentation
Add a missing semicolon after the preceding declaration.

Closes #17411.
2016-03-02 23:33:01 +01:00
Vadim Zeitlin
2360a7aa10 Update the 3.1.0 release announcement to match the really used one
The actual version from https://github.com/wxWidgets/wxWidgets/releases/tag/v3.1.0
with the correct SHA1 sums, a few other minor edits and without the line
breaks which don't seem to be handled correctly in the release announcements.
2016-03-02 23:23:26 +01:00
Vadim Zeitlin
b0a6ed4262 Merge miscellaneous string-related fixes
Closes https://github.com/wxWidgets/wxWidgets/pull/237
2016-03-02 23:17:23 +01:00
Xlord2
c07523734f Disable automatic "smart" quotes substitution in wxOSX wxTextCtrl
Disable ASCII quotes substitution with "more typographically accurate"
symbols, just as we already do it for the dashes substitution.

While disabling this unconditionally might not be perfect, it's better than
unconditionally leaving this enabled (and this is on by default since OS X
10.9).

Closes #15705.

Closes https://github.com/wxWidgets/wxWidgets/pull/241
2016-03-02 22:51:10 +01:00
Xlord2
3532f48d44 Fix crash when using HTML help in 64 bit wxMSW build
HtmlHelp() function takes 64 bit ULONG_PTR, not 32 bit DWORD, in 64 bits, see
https://msdn.microsoft.com/en-us/library/windows/desktop/bb762267.aspx and
passing it a wrongly sized pointer resulted in a crash.

Closes https://github.com/wxWidgets/wxWidgets/pull/239
2016-03-02 21:47:32 +01:00
Xlord2
d053a90486 Force wxUSE_WINRT to 0 when targeting XP
The required headers such as winstring.h are not present in the SDK used when
targeting XP.

Closes https://github.com/wxWidgets/wxWidgets/pull/238
2016-03-02 21:39:49 +01:00
Kolya Kosenko
a916f7f917 Fix wxX11 build with wxUSE_STL=1
Add missing utf8_str() call as implicit conversion is not available in
wxUSE_STL=1 case (notice that this also makes wxUSE_STL=0 work correctly when
not using UTF-8 locale).

Closes #17412.
2016-03-02 14:10:00 +01:00
ARATA Mizuki
a17a3994ec Get rid of a use of wxMBSTRINGCAST
wxMBSTRINGCAST is a const-removing cast and therefore should be avoided
unless necessary.

Here, the cast was used to convert wxWX2MBbuf to const char *, which does not
involve removing const-ness.
2016-03-01 16:01:39 +09:00
ARATA Mizuki
45ff4e6b21 Get rid of a use of wxFNSTRINGCAST
Since chdir() takes a const pointer, the const-removing cast is not needed.
2016-03-01 16:01:39 +09:00
ARATA Mizuki
a2b5309f61 Get rid of some Win16 code from wxSetWorkingDirectory 2016-03-01 16:01:39 +09:00
ARATA Mizuki
381ab333b9 Get rid of a use of WXSTRINGCAST from src/msw/metafile.cpp
WXSTRINGCAST is a const-removing cast and should be avoided unless necessary.

Here, wxString::c_str() is sufficient because GetTextExtentPoint32 takes
a const pointer.
2016-03-01 16:01:39 +09:00
ARATA Mizuki
86dd0cd2a2 Fix constness of some member functions of wxUString 2016-03-01 16:01:39 +09:00
ARATA Mizuki
daf944909c Use wxChar16 instead of wxDecodeSurrogate_t for UTF-16 unit type in wxDecodeSurrogate 2016-03-01 16:01:39 +09:00
ARATA Mizuki
89745e83f3 Fix signatures of wxStringBuffer / wxStringBufferLength constructors in interface/wx/string.h
There were extra 'const's in the interface file.
2016-03-01 16:01:39 +09:00
Vadim Zeitlin
cee3188c1a Don't connect handler for wxEVT_TEXT_ENTER in wxComboCtrl unnecessarily
Connecting to wxEVT_TEXT_ENTER is not necessary if wxTE_PROCESS_ENTER style is
not used was always useless and is actively harmful since the changes of
5591a20093 as it results in an assert failure
now.

Just don't do it unless we really want, and will get, these events.
2016-02-29 18:54:18 +01:00
Danny Scott
7e493c3a3c Add script for building MSVS 2015 binaries
Closes #17408.
2016-02-29 18:44:11 +01:00
Vadim Zeitlin
ee486dba32 Fix build error in wxOSX clang C++11 build for i386
When building for i386 in C++11 mode clang warns about narrowing conversion
from double to CGFloat (== float) in the initialization.

Fix it by using explicit suffixes for the float literals.
2016-02-29 18:05:02 +01:00
Vadim Zeitlin
173ecd77c4 Fix clang -Winconsistent-missing-override in wxTextCtrl
Add missing wxOVERRIDE for OnDynamicBind().
2016-02-29 16:12:53 +01:00
Tobias Taschner
3bdb4c4b21 Add micro version to wxCheckOsVersion(). 2016-02-29 10:05:51 +01:00
Tobias Taschner
84fbc12f2d Return Windows build number as micro version in wxGetOsVersion(). 2016-02-29 10:05:51 +01:00
Dimitri Schoolwerth
066f540f51 Mention micro version changes
Document the change of wxAppTraits::GetToolkitVersion which when
user-overridden in the best case leads to a compile error and worst case
when it already has been overridden (which is more likely) silently
fails as the user-override would not be called.
Also mention the micro version changes in general in changes.txt.
2016-02-29 10:05:51 +01:00