Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-10-08Merge pull request #1106 from mono/dev/sandy/nsfont-extensionHEADmainSandy Armstrong
Mac: Add extensions for converting from NSFont
2022-10-07Mac: Add extensions for converting from NSFontSandy Armstrong
Taken from https://github.com/xamarin/vsmac/pull/9164
2022-08-16Merge pull request #1105 from mono/Therzok-patch-2Marius Ungureanu
2022-08-16Optimize TreeViewBackend to not marshall a string redundantlyMarius Ungureanu
2022-06-27Merge pull request #1104 from stephenbudhi-msft/dev/stephenbudhi/fixscrollSandy Armstrong
[Mac] Prevent ScrollView from scrolling out of bounds
2022-06-24Prevent ScrollView from scrolling out of boundsStephen Budhi
2022-06-13Merge pull request #1103 from mono/dev/sandy/macos-rc3Sandy Armstrong
Update for macos workload RC3 API changes
2022-05-19Mac: Drop hand cursor support for link text in RichTextViewdev/sandy/macos-rc3Sandy Armstrong
This needs a little extra time to make work correctly now that GetRects is not bound for NSTextView. I cannot find any RichTextView in VSMac that uses anything but plain text so this should not cause any regression there.
2022-05-12Handle macos workload RC3 API updatesSandy Armstrong
2022-04-28Merge pull request #1102 from mono/dev/sandy/keydialogsSandy Armstrong
Mac: Make dialog window key when showing
2022-04-27Mac: Make dialog window key when showingdev/sandy/keydialogsSandy Armstrong
Fixes scenarios where a dialog is shown but a background window continues receiving input.
2022-04-14[Mac] Fix ArgumentNullException when drawing Chinese charactersMatt Ward
The TextLayoutBackendHandler did not handle NSFont returning null when trying to get a different weight or size for an NSFont. System.ArgumentNullException: Value cannot be null. (Parameter 'value') at ObjCRuntime.ThrowHelper.ThrowArgumentNullException( String argumentName) in xamarin-macios/src/ObjCRuntime/ ThrowHelper.cs:line 28 at Foundation.NSMutableAttributedString.AddAttribute( NSString attributeName, NSObject value, NSRange range) in xamarin-macios/src/build/dotnet/macos/generated-sources/Foundation/ NSMutableAttributedString.g.cs:line 187 at Xwt.Mac.MacTextLayoutBackendHandler.LayoutInfo. AddAttributeInternal(TextAttribute attribute) in Xwt.XamMac/ Xwt.Mac/TextLayoutBackendHandler.cs:line 210 at Xwt.Mac.MacTextLayoutBackendHandler.LayoutInfo.AddAttribute( TextAttribute attribute) in Xwt.XamMac/Xwt.Mac/ TextLayoutBackendHandler.cs:line 125 at Xwt.Mac.MacTextLayoutBackendHandler.AddAttribute(Object backend, TextAttribute attribute) in Xwt.XamMac/Xwt.Mac/ TextLayoutBackendHandler.cs:line 405 at Xwt.Drawing.TextLayout.set_Markup(String value) Xwt.Drawing/ TextLayout.cs:line 260
2022-04-07Merge pull request #1100 from mono/more-window-fixesJose Medrano
[WindowFrameBackend] Only add parenting when dialog is preparing it be shown
2022-04-07fixes indentationJose Medrano
2022-04-07Removes commentJose Medrano
2022-04-07Removes unnecessary un-assignmentJose Medrano
2022-04-07If the window is already visible we set the associationJose Medrano
2022-04-07Ensures un associed both old parent dialog and new if it was already shownmore-window-fixesJose Medrano
2022-04-06[WindowFrame] Fixes NRE if transient value is nullJose Medrano
2022-04-06[WindowFrameBackend] We only add the parenting if the window was not already ↵Jose Medrano
added+center
2022-04-06[WindowFrameBackend] TransientFrame only associates parenting in both windowsJose Medrano
(this is taked into account when the window is shown)
2022-04-01Fix drag/drop support (#1091)Bret Johnson
Fix so that drag/drop support works properly with the Cocoa backend. This PR includes these fixes: DraggingUpdate passed the wrong coordinates. Now do the proper conversion from view coordinates to window coordinates, as expected by the Xwt client. Get the INSDraggingInfo object in the proper way, with Runtime.GetINativeObject<INSDraggingInfo> (dragInfo, owns: false), same as we do in other code now. Use the newer NSView.BeginDraggingSession API instead of the deprecated NSView.DragImage. This is needed so that we can provide a DraggingSource object in order to be notified when the drag/drop is over (no matter if successful or not) and call the Finished callback, as expected by Xwt client code. Populate the pasteboard item used for the drag properly, supporting text drag/drop and internal formats (normally a serialized object where the Id is the assembly qualified type name). To my knowledge the Android Designer is the only client that still uses this drag/drop code. All of these fixes were to make Android Designer drag/drop work properly. Squashed commits: * Update InitPasteboard, including all data types * Treat as internal data * Update INSDraggingInfo type, thanks to Sandy * More fixes * Fix DraggingUpdated coordinates to be widget, not window * Serialize drag data for Cocoa backend This more closely matches what was done on Gtk before. It’s needed for at least the Android Designer, supporting drag/drop on the AndroidDesignerDragData serializable type. * Use BeginDraggingSession for drag/drop This allows sending the OnDragFinished notification when the drag/drop is complete, in turn calling DragOperation.Finished. Calling Finished is expected for Xwt - it did before for Gtk and this makes the Cocoa backend behave the same. * Update pasteboard handling * Only use valid names for pasteboard types * Switch to using INSDraggingSource * Spaces -> tabs
2022-03-30Merge pull request #1099 from mono/parenting_dialog_backendVsevolod Kukol
Sets a default parent in dialogs with empty parent
2022-03-29Sets a default parent in dialogs with empty parentJose Medrano
2022-03-29Merge pull request #1096 from mono/active-windowJose Medrano
[AlertDialogBackend] Ensures parent is set using the active window if there are not any window specified
2022-03-26Fixed changed handler to detect password autofilled using Apple Keychain and ↵Kunyi Li
text field wrapping to prevent long passwords appearing as multiple lines (#1098)
2022-03-18[XamMac] Ensures AlertDialogBackend has parenting and centers window when showsJose Medrano
2022-03-18Merge pull request #1097 from mono/dialogbackend-parentJose Medrano
[Xam.Mac] Fixes parenting in DialogBackend
2022-03-18[Xam.Mac] Fixes parenting in DialogBackendJose Medrano
2022-03-16Merge pull request #1090 from mono/dev/bretjohn/fix-open-urlSandy Armstrong
Fix Cocoa link labels to properly launch the browser
2022-03-07Merge pull request #1095 from mono/dev/iain/revert-keycodesiain
Revert changes to KeyCode handling
2022-03-07Revert changes to KeyCode handlingiain holmes
2022-03-04Merge pull request #1094 from mono/dev/therzok/singleordefaultMarius Ungureanu
Revert SingleOrDefault change which does not do what I thought it did
2022-03-04Revert SingleOrDefault change which does not do what I thought it didMarius Ungureanu
2022-03-03Merge pull request #1093 from mono/dev/sandy/pointySandy Armstrong
Mac: s/IntPtr/NativeHandle for several missed constructors
2022-03-03Mac: s/IntPtr/NativeHandle for several missed constructorsSandy Armstrong
Part of https://dev.azure.com/devdiv/DevDiv/_workitems/edit/1493053
2022-03-03Merge pull request #1088 from mono/dev/therzok/keycode-fixesMarius Ungureanu
Fix up KeyboardUtil so it doesn't marshal strings unnecessarily multi…
2022-03-03Merge pull request #1065 from mono/dev/therzok/lazy-imageMarius Ungureanu
Optimize some image API usages
2022-03-02Merge pull request #1092 from mono/dev/therzok/supported-os-versionMarius Ungureanu
Auto-generate assemblyinfo so minimum OS version works
2022-03-02Auto-generate assemblyinfo so minimum OS version worksMarius Ungureanu
2022-03-02Fix up KeyboardUtil so it doesn't do interop unnecessarilyMarius Ungureanu
2022-03-01Merge pull request #1089 from mono/dev/iain/fix-alt-mappingsiain
Add a hardware key field to get the physically pressed key
2022-03-01Override DesktopBackend.OpenUrl insteadBret Johnson
2022-03-01Fix Cocoa link labels to properly launch the browserBret Johnson
Update XamMac link labels to launch the browser directly, in the standard way we do it elsewhere in VSMac. Fixes AB#1484767 This behavior worked before with the Gtk backend, but I don't think it ever worked properly with the Cocoa
2022-02-26For the Mac just handle the raw keycode as the key valueiain holmes
2022-02-25Parse the hardware KeyCode into the KeyEventArgs.iain holmes
2022-02-24Handle alt-key mappingsiain holmes
2022-02-24Revert "Fix up KeyboardUtil so it doesn't marshal strings unnecessarily ↵Marius Ungureanu
multiple times." This reverts commit 4f3762af1ed9022a016c47a15f6bc7e9ec673c09.
2022-02-24Fix up KeyboardUtil so it doesn't marshal strings unnecessarily multiple times.Marius Ungureanu
2022-02-23Merge pull request #1087 from mono/dev/iain/fix-whitespace-keysiain
Cocoa passes ctrl+i as a tab key, so check that Characters is not whitespace