Commit Graph

67560 Commits

Author SHA1 Message Date
martin
5c5e12448d FpDebug, Linux: Fix leaked handle 2024-03-20 19:45:06 +01:00
dsiders
2fb5d41799 Docs: LCL.controls. Adds version admonitions to topics for changes in 3aaae1a6. Issue #40838.
* TWinControl.AdjustClientRect
* TWinControl.AlignControls
* TWinControl.ChildSizing
2024-03-20 19:24:08 +01:00
mattias
733ac0edd1 freetype: cleaned up some uses sections 2024-03-20 15:42:59 +01:00
marcos-ebm
d3f23af47c Translations: Brazilian Portuguese translation update, merge request !275 2024-03-19 20:43:30 +03:00
dsiders
ead3135f3c Docs: LCL/clipbrd. Updates content in the TClipboard.GetComponentAsText topic. 2024-03-19 17:49:51 +01:00
dsiders
60813b02c5 Docs: LazUtils/lazutf8. Removes unneeded TODO entries. 2024-03-19 17:45:35 +01:00
Maxim Ganetsky
decd3881c4 IDEIntf: regenerated translations and updated Russian translation 2024-03-19 19:10:35 +03:00
Maxim Ganetsky
0395c402b1 IDE: regenerated translations and updated Russian translation 2024-03-19 19:08:55 +03:00
Maxim Ganetsky
0df6225782 IDE: minor resource string improvements 2024-03-19 19:06:21 +03:00
wp_xyz
5621ec7af3 IDE/LCL: Prevent using the TListItems component editor when the associated listview is in virtual mode. https://forum.lazarus.freepascal.org/index.php/topic,66660.0.html, patch by dsiders. 2024-03-18 21:07:15 +01:00
Martin
5f9dd398f7 FpDebug: fix "EProcess" not found 2024-03-18 20:47:12 +01:00
Martin
6f0d8113cd FpDebug: Remove LCL / Win32Proc 2024-03-18 19:54:48 +01:00
Martin
dec0414cd6 FpDebug: update Makefile 2024-03-18 17:54:30 +01:00
Martin
a9ecef9ad2 LazDebuggerFp: defer destroying internal breakpoints, so they don't access any pending TDbgThreads (try getting instruction pointer) 2024-03-18 15:52:53 +01:00
Martin
34a5fe0392 Debugger, Test: don't get current location when not paused 2024-03-18 15:52:33 +01:00
Martin
6aa6ea6983 Ide, Debugger, FpDebug: Implement StdIn/StdOut file redirection. Issue #40458 2024-03-18 14:01:44 +01:00
dsiders
1dad391af7 Docs: LazUtils/translations. Adds missing topics and content for:
* GetLanguageIDFromLocaleName
* UpdatePOFile
2024-03-17 17:30:31 +01:00
rich2014
adc486abd0 Cocoa: fix #40853, Merge branch 'cocoa/scroll' 2024-03-17 22:24:25 +08:00
rich2014
ed95006509 Cocoa: Fix the issue that NSScrollView always consumes scrollWheel by itself
when NSScrollView itself does not need to scroll, scrollWheel should be passed to the upper NSScrollView.
it's intuitive and consistent with usage habits.
for example, the usability of "Lazarus IDE - Options Dialog" can be greatly improved.
2024-03-17 22:21:58 +08:00
rich2014
5cb028ee29 Cocoa: Fix Vertical Scroll Bar visibility issue in TCocoaWidgetSet.GetScrollbarVisible()
details:
1. in macOS system settings, set the scroll bar to always be shown.
2. the height of DocumentView does not exceed the visual vertical size of NSScrollView, but the difference is smaller than the scroll bar size.
3. the width of DocumentView exceeds the visible horizontal size of NSScrollView.
at this time, the horizontal scroll bar is shown correctly, but the vertical scroll bar is not shown. the correct result should be that because the horizontal scroll bar occupies vertical space, a vertical scroll bar should appear.
2024-03-17 22:21:58 +08:00
rich2014
142678cee6 Cocoa: keep the precision of getting and setting ScrollBar consistent 2024-03-17 22:21:58 +08:00
rich2014
5a7b7dbf37 Cocoa: NSScrollViewSetScrollPos refactored 2024-03-17 22:21:58 +08:00
rich2014
48c3b8d61b Cocoa: NSScrollerGetScrollInfo & NSScrollViewGetScrollInfo refactored 2024-03-17 22:21:58 +08:00
rich2014
75c05e54e8 Cocoa: TCocoaWidgetSet.SetScrollInfo() refactored 2024-03-17 22:21:58 +08:00
rich2014
308f3acce6 Cocoa: Fix the issue when the ScrollBar Visibility is toggled due to the frame size being changed
after the frame size changes, if one ScrollBar Visibility is toggled, which may cause the size of another ScrollBar to change.
on Cocoa, after calling setHasXXXScrollBar(), we must calculate and set all two ScrollBars again.
2024-03-17 22:21:58 +08:00
rich2014
e82f9bc1b7 Cocoa: Fix scroll issue of the NSScrollView in NSScrollViewSetScrollPos()
1. it's the issue caused by macOS animation
2. the issue can be observed in Lazarus IDE - Options - General Tab (move by Keyboard cursor key only)
2024-03-17 22:21:58 +08:00
rich2014
0724aee3df Cocoa: Fix scroll bar visibility issue of the TScrollingWinControl in TCocoaWSCustomForm.CreateHandle()
base on 7ea0e2d, create NSScrollView with default scroll bar visibility (hidden)
2024-03-17 22:21:58 +08:00
rich2014
5418c6f07d Cocoa: Fix scroll bar visibility of TCocoaScrollView in TCocoaWidgetSet.SetScrollInfo()
since macOS 10.7, NSScrollerStyleOverlay is used by default, and the scroll bar needs to be set before the DocumentView size changes.
2024-03-17 22:21:58 +08:00
rich2014
2d1f1e0652 Cocoa: Fix scroll bar init issue of the Form in TCocoaWSCustomForm.CreateHandle()
1. in TCustomForm.ShowModal(), a modal form with pmNone may be destroyed and recreated by RecreateWnd().
2. in this case, some initialization data needs to be obtained from the Form, such as the setting data of ScrollBar.
3. for example, IDEOptionsDialog in Lazarus IDE.
2024-03-17 22:21:58 +08:00
rich2014
e7b7b114a2 Cocoa: Fix scroll bar visibility issue in TCocoaWidgetSet.GetScrollbarVisible()
if the following two conditions are met at the same time, it will cause an infinite loop:
1. in macOS system settings, set the scroll bar to always be shown.
2. NSScrollView sets Border to bsSingle (occupies two points)
3. the width of DocumentView just exceeds the visual horizontal size of ScrollView by 1-2 points
2024-03-17 22:21:57 +08:00
rich2014
ab4727c101 Cocoa: Fix Document size in TCocoaScrollView
in the previous implementation, the entire frame of ScrollView was mistakenly used instead of Client Bound.
2024-03-17 22:21:57 +08:00
rich2014
c00f60ad39 Cocoa: Fix Scroller Bound in Custom Control (eg. TTreeView)
1. on Cocoa, when there are multiple subviews in an NSView, AutoresizesSubviews of the NSView may cause the subviews' position to be adjusted by Cocoa
2. in TCocoaManualScrollView, there are three subviews: document, fhscroll, and fvscroll, which may be accidentally adjusted by Cocoa.
3. by canceling AutoresizesSubviews, manually adjust the bounds of the three subviews and correct related issues.
2024-03-17 22:21:57 +08:00
wp_xyz
8744e56918 TAChart: Support series pointers in TAChartStyle. 2024-03-16 22:24:31 +01:00
Juha
d50abe6209 IDE: EditorOptions, remove "ShowFileNameInCaption" from Misc section. Issue #40821 2024-03-16 14:19:36 +02:00
Martin
0ace4633e8 IDE: EditorOptions, save CompletionLongLineHintType in the Codetool XML node. Issue #40821 2024-03-16 11:17:30 +01:00
Juha
30950b1cc2 IDE: Enable fppkg configuration file selection. Issue #40850, patch by Peacoor. 2024-03-16 11:27:29 +02:00
Juha
b4fe56e351 IDE, EditorOptions: Try to read the long version of CompletionLongLineHintType if it exists. Doesn't work! 2024-03-16 10:03:42 +02:00
Martin
ed068882ea FpDebug: Improve dis-asm stack-unwinder. Collect register values. 2024-03-15 22:19:51 +01:00
Martin
073f3095cf Debugger: assembler, fix rangecheck or wrong behaviour if debugger is nil 2024-03-15 22:16:54 +01:00
Juha
ec9335ef59 IDE: Don't concatenate 'CompletionLongLineHintType' twice in EditorOptions. Issue #40821. 2024-03-15 22:51:21 +02:00
Juha
ab3528d900 IdeScout: Fix compilation. 2024-03-15 20:20:55 +02:00
Martin
f6bc1ee84e FpDebug: x86-disassembler: test 2024-03-15 16:29:18 +01:00
Martin
a005719185 FpDebug: x86-disassembler: fix vcvtph2ps Issue #40837 2024-03-15 16:18:10 +01:00
Juha
153c212c2b LCL, Grids: Do not publish read-only properties VisibleColCount and VisibleRowCount. Publish FocusColor and FocusRectVisible. From n7800. 2024-03-15 12:04:13 +02:00
Juha
1a2b394941 Remove IdeIntf dependency from unit PackageDefs. 2024-03-15 11:52:35 +02:00
Juha
3ec140e266 Move unit ComponentReg from IdeIntf to BuildIntf. 2024-03-15 10:40:41 +02:00
Juha
d897c407ed IDE: Reduce dependencies in unit PackageDefs. 2024-03-15 10:40:41 +02:00
Juha
2c7e959e62 IdeIntf: Remove LCL dependency from unit ComponentReg. Adjust TRegisteredComponent method visibility. 2024-03-15 10:40:40 +02:00
wp_xyz
3aaae1a6a8 LCL: Fix ChildSizing ignoring adjusted client rectangle. Issue #40838, patch by Henner Drewes. 2024-03-14 23:24:44 +01:00
Bart
4c4c9631aa TFilenameEdit: adjust InitialDir after user executes the dialog. This is analogue to how TOpenDialog behaves. 2024-03-14 19:54:23 +01:00