dghart
2cf0fcb4fd
Allow setting wxTimePickerCtrlGeneric from numpad keys too
...
Previously the generic wxTimePickerCtrl ignored numerical numpad keypresses.
2019-01-03 22:58:14 -08:00
Vadim Zeitlin
9f270c05ff
Micro optimization in wxInternetFSHandler::OpenFile()
...
Avoid copying the content type string unnecessarily and avoid even
calling GetContentType() in the first place in case of an error.
2019-01-03 23:15:54 +01:00
Vadim Zeitlin
e287344b78
Create wxFSFile with correct MIME type in wxInternetFSHandler
...
Using the entire contents of "Content-Type" header as the MIME type is
wrong, the header may have optional parameters in it as well.
2019-01-03 23:10:09 +01:00
Stefan Csomor
61c413928a
iOS fixes
2019-01-03 20:04:50 +01:00
Stefan Csomor
e5e6ee7e77
macOS wxWidgetImpl constructor with flags
...
replacing bools with int flag
2019-01-03 20:02:24 +01:00
Stefan Csomor
66a9e55f3b
macOS 10.14 adaption for launch-opening files
...
The previous way to stop the event loop for wx-like OnInit processing was too early for 10.14, opening files during launch was not possible, see #18305
2019-01-03 17:49:20 +01:00
Stefan Csomor
142234d009
macOS fix
...
otherwise CreateNewDocument is called twice
2019-01-03 17:04:13 +01:00
Stefan Csomor
5581e5079f
separate non-native mouse handling from IsUserPane
...
NSOpenGLView is needed under 10.14 as native view, in order to reuse wx touch and mouse handling we trigger this separately from IsUserPane being true
2019-01-03 16:28:19 +01:00
Stefan Csomor
a29ea16ccd
separate non-native key handling from IsUserPane
...
NSOpenGLView is needed under 10.14 as a native view, but it doesn’t have its own native key handling, therefore use the same code we have for non-native custom views.
2019-01-03 13:26:50 +01:00
chris2oph
155a19a1a2
Improve checks for dates range in wxQt wxCalendarCtrl
...
Account for the minimum and maximum dates supported by QDatePicker, both
in the code and in the test suite, which shouldn't rely on not having
any range restrictions in wxQt.
Closes https://github.com/wxWidgets/wxWidgets/pull/1088
2019-01-03 00:18:37 +01:00
Cătălin Răceanu
2a9462a260
Honor text alignment for spin controls in wxQt
...
Add support for wxALIGN_CENTRE_HORIZONTAL and wxALIGN_RIGHT flags.
Closes https://github.com/wxWidgets/wxWidgets/pull/1108
2019-01-03 00:15:23 +01:00
PB
0e0bf07888
Fix broken URL in wxICON_QUESTION documentation
...
The content on MSDN has moved, so the URL needs to be updated.
Closes https://github.com/wxWidgets/wxWidgets/pull/1107
2019-01-03 00:12:37 +01:00
Paul Cornett
942362063d
Avoid blocking paint events from long-running mouse event handlers
...
If a mouse event handler calls Refresh(), increase the likelyhood that a
paint event can be issued before the next mouse event occurs, by requesting
more mouse events from the the end of the handler rather than the start.
See #18314
2018-12-31 10:45:44 -08:00
Vadim Zeitlin
974c75272c
Don't invalidate best size unnecessarily in wxControl::SetFont()
...
There is no reason to do it if the font didn't change at all.
2018-12-31 15:35:36 +01:00
Vadim Zeitlin
6f0c5f65b6
Add "aui" project to MSVS 2017 unit tests solution file too
...
This should have been done in e9cbbede00
which updated the solution files for all the other MSVS versions, but
somehow forgot this one.
See https://github.com/wxWidgets/wxWidgets/pull/1085
2018-12-30 16:02:09 +01:00
Vadim Zeitlin
c9b240e893
Try to better explain what wxFIXED_MINSIZE does
...
Don't mention the non-existent GetAdjustedBestSize() function and do
explain what setting wxFIXED_MINSIZE achieves and how it can be done
without it.
Closes #18315 .
2018-12-30 15:40:00 +01:00
Vadim Zeitlin
9a8ef599d2
Remove apparently never used wxMSWDCImpl::m_canvas
...
This member field doesn't seem referenced anywhere (even not to
initialize it), so it can't possibly be useful for anything and can be
just removed.
2018-12-29 03:48:15 +01:00
Artur Wieczorek
a6570433b6
Change wxPGProperty::OnCustomPaint measure item call signature
...
Because horizontally scrolled wxPGProperty can have x-coordinate < 0 so there is a need to change measure item call signature from rect.x < 0 condition to something more specific to avoid misinterpretation of the calls.
2018-12-28 14:02:05 +01:00
Artur Wieczorek
e13382f400
Remove unnecessary check whether x-coordinate >= 0
...
Several lines before there is a block terminating the function if rect.x < 0 (measure item call) so there is no need to check after this block whether rect.x >= 0.
2018-12-28 14:02:05 +01:00
Artur Wieczorek
b569a429a2
Remove unnecessary position check
...
Horizontally scrolled item can have a negative x-position.
2018-12-28 14:02:04 +01:00
Artur Wieczorek
4eef8d9658
Use row height value stored already in another variable
...
No reason to calculate it twice.
2018-12-28 14:02:03 +01:00
Artur Wieczorek
99c53ca4bb
Don't retrieve unused x-coordinate of the view
2018-12-28 14:02:03 +01:00
Artur Wieczorek
76ff4ab2b6
Use dedicated method to move rectangle
2018-12-28 14:02:02 +01:00
Artur Wieczorek
18e03af068
Use conditional operator instead of conditional statement
2018-12-28 14:02:01 +01:00
Artur Wieczorek
9d2fbef751
Only render columns that are within update region
2018-12-28 14:02:01 +01:00
Artur Wieczorek
95461c566d
Fix repositioning editors for horizontally scrolled grid
...
Closes #18313 .
2018-12-28 14:01:34 +01:00
Artur Wieczorek
9b7c281e6b
Move repeating code to the dedicated template wxVector function
2018-12-27 14:25:00 +01:00
Artur Wieczorek
7d43ed0fb6
Iterate over all items of wxVector with column proportions with iterator
2018-12-27 14:23:54 +01:00
Artur Wieczorek
831a81fb90
Fix positioning property editor
...
Account scrolled horizontal position.
See #18313 .
2018-12-27 14:22:18 +01:00
Artur Wieczorek
de6469610a
Fix determining width of the entire row
...
See #18313 .
2018-12-27 14:20:13 +01:00
Artur Wieczorek
9ad19622fd
Fix drawing horizontal lines between the rows of the grid
...
See #18313 .
2018-12-27 14:18:04 +01:00
Artur Wieczorek
2f918abf3a
Clear empty space beyond the right edge of the grid
...
See #18313 .
2018-12-27 14:15:44 +01:00
Artur Wieczorek
48c71a5f04
Fix calculating width of the first cell
...
See #18313 .
2018-12-27 14:14:19 +01:00
Artur Wieczorek
73b5d3420e
Fix determining shift of the drawn scrolled contents
...
Position of the visible portion of the window should be taken as a drawing offset.
See #18313 .
2018-12-27 14:12:32 +01:00
Artur Wieczorek
cc32ebc979
Adjust scroll bar and refresh the grid after changing virtual width
2018-12-27 13:18:06 +01:00
Artur Wieczorek
8dbe6ec69d
Add to propgrid sample an option to change virtual width of the grid
2018-12-27 13:16:41 +01:00
Artur Wieczorek
311e5e8414
Use conditional operator instead of conditional statement
2018-12-26 11:38:52 +01:00
Artur Wieczorek
a57aacd5af
Calculate splitter positions once
...
Column widths are the same for all rows so there is no need to calculate splitters positions for each drawn row.
2018-12-26 11:38:10 +01:00
Artur Wieczorek
c112c20d5f
Optimize calculating position of the right edge of the last cell
...
Cell widths are invariant during the drawing so calculation can be done once, not on every loop.
2018-12-26 11:37:31 +01:00
Artur Wieczorek
5c0acce694
Hide editor button while column splitter is being dragged
...
Main editor and its button (secondary editor) should be both hidden while dragging the splitter because it's misleading when one part of the property editor disappears and another part remains visible.
2018-12-26 11:36:12 +01:00
Artur Wieczorek
5366a1dfbb
Iterate over all items of wxVector with column widths with iterator
2018-12-26 11:35:19 +01:00
Artur Wieczorek
b3563b690c
Access last element of wxVector with dedicated method
...
Use reference returned by back() method instead of referencing by the index of the last element.
2018-12-26 11:34:26 +01:00
Artur Wieczorek
7f29ab97df
Optimize calculating column widths
...
Use iterative algorithm instead of recursive one to adjust column widths.
2018-12-26 11:33:10 +01:00
Artur Wieczorek
e74e345e04
Use dedicated function to check if array of selected properties is empty
2018-12-26 11:32:09 +01:00
Artur Wieczorek
d85a03b561
Don't make unnecessary calls to the member function
...
Use already obtained reference to the list of selected properties instead of retrieving the list by calling GetSelectedProperties() function.
2018-12-26 11:31:21 +01:00
Artur Wieczorek
6c36554ae1
Get rid of unnecessary variable in wxPropertyGrid
2018-12-26 11:30:29 +01:00
Artur Wieczorek
e9b45f19f9
Fix index of dragged splitter sent with EVT_PG_COL_DRAGGING
...
Re-centering the splitter with mouse double-click works only if we have two columns so only splitter 0 can be clicked.
2018-12-26 11:29:40 +01:00
Artur Wieczorek
1042521706
Refresh wxPropertGrid after resetting column sizes
...
Grid needs to be redrawn with new splitters positions.
Closes #18312 .
2018-12-26 11:28:17 +01:00
Jeff Bland
2937369869
CMake: Fix monolithic build
...
Monolithic build regressed with commit
815d288c4fedba044a9863c883d6dd9f53526668 "Set wx-config base, gui and
built libraries".
The code queries each possible target name and creates lists of the
valid targets. In the monolithic build, none of the normal target names
exist, so the list is empty. The empty list is then passed to STRIP,
causing cmake to fail due to not having enough arguments.
By quoting the STRIP params we can pass an empty argument and thus
prevent the error of not-enough arguments.
See https://github.com/wxWidgets/wxWidgets/pull/1100
2018-12-25 18:50:06 +01:00
Cătălin Răceanu
a207862210
SetValue() on 'single' radio button must not reset others
...
Radio buttons with wxRB_SINGLE style are not set initially. When
getting set, the code attempts to unset other radio buttons that do not
have wxRB_GROUP | wxRB_SINGLE style.
Closes https://github.com/wxWidgets/wxWidgets/pull/1099
2018-12-24 16:14:49 +01:00