Commit Graph

65033 Commits

Author SHA1 Message Date
Tobias Taschner
4b8dee1066 Update where to post in "How to release" documentation 2018-10-10 13:59:28 +02:00
Tobias Taschner
fe9f25c7ce Add download update instructions "how to release" documentation 2018-10-10 13:58:23 +02:00
Paul Cornett
4ad6f67147 Fix build with wxUSE_PALETTE==0 2018-10-09 22:24:58 -07:00
Paul Cornett
e351bd513b Fix timepick configure option 2018-10-09 22:18:34 -07:00
Václav Slavík
66e07d6465 Fix crash in wxMenu::MSWCommand if item is NULL 2018-10-09 18:27:47 +02:00
Vadim Zeitlin
54ef52fbd9 Merge branch 'display-funcs'
Implement all global functions in terms of wxDisplay and add
wxDisplay::GetPPI().

See https://github.com/wxWidgets/wxWidgets/pull/963
2018-10-09 16:31:54 +02:00
Vadim Zeitlin
0db1d68084 Document that wxHTML <font> tag supports "bgcolor" attribute 2018-10-09 16:30:50 +02:00
Vadim Zeitlin
28ab24cd55 Add missing wxUSE_DISPLAY check to X11 display header
Don't define functions dealing with video modes etc when
wxUSE_DISPLAY==0.
2018-10-09 15:28:28 +02:00
oneeyeman1
1a58c9c8ba Also fill the column for wxEVT_DATAVIEW_ITEM_ACTIVATED in wxOSX
Similar to the previous commit.

Closes https://github.com/wxWidgets/wxWidgets/pull/967
2018-10-09 15:25:18 +02:00
Vadim Zeitlin
aafb87b40d Set the column for wxEVT_DATAVIEW_ITEM_ACTIVATED in wxGTK
The column is available in the GTK+ callback, so just pass it along to
avoid gratuitous inconsistency with the generic version.

Also update the sample to show the column value for these events.
2018-10-09 15:21:08 +02:00
Vadim Zeitlin
818d69f113 Make wxDataViewCtrl::FromGTKColumn() public and rename
This function has to be called from a GTK+ callback, so make it public
and also rename to GTKColumnToWX() to conform to the naming convention
mandating the use of "GTK" prefix for the public methods which are not
part of the public API.
2018-10-09 15:12:42 +02:00
Vadim Zeitlin
11f80e3e34 Clarify wording of wxDataViewEvent::GetColumn() documentation
Just that the column is -1 if it's not available instead of speaking
about "event emitter" that people find confusing.
2018-10-09 15:10:11 +02:00
Paul Cornett
e160cb37b6 Remove unused wxWindow parameter 2018-10-08 22:01:05 -07:00
Paul Cornett
5d3d6135e0 Fix wxRenderer for GTK+2 with wxGCDC created from wxMemoryDC
See #18242
2018-10-08 21:47:46 -07:00
Vadim Zeitlin
ded2894b78 Add wxDisplay::GetPPI() to use instead of wxGetDisplayPPI()
While this is not done for all the ports yet, the new API allows
returning different PPI values for different monitors, unlike the old
(and still existing, but implemented in terms of the new one) global
function.
2018-10-08 13:04:38 +02:00
Vadim Zeitlin
309f942aa6 Merge branch 'qt-build'
Minor wxQt API fixes and simplifications.

See https://github.com/wxWidgets/wxWidgets/pull/962
2018-10-07 19:55:37 +02:00
Vadim Zeitlin
e3e883bbd2 Implement wxColourDisplay() in terms of wxDisplay::GetDepth()
Get rid of another global display-related function, even though this one
only had non-trivial implementation under MSW.
2018-10-07 00:30:12 +02:00
Vadim Zeitlin
382404f0a7 Stop using wxColourDisplay() inside wxWidgets code
This function always returns true in practice and it's completely
useless to call it during each wxDC object construction, especially
because wxDC::m_colour itself is not used anywhere.
2018-10-07 00:30:12 +02:00
Vadim Zeitlin
24b5e256df Add wxDisplay::GetDepth() and use it for wxDisplayDepth()
Allow getting the depth of any display, not just the primary one, even
though this is not implemented for Unix ports currently.

Mostly do this for consistency with the other display-related functions.
2018-10-07 00:30:12 +02:00
Vadim Zeitlin
e834585cf7 Remove wxDisplaySize() implementation from wxGTK1
This is now implemented in common code, in terms of wxDisplay.
2018-10-06 15:24:13 +02:00
Vadim Zeitlin
1614f7337d Mention that wxDisplaySize() shouldn't be used in the new code
Prefer to use wxDisplay::GetGeometry() which works for any display, not
just the primary one.
2018-10-06 14:11:12 +02:00
Vadim Zeitlin
b368fa2de5 Remove casts from wxString to "const char*" in wxQt code
These casts didn't compile in Unicode build and were completely
unnecessary anyhow, just remove them.
2018-10-06 14:07:47 +02:00
Scott Furry
0d63351eef Fix wxQt compilation in STL build
Use compatibility_iterator instead of Node* for iterating over wxList,
the latter doesn't compile when wxUSE_STD_CONTAINERS==1.
2018-10-06 14:07:02 +02:00
Scott Furry
f8c14d1176 Define more wxToolBar::SetToolXXX() methods in wxQt
Provide a stub for SetToolShortHelp() and really implement
SetTool{Normal,Disabled}Bitmap().
2018-10-06 14:07:02 +02:00
Scott Furry
2ea9548ffb Add default argument values to wxToolBar::CreateTool() in wxQt
Make the API consistent with the other ports.
2018-10-06 14:06:55 +02:00
Vadim Zeitlin
613c686d73 Merge branch 'no-use-display'
Fix build for wxUSE_DISPLAY==0 and further simplify wxGTK display code.

See https://github.com/wxWidgets/wxWidgets/pull/961
2018-10-05 18:54:45 +02:00
Vadim Zeitlin
103881abee Merge branch 'virt-direction'
Don't extend wxScrolledWindow virtual size beyond its physical size in
non-scrollable direction.

See #18235.
2018-10-05 18:53:38 +02:00
Vadim Zeitlin
86ba770cd0 Rename helper display function to use wx naming convention
Don't pretend to be a GDK function, even if it's only a thin wrapper for
a GDK macro.
2018-10-05 18:52:30 +02:00
Stefan Csomor
162ea7b1ef bringing back old style macOS icons loading
see https://github.com/wxWidgets/wxWidgets/pull/925
2018-10-05 15:01:24 +02:00
Vadim Zeitlin
5e6e7aa769 Separate GTK+ 4 wxDisplay implementation from previous versions
This makes the code more readable, even though it almost doubles its
size -- but the corresponding reduction in the number of preprocessor
checks is still worth it.
2018-10-04 23:01:27 +02:00
Vadim Zeitlin
e0ba727dec Extract X11 functions used by wxGTK in a separate header
This makes src/unix/displayx11.cpp almost readable as it's not littered
by "#ifndef __WXGTK20__" checks everywhere any more -- instead this file
is just not compiled as part of wxGTK2 at all any longer (it is still
included in wxGTK1 as well as wxX11 itself and wxMotif).

wxGTK code also can just include the new wx/unix/private/displayx11.h
instead of having to declare all the X11 functions it uses manually.

There should be no changes in behaviour, this is just a clean up.
2018-10-04 17:07:11 +02:00
Vadim Zeitlin
c38a8f960e Fix wxGTK build with wxUSE_DISPLAY==0
Add the missing "new" keyword.
2018-10-04 16:39:40 +02:00
Vadim Zeitlin
de840d1813 Document that wxDisplay::GetName() is only non-empty under MSW
"Not available on all platforms" was an understatement: the string
returned by this function is only non-empty under MSW.
2018-10-04 16:38:10 +02:00
Vadim Zeitlin
9cc1424b84 Return empty string from wxDisplayImpl::GetName() by default
Simplify the code by not making this function pure virtual as all the
ports except MSW had to override it just to return an empty string.

Instead, just return empty string by default as it's not critical to
force the derived classes to override this function.
2018-10-04 16:37:12 +02:00
Vadim Zeitlin
f704c40207 Don't use wxDisplayFactorySingleX11 in wxGTK if wxUSE_DISPLAY==0
wxDisplay::CreateFactory() shouldn't be defined in this file when
building wxGTK, whether wxUSE_DISPLAY==1 or 0.
2018-10-04 16:31:55 +02:00
Tobias Taschner
26b2e9f5c7
Add information on how to use pre-built MSW binaries to doxygen
The text is collected from docs/contributing/release.md and the
blog post explaining usage of binaries.
2018-10-03 22:13:31 +02:00
Tobias Taschner
da04a0a8e7
Integrate X11 and Motif install instructions into doxygen 2018-10-03 19:42:32 +02:00
Tobias Taschner
141b5bdf0f
Integrate QT documentation into doxygen 2018-10-03 19:17:16 +02:00
Tobias Taschner
f8460059cd
Integrate GTK documentation into doxygen 2018-10-03 19:17:15 +02:00
Tobias Taschner
1b5e3649e5
Integrate MSW, OS X and iOS build instructions into doxygen
Make build instructions available in doxygen but keep the old
folder structure.
2018-10-03 19:17:14 +02:00
Vadim Zeitlin
f4c7a31414 Merge branch 'qt-ownerdrawn-fix' of https://github.com/MaartenBent/wxWidgets
See https://github.com/wxWidgets/wxWidgets/pull/957
2018-10-03 14:44:10 +02:00
Tobias Taschner
dd9ef9e588 Select latest Windows 10 SDK when building with MSVS 2017
Unfortunately Visual Studio 2017 defaults to Windows SDK 8.1
which is not installed with it. This workaround automatically
targets the latest Windows 10 SDK when building.

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

Closes #18078.
2018-10-03 14:43:39 +02:00
Vadim Zeitlin
180fb2f35b Restrict scrolled window virtual area in non-scrollable direction
If a wxScrolledWindow is only scrollable in one direction, its virtual
size should only extend beyond the actual size of the window in this
direction, as any contents not fitting the window wouldn't be visible
anyhow.
2018-10-03 01:19:57 +02:00
Vadim Zeitlin
20466d045f Slightly simply wxScrollHelperBase::ScrollLayout()
No real changes, just use wxPoint and wxSize instead of intermediate int
variables.
2018-10-03 01:12:47 +02:00
Maarten Bent
32d32f8172 Revert "Fix missing wxOwnerDrawn functions in WXQT wxMenuItem"
This reverts commit 4e23b3e7f4.
wxOwnerDrawn is only used with wxMSW toolkit.
2018-10-01 21:47:33 +02:00
Maarten Bent
519d8fec8a Disable wxUSE_OWNER_DRAWN when using WXQT with CMake 2018-10-01 21:43:19 +02:00
Vadim Zeitlin
c0e7bd33bc Don't duplicate src/osx/cocoa/stdpaths.mm in wxiOS files list
This file is already included in BASE_OSX_SHARED_SRC, which is part of
wxiOS sources, so there is no need to repeat it in OSX_IPHONE_SRC as
well.

This fixes warnings about ignoring duplicate rules in the makefile
in command line builds.
2018-10-01 14:02:48 +02:00
Blake Eryx
4fb39beae1 Remove all wxS() macros from samples
The use of wxS() is an optimization which can be used to avoid an
implicit conversion from narrow to wide strings, but such optimizations
are not really needed in the samples and just make their code less
readable, so remove them.

Closes https://github.com/wxWidgets/wxWidgets/pull/956
2018-10-01 13:55:42 +02:00
Vadim Zeitlin
761f9f74fc Merge branch 'simplify-display'
Centralize all display-related code in wxDisplay class and avoid
duplicating or reimplementing it in wxDisplaySize() and
wxClientDisplayRect() functions.

See https://github.com/wxWidgets/wxWidgets/pull/955
2018-10-01 13:52:07 +02:00
Stefan Csomor
00197d0c75 removing the menu from the public API of wxChoice on osx
on iOS pickers are having data sources that are not implemented using a menu, therefore the implementation API had to be changed
2018-10-01 08:28:41 +02:00