Commit Graph

60961 Commits

Author SHA1 Message Date
Vadim Zeitlin
6768695d14 Extract wxGtkTreePath from src/gtk/dataview.cpp
Put this class into its own header so that it could be reused from other
places.

No real changes.
2016-02-06 19:13:35 +01:00
Andreas Falkenhahn
6a01623a80 Add wxListBox::GetTopItem() and GetCountPerPage()
Implement these methods for all the major ports, add them to the widgets
sample and documentation.

Closes #17189.
2016-02-06 19:13:35 +01:00
Vadim Zeitlin
256f644861 Use a separate variable for each loop in the widgets sample
This avoids VC14 variable shadowing warning and is also just better practice.
2016-02-06 18:29:27 +01:00
Paul Cornett
6ed7e27bf2 Fix GetBestSize() for GTK3 after size has been set
Need to reset size request to get actual best size.
See Fedora bug https://bugzilla.redhat.com/show_bug.cgi?id=1282142
2016-02-06 08:58:53 -08:00
Paul Cornett
7890093c4a Use existing code in base class to get preferred size 2016-02-06 08:58:23 -08:00
Paul Cornett
413d7c220c Fix running with GTK+ 2.22 or earlier when built with 2.24
Previous versions define gdk_window_get_visual as gdk_drawable_get_visual
2016-02-05 23:14:48 -08:00
Paul Cornett
492d8318d6 fix building with GTK+ 2.16 or earlier 2016-02-05 23:08:07 -08:00
Paul Cornett
7867025dc6 fix building with GTK+ 2.6, see #2662 2016-02-05 23:01:38 -08:00
Vadim Zeitlin
73f2603917 Fix spurious selection events generation in generic wxDataViewCtrl
Don't send a wxEVT_DATAVIEW_SELECTION_CHANGED event if an already selected
item is clicked, this is unexpected and inconsistent with the other platforms.

Split SelectAllRows(bool) method in a (trivial) SelectAllRows() and a more
useful UnselectAllRows() which now can check if a particular row is selected
and leave it selected in this case, helping implementing the correct logic and
also avoiding an extra unnecessary refresh due to deselecting the item first
and then selecting it again.
2016-02-06 02:04:00 +01:00
Vadim Zeitlin
189aedd89a Avoid bogus selection events from keys in generic wxDataViewCtrl
Don't do anything and, in particular, don't send any events if pressing a
navigation key, such as a cursor up/down arrow, didn't actually change the
current item because it was already the first/last one.

This fixes an endless stream of wxEVT_DATAVIEW_SELECTION_CHANGED events if the
up/down arrow is simply kept pressed when the selection is on first/last item.
2016-02-06 01:46:17 +01:00
Vadim Zeitlin
9ca5c2dce3 Fix double clicking over checkboxes in generic wxDataViewCtrl
Double clicks over checkboxes (i.e. items using wxDataViewToggleRenderer) were
ignored because they were translated to wxEVT_DATAVIEW_ITEM_ACTIVATED events
and nothing else happened, even if the event was not processed at all.

Fix this by continuing to process double clicks as normal clicks if there is
no special handling for the activation event.

In practice this means that half of the clicks doesn't seem to be "lost" any
more when clicking a checkbox in a quick succession.
2016-02-06 01:41:16 +01:00
Troels Knakkergaard
bbf9927e94 Minor simplification in wxZipEntry::GetName()
No real changes, just use wxString::Replace() instead of doing the replacement
manually.

Also use symbolic constants for [back]slashes.

See #16259.
2016-02-06 01:31:17 +01:00
Troels Knakkergaard
95fce84cf2 Accept backslashes in ZIP entries paths
Even although ZIP specification mandates (forward) slashes, some broken
programs still use backslashes in the paths, so make an effort to accommodate
them.

Closes #16259.
2016-02-06 01:28:08 +01:00
Vadim Zeitlin
3631a2d142 Merge branch listctrl-with-checkboxes
Add support for native checkboxes to wxMSW wxListCtrl.

Closes https://github.com/wxWidgets/wxWidgets/pull/153
2016-02-06 01:20:01 +01:00
Maarten Bent
90386df305 Notify Windows shell about file associations changes
This is documented as being required in the MSDN and, in practice, is
necessary for Windows to update the icon cache and show the new icon.

Closes https://github.com/wxWidgets/wxWidgets/pull/195
2016-02-06 00:56:46 +01:00
Vadim Zeitlin
948126a375 Merge branch 'drop-gstreamer-0.8' of https://github.com/plaes/wxWidgets
Drop support for ancient gstreamer 0.8.
2016-02-06 00:16:28 +01:00
Vadim Zeitlin
246e15cb17 Add --with-cxx configure option to specify required C++ dialect
Unlike --enable-cxx11, this option requires C++N support and will fail if it's
not available.
2016-02-06 00:16:10 +01:00
Vadim Zeitlin
a2ecb7a320 Don't test for old compilers in C++11 mode in configure
This makes configure faster when C++11 is enabled by avoiding spending time on
compiling unnecessary checks in this case.
2016-02-06 00:16:10 +01:00
Vadim Zeitlin
81d7f56986 Don't show checks for command line options to make configure less verbose
The results of the checks for the command line options are not useful to show
as presumably the user already knows which options were used for invoking
configure, and so the results of these checks are known as well (with the only
exception of --with-xxx options when configure detects whether to use the
system or the built-in version of the library on its own, but we already
summarize the results of these checks at the end anyhow).

Just don't flood the user with all the messages about checking this and do our
job silently.
2016-02-06 00:16:10 +01:00
Zane U. Ji
95abaa1f23 Return valie file URLs from wxFileSystem::FileNameToURL()
According to https://tools.ietf.org/html/rfc1738#section-5 the file URLs must
always start with "file://", so ensure that this is indeed the case.

Closes #16209.
2016-02-05 22:43:23 +01:00
Vadim Zeitlin
fd137b1876 Get rid of an unused member field in the XRC sample
This fixes MSVC 14 warning about a local variable shadowing a class member and
makes the code less confusing.
2016-02-05 22:43:23 +01:00
Vadim Zeitlin
43340b3526 Also add MSVS 201[0235] projects for the minimal sample
It's impractical to have manual projects for all the samples, but do it at
least for this one to serve as a starting point for people using these IDEs.
2016-02-05 22:43:23 +01:00
Vadim Zeitlin
d480c12477 Add MSVS 2010, 2012, 2013 and 2015 projects for the tests
Provide a way to build the tests from MSVS, maintaining these files manually
is not ideal but it's still better than nothing.
2016-02-05 22:43:23 +01:00
Tobias Taschner
63803dd8d9 Fix MSVS 2015 warnings about hiding variables in wxRichText code
These warnings were apparently harmless, but really annoying, so get rid of
them by renaming the variables instead of reusing the same name in the nested
scope.

Closes #17351.
2016-02-05 22:43:23 +01:00
Vadim Zeitlin
89669e507b Remove *.dsw from the list of ignored patterns
We don't have MSVC6 workspace files any more, there is no need to ignore them.
2016-02-05 22:43:23 +01:00
Vadim Zeitlin
0095e801a2 Define wxOutDirName variables in MSVS properties file
This will be useful for allowing other projects, not necessarily located at
the same level of the file hierarchy as the projects for building the library,
to refer to the location of the libraries more easily.
2016-02-05 22:43:23 +01:00
Paul Cornett
91ea487281 Adapt window decorations cache for client-side decorations
Fixes size calculations for TLWs created after the first one,
with Wayland, Mir and Broadway. See #17336
2016-02-05 10:26:06 -08:00
Vadim Zeitlin
4379f599e8 Implement wxDataViewCtrl::SetIndent() for wxGTK
Use gtk_tree_view_set_level_indentation().
2016-02-05 17:00:57 +01:00
Vadim Zeitlin
4484e1282e Check for just GTK+ 2.0 before including gtk2-compat.h
This doesn't really change anything but makes the intention of the code more
clear: this check is needed not because things don't work with GTK+ < 2.14 but
because gtk2-compat.h is for GTK+ 2 only, while this source file is also used
for GTK+1.
2016-02-05 16:48:03 +01:00
Tobias Taschner
4a91df81ee Update OSX appearance images.
Previous appearance images where quite old and in most cases wont match  what the user will expect.
2016-02-05 12:57:14 +01:00
Tim Kosse
dc48f595b3 Need to include wx/vector.h, otherwise wxVector is undeclared if configured with --disable-precom-headers --disable-any. 2016-02-05 10:07:09 +01:00
Vadim Zeitlin
01e09e534f Compilation fix for wxOSX: don't use CGPointMake()
Use NSMakePoint() to, well, make the point.

This should have been in 33d8d4e57c but the
wrong function was inadvertently used (and still compiled somehow...).

See #15385.
2016-02-05 01:28:14 +01:00
Artur Wieczorek
9b3367a45f Reset client data flag when wxOwnerDrawnComboBox contents is cleared.
When contents of wxOwnerDrawnComboBox with user data is cleared then client data type should be reset to wxClientData_None value.

See #15896.
2016-02-04 21:40:21 +01:00
Artur Wieczorek
2f4d6f434a Sort reference data used in tests in widgets sample in dictionary order.
Contents of controls (like ListBox, Choice, ComboBox) created with wxXX_SORT flag is sorted in dictionary order and therefore reference data items used in tests in widgets sample need to be sorted in this order too.

See #15896.
2016-02-04 21:37:43 +01:00
Vadim Zeitlin
cb26668204 Don't destroy the native window in wxNativeWindow itself by default
Leave ownership of the native window to the user code as it may want to reuse
it for some other purpose and provide an explicit Disown() function that can
be called if the user really wants wxWidgets to take ownership of the native
window.

In particular, this avoids problems when using ARC under OS X which resulted
in a double "release" before.
2016-02-04 18:46:47 +01:00
Vadim Zeitlin
359f4e21be Don't crash when deleting an object from its event handler
Since the changes of 99d9a81e28 a crash would
happen if an event handler was unbound from an object which was later deleted
from its own event handler. As unlikely as such scenario sounds, this is what
happened with wxTaskBarIcon when two wxNotificationMessages were created in
close succession under MSW and it was difficult to debug because of the timing
constraints involved, so avoid similar crashes in the future by avoiding to
use the fields of the object after an event has been handled and postpone
pruning of the unbound event table entries until later time.

See #17229.
2016-02-04 18:42:24 +01:00
VZ
8f681524fe Merge pull request #198 from TcT2k/doc_cleanup2
Remove more outdated stuff from the documentation (OS/2 etc).

Also remove svn hooks not used any longer.
2016-02-04 18:16:38 +01:00
Tobias Taschner
bcd72f3ec9 Remove OS/2 from Cross-Platform Development Tips page. 2016-02-04 17:26:11 +01:00
Tobias Taschner
9be28aa09a Document Visual Studio visualizers in MSW install.txt. 2016-02-04 17:18:30 +01:00
Tobias Taschner
c5883826cb Remove SVN hook scripts. 2016-02-04 17:05:06 +01:00
Tobias Taschner
d4621cc7dd Update outdated links in docs/index.htm. 2016-02-04 16:58:20 +01:00
VZ
e67aa59c76 Merge pull request #197 from TcT2k/doc_cleanup
Various documentation improvements and updates after wxOSX/Carbon removal
2016-02-04 16:38:29 +01:00
Tobias Taschner
b656637b7b Include wxQt on the platform details page. 2016-02-04 10:06:21 +01:00
Tobias Taschner
df33c0c491 Drop Mac prefix when referencing OS X.
Apple only refers to OS X and not Mac OS X since 10.8.
2016-02-04 09:54:36 +01:00
Tobias Taschner
50e6c10bb2 Update documentation after the removal of wxOSX/Carbon. 2016-02-04 09:48:55 +01:00
Tobias Taschner
f992897688 Fix invalid links in README. 2016-02-04 09:31:04 +01:00
Maarten Bent
d891e2708c Stop AppVeyor build if a newer PR commit exists
As suggested in https://github.com/appveyor/ci/issues/38#issuecomment-70628826.

Closes https://github.com/wxWidgets/wxWidgets/pull/196
2016-02-03 22:42:47 +01:00
VZ
1a9237a049 Merge pull request #194 from vadz/remove-osx-carbon
Remove wxOSX/Carbon port
2016-02-03 22:26:02 +01:00
Vadim Zeitlin
73747c457c Document wxOSX/Carbon removal
Mention that requesting it from configure is now silently ignored.
2016-02-03 18:19:14 +01:00
Vadim Zeitlin
536defd91c Get rid of TARGET_CARBON as well
Don't define this symbol in configure and don't test for it.

Also remove a stray reference to wxUSE_OSX_CARBON not removed by the previous
commit.
2016-02-03 18:18:37 +01:00