{
    "version": 1,
    "supportedProjectTypes": [ "PythonProject" ],
    "id": "F.QtForPythonApplicationEmpty",
    "category": "F.ApplicationPySide",
    "trDescription": "Creates a Qt for Python application that contains only the main code for a QApplication.",
    "trDisplayName": "Empty Application",
    "trDisplayCategory": "Application (Qt for Python)",
    "icon": "icon.png",
    "iconKind": "Themed",
    "enabled": "%{JS: value('Plugins').indexOf('Python') >= 0 && (!value('Platform').length || ['Desktop', 'DockerDeviceType', 'GenericLinuxOsType'].includes(value('Platform')))}",

    "options":
    [
        { "key": "SrcFileName", "value": "main.py" },
        { "key": "PyProjectFile", "value": "%{JS: Util.fileName('%{ProjectName}', 'pyproject')}" },
        { "key": "ProjectFilePath", "value": "%{ProjectDirectory}/%{PyProjectFile}" }
    ],

    "pages":
    [
        {
            "trDisplayName": "Project Location",
            "trShortTitle": "Location",
            "typeId": "Project"
        },
        {
            "trDisplayName": "Define Project Details",
            "trShortTitle": "Details",
            "typeId": "PythonConfiguration",
            "data":
            {
                "index": 0,
                "items":
                [
                    {
                        "trKey": "PySide 6",
                        "value":
                        {
                            "PySideVersion": "PySide6"
                        }
                    },
                    {
                        "trKey": "PySide 2",
                        "value":
                        {
                            "PySideVersion": "PySide2"
                        }
                    }
                ]
            }
        },
        {
            "trDisplayName": "Kit Selection",
            "trShortTitle": "Kits",
            "typeId": "Kits",
            "data": {
                 "projectFilePath": "%{ProjectFilePath}",
                 "requiredFeatures": [ "Python.Interpreter" ]
            }
        },
        {
            "trDisplayName": "Project Management",
            "trShortTitle": "Summary",
            "typeId": "Summary"
        }
    ],
    "generators":
    [
        {
            "typeId": "File",
            "data":
            [
                {
                    "source": "../main.pyproject",
                    "target": "%{PyProjectFile}",
                    "openAsProject": true
                },
                {
                    "source": "../main_empty.py",
                    "target": "%{SrcFileName}",
                    "openInEditor": true
                },
                {
                    "source": "../requirements.txt",
                    "target": "requirements.txt"
                },
                {
                    "source": "../../git.ignore",
                    "target": ".gitignore",
                    "condition": "%{JS: !value('IsSubproject') && value('VersionControl') === 'G.Git'}"
                }
            ]
        }
    ]
}
