diff options
Diffstat (limited to 'basicsuite/About Qt on Android')
-rw-r--r-- | basicsuite/About Qt on Android/AboutBoot2Qt.qml | 57 | ||||
-rw-r--r-- | basicsuite/About Qt on Android/Box.qml | 30 | ||||
-rw-r--r-- | basicsuite/About Qt on Android/ContentText.qml | 8 | ||||
-rw-r--r-- | basicsuite/About Qt on Android/QtForAndroid.qml | 48 | ||||
-rw-r--r-- | basicsuite/About Qt on Android/QtFramework.qml | 35 | ||||
-rw-r--r-- | basicsuite/About Qt on Android/Title.qml | 7 | ||||
-rw-r--r-- | basicsuite/About Qt on Android/codeless.png | bin | 0 -> 28581 bytes | |||
-rwxr-xr-x | basicsuite/About Qt on Android/icon.png | bin | 0 -> 13193 bytes | |||
-rw-r--r-- | basicsuite/About Qt on Android/main.qml | 74 | ||||
-rw-r--r-- | basicsuite/About Qt on Android/qt-logo.png | bin | 0 -> 21659 bytes |
10 files changed, 259 insertions, 0 deletions
diff --git a/basicsuite/About Qt on Android/AboutBoot2Qt.qml b/basicsuite/About Qt on Android/AboutBoot2Qt.qml new file mode 100644 index 0000000..e6d614e --- /dev/null +++ b/basicsuite/About Qt on Android/AboutBoot2Qt.qml @@ -0,0 +1,57 @@ +import QtQuick 2.0 + +Column { + + id: root + + width: parent.width + + spacing: engine.smallFontSize() + + Title { + id: title + text: "Boot2Qt" + } + + ContentText { + id: brief + width: parent.width + text: "Boot2Qt is the working name for a light-weight UI stack for embedded linux, + based on the Qt Framework by Digia. Boot2Qt places Qt on top of an Android + kernel/baselayer and offers an elegant means of developing beautiful and + performant embedded devices." + } + + Column { + id: diagram + spacing: 1 + width: parent.width * 0.8 + 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: "Boot2Qt 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</li> + <li>Beagle Board xM</li> + <li>Freescale i.MX 6</li> + </ul> + Rough minimal requirements for running Boot2Qt 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 Qt on Android/Box.qml b/basicsuite/About Qt on Android/Box.qml new file mode 100644 index 0000000..fd63a00 --- /dev/null +++ b/basicsuite/About Qt on Android/Box.qml @@ -0,0 +1,30 @@ +import QtQuick 2.0 + +Rectangle { + id: root + + width: parent.width + height: label.font.pixelSize * 3 + + radius: height * 0.2 + + 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 Qt on Android/ContentText.qml b/basicsuite/About Qt on Android/ContentText.qml new file mode 100644 index 0000000..ed95064 --- /dev/null +++ b/basicsuite/About Qt on Android/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 Qt on Android/QtForAndroid.qml b/basicsuite/About Qt on Android/QtForAndroid.qml new file mode 100644 index 0000000..d0c9d97 --- /dev/null +++ b/basicsuite/About Qt on Android/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>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>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.8 + 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 Qt on Android/QtFramework.qml b/basicsuite/About Qt on Android/QtFramework.qml new file mode 100644 index 0000000..6e549ab --- /dev/null +++ b/basicsuite/About Qt on Android/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: "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> + 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 Qt on Android/Title.qml b/basicsuite/About Qt on Android/Title.qml new file mode 100644 index 0000000..5a462fe --- /dev/null +++ b/basicsuite/About Qt on Android/Title.qml @@ -0,0 +1,7 @@ +import QtQuick 2.0 + +Text { + font.pixelSize: engine.titleFontSize() + font.italic: true + color: "white" +} diff --git a/basicsuite/About Qt on Android/codeless.png b/basicsuite/About Qt on Android/codeless.png Binary files differnew file mode 100644 index 0000000..53e4806 --- /dev/null +++ b/basicsuite/About Qt on Android/codeless.png diff --git a/basicsuite/About Qt on Android/icon.png b/basicsuite/About Qt on Android/icon.png Binary files differnew file mode 100755 index 0000000..4e84cd5 --- /dev/null +++ b/basicsuite/About Qt on Android/icon.png diff --git a/basicsuite/About Qt on Android/main.qml b/basicsuite/About Qt on Android/main.qml new file mode 100644 index 0000000..c952500 --- /dev/null +++ b/basicsuite/About Qt on Android/main.qml @@ -0,0 +1,74 @@ +import QtQuick 2.0 + +Item { + id: root + + width: 1280 + height: 800 + +// Rectangle { +// anchors.fill: parent +// color: "black" +// } + + Flickable { + id: flick + property real inertia: 0.2 + + property real cellWidth; + property real cellHeight; + + width: parent.width * 2 / 3 + height: parent.height + anchors.horizontalCenter: parent.horizontalCenter + + contentHeight: content.height + + flickableDirection: Flickable.VerticalFlick + + Item { + id: shiftTrickery + + width: content.width + height: content.height + + Column { + id: content; + + y: -flick.contentItem.y + offsetY; + width: flick.width + + 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() } + } + + } + } +} diff --git a/basicsuite/About Qt on Android/qt-logo.png b/basicsuite/About Qt on Android/qt-logo.png Binary files differnew file mode 100644 index 0000000..748392d --- /dev/null +++ b/basicsuite/About Qt on Android/qt-logo.png |