Commit Graph

15 Commits

Author SHA1 Message Date
Eike Ziller
8d99cd800b Merge remote-tracking branch 'origin/14.0'
Change-Id: Ic3c53630e16712b6493873d21485b726f0d06574
2024-07-08 10:31:06 +02:00
Christian Stenger
c43508417d Lua: Fix translation context
Change-Id: Id824eaa3c64d31e693828d90d4c0abbe7ce8dda9
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-07-05 07:03:39 +00:00
Marcus Tillmanns
81ad004a52 Lua: Improve REPL Pane
* Replaced item editor with label to allow copy&paste
* Fixed removing global object
* Removed printing of readline prompt
* Removed keypress handler as it was unstable

Change-Id: I8091252400a3532ecc818404ad5a8edfa9451327
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2024-06-25 10:55:21 +00:00
Christian Stenger
79f7115cde Lua: Fix missing include
Amends 0214cac51d.

Change-Id: I873e9dcbe687ea579bc71ba0a687e5f2b4955817
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-06-25 05:58:28 +00:00
Marcus Tillmanns
0214cac51d Lua: Interactive Shell
Change-Id: Iedd620abcb62b9dd3e640bcb80ae011016386484
Reviewed-by: hjk <hjk@qt.io>
2024-06-24 14:29:31 +00:00
Marcus Tillmanns
0c0ad6e7d8 Lua: Replace -loadluaplugin with -pluginpath
Change-Id: Ic398e09dedd6ba11a73e616788b92a001e0a96bd
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-13 11:13:15 +00:00
Marcus Tillmanns
ddd137f3b1 Lua: Move lua plugins into normal plugin folder
Change-Id: I14ab0bb755a4279bc255673596fe084cd556433c
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-06-13 10:26:29 +00:00
Marcus Tillmanns
249312acd0 Lua: Add -loadluaplugin startup argument
Change-Id: Ia0a57bbb94d42534857889a0d08ec41c75708dca
Reviewed-by: hjk <hjk@qt.io>
2024-06-04 08:03:13 +00:00
hjk
42a66746e1 Lua: Rename some 'layout' bits to 'gui'
Change-Id: I1476cfe922c3d95c3c4309531bb4e063b18273e5
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
2024-05-31 06:15:17 +00:00
Marcus Tillmanns
eec48b8f8e Lua: Add Install module
Allows plugins to install packages they might need.

Change-Id: I4948dd0a6568e093fc35e4486d2e2a084090e103
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-24 09:10:20 +00:00
Marcus Tillmanns
afae1d7093 Lua: Add macro expansion of the meta folder
Change-Id: I5c5370665002feee886aa0a7411a485edafb8469
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-23 07:19:38 +00:00
Marcus Tillmanns
657ce51467 ExtensionSystem: FilePath'ify
Change IPlugin::fileName() and IPlugin::location to use
FilePath instead of QString.

Change-Id: If473ab1e258951735f93221cbd62c505f0727eb2
Reviewed-by: hjk <hjk@qt.io>
2024-05-08 10:29:59 +00:00
Marcus Tillmanns
81bc72c8a0 Lua: Cleanup
Moves LuaEngine creation into initialize()
Removes uneccessary PluginLoader class

Change-Id: I9eddbe4d0cba7ba3c7c1ce825ec18845de7d4654
Reviewed-by: hjk <hjk@qt.io>
2024-05-06 10:11:19 +00:00
Marcus Tillmanns
218f07bdef Lua: Bind lifetime of LuaEngine
We want to make sure that the LuaEngine is deleted when the plugin
is removed.

We also derive LuaEngine from QObject so we can use it as a guard in
QObject::connect calls.

Change-Id: I6b0568f11bee283f880ede9432b2a9fe83014758
Reviewed-by: David Schulz <david.schulz@qt.io>
2024-05-03 12:43:55 +00:00
Marcus Tillmanns
6e3aab5f1b Lua: Add Lua plugin support
Adds basic support for writing Plugins using the lua scripting language.
Lua Plugins are registered just as native plugins are and can be enabled
or disabled via the plugin dialog.

see src/plugins/lua/README.md for further details.

Change-Id: I9f4d15e9632c46e1c6c132bcd0bbcdd70b150640
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2024-04-16 13:11:18 +00:00