Commit Graph

60924 Commits

Author SHA1 Message Date
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
Jouk
6fae9911d8 Do not include wx/gtk/private/gtk2-compat.h when compiling against a very old GTK 2016-02-03 12:01:25 +01:00
Jouk
6c7d0b34a7 Remove controls sample from OpenVMS makefiles 2016-02-03 09:04:53 +01:00
Jouk
8397fe2d13 Include wx/settings.h to provide wxSystemSettings & wxSYS_COLOUR_3DFACE 2016-02-03 09:02:13 +01:00
Lauri Nurmi
7bcd9e05bd Bring wxMBConv Overview Background section from mid-90s to mid-2010s.
Update the Unicode introduction text to better reflect the reality of 2016, not 1996.
2016-02-02 21:41:33 +02:00
Vadim Zeitlin
d1944ad801 Fix compilation with GTK+ 2.22 due to gdk_window_get_screen()
Include the compatibility header defining this function.
2016-02-02 16:09:23 +01:00
Vadim Zeitlin
d66289dc95 Don't use the standard OS X Cmd+Q accelerator in the samples
Or, more precisely, don't use for anything else than exiting the application.

Closes #4326.
2016-02-01 16:03:31 +01:00
Tobias Taschner
5ba67c67e4 Remove wxOSX/Carbon support.
Cocoa has been the default toolkit in wxWidgets for a long time. There is really no good reason to use Carbon in 2016 and this removes a lot of unused and unmaintained code.
2016-02-01 13:48:48 +01:00
Daniel Kulp
8d42890df4 Turn off automatic dash replacement in wxOSX wxTextCtrl
This makes the text control match the other platforms as well as making it
usable for entering compiler or command line flags for programs.

Closes https://github.com/wxWidgets/wxWidgets/pull/186
2016-02-01 03:39:39 +01:00
Vadim Zeitlin
ddae98fc35 Really add wxGA_PROGRESS support to wxGauge in wxOSX
Finish the work started in 11a5b83e2c by moving
more wxAppProgressIndicator-related parts of wxMSW wxGauge implementation into
the base class and reusing them from the wxOSX version.

Also remove MSW-specific test for wxUSE_TASKBARBUTTON from the widgets sample
which prevented this style from being taken into account at all under Mac.

See #16638.
2016-02-01 03:03:53 +01:00
Igor Korot
f5187859cc Add support for wxTE_AUTO_URL to wxOSX
Recognize URLs by using native support for this available since OS X 10.5.

Closes #17137.
2016-02-01 02:16:51 +01:00
John Roberts
33d8d4e57c Correct positioning of popup menus relative to mouse pointer
Also simplify the code by using the native method available since OS X 10.6
instead of emulating it.

Closes #15385.
2016-02-01 01:58:17 +01:00
Vadim Zeitlin
023fd88bd7 Fix common system colours values in wxOSX/Cocoa
Reuse Carbon code for some colours which don't seem to have any Cocoa
equivalents.

Also map highlight colours to the selected text colours which seem more
appropriate.

Closes #17218.
2016-02-01 01:44:27 +01:00
Vadim Zeitlin
9b39ffc0cb Ignore initially specified labels for buttons with wxBU_NOTEXT
It doesn't make much sense to specify a non-empty label and wxBU_NOTEXT style
together, but if this happens, the label should be ignored, as it was already
done by wxGTK, but not wxMSW and wxOSX -- so add the missing checks for
wxBU_NOTEXT to these ports too.

Closes #17152.
2016-02-01 01:29:03 +01:00
Vadim Zeitlin
a0548db9f5 Don't link with system lzma and jbig when using built-in libtiff
It doesn't make much sense to have dependencies on the system libraries when
using a built-in library as this makes the binaries using wxWidgets unportable
to the systems without the matching versions of these libraries which was
probably the goal if the built-in library is used.
2016-02-01 01:18:55 +01:00
Vadim Zeitlin
8581f6851e Fix handling of wxGA_PROGRESS in wxGauge under MSW
This was broken by the refactoring during the addition of OS X implementation
of wxAppProgressIndicator in 11a5b83e2c, restore
this functionality by explicitly calling the code initializing the progress
indicator in wxGaugeBase from wxMSW implementation.

Closes #17301.
2016-01-31 20:11:06 +01:00
Andrius Balsevičius
2071f03127 Update Lithuanian translations
Also don't use original untranslated English strings as "translations".
2016-01-31 19:51:12 +01:00
Artur Wieczorek
3e24453be4 Check wxBK_HITTEST_ONITEM state in hit test in notebook sample
Closes https://github.com/wxWidgets/wxWidgets/pull/159
2016-01-31 03:07:05 +01:00
Artur Wieczorek
1237e932ad Fix setting wxBK_HITTEST_xxx flags in wxNotebook::HitTest
The state represented by TCHT_ONITEM Win API flag is not a superposition
TCHT_ONITEMICON and TCHT_ONITLABEL states but it represents a separate state.
The fact that binary value of TCHT_ONITEM is bitwise-OR operation on
TCHT_ONITEMICON and TCHT_ONITEMLABEL doesn't matter here. The same applies to
wxBK_HITTEST_xxx flags where state represented by wxBK_HITTEST_ONITEM is not a
superposition of wxBK_HITTEST_ONICON and wxBK_HITTEST_ONLABEL.

Add note to wxBookCtrl::HitTest documentation that wxBK_HITTEST_ONICON,
wxBK_HITTEST_ONLABEL, wxBK_HITTEST_ONITEM are mutually exclusive bits.

See https://github.com/wxWidgets/wxWidgets/pull/159
2016-01-31 03:06:33 +01:00
Vadim Zeitlin
a016e6b896 Allow suppressing warnings from wxImage::LoadFile()
Add wxImage::SetLoadFlags() and static SetDefaultLoadFlags() to allow
suppressing the warning messages that can be logged when loading some files,
notably PNG ones with invalid sRGB profiles which, unfortunately, seem to be
rather common and result in annoying warnings about them with libpng 1.6+.

Closes #15331.
2016-01-31 02:22:55 +01:00
Vadim Zeitlin
5066bff04e Fix harmless warning about shadowed variable in image sample
Don't redeclare a previously declared variable, just reuse the same one.
2016-01-31 01:53:01 +01:00
Paul Kulchenko
987235da53 Update the bundled libpng to 1.6.21
This fixes several security and other important bugs present in the previously
used 1.6.2.

Closes #17232.
2016-01-31 01:53:01 +01:00
Artur Wieczorek
1e92b204f7 Rename variable in TARGA image handler.
Current name of the variable ('index') is misleading. Actually it represents number of bytes created on output so 'outputLength' name seems to be more relevant.
2016-01-30 23:50:12 +01:00
fx
53db09d0e5 Fixed checking buffer overflow while loading RLE-compressed TARGA image.
Output data length (stored in 'index' variable) can be <= image buffer size so an error occurs if it exceeds this value.

Closes #14672.
2016-01-30 23:48:59 +01:00
Vadim Zeitlin
bc8293a9e5 Update wxMenu::UpdateUI() parameter comment and documentation
The argument to this method should basically just never be used, so while we
still keep it for compatibility (because it doesn't cost anything to do it),
make it clear that it should never be specified in the new code and, also,
that this function is actually only used inside wxWidgets and shouldn't be
normally called from outside of the library at all.
2016-01-30 21:39:09 +01:00
Vadim Zeitlin
c618c0b620 Fix wxEVT_UPDATE_UI propagation for popup menus in MDI windows too
This is similar to f74379c751 but specific to
wxMSW MDI code: also call wxMenu::UpdateUI() without any parameters from it
instead of overriding its logic for determining where to send the events.

Add code to the mdi sample demonstrating that the event handlers in the window
itself and its MDI frame parent get the events they're supposed to get.

See #17352.
2016-01-30 21:33:38 +01:00
Vadim Zeitlin
e89fc9c152 Avoid annoying prompt when closing MDI sample with one window
Ask the user when closing the window with several MDI frames opened, if only
to demonstrate how to do it, but not if there is only one window as this is
just too annoying when using the sample for testing.
2016-01-30 21:30:43 +01:00