diff options
author | Andrew O'Doherty <andrew.odoherty@qt.io> | 2018-04-27 12:37:48 +0200 |
---|---|---|
committer | Andrew O'Doherty <andrew.odoherty@qt.io> | 2018-05-31 13:25:24 +0000 |
commit | 22cdfdd27aaa885ac5b7b450c8fb82b87853250d (patch) | |
tree | 7ffcc3e15d66824386cbd78397f55cbc5d618018 /tradeshow/knx-demo/ui | |
parent | efba3d85875b20bd40e93bc6d94aca1531f25aae (diff) |
add 3d alexa knx demo
The knx-demo directory needs to be divided into two sub-directories
containing the alexa 3D demo and the 2d demo. Very large files used by
the 3d demo are stored in
https://git-lfs.qt.io/Gerrit/boot2qt-demos.git
Change-Id: I55e4210e93fc9e017d85e163f13c0b04de96cff0
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Diffstat (limited to 'tradeshow/knx-demo/ui')
-rw-r--r-- | tradeshow/knx-demo/ui/KnxBoardLayout.qml | 141 | ||||
-rw-r--r-- | tradeshow/knx-demo/ui/components/BlindSimulationView.qml | 102 | ||||
-rw-r--r-- | tradeshow/knx-demo/ui/components/ColorSlider.qml | 80 | ||||
-rw-r--r-- | tradeshow/knx-demo/ui/components/E10LedView.qml | 75 | ||||
-rw-r--r-- | tradeshow/knx-demo/ui/components/E11LedView.qml | 82 | ||||
-rw-r--r-- | tradeshow/knx-demo/ui/components/E12LedView.qml | 80 | ||||
-rw-r--r-- | tradeshow/knx-demo/ui/components/E13LedView.qml | 77 | ||||
-rw-r--r-- | tradeshow/knx-demo/ui/components/E14LedView.qml | 77 | ||||
-rw-r--r-- | tradeshow/knx-demo/ui/components/E1LedView.qml | 79 | ||||
-rw-r--r-- | tradeshow/knx-demo/ui/components/E2LedView.qml | 80 | ||||
-rw-r--r-- | tradeshow/knx-demo/ui/components/E3E4LedView.qml | 90 | ||||
-rw-r--r-- | tradeshow/knx-demo/ui/components/E5E6LedView.qml | 93 | ||||
-rw-r--r-- | tradeshow/knx-demo/ui/components/E7E8LedView.qml | 112 | ||||
-rw-r--r-- | tradeshow/knx-demo/ui/components/E9LedView.qml | 82 | ||||
-rw-r--r-- | tradeshow/knx-demo/ui/components/KnxSwitch.qml | 84 | ||||
-rw-r--r-- | tradeshow/knx-demo/ui/main.qml | 118 |
16 files changed, 0 insertions, 1452 deletions
diff --git a/tradeshow/knx-demo/ui/KnxBoardLayout.qml b/tradeshow/knx-demo/ui/KnxBoardLayout.qml deleted file mode 100644 index 5fd5d3a..0000000 --- a/tradeshow/knx-demo/ui/KnxBoardLayout.qml +++ /dev/null @@ -1,141 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.7 -import QtQuick.Controls 2.2 -import QtQuick.Layouts 1.3 -import QtQuick.Window 2.2 -import "components" - -Rectangle { - property real xScaleFactor: (width / Screen.width).toFixed(2) - - function toggleLight(num) - { - knxDemo.toggleLight(num); - } - - function enableBox(num, checked) - { - if (num == 1) - e1LedView.lightE1.on = checked; - else if (num == 2) - e2LedView.lightE2.on = checked; - else if (num == 3) - e3e4LedView.lightE3.on = checked; - else if (num == 4) - e3e4LedView.lightE4.on = checked; - else if (num == 5) - e5e6LedView.lightE5.on = checked; - else if (num == 6) - e5e6LedView.lightE6.on = checked; - else if (num == 7) - e7e8LedView.lightE7.on = checked; - else if (num == 8) - e7e8LedView.lightE8.on = checked; - else if (num == 9) - e9LedView.lightE9.on = checked; - else if (num == 10) - e10LedView.lightE10.on = checked; - else if (num == 11) - e11LedView.lightE11.on = checked; - else if (num == 12) - e12LedView.lightE12.on = checked; - else if (num == 14) - changeLedColor(middleRightLed.led, checked ? "Yellow" : "#394251"); - return; - } - - function changeColorLeftLed(color) - { - changeLedColor(middleLeftLed.led, color); - } - - function changeLedColor(led, color) - { - if (Qt.colorEqual(color, "black")) - led.color = "#394251"; - else - led.color = color; - } - - function rotateLogo(rocker) - { - logo.rotation = (rocker - 1000) * 360 / 1000; - } - - ColumnLayout { - anchors.fill: parent - spacing: 0 - RowLayout { - spacing: 0 - E1LedView { id: e1LedView } - E2LedView { id: e2LedView } - E3E4LedView { id: e3e4LedView } - } - RowLayout { - spacing: 0 - E5E6LedView { id: e5e6LedView } - E13LedView { id: middleLeftLed } - E12LedView { id: e12LedView } - E14LedView { id: middleRightLed } - E7E8LedView { id: e7e8LedView } - } - RowLayout { - spacing: 0 - E9LedView { id: e9LedView } - ColumnLayout { - spacing: 0 - ColorSlider {} - E10LedView { id: e10LedView } - } - E11LedView { id: e11LedView } - } - } -} diff --git a/tradeshow/knx-demo/ui/components/BlindSimulationView.qml b/tradeshow/knx-demo/ui/components/BlindSimulationView.qml deleted file mode 100644 index 11a0fbd..0000000 --- a/tradeshow/knx-demo/ui/components/BlindSimulationView.qml +++ /dev/null @@ -1,102 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.7 -import QtQuick.Controls 2.2 -import QtGraphicalEffects 1.0 - -Item { - signal endSimulation(); - - function goUp() - { - animUp.start(); - } - function goDown() - { - animDown.start(); - } - function pause() - { - if (animUp.running) - animUp.stop(); - if (animDown.running) - animDown.stop(); - } - - Rectangle { - anchors.left: parent.left - anchors.right: parent.right - color: "#272a33" - Image { - id: blind - width: 84 - source: pathPrefix + "images/blind.png" - anchors.top: parent.bottom - } - SequentialAnimation { - id: animUp - running: false - NumberAnimation { target: blind; property: "height"; from: blind.height; to: 30; duration: 4000 } - onRunningChanged: { - if (!running) - endSimulation() - } - } - SequentialAnimation { - id: animDown - running: false - NumberAnimation { target: blind; property: "height"; from: blind.height; to: blind.sourceSize.height; duration: 4000 } - onRunningChanged: { - if (!running) - endSimulation() - } - } - } -} diff --git a/tradeshow/knx-demo/ui/components/ColorSlider.qml b/tradeshow/knx-demo/ui/components/ColorSlider.qml deleted file mode 100644 index cf507c7..0000000 --- a/tradeshow/knx-demo/ui/components/ColorSlider.qml +++ /dev/null @@ -1,80 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.7 -import QtQuick.Controls 2.2 -import QtQuick.Layouts 1.3 - -Rectangle { - Layout.fillWidth: true - Layout.fillHeight: true - Layout.preferredWidth: 100 - color: "#272a33" - border.width: 4 - border.color: "#686a75" - Slider { - anchors.fill: parent - anchors.margins: 17 - onPressedChanged: knxDemo.colorSwitch(value) - handle: Rectangle { - x: parent.leftPadding + parent.visualPosition * (parent.availableWidth - width) - y: parent.topPadding + parent.availableHeight / 2 - height / 2 - color: hovered ? "#272a33" : "#686a75" - border.color: "gray" - border.width: 1 - implicitWidth: 24 - implicitHeight: 24 - radius: width * 0.2 - } - background: Image { - source: pathPrefix + "images/rainbow.png" - } - } -} - diff --git a/tradeshow/knx-demo/ui/components/E10LedView.qml b/tradeshow/knx-demo/ui/components/E10LedView.qml deleted file mode 100644 index 79345df..0000000 --- a/tradeshow/knx-demo/ui/components/E10LedView.qml +++ /dev/null @@ -1,75 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.7 -import QtQuick.Controls 2.2 -import QtQuick.Layouts 1.3 - -Rectangle { - property alias lightE10: lightE10 - Layout.fillWidth: true - Layout.fillHeight: true - Layout.preferredWidth: 100 - color: "#272a33" - border.width: 4 - border.color: "#686a75" - KnxSwitch { - id: lightE10 - lightNumber: 10 - anchors.centerIn: parent - z: 1 - scale: xScaleFactor - } - Image { - anchors.fill: parent - anchors.margins: 10 - fillMode: Image.PreserveAspectFit - source: pathPrefix + "images/e10View.png" - } -} diff --git a/tradeshow/knx-demo/ui/components/E11LedView.qml b/tradeshow/knx-demo/ui/components/E11LedView.qml deleted file mode 100644 index fd0eee7..0000000 --- a/tradeshow/knx-demo/ui/components/E11LedView.qml +++ /dev/null @@ -1,82 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.7 -import QtQuick.Controls 2.2 -import QtQuick.Layouts 1.3 - -Rectangle { - property alias lightE11: lightE11 - Layout.fillWidth: true - Layout.fillHeight: true - Layout.preferredWidth: 50 - Layout.preferredHeight: 100 - color: "#272a33" - border.width: 4 - border.color: "#686a75" - RowLayout { - anchors.fill: parent - anchors.margins: 20 - Image { - id: clockSymbol - anchors.left: parent.left - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.right: lightE11.left - fillMode: Image.PreserveAspectFit - source: pathPrefix + "images/clock.png" - } - KnxSwitch { - id: lightE11 - lightNumber: 11 - anchors.centerIn: parent - scale: xScaleFactor - } - } -} diff --git a/tradeshow/knx-demo/ui/components/E12LedView.qml b/tradeshow/knx-demo/ui/components/E12LedView.qml deleted file mode 100644 index 4b91eab..0000000 --- a/tradeshow/knx-demo/ui/components/E12LedView.qml +++ /dev/null @@ -1,80 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.7 -import QtQuick.Controls 2.2 -import QtQuick.Layouts 1.3 - -Rectangle { - property alias lightE12: lightE12 - Layout.fillWidth: true - Layout.fillHeight: true - Layout.preferredWidth: 70 - color: "#272a33" - border.width: 4 - border.color: "#686a75" - ColumnLayout { - anchors.bottomMargin: height / 2 - anchors.topMargin: height / 2 - anchors.centerIn: parent - Image { - Layout.preferredWidth: 70 - Layout.preferredHeight: 70 - fillMode: Image.PreserveAspectFit - anchors.horizontalCenter: lightE12.horizontalCenter - source: pathPrefix + "images/icon_light.png" - } - KnxSwitch { - id: lightE12 - lightNumber: 12 - anchors.horizontalCenter: parent.horizontalCenter - scale: xScaleFactor - } - } -} diff --git a/tradeshow/knx-demo/ui/components/E13LedView.qml b/tradeshow/knx-demo/ui/components/E13LedView.qml deleted file mode 100644 index 9d0e937..0000000 --- a/tradeshow/knx-demo/ui/components/E13LedView.qml +++ /dev/null @@ -1,77 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.7 -import QtQuick.Controls 2.2 -import QtQuick.Layouts 1.3 - -Rectangle { - property alias led: leftLed - color: "#272a33" - Layout.fillWidth: true - Layout.fillHeight: true - Layout.minimumWidth: 100 - Layout.minimumHeight: 220 - border.width: 4 - border.color: "#686a75" - Rectangle { - id: leftLed - height: parent.height / 2 - width: parent.height / 2 - color: "#394251" - radius: 0.5 * width - border.color: "#686a75" - border.width: 2 - anchors.centerIn: parent - MouseArea { - anchors.fill: parent - onClicked: knxDemo.toggleMiddleLeft() - } - } -} diff --git a/tradeshow/knx-demo/ui/components/E14LedView.qml b/tradeshow/knx-demo/ui/components/E14LedView.qml deleted file mode 100644 index 85987d8..0000000 --- a/tradeshow/knx-demo/ui/components/E14LedView.qml +++ /dev/null @@ -1,77 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.7 -import QtQuick.Controls 2.2 -import QtQuick.Layouts 1.3 - -Rectangle { - property alias led: rightLed - color: "#272a33" - Layout.fillWidth: true - Layout.fillHeight: true - Layout.minimumWidth: 100 - Layout.minimumHeight: 220 - border.width: 4 - border.color: "#686a75" - Rectangle { - id: rightLed - height: parent.height / 2 - width: parent.height / 2 - color: "#394251" - radius: 0.5 * width - border.color: "#686a75" - border.width: 2 - anchors.centerIn: parent - MouseArea { - anchors.fill: parent - onClicked: toggleLight(14) - } - } -} diff --git a/tradeshow/knx-demo/ui/components/E1LedView.qml b/tradeshow/knx-demo/ui/components/E1LedView.qml deleted file mode 100644 index 6b676c2..0000000 --- a/tradeshow/knx-demo/ui/components/E1LedView.qml +++ /dev/null @@ -1,79 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.7 -import QtQuick.Controls 2.2 -import QtQuick.Layouts 1.3 - -Rectangle { - color: "#272a33" - property alias lightE1: lightE1 - Layout.fillWidth: true - Layout.fillHeight: true - Layout.preferredWidth: 400 - Layout.preferredHeight: 220 - border.width: 4 - border.color: "#686a75" - Image { - id: e1SchemeImg - source: pathPrefix + "images/e1View.png" - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.left: parent.left - anchors.right: lightE1.left - fillMode: Image.PreserveAspectFit - } - KnxSwitch { - id: lightE1 - lightNumber:1 - anchors.verticalCenter: e1SchemeImg.verticalCenter - anchors.right: parent.right - scale: xScaleFactor - } -} diff --git a/tradeshow/knx-demo/ui/components/E2LedView.qml b/tradeshow/knx-demo/ui/components/E2LedView.qml deleted file mode 100644 index f844141..0000000 --- a/tradeshow/knx-demo/ui/components/E2LedView.qml +++ /dev/null @@ -1,80 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.7 -import QtQuick.Controls 2.2 -import QtQuick.Layouts 1.3 - -Rectangle { - id: e2Scheme - property alias lightE2: lightE2 - Layout.fillWidth: true - Layout.fillHeight: true - Layout.preferredWidth: 300 - Layout.preferredHeight: 220 - color: "#272a33" - border.width: 4 - border.color: "#686a75" - Image { - id: e2SchemeImg - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.left: parent.left - anchors.right: lightE2.left - fillMode: Image.PreserveAspectFit - source: pathPrefix + "images/e2View.png" - } - KnxSwitch { - id: lightE2 - lightNumber:2 - anchors.right: parent.right - anchors.verticalCenter: e2SchemeImg.verticalCenter - scale: xScaleFactor - } -} diff --git a/tradeshow/knx-demo/ui/components/E3E4LedView.qml b/tradeshow/knx-demo/ui/components/E3E4LedView.qml deleted file mode 100644 index cc0f4f8..0000000 --- a/tradeshow/knx-demo/ui/components/E3E4LedView.qml +++ /dev/null @@ -1,90 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.7 -import QtQuick.Controls 2.2 -import QtQuick.Layouts 1.3 - -Rectangle { - id: e3e4Scheme - property alias lightE3: lightE3 - property alias lightE4: lightE4 - Layout.fillWidth: true - Layout.fillHeight: true - Layout.preferredWidth: 400 - Layout.preferredHeight: 220 - color: "#272a33" - border.width: 4 - border.color: "#686a75" - KnxSwitch { - id: lightE3 - lightNumber: 3 - anchors.left: parent.left - anchors.right: e3e4SchemeImg.left - anchors.verticalCenter: e3e4SchemeImg.verticalCenter - scale: xScaleFactor - } - Image { - id: e3e4SchemeImg - anchors.left: lightE3.right - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.right: lightE4.left - fillMode: Image.PreserveAspectFit - source: pathPrefix + "images/e3e4View.png" - } - KnxSwitch { - id: lightE4 - lightNumber: 4 - width: 88 - anchors.right: parent.right - anchors.verticalCenter: e3e4SchemeImg.verticalCenter - scale: xScaleFactor - } -} diff --git a/tradeshow/knx-demo/ui/components/E5E6LedView.qml b/tradeshow/knx-demo/ui/components/E5E6LedView.qml deleted file mode 100644 index 564c050..0000000 --- a/tradeshow/knx-demo/ui/components/E5E6LedView.qml +++ /dev/null @@ -1,93 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.7 -import QtQuick.Controls 2.2 -import QtQuick.Layouts 1.3 - -Rectangle { - id: e5e6Scheme - color: "#272a33" - property alias lightE5: lightE5 - property alias lightE6: lightE6 - Layout.fillWidth: true - Layout.fillHeight: true - Layout.preferredWidth: 130 - Layout.preferredHeight: 220 - border.width: 4 - border.color: "#686a75" - Image { - id: e5e6SchemeImg - anchors.right: parent.righ - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.left: colSwitches.right - fillMode: Image.PreserveAspectFit - source: pathPrefix + "images/e5e6View.png" - } - ColumnLayout { - id: colSwitches - anchors.left: parent.left - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.margins: 4 - KnxSwitch { - id: lightE5 - lightNumber: 5 - anchors.top: parent.top - scale: xScaleFactor - } - KnxSwitch { - id: lightE6 - lightNumber: 6 - anchors.bottom: parent.bottom - scale: xScaleFactor - } - } -} diff --git a/tradeshow/knx-demo/ui/components/E7E8LedView.qml b/tradeshow/knx-demo/ui/components/E7E8LedView.qml deleted file mode 100644 index 92be92f..0000000 --- a/tradeshow/knx-demo/ui/components/E7E8LedView.qml +++ /dev/null @@ -1,112 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.7 -import QtQuick.Controls 2.2 -import QtQuick.Layouts 1.3 - -Rectangle { - color: "#272a33" - property alias lightE7: lightE7 - property alias lightE8: lightE8 - Layout.fillWidth: true - Layout.fillHeight: true - Layout.minimumWidth: 120 - Layout.minimumHeight: 220 - border.width: 4 - border.color: "#686a75" - BlindSimulationView { - id: simulation - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.left: parent.left - anchors.topMargin: 20 - anchors.leftMargin: 10 - onEndSimulation: { - lightE7.on = false; - lightE8.on = false; - knxDemo.stopBlind(); - } - } - ColumnLayout { - id: blindControls - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.right: parent.right - spacing: 0 - KnxSwitch { - id: lightE7 - lightNumber: 7 - scale: xScaleFactor - customSwitchAction: true - onUiClicked: { - lightE8.on = false; - simulation.pause(); - if (lightE7.on) { - simulation.goUp(); - knxDemo.moveBlindUp(); - } - } - } - KnxSwitch { - id: lightE8 - lightNumber: 8 - scale: xScaleFactor - customSwitchAction: true - onUiClicked: { - lightE7.on = false; - simulation.pause(); - if (lightE8.on) { - simulation.goDown(); - knxDemo.moveBlindDown(); - } - } - } - } -} diff --git a/tradeshow/knx-demo/ui/components/E9LedView.qml b/tradeshow/knx-demo/ui/components/E9LedView.qml deleted file mode 100644 index e384ea7..0000000 --- a/tradeshow/knx-demo/ui/components/E9LedView.qml +++ /dev/null @@ -1,82 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.7 -import QtQuick.Controls 2.2 -import QtQuick.Layouts 1.3 - -Rectangle { - property alias lightE9: lightE9 - Layout.fillWidth: true - Layout.fillHeight: true - Layout.preferredWidth: 50 - Layout.preferredHeight: 100 - color: "#272a33" - border.width: 4 - border.color: "#686a75" - RowLayout { - anchors.fill: parent - anchors.margins: 20 - Image { - id: tempSymbol - anchors.left: parent.left - anchors.top: parent.top - anchors.bottom: parent.bottom - anchors.right: lightE9.left - fillMode: Image.PreserveAspectFit - source: pathPrefix + "images/temperature_symbol.png" - } - KnxSwitch { - id: lightE9 - lightNumber: 9 - anchors.centerIn: parent - scale: xScaleFactor - } - } -} diff --git a/tradeshow/knx-demo/ui/components/KnxSwitch.qml b/tradeshow/knx-demo/ui/components/KnxSwitch.qml deleted file mode 100644 index f56bec8..0000000 --- a/tradeshow/knx-demo/ui/components/KnxSwitch.qml +++ /dev/null @@ -1,84 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.7 -import QtQuick.Controls 2.2 -import QtQuick.Layouts 1.3 - -Item { - width: 88 - height: 48 - property bool on: false - property int lightNumber: 0 - property bool customSwitchAction: false - - signal uiClicked(); - MouseArea { - anchors.fill: parent - onClicked: { - if (!customSwitchAction) - toggleLight(lightNumber); - on = !on; - uiClicked(); - } - } - Image { - id: imageOff - anchors.fill: parent - visible: on - fillMode: Image.PreserveAspectFit - source: pathPrefix + "images/on_green.png" - } - Image { - anchors.fill: parent - visible: !on - fillMode: Image.PreserveAspectFit - source: pathPrefix + "images/off.png" - } -} diff --git a/tradeshow/knx-demo/ui/main.qml b/tradeshow/knx-demo/ui/main.qml deleted file mode 100644 index 92399a8..0000000 --- a/tradeshow/knx-demo/ui/main.qml +++ /dev/null @@ -1,118 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2017 The Qt Company Ltd. -** Contact: https://www.qt.io/licensing/ -** -** This file is part of the examples of the Qt Toolkit. -** -** $QT_BEGIN_LICENSE:BSD$ -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and The Qt Company. For licensing terms -** and conditions see https://www.qt.io/terms-conditions. For further -** information use the contact form at https://www.qt.io/contact-us. -** -** BSD License Usage -** Alternatively, you may use this file under the terms of the BSD license -** as follows: -** -** "Redistribution and use in source and binary forms, with or without -** modification, are permitted provided that the following conditions are -** met: -** * Redistributions of source code must retain the above copyright -** notice, this list of conditions and the following disclaimer. -** * Redistributions in binary form must reproduce the above copyright -** notice, this list of conditions and the following disclaimer in -** the documentation and/or other materials provided with the -** distribution. -** * Neither the name of The Qt Company Ltd nor the names of its -** contributors may be used to endorse or promote products derived -** from this software without specific prior written permission. -** -** -** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE -** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." -** -** $QT_END_LICENSE$ -** -****************************************************************************/ -import QtQuick 2.7 -import QtQuick.Controls 2.2 -import QtQuick.Layouts 1.3 -import QmlKnxDemo 1.0 - -ApplicationWindow { - id: mainWindow - visibility: "FullScreen" - width: 1280 - height: 800 - title: qsTr("KNX Demo") - - QmlKnxDemo { - id: knxDemo - onBoardUpdate: { - console.log("signal onBoardUpdate lightNum: " + lightNum) - knxBoard.enableBox(lightNum, getLightState(lightNum)); - } - onColorLedChange: knxBoard.changeColorLeftLed(color) - onRockerChange: { - logo.rotation = (position - 1000) * 360 / 1000; - } - } - - header: ToolBar { - height: mainWindow.height / 12 - width: parent.width - Layout.fillWidth: true - background: Image { - anchors.fill: parent - source: pathPrefix + "images/topBar.png" - } - Image { - id: logo - antialiasing: true - anchors.verticalCenter: title.verticalCenter - width: 45 - height: 33 - source: pathPrefix + "images/Qt-logo-medium.png" - } - Label { - id: title - color: "grey" - text: qsTr("Qt for automation KNX demo") - anchors.left: logo.right - anchors.verticalCenter: parent.verticalCenter - Layout.maximumWidth: mainWindow.width / 3 - } - ToolButton { - anchors.right: parent.right - anchors.verticalCenter: parent.verticalCenter - width: logo.width * 0.8 - height: logo.width * 0.8 - contentItem: Image { - fillMode: Image.PreserveAspectFit - source: pathPrefix + "images/quit_icon.png" - MouseArea { - anchors.fill: parent - onClicked: Qt.quit(); - } - } - } - } - - KnxBoardLayout { - id: knxBoard - anchors.fill: parent - } -} |