<commit_before>/****************************************************************************
**
** Copyright (C) 2013-2015 <NAME>
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
**
****************************************************************************/

import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
import "../scripts/ObjectManager.js" as ObjectManager

Item {
    id: scene

    objectName: "Particle scene"
    width: 500
    height: 500

    clip: true

    property string type: "Scene"
    property SceneItem selectedItem: null

    property Component particleSystemComponent: Qt.createComponent("../components/PEParticleSystem.qml")
    property Component imageParticleComponent: Qt.createComponent("../components/PEImageParticle.qml")
    // scene items
    property Component emitterComponent: Qt.createComponent("../components/PEEmitter.qml")
    property Component ageComponent: Qt.createComponent("../components/PEAge.qml")
    property Component attractorComponent: Qt.createComponent("../components/PEAttractor.qml")
    property Component frictionComponent: Qt.createComponent("../components/PEFriction.qml")
    property Component gravityComponent: Qt.createComponent("../components/PEGravity.qml")
    property Component turbulenceComponent: Qt.createComponent("../components/PETurbulence.qml")
    property Component wanderComponent: Qt.createComponent("../components/PEWander.qml")
    // directions
    property Component angleDirectionComponent: Qt.createComponent("../components/PEAngleDirection.qml")
    property Component cumulativeDirectionComponent: Qt.createComponent("../components/PECumulativeDirection.qml")
    property Component pointDirectionComponent: Qt.createComponent("../components/PEPointDirection.qml")
    property Component targetDirection: Qt.createComponent("../components/PETargetDirection.qml")
    // shapes
    property Component ellipseShapeComponent: Qt.createComponent("../components/PEEllipseShape.qml")
    property Component lineShapeComponent: Qt.createComponent("../components/PELineShape.qml")
    property Component maskShapeComponent: Qt.createComponent("../components/PEMaskShape.qml")
    property Component rectangleShapeComponent: Qt.createComponent("../components/PERectangleShape.qml")

    Component.onCompleted: {
        var defaultSystemParams = {
            "objectName" : "particleSystem"
        }
        ObjectManager.system = particleSystemComponent.createObject(scene, defaultSystemParams)

        var imageParticleParams = {
            "objectName" : "Default particle",
            "source" : "../../resources/images/particle.png",
            "color" : "#80c342"
        }
       createObject("ImageParticle", imageParticleParams)
    }

    MouseArea {
        anchors.fill: parent
        onPressed:
            selectedItem = null
    }

    Rectangle {
        id: backgroundRect
        anchors.fill: parent
        color: "#ffffff"
    }

    Item {
        id: sceneItemsContainer
        anchors.fill: parent
    }

    property Component settingsComponent:
        Component {<commit_msg>Removed default image particle<commit_after>/****************************************************************************
**
** Copyright (C) 2013-2015 <NAME>
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
**
****************************************************************************/

import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Layouts 1.1
import "../scripts/ObjectManager.js" as ObjectManager

Item {
    id: scene

    objectName: "Particle scene"
    width: 500
    height: 500

    clip: true

    property string type: "Scene"
    property SceneItem selectedItem: null

    property Component particleSystemComponent: Qt.createComponent("../components/PEParticleSystem.qml")
    property Component imageParticleComponent: Qt.createComponent("../components/PEImageParticle.qml")
    // scene items
    property Component emitterComponent: Qt.createComponent("../components/PEEmitter.qml")
    property Component ageComponent: Qt.createComponent("../components/PEAge.qml")
    property Component attractorComponent: Qt.createComponent("../components/PEAttractor.qml")
    property Component frictionComponent: Qt.createComponent("../components/PEFriction.qml")
    property Component gravityComponent: Qt.createComponent("../components/PEGravity.qml")
    property Component turbulenceComponent: Qt.createComponent("../components/PETurbulence.qml")
    property Component wanderComponent: Qt.createComponent("../components/PEWander.qml")
    // directions
    property Component angleDirectionComponent: Qt.createComponent("../components/PEAngleDirection.qml")
    property Component cumulativeDirectionComponent: Qt.createComponent("../components/PECumulativeDirection.qml")
    property Component pointDirectionComponent: Qt.createComponent("../components/PEPointDirection.qml")
    property Component targetDirection: Qt.createComponent("../components/PETargetDirection.qml")
    // shapes
    property Component ellipseShapeComponent: Qt.createComponent("../components/PEEllipseShape.qml")
    property Component lineShapeComponent: Qt.createComponent("../components/PELineShape.qml")
    property Component maskShapeComponent: Qt.createComponent("../components/PEMaskShape.qml")
    property Component rectangleShapeComponent: Qt.createComponent("../components/PERectangleShape.qml")

    Component.onCompleted: {
        var defaultSystemParams = {
            "objectName" : "particleSystem"
        }
        ObjectManager.system = particleSystemComponent.createObject(scene, defaultSystemParams)
    }

    MouseArea {
        anchors.fill: parent
        onPressed:
            selectedItem = null
    }

    Rectangle {
        id: backgroundRect
        anchors.fill: parent
        color: "#ffffff"
    }

    Item {
        id: sceneItemsContainer
        anchors.fill: parent
    }

    property Component settingsComponent:
        Component {
{'fraction_non_alphanumeric': 0.1399229781771502, 'fraction_numerical': 0.0075595492797033235, 'mean_word_length': 3.987197724039829, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6400717', 'n_tokens_mistral': 1765, 'n_tokens_neox': 1664, 'n_words': 450}