Commit Graph

1497 Commits

Author SHA1 Message Date
Martin
7fc68aa656 LazUtils: XmlConfig, fix saving default (delete) for enum values 2024-03-12 13:40:13 +01:00
Juha
4967237fb1 LazUtils: Add simple functions SaveStringToFile and LoadStringFromFile. Rename SaveStringToFile in DialogProcs. 2024-03-11 01:24:15 +02:00
Juha
103d9f42e1 LazUtils: Split long lines in THTML2TextRenderer. 2024-03-11 01:24:15 +02:00
mattias
4c0096a138 lazutils: less hints 2024-03-05 15:38:14 +01:00
mattias
7d3626f6d7 lazutils: less hints 2024-03-05 15:13:20 +01:00
Juha
5e2a753239 LazUtils: Make sure CompareText comes from SysUtils. Issue #40814. 2024-03-02 12:28:12 +02:00
Juha
fee8dbf80e LazUtils: Remove an inaccurate comment about optimization in UTF8CodepointSizeFast. 2024-02-28 10:37:08 +02:00
Bart
0f3f955e2b TFileSearcher: also check if we already visted a directory if we don't arrive there via a symlink. 2024-02-12 18:00:56 +01:00
Juha
2c81dff5d9 LazUtils: Remove WriteLn() from TStringListUTF8Fast.InsertItem. Causes trouble on Windows. 2024-02-09 10:32:41 +02:00
Juha
890f92e33e LazUtils: Deprecate UTF8CompareLatinTextFast. Implement TStringListUTF8Fast differently. 2024-02-09 01:20:36 +02:00
Juha
08c0f4865d SynEdit, FpDebug, LazUtils, IdeIntf: Remove UTF8CompareLatinTextFast calls. 2024-02-09 01:20:35 +02:00
Juha
26547663f2 LazUtils: Optimize function CompareFormatArgs in unit Translations. 2024-02-08 21:18:39 +02:00
Bart
180dcc8888 TFileSearcher: don't enter subfolder and don't call OnDirectoryEnter when FSearching = False 2024-02-07 10:40:57 +01:00
Bart
c95ec9df9f TFileSearcher: don't add a pathdelimiter to the path when calling OnQueryDirectoryEnter. 2024-02-07 10:09:21 +01:00
Bart
2bae28ff63 TFileSearcher: rename OnQueryDirectoruFound to OnQueryDirectoryEnter and only call it when deciding to enter a directory, not when one is found. 2024-02-06 20:21:03 +01:00
Bart
65e0930568 TFileSearcher: first try at detecting circular links (outside the current tree). 2024-02-06 20:00:31 +01:00
Bart
6e1eac9018 TFileSearcher: supply fully qualified filename for OnQueryFileFound and OnQueryDirectoryFound events. 2024-02-04 18:30:03 +01:00
Bart
7b1e04c5d8 TFileSearcher: first attempt to try to avoid circular links (infinite loop when recuring directories).
Part of issue #40689.
2024-01-23 23:43:45 +01:00
Maxim Ganetsky
4f8f408f97 LazUtils, UTF8WrapText: make sure that last BreakChar (e.g. space symbol) on line fits into wrapping length 2024-01-22 19:06:32 +03:00
Maxim Ganetsky
86e979c239 LazUtils: added UTF8WrapText overload which indents text similar to BreakString function from LazStringUtils unit 2024-01-20 05:04:42 +03:00
mattias
df08d02d68 lazutils: FindClose in try finally 2024-01-15 15:21:41 +01:00
Bart
bb021c62c4 TFileSearcher: add path to filename for OnQueryFileFound and OnQueryDirectoryFound.
Reason: Self.Path is not up to date unless directory will be entered, which is only done after the call.
2024-01-13 23:15:33 +01:00
Juha
148b2d23f4 LazUtils: Resolve '/somedir/..' correctly in ResolveDots. Add tests. Issue #40678. 2024-01-13 12:48:03 +02:00
Maxim Ganetsky
beb17ad4d7 LazUtils, Translations unit: fixed compilation on 32-bit Darwin as reported on forum:
https://forum.lazarus.freepascal.org/index.php/topic,65612.msg500834.html#msg500834
2023-12-31 20:19:31 +03:00
Bart
5335e14783 Fix ForceDirectoriesUtf8 for Windows Apps. See related fpc bugreport https://gitlab.com/freepascal.org/fpc/source/-/issues/40558. 2023-12-14 17:54:29 +01:00
Bart
9ec85e5d2a FileUtil: implement TFileSearcher.OnQueryFileFound and OnQueryDirectoryFound. Gives the user the possibility
to reject files and/or directories. If rejected OnFileFound/OnDirectoryFound/OnDirectoryEnter will not be fired.
2023-11-06 15:16:32 +01:00
Martin
5b43d582a0 LazLogger: dbghex for unsigned 2023-10-10 12:52:30 +02:00
Martin
56ac6a45b6 IDE: More textmate Highlighting 2023-09-19 20:51:03 +02:00
Martin
40fd2fc1fe Support for Highlighter based on TextMate grammar 2023-09-12 12:01:50 +02:00
Maxim Ganetsky
6ae07c2413 LazUtils, Translations: simplified getting user language value in macOS (don't use setenv function, just use obtained identifier directly in GetLanguageID function), issue #40495 2023-09-11 03:29:37 +03:00
rich2014
cbf1dcc616 Translation: Fix #40495: auto language detection on MacOS (various WS) 2023-09-10 18:10:23 +08:00
mattias
c5bc78b070 updated makefiles 2023-09-03 17:11:29 +02:00
mattias
8d92e3b67d updated makefiles 2023-08-14 20:31:20 +02:00
mattias
478c8209a6 laztuils: fixed FileIsInPath for different utf8 lengths 2023-08-03 13:44:43 +02:00
mattias
05db0c6c76 lazutils: added missing files 2023-07-26 11:57:14 +01:00
mattias
cbf9d30ddf fixed compile with fpc 3.3.1 2023-07-25 09:30:38 +01:00
Martin
25db56ee57 IdeDebugger: add Destroy-callback to TIDEBreakPointGroup 2023-07-25 01:23:09 +02:00
mattias
ee1af547cc IDE: changed copiler options from string to TSTtrings for large amount of params 2023-07-24 16:38:31 +01:00
Juha
636e902e6a Move units IDECmdLine, IDEGuiCmdLine, IDEProcs and CompOptsModes to IdeConfig package. 2023-07-23 22:34:21 +03:00
Martin
c74bd43729 LazLogger: optimized some log function 2023-07-20 18:23:40 +02:00
Martin
4d05ca1d2e LazLogger: optimized some log function by making the open array a "const param". 2023-07-20 18:05:57 +02:00
mattias
2aaefc8651 lazutils: less hints 2023-07-20 14:52:13 +02:00
Maxim Ganetsky
0f522e8d81 Removed unit UITypes from LazUtils. Use System.UITypes instead. Try 2. 2023-07-12 01:41:51 +03:00
mattias
347b49bbf3 lazutils: EllipsePolygon sincos 2023-07-11 17:46:16 +02:00
mattias
c423a794b5 lazutils: added TPointArray to graphtype, added EllipsePolygon to GraphMath 2023-07-10 23:19:21 +02:00
Juha
5a19e7b529 Revert "Remove unit UITypes from LazUtils. Use System.UITypes."
This reverts commit f55ce5c939.
2023-07-08 16:16:56 +03:00
Juha
f55ce5c939 Remove unit UITypes from LazUtils. Use System.UITypes. 2023-07-08 14:07:52 +03:00
Juha
e65a102527 Remove unit Laz_AVL_Tree, a copy of unit AVL_Tree. Not needed with FPC 3.2.x. 2023-07-07 17:39:03 +03:00
Juha
adfc424e92 Lazarus trunk requires at least FPC 3.2.0. Remove checks for earlier FPC_FULLVERSION. 2023-07-07 17:39:03 +03:00
Juha
41adb276bb Remove obsolete checks for FPC versions earlier then 3.0. 2023-07-07 17:39:02 +03:00