summaryrefslogtreecommitdiffstats
path: root/tradeshow/knx-demo/2d-knx-demo/ui
diff options
context:
space:
mode:
Diffstat (limited to 'tradeshow/knx-demo/2d-knx-demo/ui')
-rw-r--r--tradeshow/knx-demo/2d-knx-demo/ui/KnxBoardLayout.qml141
-rw-r--r--tradeshow/knx-demo/2d-knx-demo/ui/components/BlindSimulationView.qml102
-rw-r--r--tradeshow/knx-demo/2d-knx-demo/ui/components/ColorSlider.qml80
-rw-r--r--tradeshow/knx-demo/2d-knx-demo/ui/components/E10LedView.qml75
-rw-r--r--tradeshow/knx-demo/2d-knx-demo/ui/components/E11LedView.qml82
-rw-r--r--tradeshow/knx-demo/2d-knx-demo/ui/components/E12LedView.qml80
-rw-r--r--tradeshow/knx-demo/2d-knx-demo/ui/components/E13LedView.qml77
-rw-r--r--tradeshow/knx-demo/2d-knx-demo/ui/components/E14LedView.qml77
-rw-r--r--tradeshow/knx-demo/2d-knx-demo/ui/components/E1LedView.qml79
-rw-r--r--tradeshow/knx-demo/2d-knx-demo/ui/components/E2LedView.qml80
-rw-r--r--tradeshow/knx-demo/2d-knx-demo/ui/components/E3E4LedView.qml90
-rw-r--r--tradeshow/knx-demo/2d-knx-demo/ui/components/E5E6LedView.qml93
-rw-r--r--tradeshow/knx-demo/2d-knx-demo/ui/components/E7E8LedView.qml112
-rw-r--r--tradeshow/knx-demo/2d-knx-demo/ui/components/E9LedView.qml82
-rw-r--r--tradeshow/knx-demo/2d-knx-demo/ui/components/KnxSwitch.qml84
-rw-r--r--tradeshow/knx-demo/2d-knx-demo/ui/main.qml118
16 files changed, 1452 insertions, 0 deletions
diff --git a/tradeshow/knx-demo/2d-knx-demo/ui/KnxBoardLayout.qml b/tradeshow/knx-demo/2d-knx-demo/ui/KnxBoardLayout.qml
new file mode 100644
index 0000000..5fd5d3a
--- /dev/null
+++ b/tradeshow/knx-demo/2d-knx-demo/ui/KnxBoardLayout.qml
@@ -0,0 +1,141 @@
+/****************************************************************************
+**
+** 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/2d-knx-demo/ui/components/BlindSimulationView.qml b/tradeshow/knx-demo/2d-knx-demo/ui/components/BlindSimulationView.qml
new file mode 100644
index 0000000..11a0fbd
--- /dev/null
+++ b/tradeshow/knx-demo/2d-knx-demo/ui/components/BlindSimulationView.qml
@@ -0,0 +1,102 @@
+/****************************************************************************
+**
+** 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/2d-knx-demo/ui/components/ColorSlider.qml b/tradeshow/knx-demo/2d-knx-demo/ui/components/ColorSlider.qml
new file mode 100644
index 0000000..cf507c7
--- /dev/null
+++ b/tradeshow/knx-demo/2d-knx-demo/ui/components/ColorSlider.qml
@@ -0,0 +1,80 @@
+/****************************************************************************
+**
+** 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/2d-knx-demo/ui/components/E10LedView.qml b/tradeshow/knx-demo/2d-knx-demo/ui/components/E10LedView.qml
new file mode 100644
index 0000000..79345df
--- /dev/null
+++ b/tradeshow/knx-demo/2d-knx-demo/ui/components/E10LedView.qml
@@ -0,0 +1,75 @@
+/****************************************************************************
+**
+** 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/2d-knx-demo/ui/components/E11LedView.qml b/tradeshow/knx-demo/2d-knx-demo/ui/components/E11LedView.qml
new file mode 100644
index 0000000..fd0eee7
--- /dev/null
+++ b/tradeshow/knx-demo/2d-knx-demo/ui/components/E11LedView.qml
@@ -0,0 +1,82 @@
+/****************************************************************************
+**
+** 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/2d-knx-demo/ui/components/E12LedView.qml b/tradeshow/knx-demo/2d-knx-demo/ui/components/E12LedView.qml
new file mode 100644
index 0000000..4b91eab
--- /dev/null
+++ b/tradeshow/knx-demo/2d-knx-demo/ui/components/E12LedView.qml
@@ -0,0 +1,80 @@
+/****************************************************************************
+**
+** 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/2d-knx-demo/ui/components/E13LedView.qml b/tradeshow/knx-demo/2d-knx-demo/ui/components/E13LedView.qml
new file mode 100644
index 0000000..9d0e937
--- /dev/null
+++ b/tradeshow/knx-demo/2d-knx-demo/ui/components/E13LedView.qml
@@ -0,0 +1,77 @@
+/****************************************************************************
+**
+** 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/2d-knx-demo/ui/components/E14LedView.qml b/tradeshow/knx-demo/2d-knx-demo/ui/components/E14LedView.qml
new file mode 100644
index 0000000..85987d8
--- /dev/null
+++ b/tradeshow/knx-demo/2d-knx-demo/ui/components/E14LedView.qml
@@ -0,0 +1,77 @@
+/****************************************************************************
+**
+** 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/2d-knx-demo/ui/components/E1LedView.qml b/tradeshow/knx-demo/2d-knx-demo/ui/components/E1LedView.qml
new file mode 100644
index 0000000..6b676c2
--- /dev/null
+++ b/tradeshow/knx-demo/2d-knx-demo/ui/components/E1LedView.qml
@@ -0,0 +1,79 @@
+/****************************************************************************
+**
+** 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/2d-knx-demo/ui/components/E2LedView.qml b/tradeshow/knx-demo/2d-knx-demo/ui/components/E2LedView.qml
new file mode 100644
index 0000000..f844141
--- /dev/null
+++ b/tradeshow/knx-demo/2d-knx-demo/ui/components/E2LedView.qml
@@ -0,0 +1,80 @@
+/****************************************************************************
+**
+** 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/2d-knx-demo/ui/components/E3E4LedView.qml b/tradeshow/knx-demo/2d-knx-demo/ui/components/E3E4LedView.qml
new file mode 100644
index 0000000..cc0f4f8
--- /dev/null
+++ b/tradeshow/knx-demo/2d-knx-demo/ui/components/E3E4LedView.qml
@@ -0,0 +1,90 @@
+/****************************************************************************
+**
+** 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/2d-knx-demo/ui/components/E5E6LedView.qml b/tradeshow/knx-demo/2d-knx-demo/ui/components/E5E6LedView.qml
new file mode 100644
index 0000000..564c050
--- /dev/null
+++ b/tradeshow/knx-demo/2d-knx-demo/ui/components/E5E6LedView.qml
@@ -0,0 +1,93 @@
+/****************************************************************************
+**
+** 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/2d-knx-demo/ui/components/E7E8LedView.qml b/tradeshow/knx-demo/2d-knx-demo/ui/components/E7E8LedView.qml
new file mode 100644
index 0000000..92be92f
--- /dev/null
+++ b/tradeshow/knx-demo/2d-knx-demo/ui/components/E7E8LedView.qml
@@ -0,0 +1,112 @@
+/****************************************************************************
+**
+** 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/2d-knx-demo/ui/components/E9LedView.qml b/tradeshow/knx-demo/2d-knx-demo/ui/components/E9LedView.qml
new file mode 100644
index 0000000..e384ea7
--- /dev/null
+++ b/tradeshow/knx-demo/2d-knx-demo/ui/components/E9LedView.qml
@@ -0,0 +1,82 @@
+/****************************************************************************
+**
+** 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/2d-knx-demo/ui/components/KnxSwitch.qml b/tradeshow/knx-demo/2d-knx-demo/ui/components/KnxSwitch.qml
new file mode 100644
index 0000000..f56bec8
--- /dev/null
+++ b/tradeshow/knx-demo/2d-knx-demo/ui/components/KnxSwitch.qml
@@ -0,0 +1,84 @@
+/****************************************************************************
+**
+** 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/2d-knx-demo/ui/main.qml b/tradeshow/knx-demo/2d-knx-demo/ui/main.qml
new file mode 100644
index 0000000..92399a8
--- /dev/null
+++ b/tradeshow/knx-demo/2d-knx-demo/ui/main.qml
@@ -0,0 +1,118 @@
+/****************************************************************************
+**
+** 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
+ }
+}