Warning, /utilities/atelier/src/widgets/3dview/viewer3d.qml is written in an unsupported language. File is not indexed.

0001 /* Atelier KDE Printer Host for 3D Printing
0002     Copyright (C) <2017-2018>
0003     Author: Patrick José Pereira - patrickjp@kde.org
0004             Kevin Ottens - ervin@kde.org
0005 
0006     This program is free software; you can redistribute it and/or
0007     modify it under the terms of the GNU General Public License as
0008     published by the Free Software Foundation; either version 3 of
0009     the License or any later version accepted by the membership of
0010     KDE e.V. (or its successor approved by the membership of KDE
0011     e.V.), which shall act as a proxy defined in Section 14 of
0012     version 3 of the license.
0013 
0014     This program is distributed in the hope that it will be useful,
0015     but WITHOUT ANY WARRANTY; without even the implied warranty of
0016     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0017     GNU General Public License for more details.
0018 
0019     You should have received a copy of the GNU General Public License
0020     along with this program.  If not, see <http://www.gnu.org/licenses/>.
0021 */
0022 
0023 import QtQuick 2.0
0024 import QtQuick.Scene3D 2.0
0025 
0026 Item {
0027     id: item
0028     width: 1000
0029     height: 1000
0030     signal droppedUrls (var urls)
0031 
0032     DropArea {
0033         id: dropArea
0034         anchors.fill: parent
0035         onDropped: if(drop.hasUrls) {
0036             droppedUrls(drop.urls)
0037         }
0038     }
0039 
0040     Rectangle {
0041         id: scene
0042         anchors.fill: parent
0043         Scene3D {
0044             id: scene3d
0045             anchors.fill: parent
0046             focus: true
0047             aspects: ["input", "logic"]
0048             cameraAspectRatioMode: Scene3D.AutomaticAspectRatio
0049             SceneEntity {
0050                 id: entity
0051             }
0052 
0053         }
0054     }
0055 
0056     Text {
0057         objectName: "fileName"
0058         id: fileName
0059         text: ""
0060         onTextChanged: {
0061             entity.currentFile = text
0062         }
0063     }
0064 }