aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua
Commit message (Collapse)AuthorAgeFilesLines
* Wizards: Redo sub project handlingChristian Stenger46 hours1-1/+0
| | | | | | | | | | | | | | | | | | | | | | If the user tries to add a sub project the decision for the parent project must happen directly on the intro page to avoid asking for build system or kit information later on. Any of these information are provided by the parent project and can therefore be skipped in case of having a sub project. So, move this decision to the first page and on the last page only let the user decide to which sub node of the chosen project the new project will be added to. The old approach set the IsSubproject marker quite too late to handle this appropriate, so explicitly set this already on the first page. For now there should be only qmake based projects which are capable of adding sub projects at all, but this patch should be a generalized preparation for having similar functionality in other build systems. Fixes: QTCREATORBUG-30281 Change-Id: I8f1de4fa05f46d68ac2ddec788840d473adb015e Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Lua: Small tweak of wizard fileChristian Stenger3 days1-14/+2
| | | | | Change-Id: Ifef368aa646589d75f761c9893a18fa77b1b179c Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Lua: Implement lua pluginspec specific version checkMarcus Tillmanns8 days5-4/+20
| | | | | Change-Id: I52c496c177c949056ff5e7a4ff7b903a028620b1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Lua: Replace -loadluaplugin with -pluginpathMarcus Tillmanns8 days3-50/+9
| | | | | Change-Id: Ic398e09dedd6ba11a73e616788b92a001e0a96bd Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Lua: Move lua plugins into normal plugin folderMarcus Tillmanns8 days2-8/+5
| | | | | Change-Id: I14ab0bb755a4279bc255673596fe084cd556433c Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Lua: Fix comment line endingsMarcus Tillmanns8 days12-162/+156
| | | | | Change-Id: I00a5ece580b69a65c8fa60eae8458526d1df257e Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* WorkspaceProject: exclude user file and define scheme url by defaultDavid Schulz9 days1-0/+2
| | | | | Change-Id: I359682a0010a42f00591c103c93b7f41c7f987fd Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Lua: Add wizards to qbs buildChristian Stenger10 days1-0/+1
| | | | | | | Amends cb1f1bdd61c73ceb1bedea72dd6d08639408bf62. Change-Id: I56a20324a089abc360c94d6eb7d2c2522622a094 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Lua: WizardsMarcus Tillmanns11 days9-0/+272
| | | | | | | Adds a simple lua file wizard, and a lua plugin wizard. Change-Id: I0ea08cdc5eabe7396cb49abd265fce16f5960416 Reviewed-by: David Schulz <david.schulz@qt.io>
* Lua: Fix Widget size property implementationMarcus Tillmanns2024-06-061-4/+12
| | | | | Change-Id: Ia5d9d8646815257318ad657480167b7f42b9dca9 Reviewed-by: hjk <hjk@qt.io>
* Utils: Make LayoutBuilder setter setup less repetitivehjk2024-06-041-2/+2
| | | | | Change-Id: I9113f7a97566c21cf83dcb95ce8e75e9707360b4 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Lua: Add -loadluaplugin startup argumentMarcus Tillmanns2024-06-042-3/+50
| | | | | Change-Id: Ia0a57bbb94d42534857889a0d08ec41c75708dca Reviewed-by: hjk <hjk@qt.io>
* Lua: Add support for gzip filesMarcus Tillmanns2024-06-031-1/+8
| | | | | Change-Id: Id342364ffb71b8dd2e60a4332fd1d88a4951e08a Reviewed-by: David Schulz <david.schulz@qt.io>
* Install: Use QMessageBox as fallbackMarcus Tillmanns2024-06-031-22/+54
| | | | | | | Use a QMessageBox if the InfoBar would be hidden. Change-Id: I29f10a3af6123dcf7811db68b967259f990c5a66 Reviewed-by: David Schulz <david.schulz@qt.io>
* Lua: Ask user before allowing to fetchMarcus Tillmanns2024-06-034-31/+225
| | | | | Change-Id: I58318598015a24689de19ae00bce65f004091e6b Reviewed-by: David Schulz <david.schulz@qt.io>
* Lua: Add function that returns the output of a processDavid Schulz2024-06-032-0/+17
| | | | | Change-Id: I6863926a4da90adc89d96d47da1542c886b44040 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Lua: Improve memory managementMarcus Tillmanns2024-05-314-40/+54
| | | | | | | | | | | | | Previously the PluginSpec would create a keep around a single lua vm that was then shared with the actual plugin instance. This made it unclear when the VM was freed. Now we instead cleanup the lua vm used to fetch the plugin infos immediately and instead create a fresh vm for the actual plugin instance that can then follow the normal Plugin lifecylce. Change-Id: I81bb9ecf57706c2ba1b0d8db83ab26b3b8e944f2 Reviewed-by: David Schulz <david.schulz@qt.io>
* Lua: Remove wizard meta filesMarcus Tillmanns2024-05-313-64/+0
| | | | | | | We removed the wizard stuff from lua, but I forgot to remove the documentation Change-Id: I9d96d1d38ed4090c51361ee1e37fedb5a7358870 Reviewed-by: hjk <hjk@qt.io>
* Lua: Add binding for FilePathAspect::setValueMarcus Tillmanns2024-05-312-0/+11
| | | | | Change-Id: Ia0c40f35c1504b72f56cb2d2b6dcdc721b1c9d7b Reviewed-by: hjk <hjk@qt.io>
* Lua: Rename some 'layout' bits to 'gui'hjk2024-05-315-80/+80
| | | | | Change-Id: I1476cfe922c3d95c3c4309531bb4e063b18273e5 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Lua: Robustify LayoutBuilder integrationhjk2024-05-301-2/+8
| | | | | | | "Executing" 'Row { "a", b, "c" }' with unquoted b previously crashed. Change-Id: Ifb505c1a836a6041b05911e322cad596c3969e03 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Utils: Introduce a convenience function creatorColor()hjk2024-05-291-2/+2
| | | | | | | ... forwarding to creatorTheme()->color(...) Change-Id: Iefaa043495127b3e500ed225584481d3ec0f8c1f Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Lua: Make Layout-derived classes directly show-ablehjk2024-05-292-1/+10
| | | | | Change-Id: I2bea8187626c239b5b2e9ddb32d291db97ddc9ac Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Lua: Fix Layout.Span & Tab constructorMarcus Tillmanns2024-05-292-61/+90
| | | | | | | | | | * Allows to use Span {...} or Span(...) syntax. * Same for Tab {...} or Tab(...). * Fixes some documentation issues. * Adds "withFormAlignment()" and "spacing()" Change-Id: I05ec0823617e99384e309f34a4861e29045eff94 Reviewed-by: hjk <hjk@qt.io>
* Lua: Fix off-by-ones in Layoutinghjk2024-05-291-3/+3
| | | | | Change-Id: I4b29ff453ab29a26ec2300f70c0d1232f30575f1 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* PluginSpecs: Change URLs from http:// to https://Alessandro Portale2024-05-281-1/+1
| | | | | | | | | | Avoid the redirect that is inevitable nowerdays. Also, change necessitas.kde.org to www.qt.io, since the orgininal page is offline. Change-Id: Ib1823f0df97d2df87822fd2bb7552e2f2c7e971e Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Lua: Add support for Layouting::Labelhjk2024-05-282-0/+17
| | | | | Change-Id: Id06f082262af1aed4e22d40790ad3ed6ba2b5dd9 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Lua: Implement Utils::LuaMarcus Tillmanns2024-05-282-0/+91
| | | | | Change-Id: Ib5a7f63d1c37b29beb424707962d21102db5927c Reviewed-by: hjk <hjk@qt.io>
* Lua: Add connection guardMarcus Tillmanns2024-05-287-71/+78
| | | | | | | | Improves safety by limiting connection lifetime to lifetime of lua vm. Change-Id: I508b0814fdda169f5e30d7c3282132e3c622a0a5 Reviewed-by: hjk <hjk@qt.io>
* Lua: Fix compile on linux with clang and gcc stdMarcus Tillmanns2024-05-271-1/+3
| | | | | Change-Id: I030e97678f45499973a27ba4e9e2c9d99dc3e298 Reviewed-by: hjk <hjk@qt.io>
* Use LayoutBuilder V2hjk2024-05-273-144/+295
| | | | | | | | | | | | This puts the implementation introduced in acf1ecb47fdf into use, after significant simplifications in the class hierarchy. CRTP is not used anymore, and the new tag based dispatch is also used for Layout::addItem, effectively reducing the number of different code paths. The Lua based settings access is disabled for now. Change-Id: Idb6d1a25675378757c5267bdb630bcd4c1f52d34 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
* Lua: track meta files in CMakeLists.txtDavid Schulz2024-05-271-0/+16
| | | | | Change-Id: I72d0358b675f76fb39f340c748602dc24da7b08e Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Lua: Fix qbs buildChristian Stenger2024-05-241-0/+2
| | | | | | | Install lua files to shared data by default. Change-Id: I550f0f3a888376c93ad8b68bc7630b6f5f029979 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Lua: Fix qbs buildChristian Stenger2024-05-241-0/+2
| | | | | | | Amends eec48b8f8edf8906cfe3ff8f48850e93acfe8461. Change-Id: I0328f44a6cd33116f5ac51f8127519bf734b1879 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
* Lua: Add Install moduleMarcus Tillmanns2024-05-247-2/+404
| | | | | | | Allows plugins to install packages they might need. Change-Id: I4948dd0a6568e093fc35e4486d2e2a084090e103 Reviewed-by: David Schulz <david.schulz@qt.io>
* Lua: Add missing documentationMarcus Tillmanns2024-05-231-0/+14
| | | | | | Change-Id: If171bc8725e4d3f5bcb9db6ca8e6b42324f7b764 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io>
* Lua: Add HostOsInfo.architectureMarcus Tillmanns2024-05-232-0/+23
| | | | | Change-Id: I6acbb9d960cc070335454d0d87674a782a7c930e Reviewed-by: hjk <hjk@qt.io>
* Lua: Add macro expansion of the meta folderMarcus Tillmanns2024-05-231-0/+19
| | | | | Change-Id: I5c5370665002feee886aa0a7411a485edafb8469 Reviewed-by: David Schulz <david.schulz@qt.io>
* Lua: Fix meta file install locationMarcus Tillmanns2024-05-171-1/+1
| | | | | | Change-Id: I3dcd16057bac3ba4b5e125253b48c6a03f1ca33d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Lua: Add better error output to fetch()Marcus Tillmanns2024-05-171-2/+6
| | | | | Change-Id: Ic9092ff52130ac3cfc620ead9a1c69f112a864ac Reviewed-by: David Schulz <david.schulz@qt.io>
* Lua: Install meta filesMarcus Tillmanns2024-05-161-0/+28
| | | | | Change-Id: I5ea812f9b64fd80d64a3930bc5301c932554ce18 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Lua: Add Error handling during hook invocationMarcus Tillmanns2024-05-161-8/+14
| | | | | Change-Id: I63bb062d87126278ad4f6670f5b98e31d59aa8bb Reviewed-by: David Schulz <david.schulz@qt.io>
* Lua: Add "printToOutputPane" plugin optionMarcus Tillmanns2024-05-164-4/+26
| | | | | | | | | Allows a plugin to automatically forward the "print" command to the output pane instead of only to qDebug() Change-Id: I10fb8063bc1713eaaf77368ea7f760270df190b3 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
* Lua LSP: Add callback if server fails to startMarcus Tillmanns2024-05-161-0/+1
| | | | | | Change-Id: I422baeffff96cf56a110cbf74716352c9104c5ef Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
* Lua: Add helpful error message if await is called without asyncMarcus Tillmanns2024-05-081-0/+4
| | | | | Change-Id: Idc0b381a31ebe81709906e182d9a932e7ec7142f Reviewed-by: David Schulz <david.schulz@qt.io>
* Lua: Add FilePath::(complete)Suffix and isAbsoluteMarcus Tillmanns2024-05-082-0/+17
| | | | | Change-Id: Ifc9cc97b5c996a2bee8cd15d158411306dc3bd7d Reviewed-by: hjk <hjk@qt.io>
* ExtensionSystem: FilePath'ifyMarcus Tillmanns2024-05-083-6/+5
| | | | | | | | Change IPlugin::fileName() and IPlugin::location to use FilePath instead of QString. Change-Id: If473ab1e258951735f93221cbd62c505f0727eb2 Reviewed-by: hjk <hjk@qt.io>
* Lua: Simplify waitmsMarcus Tillmanns2024-05-081-8/+1
| | | | | Change-Id: I3832134f91580e8c1aa4a3ab62445feaba2009a4 Reviewed-by: David Schulz <david.schulz@qt.io>
* Lua: CleanupMarcus Tillmanns2024-05-065-110/+40
| | | | | | | | Moves LuaEngine creation into initialize() Removes uneccessary PluginLoader class Change-Id: I9eddbe4d0cba7ba3c7c1ce825ec18845de7d4654 Reviewed-by: hjk <hjk@qt.io>
* Make it possible to add wizards paths via plugin meta dataEike Ziller2024-05-061-0/+2
| | | | | | | | | | That makes it easy with Lua plugins, and is useful on the C++ side as well. Change-Id: I660956bed47e4c1e27a001ad8999d6701cda86ee Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>