Commit Graph

65737 Commits

Author SHA1 Message Date
rich2014
cd9da93187 fpcunit: fix #29283: save the configuration file to the default path
(cherry picked from commit 218c536b94)
2023-11-17 13:45:59 +00:00
Maxim Ganetsky
3211889649 IDE: added clarifying comment in LoadCustomKeySchemasInDir procedure of keymapping.pp unit
(cherry picked from commit 6a1faf1419)
2023-11-17 01:47:08 +03:00
Martin
c6d4ee73be Debugger: Correctly store names for function refs. The name was wrongly stored as part of the type, making it equal for all entries in an array. Issue #40604
(cherry picked from commit 415660120f)
2023-11-15 22:02:56 +01:00
Maxim Ganetsky
c9efedc227 IDE: regenerated translations and updated Russian translation
(cherry picked from commit 2edaae58fb)
2023-11-13 17:24:06 +03:00
Maxim Ganetsky
5fe9adb855 IDE: unify UserKeySchemeDirectory signature with UserSchemeDirectory
(cherry picked from commit 9c28c9b117)
2023-11-13 17:24:02 +03:00
Maxim Ganetsky
e37e1aff99 IDE, Keymapping Options: removed key scheme Import button and related functionality (it was impossible to correctly load such a scheme after IDE restart), last part of issue #40559.
Instead, `Export` button now opens file save dialog in user key scheme subdirectory ('userkeyschemes') of Lazarus settings directory. This behavior is similar to how color schemes are handled.

Thus, user is able to edit scheme, export it and then immediately select it if desired (even without IDE restart). To load an external scheme, user should put it to key scheme subdirectory of Lazarus settings directory and select it in Lazarus settings (no IDE restart needed).

(cherry picked from commit 190dc4c999)
2023-11-13 17:24:01 +03:00
Maxim Ganetsky
1dc998066d IDE: Fixed loading of user key schemes.
1. Fix access violation on closing IDE when loaded user key scheme is present.
2. Correctly load user key scheme on IDE (re)start.
3. Search user key schemes in `userkeyschemes` subdirectory of Lazarus configuration directory.

Based on patch by Dean Mustakinov, part of issue #40559.

(cherry picked from commit 18bec6520a)
2023-11-13 17:23:15 +03:00
Maxim Ganetsky
dd0b913271 IDE: reduce memleaks when loading custom keyscheme, based on part of patch by Dean Mustakinov, issue #40559
(cherry picked from commit a187c73c68)
2023-11-13 17:17:24 +03:00
Maxim Ganetsky
91c3bf3781 LazUtils: more FPC 3.3.1 compilation fixes 2023-11-13 02:42:39 +03:00
mattias
fe520c4f4e lcl: fixed compile with fpc 3.3.1
(cherry picked from commit bcd4138db4)
2023-11-13 02:22:06 +03:00
DomingoGP
74a73ca396 Jedi code format: Fix memory leak on unclosed quoted constant string. 2023-11-11 18:58:39 +01:00
rich2014
c491890f84 Cocoa: Fix #40598 embedded form in TCocoaWSCustomForm.ShowHide() 2023-11-11 23:03:59 +08:00
mattias
1053612d8b ide: fixed FindSourceFile fsfUseIncludePaths, patch by Domingo 2023-11-10 18:24:25 +01:00
dsiders
07c698cda1 Docs: LCL/groupededit. Updates TCustomAbstractGroupedEdit.PopupMenu topic for changes in 54e9cc9171.
(cherry picked from commit 591793ee8e)
2023-11-09 04:34:13 +00:00
Maxim Ganetsky
8ea19afecd Components, ExamplesWindow: register IDE command names in locale independent manner
(cherry picked from commit 6478851bc1)
2023-11-08 17:28:10 +00:00
Bart
dabe00e84a TCustomAbstractGroupedEdit: assign PopupMenu also to FBuddy (if this does not have a separate PopupMenu by itself).
Resolves part of #38098.


(cherry picked from commit 54e9cc9171)
2023-11-07 14:29:59 +00:00
regs01
276e88dd44 Avoid firing on pure number
(cherry picked from commit cda109f74b)
2023-11-04 22:31:49 +01:00
ACTom
d0513b237e Fix the problem that TSynMemo reports an error when the input method is enabled on Windows.
(cherry picked from commit 4fd606cdfd)
2023-11-01 09:24:32 +01:00
dsiders
1bae2536ba Docs: LazUtils/lazfileutils. Adds content and fixes grammar in topics, including:
* TryCreateRelativePath
* CreateRelativePath
* GetDarwinSystemFilename
* GetDarwinNormalizedFilename

(cherry picked from commit 9bb3e76ac7)
2023-10-31 04:31:56 +01:00
ACTom
2b274da415 Translations: Chinese translation update by ACTom, merge request !247
(cherry picked from commit aaaca4ee83)
2023-10-31 01:55:59 +03:00
dsiders
778d8debbd Docs: LCL/forms. Adds content and See Also links in TApplication.Minimize and TApplication.Restore topics. Fixes spelling error.
(cherry picked from commit 54716537eb)
2023-10-30 21:30:27 +01:00
Martin
88ddd885a7 FpDebug: fix disassembler DPPD... / Issue #40567 patch by Red_prig (Pavel)
(cherry picked from commit b97a9b80a1)
2023-10-30 18:27:22 +01:00
dsiders
cc2d94f656 Docs: LCL, LazUtils. Removes unneeded fpmake.xml documentation files. Not used for make files.
(cherry picked from commit ffee752335)
2023-10-29 21:21:38 +01:00
dsiders
75552f0ed1 Docs: LazUtils/lazutf8. Cleanup for unused parameters.
(cherry picked from commit 6e83a5dc5a)
2023-10-29 21:21:28 +01:00
dsiders
b223ad8767 Docs: LazUtils/lazutf16. Adds missing topic content.
(cherry picked from commit fef0dc5f9f)
2023-10-29 21:21:22 +01:00
dsiders
fa0faf12c9 Docs: LazUtils/lazstringutils. Updates content in the GetPart topic.
(cherry picked from commit 826fcec702)
2023-10-29 21:21:10 +01:00
dsiders
a1522e9950 Docs: LazUtils/lazfilecache. Cleans up tagging and adds missing content in topics.
(cherry picked from commit b1cfc6ec72)
2023-10-29 21:21:02 +01:00
dsiders
e0328d188c Docs: LazUtils/lazdbglog. Adds missing short descriptions in topics.
(cherry picked from commit 11d69e906a)
2023-10-29 21:20:54 +01:00
dsiders
f45af0ea40 Docs: LazUtils/lazconfigstorage. Adds missing short descriptions.
(cherry picked from commit d7ad2345dd)
2023-10-29 21:20:43 +01:00
dsiders
d712b0852a Docs: LazUtils/lazclasses. Adds missing topics. Adds missing content.
(cherry picked from commit 775d0c7ede)
2023-10-29 21:20:34 +01:00
rich2014
da69f50a82 Cocoa: better support for Multi Display, Merge branch 'cocoa/MultiDisplay' 2023-10-28 19:46:30 +08:00
rich2014
b06a22d74a Cocoa: Fix #40569: Merge branch 'cocoa/ontop', fsStayOnTop improved 2023-10-28 19:43:51 +08:00
dsiders
7625c7d027 Docs: LazUtils/lazconfigstorage. Updates content in various topics.
(cherry picked from commit a84be54e3c)
2023-10-28 06:56:18 +01:00
dsiders
edd5cc96cd Docs: LazUtils/codepagescommon. Updates content in ArrayISO_8859_1ToUTF8 and ArrayMacintoshToUTF8 topics.
(cherry picked from commit 41f9fc32f5)
2023-10-28 06:56:06 +01:00
rich2014
a7c161756a Cocoa: Fix #40571 in TCocoaContext.DrawEdge() 2023-10-25 23:09:55 +08:00
rich2014
d68420e381 Cocoa: Fix #40571 in TCocoaContext.DrawEdgeRect() 2023-10-25 23:09:37 +08:00
dsiders
a8e9f489b7 Docs: LCL/calcform. Updates content in various topics.
(cherry picked from commit 586323470e)
2023-10-25 04:42:45 +01:00
mattias
25013f7e7c codetools: fixed InsertAllNewUnitsToMainUsesSection, issue #40522
(cherry picked from commit 00e6d8fbd8)
2023-10-23 14:13:50 +00:00
Martin
d76ba3ddc8 IDE, Debugger: find the first stack-frame with source (e.g. if paused at exception) / avoid the asm window.
(cherry picked from commit f987f75d28)
2023-10-22 19:31:27 +02:00
rich2014
7663577912 Cocoa: Full Screen Form improved
1. on MacOS, when a FORM is full screen, it has its own separate Space.
2. in this case, if a new FORM opened, no matter what's the properties of the
   FORM, Cocoa will automatically set this FORM to full screen,
   even if it is a Modal Form (ModalSession exactly).
3. in order to still show according to the settings of the newly opened FORM,
   we need to:
   (1) first set the corresponding NSWindow.CollectionBehavior to
       NSWindowCollectionBehaviorFullScreenAuxiliary
   (2) after the FORM is shown, decide whether to set CollectionBehavior to
       NSWindowCollectionBehaviorFullScreenPrimary based on the properties of
       the FORM.
2023-10-22 21:19:24 +08:00
rich2014
1d09fd6361 Cocoa/Display: Merge branch 'cocoa/display', fix and improve Display related 2023-10-21 22:21:30 +08:00
Maxim Ganetsky
eb2b425869 Revert "LCL: Do not Invalidate a CustomGrid in every MouseUp. Merge request !66 by Petr Kristan."
This reverts commit 7f6c15e911.

It caused an incompatibility for subclassed DrawGrids, issue #40550.


(cherry picked from commit 53f21809d1)
2023-10-20 15:15:17 +00:00
Maxim Ganetsky
688188fe5c LCL-Gtk2: Fix handling selection of simple listview in icon mode, issue #40563. Based on patch by Anton Kavalenka.
Actually it was a regression after
ed5ff63cf4.


(cherry picked from commit 1c3d963184)
2023-10-20 14:41:27 +00:00
Bad Sector
b332764d30 LCL-GTK2: Fix double free in listview pixbuf due to wrong refcounting
The 'pixbuf' field in GtkCellRendererPixbuf is supposed to be private to
Gtk which handles refcounting itself, but LCL modifies it directly which
can cause refcounting mismatches, especially during the destruction of a
listview with icons (images are unref'd by both the listview destructor
and gtk itself).  Since it is exposed as a property it can be modified
using the g_object_set_property and g_value_xxx APIs which handle any
necessary refcounting, so this patch replaces the direct modification of
the pixbuf field with these APIs.  This fixes the crashes due to
refcounting mismatch.


(cherry picked from commit 6a5e16239a)
2023-10-20 14:01:36 +00:00
Martin
a6ee92da7b IDE: Hint (Html/TurboPowerIPro), add space for horizontal scrollbar if needed. Issue #40565
(cherry picked from commit 79a8665989)
2023-10-18 16:14:22 +02:00
dsiders
f8071bb47d Docs: LCL/jsonpropstorage. Adds content in TCustomJSONPropStorage topics, including:
* TCustomJSONPropStorage.DoReadString
* TCustomJSONPropStorage.DoWriteString
* TCustomJSONPropStorage.DoEraseSections
* TCustomJSONPropStorage.JSONFileName
* TCustomJSONPropStorage.RootObjectPath
* TCustomJSONPropStorage.Formatted

(cherry picked from commit 33662ba17b)
2023-10-18 02:19:19 +01:00
ACTom
ac975efdde Translations: Chinese translation update by ACTom, merge request !241
(cherry picked from commit 0e61715762)
2023-10-18 01:51:14 +03:00
Maxim Ganetsky
64ad862ee0 IDE: committed automatically changed file 2023-10-17 21:53:39 +03:00
rich2014
d93c85c98d Cocoa: Multi Displays fully supported, Merge branch 'cocoa/MultiDisplay' 2023-10-18 00:21:34 +08:00
Martin
13c1f3497b LazDebuggerLldb: improved parsing of exception class after fpc_raiseexception. lldb may send \U00000012TClassFooBar
(cherry picked from commit c53355182a)
2023-10-17 02:20:54 +02:00