Kvaz1r
5663157674
Fix link between flags and buttons in wxAuiManager
...
Don't store the buttons used by a pane separately, but take them
directly from the flags, as this ensures that updating the pane flags,
e.g. by calling CloseButton(false), really removes the corresponding
button.
This also makes wxAuiPaneButton helper completely unnecessary, so just
remove it to simplify the code.
Closes https://github.com/wxWidgets/wxWidgets/pull/1723
Closes #18223 .
2020-02-05 16:02:51 +01:00
Vadim Zeitlin
f21c7f2d49
Add a test for C++ comments in code passed to RunScript()
...
This used to be broken, check that it does work now.
2020-02-05 15:55:50 +01:00
Vadim Zeitlin
a26e81ccb1
Remove test for \v escaping in wxWebView::RunScript()
...
This escape character doesn't seem to be handled by IE in the default
emulation mode and it's not worth complicating the test code just to
test for it, so simply remove it from the test.
2020-02-05 15:40:27 +01:00
Vadim Zeitlin
b7547dbd27
Don't use Hungarian notation for variables
...
Rename a variable to remove the ugly "sz" prefix.
Also don't use "s_" prefix for non-static variables.
2020-02-05 15:37:27 +01:00
nns52k
24c56a413b
Fix string escaping in JS code in wxWebView
...
For example, a newline was escaped to be a backslash followed by a
newline, but it actually shall be a backslash followed by a character
'n'. It seemed okay with most of codes until in the case that C++ style
comments, i.e. single line comments, in the JavaScript codes. If the
newline characters are not escaped correctly, the JavaScript interpreter
will ignore everything that goes after the single line comments because
the interpreter obviously cannot find the newline where it's supposed to
stop treating codes as comments.
2020-02-05 15:35:17 +01:00
Vadim Zeitlin
4526765f8f
Remove extra semicolons to avoid gcc -Wpedantic warnings
...
Another fix after 00cdab77c5
2020-02-05 15:20:26 +01:00
Vadim Zeitlin
3f49942051
Fully qualify std::nullptr_t
...
Fix a stupid mistake from 00cdab77c5
2020-02-05 15:19:33 +01:00
Vadim Zeitlin
00cdab77c5
Define wxStrtox() overloads taking nullptr
...
Instead of specializing wxStrtoxCharType and then testing whether endptr
is null, just define separate, and simpler, overloads of wxStrtox()
functions taking nullptr_t -- we can avoid the unnecessary test
completely in this case, as nullptr is, by definition, always null
anyhow.
Also add a test of using wxStrtol() with nullptr too.
This should fix the build with older gcc and MSVS versions.
2020-02-05 03:54:25 +01:00
Vadim Zeitlin
1650ea7030
Don't use RPC_WSTR absent from older MinGW headers
...
Fix compilation with MinGW 5.3 after the changes of
948ddc6e0f
2020-02-05 03:40:24 +01:00
Vadim Zeitlin
bc2827f6e9
Merge branch 'grid-refresh-block'
...
Avoid asserts due to passing invalid coordinates to RefreshBlock() when
the grid didn't have any rows or columns.
Closes https://github.com/wxWidgets/wxWidgets/pull/1725
Closes #18659 , #18660 .
2020-02-05 03:33:29 +01:00
Ilya Sinitsyn
217349d772
Test wxGrid RefreshBlock function when a grid is empty
...
SelectCol and SelectRow should not fail an assertion if a grid has no
rows or columns.
2020-02-05 03:32:31 +01:00
Vadim Zeitlin
8cf3554399
Update png submodule to avoid -Wundef warnings during build
...
No real changes.
2020-02-04 22:59:31 +01:00
Ilya Sinitsyn
0c9a9dc126
Fix wrong wxGrid::RefreshBlock calling for an empty grid
...
There is no cells to select if the grid is empty (no rows or no columns).
So check for the columns count in SelectRow and check for the rows count in
SelectCol and call RefreshBlock only if it necessary.
Fix https://trac.wxwidgets.org/ticket/18659
Fix https://trac.wxwidgets.org/ticket/18660
2020-02-04 22:59:08 +07:00
Paul Cornett
360bbbc453
Fix a wxVariant ctor argument type after 948ddc6e0f
...
'const void*' won't match 'void*' parameter, gets converted to bool instead
2020-02-04 00:14:19 -08:00
Vadim Zeitlin
2f2ea1d193
Merge branch 'im/osx_fixes' of https://github.com/imciner2/wxWidgets
...
wxOSX fixes for wxGrid background, wxDataViewCtrl with wx[HV]SCROLL
styles and changing the window level.
See https://github.com/wxWidgets/wxWidgets/pull/1717
2020-02-04 02:31:38 +01:00
Vadim Zeitlin
25e256a0f5
Merge branch 'osx_icns_imagehandler' of https://github.com/TcT2k/wxWidgets
...
Add handler for ICNS files (wxBITMAP_TYPE_ICON).
Also remove some old unused Carbon files.
See https://github.com/wxWidgets/wxWidgets/pull/1716
Closes #18647 .
2020-02-04 02:26:42 +01:00
Vadim Zeitlin
8db1e0d0c7
Merge branch 'listctrl-autosize-checkboxes'
...
Fix autosizing column with checkboxes in generic wxListCtrl.
See https://github.com/wxWidgets/wxWidgets/pull/1721
2020-02-04 02:24:02 +01:00
Vadim Zeitlin
0cb0367fce
Merge branch 'd2d-gradient' of https://github.com/MaartenBent/wxWidgets
...
Fix reference count in D2D renderer gradient brushes.
See https://github.com/wxWidgets/wxWidgets/pull/1724
2020-02-04 02:16:19 +01:00
Vadim Zeitlin
276a815ed5
Merge branch 'grid-ellipsize-offset' of https://github.com/thesiv/wxWidgets
...
Fix text cropping when using ellipsization in wxGrid.
See https://github.com/wxWidgets/wxWidgets/pull/1720
2020-02-04 02:14:19 +01:00
Vadim Zeitlin
e171757160
Merge branch 'grid-selecting'
...
Fix several problems related to selecting cells from keyboard in wxGrid.
Closes https://github.com/wxWidgets/wxWidgets/pull/1719
2020-02-04 02:13:20 +01:00
Ilya Sinitsyn
45839843e6
Use a constant for the wxGrid text margin
...
Use a constant instead of a hardcoded value for the text margin.
2020-02-04 05:36:24 +07:00
Ilya Sinitsyn
72824bc269
Fix text cropping when using ellipsization in wxGrid
...
A text is cropped for cells with ellipsization enabled when width of the
cell nearly equal to width of the text because wxGrid::DrawTextRectangle
function variant with the parameter of type wxArrayString adds the offset
before actually drawing the text using dc.DrawText or dc.DrawRotatedText.
2020-02-04 05:36:24 +07:00
Paul Cornett
6e52a70582
Build fix after 948ddc6e0f
2020-02-03 09:34:01 -08:00
Paul Cornett
1a9da25c33
STL build fix for MSVS after 948ddc6e0f
2020-02-03 09:33:09 -08:00
Paul Cornett
f4299c3c01
Eliminate a couple more -Wcast-qual warnings
2020-02-03 09:02:14 -08:00
Paul Cornett
ad7dfba124
STL build fix after 948ddc6e0f
2020-02-03 08:59:22 -08:00
Paul Cornett
0ca45d1a59
Remove redundant checks for NULL before calling delete
2020-02-02 23:51:39 -08:00
Paul Cornett
05183b7099
Eliminate -Wzero-as-null-pointer-constant warnings in the headers
2020-02-02 23:40:01 -08:00
Paul Cornett
948ddc6e0f
Eliminate -Wcast-qual warnings with GCC and Clang
...
Use const_cast, mutable, and various other changes to avoid -Wcast-qual
2020-02-02 22:50:32 -08:00
Maarten Bent
95d3064a6b
Fix reference count in D2D renderer gradient brushes
...
Closes #18656 .
2020-02-02 14:53:16 +01:00
Maarten Bent
8e2f674c0b
Remove trailing whitespace
2020-02-02 14:50:57 +01:00
Vadim Zeitlin
6724f8c052
Work around MSVS 2012 bug with handling of nullptr
...
Avoid error C2180 given by this compiler for if statements with
controlling expression of type nullptr_t.
2020-02-02 01:12:28 +01:00
flederwiesel
0073b54f8e
Pass CPPFLAGS to cpp when generating rcdefs.h
...
Honour user-defined CPPFLAGS when creating rcdefs.h, this notably fixes
generating the file with wrong architecture when cross-compiling from 64
to 32 bits with CPPFLAGS=-m32.
Closes #17844 .
2020-02-02 00:13:55 +01:00
Vadim Zeitlin
5b797618a1
Merge WXK_HOME and WXK_END handling in a single case
...
There are more commonalities than differences between the handling of
these 2 keys and it's better to have a single version of this code.
No changes in behaviour.
2020-02-01 02:23:05 +01:00
Vadim Zeitlin
c7707a16c7
Simplify check for current cell in Home/End handling code
...
Prefer to just test whether we have it instead of breaking out of the
case if we don't, this is slightly more straightforward.
No real changes.
2020-02-01 01:57:56 +01:00
Ilya Sinitsyn
7fa9416fb4
Test wxGrid cells selection using End key
2020-02-01 01:53:59 +01:00
Ilya Sinitsyn
6e6eb799c8
Implement wxGrid cells selection for Home and End keys
...
Select cells if Shift is pressed when handling Home and End keys
2020-02-01 01:53:59 +01:00
Ilya Sinitsyn
677b9d21ea
Test moving the grid cursor using End key for wxGrid
2020-02-01 01:53:59 +01:00
Ilya Sinitsyn
68ccc77e20
Fix wxGrid Home and End keys handling
...
Take into account that rows and columns may be hidden and columns also can be
reordered.
2020-02-01 01:53:59 +01:00
Ilya Sinitsyn
bf5be68510
Test wxGrid scrolling when selecting cells.
2020-02-01 01:53:59 +01:00
Ilya Sinitsyn
d455c5b99e
Fix making the wrong wxGrid cell visible when selecting
...
We should make visible the cell of the corner of the current selected block.
Also fix names of the wxGrid::UpdateBlockBeingSelected parameters because
actually passed сщщквы are of any opposite selection block corners.
2020-02-01 01:53:59 +01:00
Vadim Zeitlin
55efc9e607
Allow using wxStrtox() functions with nullptr with MSVS too
...
Add a unit test checking that it compiles (and works).
This extends the changes of 63b1f00eb8
to
cover MSVS as well.
2020-01-31 17:13:06 +01:00
Vadim Zeitlin
7969f3f81c
Define wxHAS_NULLPTR_T if nullptr is supported
...
This is necessary because MSVS versions as old as 2010 support it, even
if they don't have full C++11 support and so don't define __cplusplus
appropriately.
Extract the existing check for nullptr from wx/strvararg.h to wx/defs.h
in order to allow reusing it.
2020-01-31 17:11:50 +01:00
Vadim Zeitlin
c34a7a2e30
Convert CRT functions test case to use CATCH macros directly
...
Get rid of legacy CppUnit-compatible macros.
No real changes.
2020-01-31 16:54:06 +01:00
Vadim Zeitlin
37cf80240b
Exclude unwanted files in wxMSW tags script
...
When a new directory is added, it's better to include the tags in it,
even if they're not wanted, than to not do it, when they're.
2020-01-31 16:43:30 +01:00
Vadim Zeitlin
e1fce68be6
Account for checkboxes when autosizing wxListCtrl first column
...
Without this, the text of the first column was truncated when using
checkboxes.
Closes #18661 .
2020-01-31 16:22:49 +01:00
Vadim Zeitlin
1014877302
Slightly reorganize last column width calculation
...
No real changes, just make it more obvious that we increase the last
column width to the remaining margin if it's smaller than it.
2020-01-31 16:18:41 +01:00
Vadim Zeitlin
01d0deb5bf
Get rid of unnecessary variable in wxListCtrl::SetColumnWidth()
...
No real changes, just remove a variable assigned and used exactly once.
2020-01-31 16:15:13 +01:00
Fulvio Senore
9d470f6433
Fix focus-related problems in wxComboCtrl under MSW
...
Allow default handling of focus events to take place, this is needed
at least under MSW to avoid confusing the system focus-tracking logic.
2020-01-31 15:41:55 +01:00
Paul Cornett
0a56399f3c
Fix TLW decorations when GTK3 is using Client Side Decorations
...
We need to avoid setting Window Manager decorations or using deferred show
See #17971
2020-01-30 01:05:45 -08:00