Maarten Bent
64be484db2
Use pen width 1 for DrawPoint in wxSVGFileDC
...
This is consistent with other DCs.
2019-08-20 20:21:06 +02:00
Maarten Bent
dfe76430cc
Implement GradientFillLinear and GradientFillConcentric for wxSVGFileDC
2019-08-20 20:21:05 +02:00
Maarten Bent
26b273bef9
Fix RTTI class declarations of wxSVGFileDC
...
wxIMPLEMENT_DYNAMIC_CLASS requires a default constructor (no filename). Check
if m_outfile is initialized with a valid filename before using it.
2019-08-20 20:21:05 +02:00
Maarten Bent
a41a8ded79
Allow to set wxSVGFileDC shape rendering mode
2019-08-20 20:21:05 +02:00
Maarten Bent
75f08dfd51
Use floating point positions in wxSVGFileDC DrawRotatedText and DrawEllipse
2019-08-20 20:21:05 +02:00
Maarten Bent
9412aea1f6
Implement wxBRUSHSTYLE_BDIAGONAL_HATCH for wxSVGFileDC
...
Create new graphics group before writing brush pattern, so pattern appears in
the same group as the elements using it.
2019-08-20 20:21:04 +02:00
Maarten Bent
e7c03a5646
Use const references in SVG helper functions
...
Add helper function to get pen style.
Use Col2SVG for wxBrush colours.
2019-08-20 20:21:04 +02:00
Maarten Bent
215f844502
Improve whitespace formatting in generated SVG
...
Write coordinates first, then styles.
2019-08-20 20:21:04 +02:00
Vadim Zeitlin
05402e9eac
Merge branch 'stcacscroll' of https://github.com/NewPagodi/wxWidgets
...
More fixes for wxSTC auto-completion popup window, notably send the
scroll events to the correct window.
See https://github.com/wxWidgets/wxWidgets/pull/1482
2019-08-20 19:56:01 +02:00
Daniel Kulp
6974a6ceaa
Really fix problems with wxGLCanvas resizing under macOS 10.14.5
...
This is a better fix for the problem with NSOpenGLView having wrong size
after resizing the window under 10.14.5 (only): reset the context when
making the context current, to ensure that the up-to-date size is used.
See #18402 .
2019-08-20 19:44:07 +02:00
Vadim Zeitlin
70f0900799
Use white background when rendering print preview
...
Explicitly use the white brush when erasing background of the bitmap
used for print preview, to match the printed page appearance. Somehow it
worked even without this under other platforms before, but logically
resulted in black background under wxGTK 3.
Closes https://github.com/wxWidgets/wxWidgets/pull/1476
Closes #18371 .
2019-08-20 17:37:22 +02:00
Vadim Zeitlin
72272f5901
Document that 3rd person verb forms should be used in the manual
...
See https://github.com/wxWidgets/wxWidgets/pull/1473
2019-08-20 17:16:53 +02:00
Vadim Zeitlin
fbe651731c
Fix problems with documentation HOWTO syntax highlighting
...
Use backticks to prevent "_" and "*" from being interpreted as special
Markdown characters.
No real changes.
2019-08-20 17:11:37 +02:00
Vadim Zeitlin
346d7c378d
Merge branch 'arrstr-doc' of https://github.com/PBfordev/wxWidgets
...
Improve wxArrayString documentation.
See https://github.com/wxWidgets/wxWidgets/pull/1473
2019-08-20 17:04:54 +02:00
Vadim Zeitlin
8b7888b20b
Remove unnecessary wx/display.h inclusion
...
This should have been done in a15004fc5f
.
See https://github.com/wxWidgets/wxWidgets/pull/1246
2019-08-20 16:08:00 +02:00
Brian Clark
ee0cffe9bf
Handle the fact that, in OSX 10.15 (Catalina) some osx controls newly respond to the contentView selector and return nil. ( #1487 )
...
This has the effect of suppressing wxEVT_PAINT events, because the rectangle in which to draw/paint is calculated incorrectly.
2019-08-20 14:03:13 +02:00
Vadim Zeitlin
6096bff66b
Merge branch 'memorydc-font'
...
Initialize wxMemoryDC with a default font and fix a bug in text extent
computations under MSW that doing this uncovered.
See https://github.com/wxWidgets/wxWidgets/pull/1484
2019-08-20 13:46:36 +02:00
Vadim Zeitlin
002492f932
Use iterators for string iteration instead of indices
...
This is much more efficient when using UTF-8 representation internally.
No real changes, just an optimization.
2019-08-20 13:45:53 +02:00
Maarten Bent
d10ed0b991
Implement wxPolygonFillMode in GDI+ and D2D graphics contexts
...
Honour "fillStyle" parameter, which was previously ignored.
Closes https://github.com/wxWidgets/wxWidgets/pull/1478
2019-08-20 13:32:29 +02:00
Vadim Zeitlin
4b227835ac
Merge branch 'svg-drawtext' of https://github.com/MaartenBent/wxWidgets
...
Fixes and improvements to wxSVGFileDC::Draw[Rotated]Text().
See https://github.com/wxWidgets/wxWidgets/pull/1466
2019-08-20 13:27:26 +02:00
Vadim Zeitlin
ffd424debb
Merge branch 'mswdc-draw-point-checkbox' of https://github.com/MaartenBent/wxWidgets
...
Draw the same shape in wxDC::DrawCheckMark() under all platforms and
provide wxRenderer::DrawCheckMark() for drawing the platform-specific
shape.
Also fix wxGCDC::DrawPoint() to use the default one point wide pen.
See https://github.com/wxWidgets/wxWidgets/pull/1471
2019-08-20 13:25:28 +02:00
Vadim Zeitlin
23d43a6e55
Comment out the post-#endif comment
...
Even though both MSVC and gcc seem to silently ignore everything coming
after "#endif", it's still wrong to have anything but a comment after
it.
See commit 881aabf63e
2019-08-20 13:04:26 +02:00
Vadim Zeitlin
c2e6b86786
Add WX_IS_MACOS_AVAILABLE_FULL availability check macro
...
We could change WX_IS_MACOS_AVAILABLE itself to be a variadic macro, but
this would be significantly more complex and doesn't seem warranted.
2019-08-20 11:14:10 +02:00
Vadim Zeitlin
1d63c8b11d
Fix typo in a comment
...
No real changes.
2019-08-20 11:10:57 +02:00
Vadim Zeitlin
13f086b5d0
Revert "Work around problems with wxGLCanvas resizing under macOS 10.14.5"
...
This reverts commit ea68934b8e
as it
didn't fix the problem in all cases -- an alternative fix will replace
it in the upcoming commits.
2019-08-20 11:10:06 +02:00
Artur Wieczorek
881aabf63e
Fix dismissing wxComboCtrl popup
...
When wxComboCtrl popup window is dismissed we need to hide it but calling ShowWindow() Win API directly from WM_ACTIVATE event handler causes some side effects like calling the handler again (under Win 7) or setting the focus improperly (under Win 10). To avoid these problems we should postpone hiding.
Closes #18376 .
2019-08-18 19:53:41 +02:00
Paul Cornett
bcca16911d
Build fix after b200c661ed
...
A file was missing from the commit
2019-08-15 17:42:28 -07:00
Paul Cornett
b200c661ed
Fix wxPropertyGrid headers so they can be compiled independently
...
See #18465
2019-08-15 17:27:07 -07:00
Paul Cornett
6549d4c3c5
Fix wxDC::Clear() with transparent brush on GTK2
...
See #10273
2019-08-15 17:14:31 -07:00
Maarten Bent
533d82655f
Remove CppUnit boilerplate and macros from ellipsization tests
2019-08-14 21:03:48 +02:00
Maarten Bent
b245e4a571
Use dynamic widths in ellipsization tests so they will work for any font size
2019-08-14 21:02:33 +02:00
Maarten Bent
028458edbb
Fix tab width in MSW GetPartialTextExtents
...
The width of \t determined by GetTextExtentExPoint is 0. Determine the actual
width using DoGetTextExtent and update the widths accordingly.
2019-08-14 20:38:36 +02:00
Maarten Bent
2508efdd6e
Initialize wxMemoryDC with a default font
2019-08-13 22:15:57 +02:00
Maarten Bent
4dc5eb9a54
Use default wxPen for DrawPoint in wxGCDC
...
Match the default wxDC implementations by using a default wxPen with width 1,
wxPENSTYLE_SOLID and default join and cap values.
2019-08-11 22:24:56 +02:00
Artur Wieczorek
283ac3096d
Fix closing sub-path created by MoveToPoint() in Direct2D
...
Because call to MoveToPoint() opens a new sub-path but doesn't open
a new D2D figure (this is to avoid the situation when multiple consequtive
calls to MoveToPoint() would open a spurious figures/paths, see c8fe811636
),
we need to check when sub-path is being closed if we have a sub-patch
without figure and if so, a new figure has to be open to get a required
in this case 1-point figure/path.
2019-08-11 20:07:17 +02:00
PB
e6753b5a7a
Clarify wxArrayString::Insert() description
2019-08-10 15:09:59 +02:00
Maarten Bent
2874dab7f0
Add DrawCheckMark and GetCheckMarkSize to wxRendererNative
...
Show its use in the render sample. Also use the recently added GetExpanderSize
for the size of DrawTreeItemButton.
2019-08-10 13:42:04 +02:00
Maarten Bent
97320c312e
Add option to drawing sample to toggle anti-aliasing of graphics renderer
2019-08-10 13:42:04 +02:00
Maarten Bent
698a20e625
Use numbers for accelerator keys to select renderer in drawing sample
...
Determine if renderer is selected by comparing the renderer itself, not by name.
2019-08-10 13:42:04 +02:00
georgp24
8e41677989
Fix wxX11 build with --disable-graphics_ctx build option.
...
Add missing #if wxUSE_CAIRO checks.
Closes https://github.com/wxWidgets/wxWidgets/pull/1472
2019-08-10 00:00:18 +02:00
Vadim Zeitlin
5a394deba4
Merge branch 'accel_keys' of https://github.com/imciner2/wxWidgets
...
Fixes for accelerator handling in wxGTK.
See https://github.com/wxWidgets/wxWidgets/pull/1463
2019-08-09 23:54:37 +02:00
Vadim Zeitlin
c91c94ab0e
Avoid calling wxScreenDC::SetFont() more than once
...
This seems unnecessary when we can call it only once even with high DPI
screens.
2019-08-09 23:39:23 +02:00
Vadim Zeitlin
f3adef1047
Minor formatting fix
2019-08-09 23:38:23 +02:00
PB
60a09f55e0
Slightly improve wx(Sorted)ArrayString documentation
...
Correct the signature of wxArrayString::Insert():
the first parameter is "const wxString&", not "wxString".
Mention wxSortedArrayString in wxArrayString documentation.
The rest are just minor edits improving language, consistency, and formatting.
2019-08-08 11:32:04 +02:00
New Pagodi
4523df5d94
Redirect mouse wheel events when STC autocomp is active
...
While an autocompletion list is being shown, a native Scintilla window
will use mouse wheel events to scroll the list instead of the editor
window. Match this behavior with wxSTC by intercepting mouse wheel
events and redirecting them to the list.
2019-08-07 21:36:42 -05:00
New Pagodi
c3d9222a7c
Fix wxSTCPopupBase::Show for windows
...
The existing logic for the Show method results in wxWindowBase::Show
being called twice when the argument is false. Slightly rearrange the
code to fix this defect.
2019-08-07 21:36:42 -05:00
New Pagodi
075fa2b764
Record wxSTCPopupWindow position every time its set
...
The position of wxSTCPopupWindow is currently recorded the first time it
is set so that it can be used to reposition the popup when its parent
window is moved. However Scintilla apparently positions the popup at
least twice when icons are used and the first set position is slightly
wrong. Instead just record the position every time its set by Scintilla.
2019-08-07 21:36:42 -05:00
Maarten Bent
cdc004a941
Use generic DrawCheckMark in MSW wxDC
...
Use the generic implementation, so it looks like the check marks on all other
platforms and graphics contexts and not like a Windows control.
2019-08-07 21:21:29 +02:00
Paul Cornett
b2d1343fbc
Update various GNU configuration scripts to latest versions
...
See #18459
2019-08-07 09:00:09 -07:00
Stefan Csomor
4c94ad69d8
addin iOS icons and plist
2019-08-07 14:52:20 +02:00