Commit Graph

65089 Commits

Author SHA1 Message Date
Stefan Csomor
a69a43bc53 fixing warning for unused param 2018-10-22 16:27:22 +02:00
Vadim Zeitlin
0955143e65 Don't output flags for "adv" library in wx-config
This allows to keep the existing makefiles or configure scripts for
building wxWidgets applications using wx-config unchanged to keep them
working with the existing wxWidgets releases without adding an
unnecessary dependency on the "adv" library when using the latest Git or
3.1.2, when it's released.
2018-10-22 13:59:09 +02:00
Tim Stahlhut
09aa25ab4a Add wxUSE_SCROLLBAR guards in wxUniversal 2018-10-21 22:01:50 -04:00
Tim Stahlhut
93d71116b7 Change guard to wxUSE_TIMEPICKCTRL from wxUSE_DATEPICKCTRL 2018-10-21 22:01:49 -04:00
Tim Stahlhut
f1fa6d5ea2 Add guard over wxMSWDateControls 2018-10-21 22:01:49 -04:00
Tim Stahlhut
caa6e5de2f Add message "wxStyledTextCtrl requires wxUSE_SCROLLBAR" 2018-10-21 22:01:49 -04:00
Tim Stahlhut
71a2fc0706 Forward declare wxQt template class 2018-10-21 22:01:49 -04:00
Tim Stahlhut
d62c284f03 Non PCH fix by adding include of "wx/wxcrtvararg.h"
PCH: Precompiled Header
The problem happens when wxUSE_SPINCTRL=0
2018-10-21 21:58:56 -04:00
Vadim Zeitlin
c6cc416977 Propagate InformFirstDirection() to wxCollapsiblePane pane
As wxCollapsiblePane doesn't use sizers for layout (and while this could
be changed for the generic version, it still wouldn't fix the problem
for the native one), default InformFirstDirection() implementation
forwarding it to the window sizer doesn't work for it and we need to
explicitly let the contents of wxCollapsiblePane know about the
available size.
2018-10-21 16:45:24 +02:00
Vadim Zeitlin
e397d5d825 Propagate InformFirstDirection() calls to wxBoxSizer children
InformFirstDirection() is required to let wxWrapSizer calculate its best
height from its current width (or vice versa, but usually in this
sense), but it only worked if wxWrapSizer was an immediate child of
another size doing layout but not if wxWrapSizer was inside another
wxBoxSizer which was contained in a top-level sizer.

Explicitly forward calls to InformFirstDirection() to wxBoxSizer
children to fix this and make wxWrapSizers nested in wxBoxSizer work.

Note that there are still many problems in this code, including but not
limited to:

- Doing this forwarding for the sizer minor direction only.
- Not passing the correct value of "availableOtherDir".
- Still calling InformFirstDirection() from RecalcSizes(), when it's too
  late to change the min size returned by CalcMin().
- Inconsistency: wxGridSizer calls InformFirstDirection() from its
  CalcMin(), wxFlexGridSizer calls it from its RecalcSizes(),
  wxGridBagSizer doesn't call it at all.

All this size-in-first-direction logic really needs to be completely
reviewed, but for now at least make wxWrapSizer inside a wxBoxSizer work
as well, or as badly, as wxWrapSizer on its own.
2018-10-21 15:58:33 +02:00
Vadim Zeitlin
ef2b015e39 Export CC and similar variables for sub-configure scripts
This is especially important under macOS where we modify CC, CPP and CXX
to use the specified SDK, and it's important to compile the code of 3rd
party libtiff and expat libraries using the same SDK, but also matters
for the other platforms when using non-default CC and CXX values.

By exporting these values we ensure that tiff and expat use the same
compilers and flags as the main libraries linking with them.
2018-10-20 22:58:48 +02:00
Vadim Zeitlin
56c4191168 Reimplement wxPopupWindow as a WS_POPUP window under MSW
Don't use the child window of the desktop window for popup windows under
MSW, while this worked in simplest cases, it didn't allow having
functional controls inside a wxPopupWindow as e.g. wxTextCtrl didn't
accept input it at all if created as a child of such window.

Instead, switch to using a top-level window, with WS_POPUP style, and
fix the problem with the loss of activation by explicitly pretending to
still be active in the owner window when losing activation to our own
popup (thanks to Barmak Shemirani for providing this solution).

Also use an MSW-specific and much simpler implementation of detecting
when the popup should be dismissed in wxPopupTransientWindow: instead of
capturing mouse or tracking focus, just react to activation loss
directly.

Add a wxTextCtrl to the popup in samples/popup to show that editing it
works now.
2018-10-20 22:50:46 +02:00
Vadim Zeitlin
17055fb8c6 Don't assert in focus code for buttons inside a wxPopupWindow
IsTopLevel() returns true for wxPopupWindow, even if it's not a subclass
of wxTopLevelWindow, so GetTLWParentIfNotBeingDeleted() asserted when
called with a button inside a wxPopupWindow.

Just return null from it instead for now. A better solution could be to
return wxNonOwnedWindow from GetTLWParentIfNotBeingDeleted() (which
would need to be renamed to something more suitable) and move the
{Get,Set}TmpDefaultItem() methods into it.
2018-10-20 22:50:46 +02:00
Paul Cornett
35a9f134cc Fix build with wxUSE_UNICODE_UTF8
wxString is not implicitly convertible to const char* in that configuration.
Also, stock IDs work fine with GTK+3 despite being deprecated, so only avoid
them for GTK+4.
2018-10-20 09:58:30 -07:00
Vadim Zeitlin
2242e98a4c Disable the use of liblzma in libtiff if detecting it failed
We only disabled LZMA support in libtiff if --without-liblzma was
explicitly specified, but we need to do it also if liblzma wasn't
detected because libtiff configure might erroneously decide that it's
available under macOS when using -isysroot, which would result in
compilation errors later. And even if there were no such problem, it's
still worth disabling LZMA support explicitly to skip unnecessary
checking for it again in libtiff configure.
2018-10-20 18:14:47 +02:00
Vadim Zeitlin
ccd2862d23 Use SDK options with cpp too in configure under macOS
Otherwise trying to compile and preprocess a file could behave
differently because the format could not find a header existing in the
system due to the use of -isysroot option, confusing configure.
2018-10-20 13:39:27 +02:00
Vadim Zeitlin
51fb57ec07 Merge branch 'doc_platform_restructure' of https://github.com/TcT2k/wxWidgets
Integrate platform build instructions into documentation.

See https://github.com/wxWidgets/wxWidgets/pull/960
2018-10-20 13:31:10 +02:00
Tim Stahlhut
cca0921400 Fix file names in header comments
No real changes, just fix comments containing copy-and-paste typos.

Closes https://github.com/wxWidgets/wxWidgets/pull/984
2018-10-20 13:27:23 +02:00
Lauri Nurmi
b9e813f9d3 Fix ANSI build for GTK+ 2
Operands of the ?: had different types, so add an explicit conversion to
wxString.

Closes https://github.com/wxWidgets/wxWidgets/pull/983
2018-10-20 13:25:45 +02:00
jgehw
b5face97bc Fix QA build options check when wxUSE_DEBUGREPORT==0
Compile this check even if wxDebugReport itself is not used.

Closes https://github.com/wxWidgets/wxWidgets/pull/979
2018-10-20 13:22:16 +02:00
Cătălin Răceanu
88b7ef2fab Fix wxRA_SPECIFY_{ROWS,COLS} handling in wxQt wxRadioBox
Their meanings were previously reversed.

Closes https://github.com/wxWidgets/wxWidgets/pull/978
2018-10-20 13:21:28 +02:00
Vadim Zeitlin
aeb68e9861 Merge branch 'doc_release_web' of https://github.com/TcT2k/wxWidgets
Bring instructions for updating download page after a release up to date
after the latest improvements in the web site repository, see
https://github.com/wxWidgets/website/pull/27

Closes https://github.com/wxWidgets/wxWidgets/pull/973
2018-10-20 13:13:38 +02:00
Vadim Zeitlin
aab02ec1ce Link wxCore with SDL libraries
Now that wxSound class, which can optionally use SDL, is in wxCore, we
need to link it with the SDL libraries to fix link errors in this case.

Closes #18251.
2018-10-17 19:13:00 +02:00
Vadim Zeitlin
3beefd7e5f Standardize Tim Stahlhut name and email in git-log
Extend .mailmap entry to cover all combinations and use the preferred
email.

See https://github.com/wxWidgets/wxWidgets/pull/981
2018-10-17 19:03:42 +02:00
Vadim Zeitlin
7d9df6056e Merge branch 'msw-univ-build-fixes'
Fix building wxUniv/MSW with MinGW.

See https://github.com/wxWidgets/wxWidgets/pull/981

Closes #17700.
2018-10-17 18:10:45 +02:00
Vadim Zeitlin
5231dc8bb6 Rerun autoconf 2.69 to undo changes in the previous commit
Remove "runstatedir" addition, probably due to using a newer version of
autoconf than is currently used for configure generation.
2018-10-17 18:10:05 +02:00
Tim S
095176f840 Add GDK_WINDOWING_X11 guard for wxGTK/Win32 2018-10-16 16:00:54 -07:00
Tim S
fd0017f669 Do build/upmake, bakefile_gen, and autoconf 2018-10-16 11:35:59 -04:00
Tim S
edc9eca2cc Move generic/activityindicator.{h,cpp} from MSW_LOWLEVEL_{HDR,SRC} to under MSW_{HDR,SRC} 2018-10-16 11:35:58 -04:00
Tim S
d9891c4aa1 Remove msw/evtloop.{h,cpp} from UNIV_PLATFORM_{HDR,SRC} 2018-10-16 11:35:58 -04:00
Tim S
09aa8c741e Move msw/evtloop.{h,cpp} from MSW_{HDR,SRC} to under MSW_LOWLEVEL_{HDR,SRC} 2018-10-16 11:35:58 -04:00
Tim S
99d082cae7 Add WXUNIVERSAL guard for wxMSW/Univ 2018-10-16 11:35:58 -04:00
Jouk
41bddbd85f update for OpenVMS compilation of wxX11 2018-10-16 11:54:12 +02:00
Artur Wieczorek
652765e614 Fix calculating size of the caption of the description text in wxPropertyGridManager
Using font height to determine required height of wxStaticText control used to display a title is not sufficient because this doesn't take into account internal margins, borders etc. around displayed text within the control. Because this internal positioning depends on the port it's better to delegate calculation of the required height to the control itself.

Closes #17662.
2018-10-13 23:38:15 +02:00
Artur Wieczorek
028cfb1ba4 Refresh wxPropertGrid after resetting the status
This is to visualize the effect of the modification.
2018-10-13 23:33:27 +02:00
Artur Wieczorek
7c0eac050e Use dedicated function to obtain highest level parent of the just changed property 2018-10-13 23:33:26 +02:00
Artur Wieczorek
7a7777cb4a Fix wxPGProperty::GetMainParent() function
Traversing upwards in the tree should be stopped when parent is root or category property.
2018-10-13 23:33:26 +02:00
Artur Wieczorek
a33b364d84 Add tests of retrieving main parent of wxPGProperty
This is to test wxPGProperty::GetMainParent() function.
2018-10-13 23:33:25 +02:00
Artur Wieczorek
8429fd0229 Don't explicitly refresh entire wxPropertyGrid while refreshing wxPropertyGridManager
wxPG is a child of wxPGManager and is refreshed automatically when updated region of wxPGManager contains wxPG window.
2018-10-13 23:33:24 +02:00
Artur Wieczorek
09ff7edfbe Redraw only wxPGProperties within update region
Currently all properties within client area are processed for drawing whether they lie inside the update region or not. Processing for drawing is an expensive operation so doing this only for properties being actually repainted should improve performance.
2018-10-13 23:33:23 +02:00
Artur Wieczorek
b894ea1ce3 Use dedicated function to check wxPGProperty flag 2018-10-13 23:33:23 +02:00
Artur Wieczorek
fe924be261 Use dedicated function to check if property is a wxRootProperty 2018-10-13 23:33:22 +02:00
Artur Wieczorek
5fb9d8d244 Use dedicated function to change flag 2018-10-13 23:33:21 +02:00
Artur Wieczorek
56fa1e0f56 Remove declaration of unused variable 2018-10-13 23:33:20 +02:00
Artur Wieczorek
12a755acf8 Declare array explicitly as a wxVector instead of using wxArrayPGProperty alias 2018-10-13 23:33:19 +02:00
Vadim Zeitlin
76f9d6baa9 Output EXTRALIBS_MEDIA from wx-config when using static media lib
This should fix linking of the applications using static media library,
notably under macOS, where they must link with AV{Foundation,Kit}
frameworks.
2018-10-11 20:35:34 +02:00
Jouk
60f2c09bb1 Update OpenVMS build support (correction on previous commit) 2018-10-11 14:50:48 +02:00
Vadim Zeitlin
bc974910ec Implement setting bitmaps for the menu item for wxQt
Closes https://github.com/wxWidgets/wxWidgets/pull/975
2018-10-11 14:40:20 +02:00
Jouk
17e243a5e4 Update OpenVMS build support 2018-10-11 11:41:55 +02:00
Stefan Csomor
8ace56a84e Adjust NSOpenGLView subclass use for glcanvas on macOS
makes this not fully a user pane, leave default handling for most things, but indicate that we can have the focus, fixes #18237
2018-10-11 08:43:12 +02:00