aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/luaplugin.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Lua: Add run button to scripts from resourcesMarcus Tillmanns2025-11-131-1/+2
| | | | | Change-Id: Id5d525c77f91629720e4b001f5223e0e7a9746c4 Reviewed-by: David Schulz <[email protected]>
* Lua: Persist Script stateMarcus Tillmanns2025-11-131-5/+11
| | | | | | | | | Allows Lua user scripts to use connections and to correctly tear-down widgets when they are restarted. Also closes Widgets when the application wants to quit. Change-Id: I2c65e17d217d11f28e550683d064838d717a51ec Reviewed-by: David Schulz <[email protected]>
* Lua: Fix REPL input field historyMarcus Tillmanns2025-10-301-6/+14
| | | | | Change-Id: I939ccd72fe8107a098d6dae66f3c240dfd50a88a Reviewed-by: Christian Stenger <[email protected]>
* Lua: Add MenuBuilder bindingsMarcus Tillmanns2025-07-251-0/+2
| | | | | | Task-number: QTCREATORBUG-33202 Change-Id: I58eb9d4f3783a0c3781501cc273651e6ff1a8ab4 Reviewed-by: hjk <[email protected]>
* Utils: Move and rename result testing macros from expected.h to result.hhjk2025-04-141-2/+2
| | | | | Change-Id: I65d682054d4774b8937ecce9728a9d2f2e75cc2a Reviewed-by: Jarek Kobus <[email protected]>
* Replace most expected_str by Utils::Resulthjk2025-04-111-4/+4
| | | | | | | | Keep it in Axivion dto, which is generated. Change-Id: I83a12de6234ac7b0218b369875bdc72d25dbadfb Reviewed-by: Eike Ziller <[email protected]> Reviewed-by: Jarek Kobus <[email protected]>
* Lua: Fix LuaPluginSpec::killMarcus Tillmanns2025-04-011-2/+1
| | | | | | | | | | Killing should only set "Deleted" status if the plugin was actually loaded in the first place. Amends dfb85bf8a2ebd6b8431b310e5e2b64bba25d61fc Change-Id: Iebd6711616523b7808dc646211fc9d5a3b949450 Reviewed-by: Eike Ziller <[email protected]>
* Lua: Only try loading plugins that are enabledMarcus Tillmanns2025-04-011-1/+2
| | | | | | | | | | | | | PluginManager::loadPluginsAtRuntime() will not load plugins that are not "effectivelyEnabled" but "kill" them as they are present in its "plugins" parameter, but are not loaded since they are effectively disabled. This led to all lua plugins that are not loaded on startup to be "killed" so they could not be soft loaded later. Change-Id: I929e0c44394d49dfa1df4646b1fa76e12e56f7c4 Reviewed-by: Christian Stenger <[email protected]>
* Avoid potential detach of non-const Qt containers in range-loops 1/2Alessandro Portale2025-03-211-3/+5
| | | | | | | By making the containers const. Change-Id: I3095d7c817bd8a9cc40184aba144d617c6071f97 Reviewed-by: hjk <[email protected]>
* Lua: Create bindings for the TaskHubMarcus Tillmanns2025-03-061-0/+2
| | | | | | Fixes: QTCREATORBUG-32561 Change-Id: I61096e6c01d03751b7147f8ba9413f164730b780 Reviewed-by: Eike Ziller <[email protected]>
* ExtensionSystem: Split update into remove and installMarcus Tillmanns2025-02-101-13/+0
| | | | | Change-Id: Ib048d5c889bb5ac463309ea15486e3f226d84a2e Reviewed-by: Eike Ziller <[email protected]>
* ExtensionSystem: Allow updating and removing pluginsMarcus Tillmanns2025-02-101-2/+31
| | | | | Change-Id: Ie81e697c97fbfe0dc66346f42d467e1a697606c3 Reviewed-by: Eike Ziller <[email protected]>
* Merge remote-tracking branch 'origin/15.0' into 16.0Eike Ziller2025-01-231-1/+11
|\ | | | | | | | | | | | | Conflicts: src/plugins/cmakeprojectmanager/cmaketoolmanager.cpp Change-Id: Ief5231ea380d67c7904034d8e9e5c2ea8b4bfbf4
| * Plugins: Fix Plugin installation from archive / fileMarcus Tillmanns2025-01-221-1/+11
| | | | | | | | | | | | | | | | | | | | | | Previously the spec returned and used was initialized from the temporary folder after extraction. That folder is deleted though once the install wizard is done. We now re-create the spec after copying the files to their final destination. Change-Id: Ia6b2f3c67a9d89687fece97e59143c00689ae513 Reviewed-by: Eike Ziller <[email protected]>
* | Fix warnings about unused return valuesChristian Kandeler2025-01-211-1/+1
| | | | | | | | | | Change-Id: I9682c6b5a0bba400050e91fe89b2883f7bb6465f Reviewed-by: Christian Stenger <[email protected]>
* | Core: Provide settings categories centrallyChristian Kandeler2024-11-151-0/+4
|/ | | | | | | | | It was conceptually wrong that an options page was supposed to set its category's display name and icon. Instead, categories are now explicitly registered with name and icon. Change-Id: Ic10b3791c8068176f55470e6845ab4832160b8e7 Reviewed-by: Eike Ziller <[email protected]>
* Fix some translated stringsEike Ziller2024-10-241-4/+4
| | | | | | Change-Id: I7ffcad62b31e6236dba5fc2116afa297ffcef0a5 Reviewed-by: Christian Stenger <[email protected]> Reviewed-by: Leena Miettinen <[email protected]>
* Fix lupdate issuesEike Ziller2024-10-241-2/+2
| | | | | | | Change-Id: Ifea13b2eca4f4b0cdc548202beac748ada1df578 Reviewed-by: Marcus Tillmanns <[email protected]> Reviewed-by: Christian Stenger <[email protected]> Reviewed-by: Leena Miettinen <[email protected]>
* Lua: Add test scriptsMarcus Tillmanns2024-10-181-3/+10
| | | | | | Change-Id: I03cb69289151f44db6836ad0be6d2091d9c853bc Reviewed-by: Christian Stenger <[email protected]> Reviewed-by: hjk <[email protected]>
* Theme: Add new variations notification color tokensAlessandro Portale2024-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | The color tokens - Notification_Alert - Notification_Success - Notification_Neutral - Notification_Danger ...each get variations: - default - muted - subtle The existing usages of Notification_* are mapped to Notification_*_Default Fixes: QTCREATORBUG-31829 Change-Id: Id202e692c74ce30b32fb59c17717ecf6e174eb2a Reviewed-by: Eike Ziller <[email protected]> Reviewed-by: Marcus Tillmanns <[email protected]>
* Lua: add toolbar button and action to run script in current editorDavid Schulz2024-10-151-4/+37
| | | | | Change-Id: Id0f285a89c5c915548b1847cfcf9c3f7bb29f860 Reviewed-by: Marcus Tillmanns <[email protected]>
* Lua: Allow creating and running user defined scriptsDavid Schulz2024-10-151-0/+91
| | | | | Change-Id: I227d55105fde53f22885793b4bfae69da90e8fa6 Reviewed-by: Marcus Tillmanns <[email protected]>
* Lua: Replace lua repl scriptMarcus Tillmanns2024-10-081-1/+26
| | | | | Change-Id: Iea236081b9cfecd29d7c5c2290570010c9a83276 Reviewed-by: Eike Ziller <[email protected]>
* Lua: Move inspect and async into resourcesMarcus Tillmanns2024-10-081-2/+3
| | | | | Change-Id: I257323861823ed7858efdb265a78cc572c2e7273 Reviewed-by: Eike Ziller <[email protected]>
* Lua: Remove margins & spacing from replEike Ziller2024-09-261-0/+2
| | | | | | | | None of the output panes have margins. Makes it more similar to the debugger log Change-Id: Icc0a1287c88ca2d5876942b76cf4c0cec2cafc10 Reviewed-by: Marcus Tillmanns <[email protected]>
* Lua: Implement "Project" moduleMarcus Tillmanns2024-09-261-0/+2
| | | | | Change-Id: I97dc1295554ad287ed09f72feb8d1765dff39f50 Reviewed-by: hjk <[email protected]>
* Lua: Fix memory leakMarcus Tillmanns2024-09-261-1/+1
| | | | | Change-Id: Ia788bfc967ee5918edb008f6ee62358b57a14651 Reviewed-by: Christian Stenger <[email protected]>
* Utils: Allow setting HistoryCompleter sizeMarcus Tillmanns2024-08-061-1/+1
| | | | | | | | | | | | While the HistoryCompleter did have private functions to change the History List length, these were not used or accessible. This change adds an argument to allow the caller to change the maximum size of the list. Its used by the Lua REPL pane. Change-Id: I6baf260db5da9d8fe58a37ff0af3ec59396a5be0 Reviewed-by: Eike Ziller <[email protected]>
* Lua: Macro supportMarcus Tillmanns2024-07-311-0/+7
| | | | | | | | Allows users to use "%{Lua: ...}" to execute Lua code in their macros. Adds "Macro" module with expand() and value() functions. Change-Id: I6315b0646fbb503a77fd0cc631aed204abf3b699 Reviewed-by: Cristian Adam <[email protected]>
* ExtensionSystem: Move Installation logic into PluginSpecsMarcus Tillmanns2024-07-291-0/+15
| | | | | Change-Id: I5b6d284179bf62be89d6e5157fd7e14df5e65817 Reviewed-by: Alessandro Portale <[email protected]>
* Lua: Dissolve LuaEngine classhjk2024-07-261-6/+4
| | | | | | | It was mostly used as namespace. Change-Id: Ice6cdd1581d7dd70b09f6d82891b874a206a1ca0 Reviewed-by: Marcus Tillmanns <[email protected]>
* Lua: Code cosmeticshjk2024-07-261-32/+32
| | | | | | | | The initialization/setup/... methods are typically called 'setupX...' nowadays. Change-Id: Iecdca160a54f60fbeb3dbffcc6d7aca20bc68682 Reviewed-by: Marcus Tillmanns <[email protected]>
* Lua: Add support for translationMarcus Tillmanns2024-07-241-0/+2
| | | | | Change-Id: I5398480233c830bb08c641bc8193b068fb037032 Reviewed-by: Eike Ziller <[email protected]>
* Lua: Hide REPL by defaultMarcus Tillmanns2024-07-191-1/+1
| | | | | Change-Id: Ieeac4bd49cd39dc16cf9637b1a487faf024bf44a Reviewed-by: Eike Ziller <[email protected]>
* Lua: Change TextDocument to TextEditorMarcus Tillmanns2024-07-181-2/+2
| | | | | | | | Since there may be many editors editing a single TextDocument it is more useful to start at the TextEditor level. Change-Id: Ic1c4ea76f22ab0d0741edd6f6ecc24d6befa17e6 Reviewed-by: hjk <[email protected]>
* Lua: Cleanup HooksMarcus Tillmanns2024-07-181-2/+2
| | | | | | Change-Id: I8e3a1d66ea6125d2cc5ee9c8f8442cca0913fec6 Reviewed-by: <[email protected]> Reviewed-by: hjk <[email protected]>
* Lua: Add LocalSocketMarcus Tillmanns2024-07-181-0/+2
| | | | | Change-Id: I6601914176667100ad9007fa5e54f6d6c3f445a0 Reviewed-by: Cristian Adam <[email protected]>
* Lua: Add Json moduleMarcus Tillmanns2024-07-181-0/+2
| | | | | Change-Id: I533dc63b5147f00ac377e80a338cc4e2e3d0e8d9 Reviewed-by: hjk <[email protected]>
* Lua: Add TextDocument bindingsLukasz Papierkowski2024-07-111-14/+16
| | | | | Change-Id: Ib713993a548f76f50c4b29fb11c445d2e38b16b3 Reviewed-by: Marcus Tillmanns <[email protected]>
* Merge remote-tracking branch 'origin/14.0'Eike Ziller2024-07-081-1/+1
|\ | | | | | | Change-Id: Ic3c53630e16712b6493873d21485b726f0d06574
| * Lua: Fix translation contextChristian Stenger2024-07-051-1/+2
| | | | | | | | | | Change-Id: Id824eaa3c64d31e693828d90d4c0abbe7ce8dda9 Reviewed-by: Eike Ziller <[email protected]>
* | Lua: Improve REPL PaneMarcus Tillmanns2024-06-251-22/+32
| | | | | | | | | | | | | | | | | | | | * 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 <[email protected]>
* | Lua: Fix missing includeChristian Stenger2024-06-251-0/+1
| | | | | | | | | | | | | | Amends 0214cac51d7ebda76c0fa56d9ce63663afce70fc. Change-Id: I873e9dcbe687ea579bc71ba0a687e5f2b4955817 Reviewed-by: Marcus Tillmanns <[email protected]>
* | Lua: Interactive ShellMarcus Tillmanns2024-06-241-0/+171
|/ | | | | Change-Id: Iedd620abcb62b9dd3e640bcb80ae011016386484 Reviewed-by: hjk <[email protected]>
* Lua: Replace -loadluaplugin with -pluginpathMarcus Tillmanns2024-06-131-43/+6
| | | | | Change-Id: Ic398e09dedd6ba11a73e616788b92a001e0a96bd Reviewed-by: Eike Ziller <[email protected]>
* Lua: Move lua plugins into normal plugin folderMarcus Tillmanns2024-06-131-4/+1
| | | | | Change-Id: I14ab0bb755a4279bc255673596fe084cd556433c Reviewed-by: Eike Ziller <[email protected]>
* Lua: Add -loadluaplugin startup argumentMarcus Tillmanns2024-06-041-3/+42
| | | | | Change-Id: Ia0a57bbb94d42534857889a0d08ec41c75708dca Reviewed-by: hjk <[email protected]>
* Lua: Rename some 'layout' bits to 'gui'hjk2024-05-311-2/+2
| | | | | Change-Id: I1476cfe922c3d95c3c4309531bb4e063b18273e5 Reviewed-by: Marcus Tillmanns <[email protected]>
* Lua: Add Install moduleMarcus Tillmanns2024-05-241-0/+2
| | | | | | | Allows plugins to install packages they might need. Change-Id: I4948dd0a6568e093fc35e4486d2e2a084090e103 Reviewed-by: David Schulz <[email protected]>
* Lua: Add macro expansion of the meta folderMarcus Tillmanns2024-05-231-0/+19
| | | | | Change-Id: I5c5370665002feee886aa0a7411a485edafb8469 Reviewed-by: David Schulz <[email protected]>