Commit Graph

1571 Commits

Author SHA1 Message Date
wp_xyz
1f76660947 Tools/icons_to_html: reads image sizes from files (by Roland Hahn) 2024-04-26 13:08:40 +02:00
Martin
49f44c8ee1 Fix checking modal result, handle mrCancel. Issue: #40920 2024-04-25 21:47:15 +02:00
wp_xyz
12bbae380e Tools/IconTable: Remove "Show" button. Update by Roland Hahn. to show a preview of the html page. B 2024-04-11 23:18:40 +02:00
wp_xyz
fe7b7937f5 Tools/IconTable: Updated to show a preview of the html page. By Roland Hahn. 2024-04-10 23:20:44 +02:00
Juha
959d8c6ad4 Turn some LazLogger into LazLoggerBase. 2024-04-06 16:45:28 +03:00
mattias
cab19ae8cb debs: added arch arm64 2024-03-25 19:25:18 +01:00
Michaël Van Canneyt
92412badb1 * Improve syntax highlighting 2024-03-07 18:09:25 +01:00
wp_xyz
3ef36b7bbb Tools/IconTable: Improved version, by Roland Hahn 2024-03-04 09:46:31 +01:00
Maxim Ganetsky
6fe1823452 Installer, Win: updated Russian translation 2023-12-24 18:20:10 +03:00
mattias
e7faee2674 debs: always delete tar.gz 2023-12-23 09:51:24 +01:00
Martin
e2c0593719 Installer, Win: Updating info text during copying files. 2023-12-22 18:39:25 +01:00
Martin
1f072c2e58 Installer, Win: Updating URLs to use lazarus.ide.org (including url in image) 2023-12-22 18:39:25 +01:00
mattias
6e973773ca updated Makefiles 2023-11-25 14:33:16 +01:00
mattias
0d886d65e4 updatemakefiles: update custom Makefiles too 2023-11-25 14:33:04 +01:00
Maxim Ganetsky
0e65a9fbeb Revert erroneous renaming of file in "gir2pas: Added code to disable warning about non ascending enumeration values." (commit 508bd102b0). The change made to file contents is kept. 2023-11-16 02:35:22 +03:00
Abou Al Montacir
508bd102b0 gir2pas: Added code to disable warning about non ascending enumeration values.
FPC does warn about non strictly ascending enumeration values.
Unfortunately, some GTK enum identifiers share the same value and this
warning can safely be ignored. We shut it up.
2023-11-15 22:47:52 +01:00
ACTom
aaaca4ee83 Translations: Chinese translation update by ACTom, merge request !247 2023-10-31 01:45:39 +03:00
Michael Van Canneyt
18eae18d53 * Make it usable on HighDPI 2023-10-08 10:57:05 +02:00
Maxim Ganetsky
bf34e253da Tools: added missing *.res file for glazres tool 2023-10-07 02:44:39 +03:00
Maxim Ganetsky
5226e38bb1 Tools: added missing *.res file for pofilemaintenance tool 2023-10-07 02:43:24 +03:00
Martin
b4244d781b Installer, Win: Add OPT="-OoNOSTACKFRAME" to fpc build. Help the debugger unwind callstacks 2023-10-06 15:38:19 +02:00
mattias
89824a258b lplupdate: read lazarus.cfg to ignore pcp 2023-09-12 14:39:42 +02:00
Michaël Van Canneyt
2c12a7e228 * Parameter support when executing query 2023-08-10 22:32:32 +02:00
Michaël Van Canneyt
2a1a2a68a5 * Scroll result display to the end 2023-08-09 21:21:37 +02:00
Michaël Van Canneyt
57a46deca4 * Add copy from/to pascal code menu items 2023-08-09 14:11:34 +02:00
Michaël Van Canneyt
1729571841 * Add popup menu to editor, scrollbars to result pane memo 2023-08-09 08:55:48 +02:00
wp_xyz
b4f8ae34b5 Tools/Lazdatadesktop: Fix LCLScaling in Windows. 2023-07-29 18:56:31 +02:00
wp_xyz
fe828040ce Tools/Lazdatadesktop: Final (?) tuning of the application icons. By Roland Hahn. 2023-07-29 13:11:06 +02:00
wp_xyz
203dbd08fd Tools/LazDataDesktop: Improved version of the Connections icon. By Roland Hahn. 2023-07-27 13:35:50 +02:00
wp_xyz
5bae6ebf52 Tools/LazDatadesktop: Slightly improved images by Roland Hahn. 2023-07-25 15:12:47 +02:00
wp_xyz
168ed6ffa0 Tools/LazDataDesktop: Show icons in all treeviews. 2023-07-24 17:49:31 +02:00
Maxim Ganetsky
98e9e0dbcd LazDataDesktop: added executable to .gitignore 2023-07-24 16:55:43 +03:00
Maxim Ganetsky
3a0b3d3396 LazDataDesktop: updated Russian translation 2023-07-24 16:52:15 +03:00
wp_xyz
bfca6f229d Tolls/LazDataDesktop: Remove unneeded res files. Unscramble some image index assignments. 2023-07-24 13:41:52 +02:00
wp_xyz
3b1c10423f Tools/LazDataDesktop: Some new/improved icons by Roland Hahn. Improvements in data dictionary popup menu translation. 2023-07-24 10:35:41 +02:00
Maxim Ganetsky
90812b4afa LazDataDesktop: regenerated translations 2023-07-24 02:29:44 +03:00
wp_xyz
7c6659ba46 Tools/LazDatadesktop: Improved layout 2023-07-24 00:52:21 +02:00
wp_xyz
fe3b5ca955 Tools/LazDataDesktop: Refactoring of icons: new icons by Roland Hahn merged to a single image list in new data module. 2023-07-24 00:22:04 +02:00
wp_xyz
a0179e8133 LazDatadesktop: Update German translation 2023-07-23 22:56:54 +02:00
mattias
79893d2cbe updated makefiles 2023-07-14 16:42:45 +02: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
211d95da17 LCL: Use TLCLHandle instead of a redefined LCLType.THandle or TLCLIntfHandle. Deprecate them. 2023-07-03 11:17:01 +03:00
Juha
4db3bb880c Svn2RevisionInc: Do not warn about missing SVN client. Issue #40359, patch by Don Siders. 2023-07-03 10:09:15 +03:00
mattias
8eab0fb13f deb: fixed lazarus tgz 2023-06-28 23:53:30 +02:00
mattias
fc7d829025 deb: fixed copying changelog and delete git files 2023-06-27 00:59:53 +02:00
mattias
b3748ad6b3 rpm: fixed build 2023-06-25 19:57:33 +02:00
mattias
1002929c77 deb: fixed export tgz, fixed RC version number turning RC into .0 2023-06-25 19:39:07 +02:00
mattias
fde0e0f965 set main version to 3.99 2023-06-25 17:47:14 +02:00
Abou Al Montacir
25b8bc2160 git2pas: Removed unneeded conditional compilation flag.
This allows having the same code compiled for both Windows and Linux.
2023-06-18 20:15:15 +02:00
Abou Al Montacir
bcf79bffc1 gir2pas: Fixed generation of types based on int32 standard C type.
This fixes code generated for FreeType library.
Now FreeType bindings generated code does not need any manual change
to be used in Lazarus.
2023-06-18 16:24:01 +00:00
Abou Al Montacir
ed310974db gir2pas: Enabled passing max version CLO multiple times.
This allows to constraint each library separately, as for example:
```sh
gir2pas -e Set -i /usr/share/gir-1.0/Gtk-3.0.gir -o gtk3-test \
        -M atk-2.36 \
        -M pango-1.16 \
        -M pangocairo-1.46 \
        -M glib-2.66 \
        -M gtk-3.24
```
2023-06-18 14:30:11 +00:00
Abou Al Montacir
d94e263cdc gir2pas: Fixed generation of enumeration types other than bit fields.
When enum types is set as `goEnumAsSet` by user, we need to add
`goEnumAsEnum` also in order to correctly handle non bit fields enums.

This should be done at the very beginning, upon CLO handling, otherwise
some enums are generated as integer constants.
2023-06-17 21:57:38 +02:00
Abou Al Montacir
ec6cbdbee7 gir2pas: Fixed make file.
Create units output directory upon build.

Remove output directory recursively.
2023-06-17 21:57:38 +02:00
Maxim Ganetsky
f80440d58b Translations: Ukrainian translation update by Olexandr Pylypchuk, issue #40312 2023-06-12 18:20:35 +03:00
Maxim Ganetsky
065d9a7d64 LazDataDesktop: use GetLanguageIDFromLocaleName function from Translations unit to properly extract language code from language name passed via command-line option 2023-06-12 16:41:34 +03:00
Maxim Ganetsky
22f596f8bb LazDataDesktop: migrated to using GetLanguageID function from Translations unit 2023-06-12 04:11:45 +03:00
Abou Al Montacir
aba8308de3 gir2pas: Fixed issues when generating bit fields with a null or duplicate masks.
In this case, the code used to create a wrong index with value 255.
This is now detected and fixed.

Also, the code was not able to handle bit fields with duplicates.
Now this is also fixed.
2023-06-04 19:11:02 +02:00
Abou Al Montacir
524cc642eb Enabled generating code for bit masks defined within C bitfields enum.
These masks are handled as non typed set constants.
2023-06-04 14:04:45 +02:00
Abou Al Montacir
cd0756f17b gir2pas: Enabled generating Pascal sets to C bitfield enums by CLO.
Based on command line option (CLO) `-e/--declare-enums-as` that
selects the way how to define C enums and bit fields.

Added support for 5th options in addition 4 already implemented.
 1. `IntConst`: No type, just use integer non typed constants. This was
    already implemented, but not easily selected at CLI.
 2. `TypedIntConst`: Use non strict type aliases and typed constants.
    This was already implemented, selected by default in the code.
 3. `IntAliasConst`: Use strict type aliases and non typed constants.
    This was newly added.
 4. `Enum`: Use Pascal enumeration type for both C enums and bit fields.
    This was newly added.
 5. `Set`: Use Pascal enumeration type for both C enums and Pascal sets
    for bit fields. This is now implemented.
2023-06-04 10:10:42 +00:00
Abou Al Montacir
bb05d66329 Renamed executable from gir2pascal to gir2pas. 2023-06-04 10:10:42 +00:00
Abou Al Montacir
050dfa3884 gir2pascal: Small code improvements.
These changes are:
 1. Added line break to last line of generated files.
 2. Removed unused field `FEnumImpl` from `TGirConsoleConverter`.
 3. Moved command line from .lpi to .lps as this depends on the path
    of the user debugging the program.
2023-05-27 15:53:56 +00:00
Abou Al Montacir
b2013f8634 Fixed issue causing generation of duplicate declarations for some opaque types.
There was an issue with the logic for resolving opaque types that misses
some types due to not comparing C types with opaque type name.

This is now fixed and all Gtk3 units now compile without any manual
modification.

Tested with
43cac7495f
using
`./gir2pas/gir2pas -i gir-rs-files/Gtk-3.0.gir -o gtk3-test-enums -e Enum`
2023-05-23 12:57:27 +00:00
Abou Al Montacir
0838345684 Fixed generation of unnamed unions handling within objects.
The generated code was missing an identifier and thus was unable to
compile.

Now we generated a name based on the type and this seems for fix the
issues with Gtk3.gir file.
2023-05-22 22:22:51 +00:00
Abou Al Montacir
8ebe4628c8 Generate pointer types for all declared types.
If the type is not used within the unit it was declared in, then pointer
types will not generated. This causes an error when a pointer type is
used by a unit using it.

An example is a compilation error on `Pango1` that uses `Glib2` because
the type `Pgconstpointer` was not defined.

The new code generates a lost of pointer types, but at least it allows
get a code that compiles fine.
2023-05-21 22:09:42 +00:00
Abou Al Montacir
08ee4a27b4 gir2pascal: Created a dedicated section for declaring enumeration types, issue #FP39988.
This section is placed just after the constants section in order to
avoid declaration of function parameters and variables of enumeration
types that are not yet declared.

The issue was hidden in the typed constants implementation because the
constants section is placed at the beginning of the unit. This is not
true anymore and thus we need a dedicated section.
2023-05-21 15:50:48 +00:00
Abou Al Montacir
194cc1a4fc git2pascal: Refactored code to avoid duplication.
Inserting `external` directive for `C` identifiers was done manually.
This commit adds a method to add such a directive for any identifier.
This helps keeping inserted code consistent and if a change is to be
done in the future, we do it at one place only.
2023-05-20 13:32:33 +00:00
Abou Al Montacir
5c6f02b8ee gir2pascal: Used consistent naming of MsWindows directive.
Compilation directive `MsWindows`is inserted in 3 different places with
3 different case mixing.

Also white spaces around it are some times added and sometimes not.

This commit fixes all to a single convention.
2023-05-19 18:58:31 +02:00
Abou Al Montacir
d1f64050ea gir2pascal: Generate C enums based pascal type selected by CLO, issue #39988.
Added a new command line option (CLO) `-e/--declare-enums-as` that
selects the way how to define C enums and bit fields.

Added support for 4 options and a 5th to be implemented later.
 1. `IntConst`: No type, just use integer non typed constants. This was
    already implemented, but not easily selected at CLI.
 2. `TypedIntConst`: Use non strict type aliases and typed constants.
    This was already implemented, selected by default in the code.
 3. `IntAliasConst`: Use strict type aliases and non typed constants.
    This was newly added.
 4. `Enum`: Use Pascal enumeration type for both C enums and bit fields.
    This was newly added.
 5. `Set`: Use Pascal enumeration type for both C enums and Pascal sets
    for bit fields. This is not yet added.
2023-05-18 10:44:10 +02:00
Abou Al Montacir
7920db790b Issue #39988: Forbid duplicate paths in directories search list.
As the directories search list is not sorted, FPC implementation of
`TStringList` ignores the `dupIgnore` option and thus leads to having
the same entry multiple times in the list.

We forbid this manually in order to avoid searching multiple times for
the same file in the very same directory.

We also add more default search paths (Debian based).
2023-05-12 21:44:21 +00:00
Abou Al Montacir
9c5b942b66 Issue #39988: Use system path separator instead in folders search list.
This is more consistent with other tools and allows passing drives on
MS Windows systems.
2023-05-12 21:44:21 +00:00
Abou Al Montacir
5c34ab0510 Issue #39988: Try to create output directory if it does not exist.
This is more convenient for users and when included in a script.
2023-05-12 21:44:21 +00:00
Abou Al Montacir
f64c1307f9 Issue #39988: Changed order of folders where to search for included files.
The order of folders where to search for included files should be
related to user preference as follows:
 1. directory where the input is located,
 2. directories supplied by user at command line in the order they were
    passed,
 3. default system directories, where distributions used to put them.

 This way, user can easily override files in the default system
 directories without the need to have write access to such folder, as in
 most Unix systems this will require root access.

 Also, one expects, that if copy of an included file is placed in the
 same directory as the input one, then this copy should be used.
 This makes sens, because people generally work on the same directory,
 and will consider their local work copy the preferred one to be used.
2023-05-11 15:46:44 +00:00
Abou Al Montacir
8a7116f248 Issue #39988: Added support for .typelib files.
Debian ships .gir files in a compressed binary format with .typelib
extension. We use `g-it-generate`to decompress them on the fly.
2023-05-10 22:00:29 +00:00
Maxim Ganetsky
debb889759 gir2pascal: Updated to support generating Gtk4 bindings. Patch from theo222, issue #40196. 2023-04-06 01:49:50 +03:00
Michaël Van Canneyt
57e0738de1 * Fix some warnings about unused variables 2023-03-14 22:32:33 +01:00
Maxim Ganetsky
3150888bc3 LazDataDesktop: cleaned up unused strings, regenerated translations and updated Russian translation 2023-03-14 00:40:15 +03:00
Michaël Van Canneyt
8d7ad0ab18 * correct IsTransactionActive implementation 2023-03-13 08:59:50 +01:00
Michaël Van Canneyt
4663f00008 * Add transaction control buttons 2023-03-12 11:54:26 +01:00
Michaël Van Canneyt
ef4c066857 * Show readonly/required for fields 2023-03-12 11:54:26 +01:00
mattias
63039e34f5 rpm: put lazarus into /usr/share/lazarus/ 2023-03-05 22:10:40 +01:00
Martin
78416496c6 Spelling 2023-02-20 15:11:36 +01:00
Martin
c1de827226 PoFileMaintenance: dup-finder include search term for items in full pot view. 2023-02-20 14:19:17 +01:00
Martin
b31586fc9c Add tool to maintain po files. Move entries between files. Find duplicates. 2023-02-20 12:29:32 +01:00
Juha
5ea4a1e270 Tools: Fix handling program parameters in runwait.sh. Issue #40045, patch by Dean Mustakinov. 2022-12-23 09:41:28 +02:00
Martin
28247a829c IDE: Move LazConf.pp to new base-package "IdeConfig" 2022-12-08 19:28:19 +01:00
Željan Rikalo
e5b2a64d68 ApiWizard: added missing qt5 widgetset. 2022-11-11 18:02:35 +01:00
mattias
4f567766ef lcl: added ide macro value qt6 2022-11-11 17:53:38 +01:00
wp_xyz
c0fbe886a0 Tools/Icons_to_HTML: Speed-up display of icons in IconTable application. Patch by Roland Hahn. 2022-09-24 18:49:25 +02:00
Maxim Ganetsky
c987cf35a0 Translations: Brazilian Portuguese translation update by Marcelo B Paula, issue #39863 2022-08-22 02:21:13 +03:00
marcoonthegit
13d8a9cbb2 * initial support to make generated headers work on Windows with minimal editing, or to start from .gir files with Windows DLL names in them.
(for some glib/gobject based libs on Windows, like Aravis)
2022-08-16 13:52:53 +02:00
wp_xyz
2b63ae02b5 tools/icons_to_html: Minor refactoring. 2022-08-07 23:21:15 +02:00
wp_xyz
0ddb329d2a tools/icons_to_html: Minor refactoring of ini storage for IconTable project. 2022-08-06 12:15:29 +02:00
Maxim Ganetsky
fd7e574b54 LazDataDesktop: removed obsolete IFDEFs (register all possible engines), issue #39836 2022-07-30 01:18:12 +03:00
Maxim Ganetsky
f5dc6e64a4 Tools: updated gir2pascal README.md 2022-07-19 01:41:02 +03:00
Maxim Ganetsky
7c8e197abd Tools: updated gir2pascal .gitignore 2022-07-19 01:18:18 +03:00
Maxim Ganetsky
5194609a53 Tools: updated gir2pascal LPI and icon 2022-07-19 01:14:42 +03:00
Maxim Ganetsky
697d41437c Tools: initial import of gir2pascal sources from https://github.com/n1tehawk/gir2pascal 2022-07-19 01:01:00 +03:00
wp_xyz
9f9fdf6a9d Images: New general purpose images by Roland Hahn (more arrows, filter, flame, flip, secure, sound, share) 2022-07-01 23:11:55 +02:00
wp_xyz
d15b15d97c Tools/Icons_to_HTML: Improvements in layout of HTML table. Refactored CSS. 2022-06-30 15:17:15 +02:00
Maxim Ganetsky
578fe79ed5 Revert "Installer, Win: updated Russian translation"
This reverts commit 80e25af269.
2022-06-24 00:54:03 +03:00