Files
qt-creator/src/plugins/lua/meta/core.lua
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

27 lines
551 B
Lua

---@meta Core
Core = {}
---@enum Attribute
Core.GeneratedFile.Attribute = {
OpenEditorAttribute = 0,
OpenProjectAttribute = 0,
CustomGeneratorAttribute = 0,
KeepExistingFileAttribute = 0,
ForceOverwrite = 0,
TemporaryFile = 0,
}
---@class GeneratedFile
---@field filePath FilePath
---@field contents string
---@field isBinary boolean
---@field attributes Attribute A combination of Attribute
Core.GeneratedFile = {}
---Create a new GeneratedFile
---@return GeneratedFile
function Core.GeneratedFile.new() end
return Core;