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
Juha
0bc32656ed
LazUtils, LCL: Move LCLProc.CompareRect() -> GraphMath.SameRect(). Deprecate LCLProc.CompareRect().
2023-07-03 16:54:10 +03:00
Juha
dd161fc03b
LazUtils, LCL: Initialize UnicodeTables in LazUTF16 only when needed. Deprecate copied UTF16 functions in LCLProc.
2023-07-03 15:29:56 +03:00
Juha
211d95da17
LCL: Use TLCLHandle instead of a redefined LCLType.THandle or TLCLIntfHandle. Deprecate them.
2023-07-03 11:17:01 +03:00
mattias
ae9ab00109
updated Makefiles
2023-06-30 20:50:27 +02:00
mattias
fde0e0f965
set main version to 3.99
2023-06-25 17:47:14 +02:00
Juha
b0a3e49dc0
Allow query of LCLWidgetTypeName without LCL. Turn BuildLCLWidgetType into const and fix comment.
2023-06-15 16:46:47 +03:00
Juha
74446557f6
Remove old deprecated functions and units.
2023-06-15 02:35:52 +03:00
Maxim Ganetsky
691e47cc00
LazUtils: fixed compilation on WinCE by adding somehow missing constants for it
2023-06-12 21:33:20 +03:00
Maxim Ganetsky
f80440d58b
Translations: Ukrainian translation update by Olexandr Pylypchuk, issue #40312
2023-06-12 18:20:35 +03:00
Maxim Ganetsky
9be315ce81
LCL, LCLTranslator: normalize LanguageID on Unix also when locale name is empty
2023-06-12 17:45:09 +03:00
Maxim Ganetsky
f2ce2e18e3
LazUtils, Translations unit: factored out locale name parsing code to a separate function GetLanguageIDFromLocaleName
2023-06-12 16:05:10 +03:00
Maxim Ganetsky
65ed61c3ba
LazUtils: Make LazGetLanguageIDs and LazGetShortLanguageID procedures use results of GetLanguageID function from Translations unit. Also deprecate LazGetLanguageIDs and LazGetShortLanguageID.
2023-06-12 04:11:44 +03:00
Maxim Ganetsky
bb19283344
LazUtils: Add GetLanguageID function to Translations unit. It returns a record with language code (in ISO 639-1 or ISO 639-2) and country code (in ISO 3166) for current system locale.
...
Implementation is based on GetLanguageIDs procedure from GetText unit, but is rewritten to have the following properties:
1. Language and country codes are returned in ISO formats on Windows.
2. Unix locale identifier is properly parsed and language/country codes are properly extracted.
3. Don't assume that language code is always two-letter (ISO 639-1), it can have bigger length (e. g. three letters, like in ISO 639-2).
4. Return locale ID in a record type. This will allow to return additional fields in backwards-compatible manner. Currently it contains language ID, language code and country code.
2023-06-12 04:11:44 +03:00
mattias
a6933c07a9
ideconfig: less dependency on codetools
2023-06-11 23:10:53 +02:00
mattias
67c1c58793
codetools: moved DateToCfgStr to LazConfigStorage
2023-06-11 21:34:37 +02:00
Juha
e3691f68f6
Move SkipCheckByKey functions from IdeUtils (IdeIntf) to LazUtilities (LazUtils). No LCL dependency. Add comments in uses section.
2023-06-11 20:34:36 +03:00
Maxim Ganetsky
97c198b599
LazUtils: Remove special macOS handling from LazGetLanguageIDs procedure. Handle macOS just as any Unix.
...
For the record, the logic of this code was the following:
1. If the App Bundle does not do any Locale configuration, 'English' is
returned (i. e. not an ISO code).
2. If the App Bundle has configured the Locale configuration that
matches the user's system settings, it will return locale name from its
list, e. g. 'zh_CN'.
3. If the App Bundle cannot match the Locale of the user system, the
first item set in the App Bundle is returned (`en` in case of Lazarus).
So this code provided no tangible benefits and introduced dependency on
language list in Lazarus bundle. This list was outdated and thus
prevented autodetection of Czech, Hungarian, Brazilian Portuguese,
Ukrainian languages on macOS.
In case there will a need to reintroduce special macOS handling arise,
NSLocale.object() should be called with `countryCode` and `languageCode`
keys.
2023-06-11 20:10:26 +03:00
Maxim Ganetsky
e13533d1e1
LazUtils: merge LazTrimLanguageID to LazGetLanguageIDs, it is used only there now
2023-06-06 03:00:26 +03:00
Juha
1475336c8c
Remove LCLProc.OffsetRect(). Move some functions from LCLProc to GraphMath (LazUtils).
2023-06-05 15:48:01 +03:00
Maxim Ganetsky
d05dd86b2c
LazUtils: simplify LazGetShortLanguageID procedure logic
...
It actually wants to return FallbackLang, so just return it and do not
make any assumptions about its length.
2023-06-03 19:18:40 +03:00
Maxim Ganetsky
e7b16e08e4
LazUtils: improved newly added language ID trimming procedure name (LazGetTrimmedLanguageID -> LazTrimLanguageID) in order to signify that it only transforms passed ID value
2023-06-02 02:03:46 +03:00
Maxim Ganetsky
42bcafe228
LazUtils, LCL: Trim encoding from found language ID if it presents there (e. g. ru_RU.utf8) in order to always correctly load translation files like project1.ru_RU.po. Based on patch by ACTom, merge request !182 .
2023-06-01 18:22:30 +03:00
Martin
3f1e7b394b
LazLogger: added new event, to change log-text
2023-05-28 21:47:05 +02:00
Martin
34053f3e32
LazLogger: added new event, to change log-text
2023-05-28 21:39:18 +02:00
mattias
7bc5b63fbb
updated makefiles
2023-05-27 02:07:12 +02:00
Juha
db2bca3949
Support compiling more of Lazarus + its components with -Sy option.
2023-05-21 01:32:42 +03:00