diff options
author | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-04-23 11:19:39 +0200 |
---|---|---|
committer | Gunnar Sletta <gunnar.sletta@digia.com> | 2013-04-23 12:49:59 +0300 |
commit | 730bf7b256f0f06c39f92dad064869f5d1368c62 (patch) | |
tree | e836042801e0f2e0492de6ca576cd30c956c633d /basicsuite/About Boot to Qt | |
parent | 2ceb4b09650242b97bf17b968c49b6e6cf12601a (diff) |
fixed up the demo suite
Change-Id: I42dfba551b26f66b8de41dad3df2a5e120c82fb8
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
Diffstat (limited to 'basicsuite/About Boot to Qt')
-rw-r--r-- | basicsuite/About Boot to Qt/AboutBoot2Qt.qml | 61 | ||||
-rw-r--r-- | basicsuite/About Boot to Qt/Box.qml | 30 | ||||
-rw-r--r-- | basicsuite/About Boot to Qt/ContentText.qml | 8 | ||||
-rw-r--r-- | basicsuite/About Boot to Qt/QtForAndroid.qml | 48 | ||||
-rw-r--r-- | basicsuite/About Boot to Qt/QtFramework.qml | 35 | ||||
-rw-r--r-- | basicsuite/About Boot to Qt/Title.qml | 8 | ||||
-rw-r--r-- | basicsuite/About Boot to Qt/codeless.png | bin | 0 -> 28581 bytes | |||
-rw-r--r-- | basicsuite/About Boot to Qt/description.txt | 3 | ||||
-rwxr-xr-x | basicsuite/About Boot to Qt/icon.png | bin | 0 -> 13193 bytes | |||
-rw-r--r-- | basicsuite/About Boot to Qt/main.qml | 135 | ||||
-rw-r--r-- | basicsuite/About Boot to Qt/particle.png | bin | 0 -> 861 bytes | |||
-rw-r--r-- | basicsuite/About Boot to Qt/preview_l.jpg | bin | 0 -> 21072 bytes | |||
-rw-r--r-- | basicsuite/About Boot to Qt/qt-logo.png | bin | 0 -> 21659 bytes |
13 files changed, 328 insertions, 0 deletions
diff --git a/basicsuite/About Boot to Qt/AboutBoot2Qt.qml b/basicsuite/About Boot to Qt/AboutBoot2Qt.qml new file mode 100644 index 0000000..66346c1 --- /dev/null +++ b/basicsuite/About Boot to Qt/AboutBoot2Qt.qml @@ -0,0 +1,61 @@ +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 the working name for a light-weight UI stack for embedded linux, + based on the Qt Framework by Digia. Boot to Qt places Qt on top of an Android + kernel/baselayer and offers an elegant means of developing beautiful and + performant embedded devices. + + <p align="justify">Boot to Qt is 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 Baselayer"; accentColor: "steelblue" } + Box { text: "Embedded Hardware"; accentColor: "steelblue"} + } + + ContentText { + id: description + + width: parent.width + + text: '<p align="justify">Boot to Qt runs on top of Android 4.0 based kernels and 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 Boot to Qt/Box.qml b/basicsuite/About Boot to Qt/Box.qml new file mode 100644 index 0000000..cfbb995 --- /dev/null +++ b/basicsuite/About Boot to Qt/Box.qml @@ -0,0 +1,30 @@ +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 Boot to Qt/ContentText.qml b/basicsuite/About Boot to Qt/ContentText.qml new file mode 100644 index 0000000..ed95064 --- /dev/null +++ b/basicsuite/About Boot to Qt/ContentText.qml @@ -0,0 +1,8 @@ +import QtQuick 2.0 + +Text { + color: "white" + font.pixelSize: engine.smallFontSize() + textFormat: Text.RichText + wrapMode: Text.WordWrap +} diff --git a/basicsuite/About Boot to Qt/QtForAndroid.qml b/basicsuite/About Boot to Qt/QtForAndroid.qml new file mode 100644 index 0000000..2eac080 --- /dev/null +++ b/basicsuite/About Boot to Qt/QtForAndroid.qml @@ -0,0 +1,48 @@ +import QtQuick 2.0 + +Column { + id: root + + width: parent.width + + spacing: engine.smallFontSize() + + Title { + text: "Boot2Qt 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">Boot2Qt 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>SurfaceFlinger</i> or <i>DalvikVM</i> is not running in + Boot2Qt, 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"} + } + +} diff --git a/basicsuite/About Boot to Qt/QtFramework.qml b/basicsuite/About Boot to Qt/QtFramework.qml new file mode 100644 index 0000000..3cb2f10 --- /dev/null +++ b/basicsuite/About Boot to Qt/QtFramework.qml @@ -0,0 +1,35 @@ +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 Boot to Qt/Title.qml b/basicsuite/About Boot to Qt/Title.qml new file mode 100644 index 0000000..8fb13cc --- /dev/null +++ b/basicsuite/About Boot to Qt/Title.qml @@ -0,0 +1,8 @@ +import QtQuick 2.0 + +Text { + font.pixelSize: engine.titleFontSize() + font.italic: true + color: "white" + anchors.horizontalCenter: parent.horizontalCenter +} diff --git a/basicsuite/About Boot to Qt/codeless.png b/basicsuite/About Boot to Qt/codeless.png Binary files differnew file mode 100644 index 0000000..53e4806 --- /dev/null +++ b/basicsuite/About Boot to Qt/codeless.png diff --git a/basicsuite/About Boot to Qt/description.txt b/basicsuite/About Boot to Qt/description.txt new file mode 100644 index 0000000..f546387 --- /dev/null +++ b/basicsuite/About Boot to Qt/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 from the more traditional Qt editions. diff --git a/basicsuite/About Boot to Qt/icon.png b/basicsuite/About Boot to Qt/icon.png Binary files differnew file mode 100755 index 0000000..4e84cd5 --- /dev/null +++ b/basicsuite/About Boot to Qt/icon.png diff --git a/basicsuite/About Boot to Qt/main.qml b/basicsuite/About Boot to Qt/main.qml new file mode 100644 index 0000000..6586811 --- /dev/null +++ b/basicsuite/About Boot to Qt/main.qml @@ -0,0 +1,135 @@ +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 Boot to Qt/particle.png b/basicsuite/About Boot to Qt/particle.png Binary files differnew file mode 100644 index 0000000..5c83896 --- /dev/null +++ b/basicsuite/About Boot to Qt/particle.png diff --git a/basicsuite/About Boot to Qt/preview_l.jpg b/basicsuite/About Boot to Qt/preview_l.jpg Binary files differnew file mode 100644 index 0000000..84fcb5d --- /dev/null +++ b/basicsuite/About Boot to Qt/preview_l.jpg diff --git a/basicsuite/About Boot to Qt/qt-logo.png b/basicsuite/About Boot to Qt/qt-logo.png Binary files differnew file mode 100644 index 0000000..748392d --- /dev/null +++ b/basicsuite/About Boot to Qt/qt-logo.png |