diff options
Diffstat (limited to 'basicsuite/about-b2qt')
-rw-r--r-- | basicsuite/about-b2qt/AboutBoot2Qt.qml | 109 | ||||
-rw-r--r-- | basicsuite/about-b2qt/Box.qml | 70 | ||||
-rw-r--r-- | basicsuite/about-b2qt/ContentText.qml | 48 | ||||
-rw-r--r-- | basicsuite/about-b2qt/QtForAndroid.qml | 93 | ||||
-rw-r--r-- | basicsuite/about-b2qt/QtFramework.qml | 75 | ||||
-rw-r--r-- | basicsuite/about-b2qt/Title.qml | 48 | ||||
-rw-r--r-- | basicsuite/about-b2qt/about-b2qt.pro | 12 | ||||
-rw-r--r-- | basicsuite/about-b2qt/codeless.png | bin | 0 -> 28581 bytes | |||
-rw-r--r-- | basicsuite/about-b2qt/description.txt | 3 | ||||
-rw-r--r-- | basicsuite/about-b2qt/dummy.cpp | 0 | ||||
-rw-r--r-- | basicsuite/about-b2qt/main.qml | 175 | ||||
-rw-r--r-- | basicsuite/about-b2qt/particle.png | bin | 0 -> 861 bytes | |||
-rw-r--r-- | basicsuite/about-b2qt/preview_l.jpg | bin | 0 -> 28727 bytes | |||
-rw-r--r-- | basicsuite/about-b2qt/qt-logo.png | bin | 0 -> 21659 bytes | |||
-rw-r--r-- | basicsuite/about-b2qt/title.txt | 1 |
15 files changed, 634 insertions, 0 deletions
diff --git a/basicsuite/about-b2qt/AboutBoot2Qt.qml b/basicsuite/about-b2qt/AboutBoot2Qt.qml new file mode 100644 index 0000000..b97ac3b --- /dev/null +++ b/basicsuite/about-b2qt/AboutBoot2Qt.qml @@ -0,0 +1,109 @@ +/**************************************************************************** +** +** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Contact: For any questions to Digia, please use the contact form at +** http://qt.digia.com/ +** +** This file is part of the examples of the Qt Enterprise Embedded. +** +** $QT_BEGIN_LICENSE:BSD$ +** 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 Digia Plc and its Subsidiary(-ies) 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.0 + +Column { + + id: root + + width: parent.width + + spacing: engine.smallFontSize() + + Title { + id: title + text: "Boot to Qt" + } + + ContentText { + id: brief + width: parent.width + text: '<p align="justify">Boot to Qt is a light-weight UI stack for embedded systems, based on the Qt Framework by Digia, + offering an elegant means of developing beautiful and performant embedded devices. It supports two different + operating systems: + <ul> + <li><b>Boot to Qt for embedded Android</b> places Qt on top of an Android (version 4.1 or higher) + kernel/baselayer.</li> + <li><b>Boot to Qt for embedded Linux</b> places Qt on top of an Linux kernel/baselayer, built using + Yocto 1.4 \'Dylan\' release.</li> + </ul> + Both versions have been tested and verified on a number of different hardware configurations. + Boot to Qt support is not limited to the devices used as reference platforms, it can be made to run on a + variety of hardware. + + <p align="justify">Boot to Qt is part of a commercial-only SDK offering which includes a ready-made stack + with full Qt Creator integration. The SDK allows building and running on device + with just a button. Embedded development has never been this easy!' + } + + Column { + id: diagram + spacing: 1 + width: parent.width * 0.5 + anchors.horizontalCenter: parent.horizontalCenter + Box { text: "Application"; accentColor: "coral" } + Box { text: "Qt Framework"; accentColor: Qt.rgba(0.64, 0.82, 0.15) } + Box { text: "Android/Linux Baselayer"; accentColor: "steelblue" } + Box { text: "Embedded Hardware"; accentColor: "steelblue"} + } + + ContentText { + id: description + + width: parent.width + + text: '<p align="justify">Boot to Qt has been tested and verified on + a number of different hardware configurations, including: + <ul> + <li>Google Nexus 7 - NVIDIA Tegra3 Quad Core, 1 GB RAM</li> + <li>Beagle Board xM - ARM Coretex A8 1GHz, 512 MB RAM, PowerVR SGX 530</li> + <li>Freescale i.MX 6 - ARM Cortex A9 1.2GHz, 1 GB RAM, Vivante GC2000</li> + </ul> + Rough minimal requirements for running Boot to Qt are: + <ul> + <li>256Mb of RAM</li> + <li>500Mhz CPU, 1Ghz preferred for 60 FPS velvet UIs</li> + <li>OpenGL ES 2.0 support</li> + <li>Android 4.0+ compatible hardware</li> + </ul> + ' + } +} diff --git a/basicsuite/about-b2qt/Box.qml b/basicsuite/about-b2qt/Box.qml new file mode 100644 index 0000000..283ed9f --- /dev/null +++ b/basicsuite/about-b2qt/Box.qml @@ -0,0 +1,70 @@ +/**************************************************************************** +** +** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Contact: For any questions to Digia, please use the contact form at +** http://qt.digia.com/ +** +** This file is part of the examples of the Qt Enterprise Embedded. +** +** $QT_BEGIN_LICENSE:BSD$ +** 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 Digia Plc and its Subsidiary(-ies) 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.0 + +Rectangle { + id: root + + width: parent.width + height: label.font.pixelSize * 3 + + radius: 4 + + antialiasing: true + + property alias text: label.text; + + property color accentColor: "palegreen" + + gradient: Gradient { + GradientStop { position: 0; color: root.accentColor; } + GradientStop { position: 1; color: "black"; } + } + + Text { + id: label + font.pixelSize: engine.smallFontSize() + font.bold: true; + color: "white" + anchors.centerIn: parent + } + +} diff --git a/basicsuite/about-b2qt/ContentText.qml b/basicsuite/about-b2qt/ContentText.qml new file mode 100644 index 0000000..55d3e36 --- /dev/null +++ b/basicsuite/about-b2qt/ContentText.qml @@ -0,0 +1,48 @@ +/**************************************************************************** +** +** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Contact: For any questions to Digia, please use the contact form at +** http://qt.digia.com/ +** +** This file is part of the examples of the Qt Enterprise Embedded. +** +** $QT_BEGIN_LICENSE:BSD$ +** 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 Digia Plc and its Subsidiary(-ies) 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.0 + +Text { + color: "white" + font.pixelSize: engine.smallFontSize() + textFormat: Text.RichText + wrapMode: Text.WordWrap +} diff --git a/basicsuite/about-b2qt/QtForAndroid.qml b/basicsuite/about-b2qt/QtForAndroid.qml new file mode 100644 index 0000000..9c1aa38 --- /dev/null +++ b/basicsuite/about-b2qt/QtForAndroid.qml @@ -0,0 +1,93 @@ +/**************************************************************************** +** +** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Contact: For any questions to Digia, please use the contact form at +** http://qt.digia.com/ +** +** This file is part of the examples of the Qt Enterprise Embedded. +** +** $QT_BEGIN_LICENSE:BSD$ +** 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 Digia Plc and its Subsidiary(-ies) 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.0 + +Column { + id: root + + width: parent.width + + spacing: engine.smallFontSize() + + Title { + text: "Boot to Qt vs Qt for Android" + } + + ContentText { + width: parent.width + text: '<p align="justify">Qt for Android is a port of the Qt Framework to be used + for application development on the Android platform. Its + purpose is to enable development of applications that + can run on Android devices. For developers writing applications + for the Android ecosystem, Qt for Android is the right choice. + + <p align="justify"><b>Boot to Qt for embedded Android</b> tries to strip down + the Android stack to the bare minimum, relying only on basic Linux features. + The majority of the Android stack, such as <i>Dalvik virtual machine</i> is + not running in Boot to Qt, resulting in faster startup times, lower memory consumption + and overall better performance.' + } + + Column { + id: diagram + spacing: 1 + width: parent.width * 0.66 + anchors.horizontalCenter: parent.horizontalCenter + Box { text: "Application"; accentColor: "coral" } + Box { text: "Qt for Android"; accentColor: Qt.rgba(0.64, 0.82, 0.15) } + Row { + width: parent.width + height: b.height + Box { id: b; width: parent.width / 2; text: "Qt Framework"; accentColor: Qt.rgba(0.64, 0.82, 0.15) } + Box { width: parent.width / 2; text: "Android (Dalvik)"; accentColor: "steelblue" } + } + + Box { text: "Android Baselayer"; accentColor: "steelblue" } + Box { text: "Embedded Hardware"; accentColor: "steelblue"} + } + + ContentText { + width: parent.width + text: '<p align="justify"><b>Boot to Qt for embedded Linux</b> is build from scratch using + Yocto 1.4 tools to contain only components required in the embedded device, + resulting in smaller image sizes while keeping valuable development tools available.' + } +} diff --git a/basicsuite/about-b2qt/QtFramework.qml b/basicsuite/about-b2qt/QtFramework.qml new file mode 100644 index 0000000..7085469 --- /dev/null +++ b/basicsuite/about-b2qt/QtFramework.qml @@ -0,0 +1,75 @@ +/**************************************************************************** +** +** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Contact: For any questions to Digia, please use the contact form at +** http://qt.digia.com/ +** +** This file is part of the examples of the Qt Enterprise Embedded. +** +** $QT_BEGIN_LICENSE:BSD$ +** 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 Digia Plc and its Subsidiary(-ies) 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.0 + +Column { + id: root + + width: parent.width + + spacing: engine.smallFontSize() + + Title { + text: "Qt Framework" + } + + ContentText { + id: brief + width: parent.width + text: '<p align="justify">Qt is a full development framework with tools designed to streamline + the creation of applications and user interfaces for desktop, embedded + and mobile platforms. + <ul> + <li><b>Qt Framework</b> - intuitive APIs for C++ and CSS/JavaScript-like + programming with Qt Quick for rapid UI creation<\li> + <li><b>Qt Creator IDE</b> - powerful cross-platform integrated + development environment, including UI designer tools and on-device debugging</li> + <li><b>Tools and toolchains</b> - internationalization support, embedded toolchains + and more.</li> + </ul> + <p align="justify">With Qt, you can reuse code efficiently to target multiple platforms + with one code base. The modular C++ class library and developer tools + easily enables developers to create applications for one platform and + easily build and run to deploy on another platform.' + } + + +} diff --git a/basicsuite/about-b2qt/Title.qml b/basicsuite/about-b2qt/Title.qml new file mode 100644 index 0000000..62d0ba7 --- /dev/null +++ b/basicsuite/about-b2qt/Title.qml @@ -0,0 +1,48 @@ +/**************************************************************************** +** +** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Contact: For any questions to Digia, please use the contact form at +** http://qt.digia.com/ +** +** This file is part of the examples of the Qt Enterprise Embedded. +** +** $QT_BEGIN_LICENSE:BSD$ +** 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 Digia Plc and its Subsidiary(-ies) 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.0 + +Text { + font.pixelSize: engine.titleFontSize() + font.italic: true + color: "white" + anchors.horizontalCenter: parent.horizontalCenter +} diff --git a/basicsuite/about-b2qt/about-b2qt.pro b/basicsuite/about-b2qt/about-b2qt.pro new file mode 100644 index 0000000..175be57 --- /dev/null +++ b/basicsuite/about-b2qt/about-b2qt.pro @@ -0,0 +1,12 @@ +TARGET = about-b2qt + +include(../shared/shared.pri) + +content.files = \ + *.qml \ + *.png +content.path = $$DESTPATH + +OTHER_FILES += $${content.files} + +INSTALLS += target content diff --git a/basicsuite/about-b2qt/codeless.png b/basicsuite/about-b2qt/codeless.png Binary files differnew file mode 100644 index 0000000..53e4806 --- /dev/null +++ b/basicsuite/about-b2qt/codeless.png diff --git a/basicsuite/about-b2qt/description.txt b/basicsuite/about-b2qt/description.txt new file mode 100644 index 0000000..676a166 --- /dev/null +++ b/basicsuite/about-b2qt/description.txt @@ -0,0 +1,3 @@ +The "About Boot to Qt" provides an introduction to what Boot to Qt is all about. + +It talks briefly about how the software stack is built up, rough hardware requirements and how Boot to Qt differs from the more traditional Qt editions. diff --git a/basicsuite/about-b2qt/dummy.cpp b/basicsuite/about-b2qt/dummy.cpp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/basicsuite/about-b2qt/dummy.cpp diff --git a/basicsuite/about-b2qt/main.qml b/basicsuite/about-b2qt/main.qml new file mode 100644 index 0000000..ba726d5 --- /dev/null +++ b/basicsuite/about-b2qt/main.qml @@ -0,0 +1,175 @@ +/**************************************************************************** +** +** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). +** Contact: For any questions to Digia, please use the contact form at +** http://qt.digia.com/ +** +** This file is part of the examples of the Qt Enterprise Embedded. +** +** $QT_BEGIN_LICENSE:BSD$ +** 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 Digia Plc and its Subsidiary(-ies) 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.0 +import QtQuick.Particles 2.0 + +Item { + id: root + + width: 1280 + height: 800 + +// Rectangle { +// anchors.fill: parent +// color: "black" +// } + + Flickable { + id: flick + property real inertia: 0.4 + + property real cellWidth; + property real cellHeight; + + width: parent.width + height: parent.height + anchors.horizontalCenter: parent.horizontalCenter + + contentHeight: content.height + + flickableDirection: Flickable.VerticalFlick + + property real topOvershoot: Math.max(0, contentItem.y); + property real bottomOvershoot: Math.max(0, root.height - (contentItem.height + contentItem.y)); +// onTopOvershootChanged: print("Top Overshoot:", topOvershoot); +// onBottomOvershootChanged: print("Bottom Overshoot:", bottomOvershoot); + + Item { + id: shiftTrickery + + width: flick.width + height: content.height + + Column { + id: content; + + y: -flick.contentItem.y + offsetY; + width: flick.width * 2 / 3 + anchors.horizontalCenter: parent.horizontalCenter + + property real offsetY: 0; + property real inertia: flick.inertia; + property real t; + NumberAnimation on t { + id: animation; + from: 0; + to: 1; + duration: 1000; + loops: Animation.Infinite + running: Math.abs(content.y) > 0.001 || Math.abs(content.x) > 0.001 + } + + onTChanged: { + offsetY += (flick.contentItem.y - offsetY) * inertia + } + + + spacing: engine.smallFontSize() * 2 + + Item { width: 1; height: engine.smallFontSize() } + AboutBoot2Qt { } + QtFramework { } + QtForAndroid { } + Image { + id: codeLessImage + source: "codeless.png" + anchors.horizontalCenter: parent.horizontalCenter + } + Item { width: 1; height: engine.smallFontSize() } + } + + } + } + + ParticleSystem { + + anchors.fill: parent + + ImageParticle { + id: imageParticle + source: "particle.png" + color: "#80c342" + alpha: 0 + colorVariation: 0.3 + entryEffect: ImageParticle.None + } + + Emitter { + id: topEmitter + width: root.width + height: 1 + x: 0 + y: -1 + shape: EllipseShape { fill: true } + + emitRate: 300 + lifeSpan: 1000 + size: 20 + sizeVariation: 4 + endSize: 0 + + enabled: flick.topOvershoot > 0 + + velocity: PointDirection { xVariation: 10; yVariation: 50; y: Math.sqrt(flick.topOvershoot) * 10; } + acceleration: PointDirection { y: 50 } + } + + Emitter { + id: bottomEmitter + width: root.width + height: 1 + x: 0 + y: root.height + 1 + shape: EllipseShape { fill: true } + + emitRate: 300 + lifeSpan: 1000 + size: 20 + sizeVariation: 4 + endSize: 0 + + enabled: flick.bottomOvershoot > 0 + + velocity: PointDirection { xVariation: 10; yVariation: -50; y: Math.sqrt(flick.bottomOvershoot) * -10; } + acceleration: PointDirection { y: -50 } + } + } +} diff --git a/basicsuite/about-b2qt/particle.png b/basicsuite/about-b2qt/particle.png Binary files differnew file mode 100644 index 0000000..5c83896 --- /dev/null +++ b/basicsuite/about-b2qt/particle.png diff --git a/basicsuite/about-b2qt/preview_l.jpg b/basicsuite/about-b2qt/preview_l.jpg Binary files differnew file mode 100644 index 0000000..f2eb2e0 --- /dev/null +++ b/basicsuite/about-b2qt/preview_l.jpg diff --git a/basicsuite/about-b2qt/qt-logo.png b/basicsuite/about-b2qt/qt-logo.png Binary files differnew file mode 100644 index 0000000..748392d --- /dev/null +++ b/basicsuite/about-b2qt/qt-logo.png diff --git a/basicsuite/about-b2qt/title.txt b/basicsuite/about-b2qt/title.txt new file mode 100644 index 0000000..9b133f7 --- /dev/null +++ b/basicsuite/about-b2qt/title.txt @@ -0,0 +1 @@ +About Boot to Qt |