Created
October 15, 2012 13:35
-
-
Save bbandix/3892495 to your computer and use it in GitHub Desktop.
QML examples for WebKit integration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 95f638764157606fdff3dd1ebd0aff521a37237e Mon Sep 17 00:00:00 2001 | |
From: Andras Becsi <[email protected]> | |
Date: Wed, 26 Sep 2012 17:48:37 +0200 | |
Subject: [PATCH] Add QML examples for WebKit integration | |
Add flickrview and youtubeview examples covering the use of the | |
WebKit WebView QML API. | |
- FlickrView is an example that utilizes the flickr.com RSS | |
feed of public photos and displays the full size images in | |
the WebView. | |
It is also possible to browse the Flickr profile of the images. | |
Navigaton is restricted to flickr.com. | |
- YouTubeView is a QML example that utilizes the WebView to | |
play HTML5 videos retrieved using the youtube API. | |
The application has a search functionality and some preset | |
video streams. | |
Change-Id: I88d09e416d6791f620e0590f7b9ce8f49173e64e | |
--- | |
.gitignore | 1 + | |
examples/examples.pro | 2 +- | |
examples/qml/flickrview/flickrview.pro | 9 + | |
examples/qml/flickrview/flickrview.qml | 275 ++++++++++++ | |
examples/qml/flickrview/flickrview.qmlproject | 16 + | |
examples/qml/flickrview/main.cpp | 41 ++ | |
examples/qml/qml.pro | 4 + | |
examples/qml/shared/Button.qml | 91 ++++ | |
examples/qml/shared/LoadIndicator.qml | 62 +++ | |
examples/qml/shared/images/arrow.png | Bin 0 -> 10960 bytes | |
examples/qml/shared/images/busy.png | Bin 0 -> 2629 bytes | |
examples/qml/shared/images/flickr.png | Bin 0 -> 6818 bytes | |
examples/qml/shared/images/less.png | Bin 0 -> 4335 bytes | |
examples/qml/shared/images/more.png | Bin 0 -> 4261 bytes | |
examples/qml/shared/qmldir | 2 + | |
examples/qml/shared/shared.h | 50 +++ | |
examples/qml/shared/shared.pro | 11 + | |
examples/qml/youtubeview/content/YouTubeDialog.qml | 99 +++++ | |
examples/qml/youtubeview/content/player.html | 51 +++ | |
examples/qml/youtubeview/main.cpp | 41 ++ | |
examples/qml/youtubeview/youtubeview.pro | 12 + | |
examples/qml/youtubeview/youtubeview.qml | 490 +++++++++++++++++++++ | |
examples/qml/youtubeview/youtubeview.qmlproject | 16 + | |
23 files changed, 1272 insertions(+), 1 deletion(-) | |
create mode 100644 examples/qml/flickrview/flickrview.pro | |
create mode 100644 examples/qml/flickrview/flickrview.qml | |
create mode 100644 examples/qml/flickrview/flickrview.qmlproject | |
create mode 100644 examples/qml/flickrview/main.cpp | |
create mode 100644 examples/qml/qml.pro | |
create mode 100644 examples/qml/shared/Button.qml | |
create mode 100644 examples/qml/shared/LoadIndicator.qml | |
create mode 100644 examples/qml/shared/images/arrow.png | |
create mode 100644 examples/qml/shared/images/busy.png | |
create mode 100644 examples/qml/shared/images/flickr.png | |
create mode 100644 examples/qml/shared/images/less.png | |
create mode 100644 examples/qml/shared/images/more.png | |
create mode 100644 examples/qml/shared/qmldir | |
create mode 100644 examples/qml/shared/shared.h | |
create mode 100644 examples/qml/shared/shared.pro | |
create mode 100644 examples/qml/youtubeview/content/YouTubeDialog.qml | |
create mode 100644 examples/qml/youtubeview/content/player.html | |
create mode 100644 examples/qml/youtubeview/main.cpp | |
create mode 100644 examples/qml/youtubeview/youtubeview.pro | |
create mode 100644 examples/qml/youtubeview/youtubeview.qml | |
create mode 100644 examples/qml/youtubeview/youtubeview.qmlproject | |
diff --git a/.gitignore b/.gitignore | |
index 990859d..b406ebe 100644 | |
--- a/.gitignore | |
+++ b/.gitignore | |
@@ -9,6 +9,7 @@ examples/*/*/*[.]app | |
!examples/tutorials/* | |
!examples/tutorials/*/* | |
!examples/ja_JP/*/* | |
+!examples/qml/*/* | |
demos/*/* | |
!demos/spectrum/* | |
demos/spectrum/bin | |
diff --git a/examples/examples.pro b/examples/examples.pro | |
index c1f9422..06a2000 100644 | |
--- a/examples/examples.pro | |
+++ b/examples/examples.pro | |
@@ -1,2 +1,2 @@ | |
TEMPLATE = subdirs | |
-SUBDIRS += browser embedded scroller webkit xmlpatterns | |
+SUBDIRS += browser embedded scroller webkit xmlpatterns qml | |
diff --git a/examples/qml/flickrview/flickrview.pro b/examples/qml/flickrview/flickrview.pro | |
new file mode 100644 | |
index 0000000..b0dc054 | |
--- /dev/null | |
+++ b/examples/qml/flickrview/flickrview.pro | |
@@ -0,0 +1,9 @@ | |
+TEMPLATE = app | |
+ | |
+QT += quick qml webkit | |
+SOURCES += main.cpp | |
+ | |
+target.path = $$[QT_INSTALL_EXAMPLES]/qtwebkit-examples-and-demos/examples/qml/flickrview | |
+qml.files = flickrview.qml | |
+qml.path = $$[QT_INSTALL_EXAMPLES]/qtwebkit-examples-and-demos/examples/qml/flickrview | |
+INSTALLS += target qml | |
diff --git a/examples/qml/flickrview/flickrview.qml b/examples/qml/flickrview/flickrview.qml | |
new file mode 100644 | |
index 0000000..4c4c80a | |
--- /dev/null | |
+++ b/examples/qml/flickrview/flickrview.qml | |
@@ -0,0 +1,275 @@ | |
+/**************************************************************************** | |
+** | |
+** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). | |
+** Contact: http://qt-project.org/legal | |
+** | |
+** This file is part of the QtCore module of the Qt Toolkit. | |
+** | |
+** $QT_BEGIN_LICENSE:LGPL$ | |
+** 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 Digia. For licensing terms and | |
+** conditions see http://qt.digia.com/licensing. For further information | |
+** use the contact form at http://qt.digia.com/contact-us. | |
+** | |
+** GNU Lesser General Public License Usage | |
+** Alternatively, this file may be used under the terms of the GNU Lesser | |
+** General Public License version 2.1 as published by the Free Software | |
+** Foundation and appearing in the file LICENSE.LGPL included in the | |
+** packaging of this file. Please review the following information to | |
+** ensure the GNU Lesser General Public License version 2.1 requirements | |
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | |
+** | |
+** In addition, as a special exception, Digia gives you certain additional | |
+** rights. These rights are described in the Digia Qt LGPL Exception | |
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. | |
+** | |
+** GNU General Public License Usage | |
+** Alternatively, this file may be used under the terms of the GNU | |
+** General Public License version 3.0 as published by the Free Software | |
+** Foundation and appearing in the file LICENSE.GPL included in the | |
+** packaging of this file. Please review the following information to | |
+** ensure the GNU General Public License version 3.0 requirements will be | |
+** met: http://www.gnu.org/copyleft/gpl.html. | |
+** | |
+** | |
+** $QT_END_LICENSE$ | |
+** | |
+****************************************************************************/ | |
+ | |
+import QtQuick 2.0 | |
+import QtWebKit 3.0 | |
+import QtQuick.XmlListModel 2.0 | |
+import "../shared" | |
+ | |
+Rectangle { | |
+ id: container | |
+ width: 1024 | |
+ height: 768 | |
+ | |
+ property string initialUrl: "https://www.flickr.com/explore/interesting/7days/?" | |
+ | |
+ Rectangle { | |
+ id: thumbnailContainer | |
+ color: "black" | |
+ | |
+ anchors.bottom: container.bottom | |
+ width: container.width | |
+ height: 100 | |
+ | |
+ gradient: Gradient { | |
+ GradientStop { position: 0.0; color: "gray" } | |
+ GradientStop { position: 0.33; color: "black" } | |
+ } | |
+ | |
+ Text { | |
+ id: info | |
+ color: "white" | |
+ anchors.horizontalCenter: thumbnailContainer.horizontalCenter | |
+ text: webView.title | |
+ } | |
+ | |
+ ListView { | |
+ id: listView | |
+ orientation: "Horizontal" | |
+ width: thumbnailContainer.width | |
+ anchors { | |
+ horizontalCenter: thumbnailContainer.horizontalCenter | |
+ bottom: thumbnailContainer.bottom | |
+ } | |
+ | |
+ model: model | |
+ delegate: Component { | |
+ Image { | |
+ source: thumbnail | |
+ MouseArea { | |
+ anchors.fill: parent | |
+ onClicked: webView.url = link + "/lightbox" | |
+ } | |
+ Component.onCompleted: if (listView.height < thumbnailHeight) listView.height = thumbnailHeight + 10 | |
+ } | |
+ } | |
+ | |
+ focus: true | |
+ spacing: 10 | |
+ leftMargin: 10 | |
+ rightMargin: 30 | |
+ visible: model.status == XmlListModel.Ready | |
+ } | |
+ | |
+ Rectangle { | |
+ id: updateInfo | |
+ | |
+ property real distance: -(listView.contentWidth - listView.contentX - thumbnailContainer.width) | |
+ property real threshold: Math.max(2.5 * listView.height, thumbnailContainer.width - listView.contentWidth + 2 * listView.height) | |
+ property bool triggerUpdate: false | |
+ | |
+ opacity: 0.8 | |
+ x: thumbnailContainer.width - distance | |
+ width: listView.height | |
+ color: "transparent" | |
+ | |
+ anchors { | |
+ top: thumbnailContainer.top | |
+ bottom: thumbnailContainer.bottom | |
+ } | |
+ | |
+ Timer { | |
+ interval: 200; running: updateInfo.state == "update"; repeat: false | |
+ onTriggered: { model.reload(); updateInfo.triggerUpdate = false; } | |
+ } | |
+ | |
+ states: [ | |
+ State { | |
+ name: "pull" | |
+ when: updateInfo.distance <= updateInfo.threshold && listView.dragging | |
+ PropertyChanges { target: message; text: "Pull\nto\nupdate" } | |
+ }, | |
+ | |
+ State { | |
+ name: "release" | |
+ when: updateInfo.distance > updateInfo.threshold && listView.dragging | |
+ PropertyChanges { target: message; text: "Release\nto\nupdate" } | |
+ }, | |
+ | |
+ State { | |
+ name: "update" | |
+ when: updateInfo.triggerUpdate && listView.atXEnd && !listView.dragging | |
+ PropertyChanges { target: message; text: "Updating" } | |
+ } | |
+ ] | |
+ | |
+ onStateChanged: { | |
+ if (state == "release") | |
+ triggerUpdate = true | |
+ if (state == "pull") | |
+ triggerUpdate = false | |
+ } | |
+ | |
+ Rectangle { | |
+ id: icon | |
+ width: 30 | |
+ color: "transparent" | |
+ anchors { | |
+ top: parent.top | |
+ bottom: parent.bottom | |
+ left: parent.left | |
+ } | |
+ Image { | |
+ source: "../shared/images/arrow.png" | |
+ width: 30 | |
+ height: 30 | |
+ visible: updateInfo.state != "update" | |
+ rotation: updateInfo.state == "release" ? 180 : 0 | |
+ Behavior on rotation { NumberAnimation { duration: 100} } | |
+ SequentialAnimation on x { | |
+ running: listView.atXEnd && !listView.dragging | |
+ loops: Animation.Infinite | |
+ PropertyAnimation { to: 5; duration: 250 } | |
+ PropertyAnimation { to: 0; duration: 250 } | |
+ } | |
+ anchors { | |
+ verticalCenter: parent.verticalCenter | |
+ } | |
+ } | |
+ } | |
+ | |
+ Text { | |
+ id: message | |
+ horizontalAlignment: Text.AlignHCenter | |
+ verticalAlignment: Text.AlignVCenter | |
+ font.family: "Monospace" | |
+ color: "white" | |
+ anchors { | |
+ top: parent.top | |
+ bottom: parent.bottom | |
+ right: parent.right | |
+ left: icon.right | |
+ } | |
+ } | |
+ } | |
+ | |
+ LoadIndicator { | |
+ anchors.fill: parent | |
+ color: "black" | |
+ running: !listView.visible && model.status != XmlListModel.Error | |
+ } | |
+ } | |
+ | |
+ Rectangle { | |
+ id: content | |
+ width: container.width | |
+ color: "black" | |
+ anchors { | |
+ top: container.top | |
+ bottom: thumbnailContainer.top | |
+ } | |
+ | |
+ WebView { | |
+ id: webView | |
+ anchors.fill: parent | |
+ opacity: 0 | |
+ | |
+ url: container.initialUrl | |
+ | |
+ Behavior on opacity { | |
+ NumberAnimation { duration: 200 } | |
+ } | |
+ | |
+ onLoadingChanged: { | |
+ switch (loadRequest.status) | |
+ { | |
+ case WebView.LoadSucceededStatus: | |
+ opacity = 1 | |
+ return | |
+ case WebView.LoadStartedStatus: | |
+ break | |
+ case WebView.LoadStoppedStatus: | |
+ break | |
+ case WebView.LoadFailedStatus: | |
+ break | |
+ } | |
+ opacity = 0 | |
+ } | |
+ | |
+ onNavigationRequested: { | |
+ var pattern = new RegExp('^(https|http)://www.flickr.com|^(https|http)://login.yahoo.com'); | |
+ switch (request.navigationType) | |
+ { | |
+ case WebView.LinkClickedNavigation: | |
+ case WebView.FormSubmittedNavigation: | |
+ case WebView.BackForwardNavigation: | |
+ case WebView.ReloadNavigation: | |
+ case WebView.FormResubmittedNavigation: | |
+ case WebView.OtherNavigation: | |
+ if (pattern.test(request.url)) { | |
+ request.action = WebView.AcceptRequest | |
+ return | |
+ } | |
+ } | |
+ // Disallow navigating outside of flickr.com | |
+ request.action = WebView.IgnoreRequest | |
+ } | |
+ } | |
+ | |
+ LoadIndicator { | |
+ anchors.fill: parent | |
+ imageSource: "images/flickr.png" | |
+ running: webView.loading | |
+ } | |
+ } | |
+ | |
+ XmlListModel { | |
+ id: model | |
+ namespaceDeclarations: "declare namespace media=\"http://search.yahoo.com/mrss/\";" | |
+ source: "http://api.flickr.com/services/feeds/photos_public.gne?format=rss2" | |
+ query: "/rss/channel/item" | |
+ XmlRole { name: "thumbnail"; query: "media:thumbnail/@url/string()" } | |
+ XmlRole { name: "thumbnailHeight"; query: "media:thumbnail/@height/number()" } | |
+ XmlRole { name: "content"; query: "media:content/@url/string()" } | |
+ XmlRole { name: "link"; query: "link/string()" } | |
+ } | |
+ | |
+} | |
diff --git a/examples/qml/flickrview/flickrview.qmlproject b/examples/qml/flickrview/flickrview.qmlproject | |
new file mode 100644 | |
index 0000000..7f47c02 | |
--- /dev/null | |
+++ b/examples/qml/flickrview/flickrview.qmlproject | |
@@ -0,0 +1,16 @@ | |
+import QmlProject 1.1 | |
+ | |
+Project { | |
+ mainFile: "flickrview.qml" | |
+ | |
+ /* Include .qml, .js, and image files from current directory and subdirectories */ | |
+ QmlFiles { | |
+ directory: "." | |
+ } | |
+ JavaScriptFiles { | |
+ directory: "." | |
+ } | |
+ ImageFiles { | |
+ directory: "." | |
+ } | |
+} | |
diff --git a/examples/qml/flickrview/main.cpp b/examples/qml/flickrview/main.cpp | |
new file mode 100644 | |
index 0000000..19bd30c | |
--- /dev/null | |
+++ b/examples/qml/flickrview/main.cpp | |
@@ -0,0 +1,41 @@ | |
+/**************************************************************************** | |
+** | |
+** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). | |
+** Contact: http://www.qt-project.org/legal | |
+** | |
+** This file is part of the examples of the Qt Toolkit. | |
+** | |
+** $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$ | |
+** | |
+****************************************************************************/ | |
+#include "../shared/shared.h" | |
+QWEBKIT_EXAMPLE_MAIN(flickrview) | |
diff --git a/examples/qml/qml.pro b/examples/qml/qml.pro | |
new file mode 100644 | |
index 0000000..9513539 | |
--- /dev/null | |
+++ b/examples/qml/qml.pro | |
@@ -0,0 +1,4 @@ | |
+TEMPLATE = subdirs | |
+SUBDIRS += shared \ | |
+ flickrview \ | |
+ youtubeview | |
diff --git a/examples/qml/shared/Button.qml b/examples/qml/shared/Button.qml | |
new file mode 100644 | |
index 0000000..336edc3 | |
--- /dev/null | |
+++ b/examples/qml/shared/Button.qml | |
@@ -0,0 +1,91 @@ | |
+/**************************************************************************** | |
+** | |
+** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). | |
+** Contact: http://qt-project.org/legal | |
+** | |
+** This file is part of the QtCore module of the Qt Toolkit. | |
+** | |
+** $QT_BEGIN_LICENSE:LGPL$ | |
+** 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 Digia. For licensing terms and | |
+** conditions see http://qt.digia.com/licensing. For further information | |
+** use the contact form at http://qt.digia.com/contact-us. | |
+** | |
+** GNU Lesser General Public License Usage | |
+** Alternatively, this file may be used under the terms of the GNU Lesser | |
+** General Public License version 2.1 as published by the Free Software | |
+** Foundation and appearing in the file LICENSE.LGPL included in the | |
+** packaging of this file. Please review the following information to | |
+** ensure the GNU Lesser General Public License version 2.1 requirements | |
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | |
+** | |
+** In addition, as a special exception, Digia gives you certain additional | |
+** rights. These rights are described in the Digia Qt LGPL Exception | |
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. | |
+** | |
+** GNU General Public License Usage | |
+** Alternatively, this file may be used under the terms of the GNU | |
+** General Public License version 3.0 as published by the Free Software | |
+** Foundation and appearing in the file LICENSE.GPL included in the | |
+** packaging of this file. Please review the following information to | |
+** ensure the GNU General Public License version 3.0 requirements will be | |
+** met: http://www.gnu.org/copyleft/gpl.html. | |
+** | |
+** | |
+** $QT_END_LICENSE$ | |
+** | |
+****************************************************************************/ | |
+ | |
+import QtQuick 2.0 | |
+ | |
+Item { | |
+ id: container | |
+ property string text: "Button" | |
+ property real buttonWidth: label.width + 10 | |
+ property real buttonHeight: label.height + 10 | |
+ property real fontSize: 10 | |
+ signal clicked | |
+ | |
+ width: buttonWidth + 5 | |
+ height: buttonHeight + 5 | |
+ | |
+ Rectangle { | |
+ id: buttonElement | |
+ | |
+ anchors.centerIn: parent | |
+ | |
+ height: parent.buttonHeight | |
+ width: parent.buttonWidth | |
+ border.width: 2 | |
+ border.color: "black" | |
+ smooth: true | |
+ | |
+ MouseArea { | |
+ id: mouseArea | |
+ anchors.fill: parent | |
+ onClicked: container.clicked() | |
+ } | |
+ | |
+ gradient: Gradient { | |
+ GradientStop { | |
+ position: 0.0 | |
+ color: mouseArea.pressed ? "grey" : "darkgrey" | |
+ } | |
+ GradientStop { | |
+ position: 1.0 | |
+ color: mouseArea.pressed ? "darkgrey" : "black" | |
+ } | |
+ } | |
+ | |
+ Text { | |
+ id: label | |
+ anchors.centerIn: parent | |
+ font.pointSize: container.fontSize | |
+ text: container.text | |
+ color: "white" | |
+ } | |
+ } | |
+} | |
diff --git a/examples/qml/shared/LoadIndicator.qml b/examples/qml/shared/LoadIndicator.qml | |
new file mode 100644 | |
index 0000000..d7bdf2c | |
--- /dev/null | |
+++ b/examples/qml/shared/LoadIndicator.qml | |
@@ -0,0 +1,62 @@ | |
+/**************************************************************************** | |
+** | |
+** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). | |
+** Contact: http://qt-project.org/legal | |
+** | |
+** This file is part of the QtCore module of the Qt Toolkit. | |
+** | |
+** $QT_BEGIN_LICENSE:LGPL$ | |
+** 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 Digia. For licensing terms and | |
+** conditions see http://qt.digia.com/licensing. For further information | |
+** use the contact form at http://qt.digia.com/contact-us. | |
+** | |
+** GNU Lesser General Public License Usage | |
+** Alternatively, this file may be used under the terms of the GNU Lesser | |
+** General Public License version 2.1 as published by the Free Software | |
+** Foundation and appearing in the file LICENSE.LGPL included in the | |
+** packaging of this file. Please review the following information to | |
+** ensure the GNU Lesser General Public License version 2.1 requirements | |
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | |
+** | |
+** In addition, as a special exception, Digia gives you certain additional | |
+** rights. These rights are described in the Digia Qt LGPL Exception | |
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. | |
+** | |
+** GNU General Public License Usage | |
+** Alternatively, this file may be used under the terms of the GNU | |
+** General Public License version 3.0 as published by the Free Software | |
+** Foundation and appearing in the file LICENSE.GPL included in the | |
+** packaging of this file. Please review the following information to | |
+** ensure the GNU General Public License version 3.0 requirements will be | |
+** met: http://www.gnu.org/copyleft/gpl.html. | |
+** | |
+** | |
+** $QT_END_LICENSE$ | |
+** | |
+****************************************************************************/ | |
+ | |
+import QtQuick 2.0 | |
+ | |
+Rectangle { | |
+ id: container | |
+ | |
+ property bool running: false | |
+ property string imageSource: "images/busy.png" | |
+ | |
+ visible: running | |
+ | |
+ Image { | |
+ id: image | |
+ anchors.centerIn: parent | |
+ source: container.imageSource | |
+ ParallelAnimation { | |
+ running: container.running | |
+ NumberAnimation { target: image; property: "opacity"; from: 0.0; to: 1.0; duration: 200 } | |
+ NumberAnimation { target: image; property: "rotation"; from: 0; to: 360; loops: Animation.Infinite; duration: 1200 } | |
+ } | |
+ } | |
+} | |
diff --git a/examples/qml/shared/images/arrow.png b/examples/qml/shared/images/arrow.png | |
new file mode 100644 | |
index 0000000000000000000000000000000000000000..1dcec4432dec0e3b8be70e65912ef2fcd486789a | |
GIT binary patch | |
literal 10960 | |
zcmZ8nbzBu)v>l{7q@=}5Uphom;35rzbP58O5)f%Ar8}gN?k)iVX%O%dA|EA6cSuRs | |
zJG{T%?*VtHftfjH@3q%nYllBqS0Kcr!Gj=(P)QM?1wLEey>PI=(RnFJ8+^jDP*FfY | |
zw|DP3ZN(qKPjH<T4c<Z!{{6cb8kGKt8vGF3RY^@A`!^l|0pI=03bO(TVuF+qGTNTM | |
zc746#=qA$Ed8=E>w|DCQ+e$VJ9g~0bz|w@fh6=y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PR8=sDa&YjbjxQRB<BJjSfPUyo1JYQQoGUmzw1)K=jXppXYHiv<P0$xo | |
z$Y6HFMU+kps2jk)3ya~Pj0CVkh*A*xxc&Cc^iE<UJLwuwzMnZ;TNk0lbzc2bhorIg | |
z_n^bdiuMjMnSdj%KQ#g9&@R*nozVr9PrsQEQo{?D#R--LF4<=#U%+#EZ9_IGI8Lky | |
zzv&af3P;Mym{U;Z0P+8K9xkNn=b+CuUw}XQz7bTsX7R!QCC<+k^UE!abGiVvtA<{2 | |
z;?N$@Bj8{KKG&g0QZDQoyB~b+b-;Qr@czdnNB~R>tcF<BDt<?K%6@|OaRQJK9rnuw | |
z-mglY{*Rlh_N574as|+yg;%ggthkB+UwrY{8{h%ZfPqcEskKm09>actY9ePt46nL? | |
zMhIjzI41sZyPw3?%ea+i%NC#sC7s#_%sG9i`M<-48lS}21J(|duoBo!wVJv=oGBW; | |
zNl<4+k;b=Wwbo+nNuw`N9bemAzdf$z=kwnk#_ZJd;B<nVxdSMeh4-t1?EfP05;T*C | |
zTeHyj;Q?%DUx{*_&)?e3V!vl1G-v)~RsuI9?sLGXX;f!Ami%&y3;9=Es_;(X=1o1x | |
zJ&~afAf}NyLw=-|J-(-Jc>3A`65Aq0`~QQQZoxifelgBb$1*;fx7d^kkHULvG@8Ne | |
PDWoK?j;NA-`Qd*6&lk#a | |
literal 0 | |
HcmV?d00001 | |
diff --git a/examples/qml/shared/images/busy.png b/examples/qml/shared/images/busy.png | |
new file mode 100644 | |
index 0000000000000000000000000000000000000000..664c2b1491498ee0158cb7674602265cc5f5c70c | |
GIT binary patch | |
literal 2629 | |
zcmV-L3cB@)P)<h;3K|Lk000e1NJLTq001Ze001Zm1^@s6jQ+T700001b5ch_0Itp) | |
z=>Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L0E%e<0E%e=v1PL|00007bV*G`2igM< | |
z0yrX}$<`hK013rOL_t(o!?l=ua8%V9z<=M}fELP)f;_|2*y%_$Ar5gAt%|I7ZNw_F | |
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3xYXB&X~vf1odfH7mneEJ%-<2c2M1G8q$^0sRfFvi<nQy+ZGB$@cE{x#q| | |
zAKU@pQBP+r>*GuNxAml|{QhjED06uoxKcze1cJaffaj{KtNT6A>yzLUB63hww~EM% | |
n<>lplMo$qD%FD|?QG)*i-|6WSYzBoC00000NkvXXu0mjf?5^_a | |
literal 0 | |
HcmV?d00001 | |
diff --git a/examples/qml/shared/images/flickr.png b/examples/qml/shared/images/flickr.png | |
new file mode 100644 | |
index 0000000000000000000000000000000000000000..d0f050254a34f83c48ea1297ee3a1c7ebb156f2a | |
GIT binary patch | |
literal 6818 | |
zcmV;T8eQdyP)<h;3K|Lk000e1NJLTq002_}002`61^@s6<FY#d00004XF*Lt006O% | |
z3;baP00001b5ch_0Itp)=>Px#AY({UO#lFTCIA3{ga82g0001h=l}q9FaQARU;qF* | |
zm;eA5aGbhPJOBUy24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_000@6 | |
zNkl<Zc-rNid6Xr^b>@FJa(VgQtF?>n>V;m|_f;Ta2@sMk5VEigNHXVWv4o69UcelW | |
zjCJHWLc$)&<3VVdV}_BXK?^<xM$0e)iLn785HbSE2%4oEy4iZ6*IM76nQ`Zj%&eF7 | |
z>Q#3&UDXYmdrnkly?mJw@#S|TZrr#LPdIQQUH+FjoM)mP_iHZE<$SjL7EIg&kcV_R | |
zX32CMJI}j`b|gE?QD?b#!7IAZAm)KGfRj5q9iN$wd-eomoPsyoF-x<tc3x#6nAr(p | |
z9yBM-GoPH?F%NDhpm{JdkfId0I6d!7aV}-|(DA%^ulPcM*a@E3CHXlZq0Oo=2SUEm | |
z*^BYg`!Xim^qzcb<<2|7wJZQr=L5_=ftUf7r9zs#^t(-<22|2xGp&4HJv;Nt*zTs! | |
zDgxy+1?jaY1+$r^RtLBX0_y&Pncbgn3*8Rzf?P5{0~iIyfNEOt`Cx~W0^0{HO2IWL | |
zn2lV@1Dj|6euKI{VCLJjP7pKjO6gHk@OA=|X+;)NOq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FflSMFgYzUHdHY*IyE^uGcqeMGCD9Y | |
zZYm&{0000bbVXQnWMOn=I&E)cX=Zr<GB7bREigGPF*#H*IXW^mIy5*dFfuwYFc_I< | |
Qz5oCK07*qoM6N<$f}PO;fB*mh | |
literal 0 | |
HcmV?d00001 | |
diff --git a/examples/qml/shared/images/less.png b/examples/qml/shared/images/less.png | |
new file mode 100644 | |
index 0000000000000000000000000000000000000000..136919b09ff274f31da20f2a541507760501ae4d | |
GIT binary patch | |
literal 4335 | |
zcmY*cXH*kgv>wU@MA`*}fOHWEQbOnfDY<|csSzm}niT0hc<C)PscMkk#DJh6pa`KU | |
zMvx*PMvMqZ6N7{RQlv!S&0X)uTkp)AIdk@`J+s$0=iB=`nKo9JxH&~R0RZ5>Y;J-E | |
zN8SHA2OD_JhNPr|1M4kgOJe|N$vgeW{V#CN6pp@x1e(Ugeu5Jz4|B9707T0HKq3wR | |
z4nb4m3IJeX0I=!?0Ei+05DqEpwABY6u-&|J$pkq0@2KjjyAN7Ug_t{q1Hfs4|2h*; | |
zQU(D4-tU)9jO~2BHI`lp5W5up?qqkRVvj4Gl&<l}_pXd-CVxFUG={!U{Dqiu_Dm8B | |
z<KSZ*gvJa@6PJt1ws?e2g?+&=D}|Z!Ne#;NvDu5cRb#tbKRcFuE_vW{8Q*{RZE?lk | |
z&Xb0&un#){&nMMo+n`l_#S&PDlhu<r*SKA5=6q40hsU|-JAf3DqqVCm%lrAzg9i`b | |
zBO@d7wRLsYIXOAXkH|lDohfw@&f@~e4)m}vG6F+sbb7E`H5)Y7IO(@{J2F!7#*G{0 | |
zCNk2(LPGf{f?(o20L*kpZFl5xZJh@Afk%^mclB<se<&y@SSz^TF!p|Qw8ubA?U!GR | |
zqkiGYa_!Z6J9`RtOjjPqr$DH}C*%3iD4pDM$|LZY9+x)q&zT?%QAvBn0?DAjz}e2w | |
zB{Tn^ps~`Dl4!QyI<GG!XTSLyX<kRJzP<6yE4cUIN9Ji^l|Nf+YirL6MwXvhfXxdo | |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
zS~pjR*tljh?XuWF3BJ?6l`YAvgowL*_p(*Im)z2!Vm&{a+hhoWQvpKtcAT?8l!i&a | |
zxo2Qkv)sNF_u5Jj=7s=H0cyu0iP05Qr&`}20c7tZd<6iz3_ZWlK0-<!QqWvVB=r_r | |
z)!iLgo@exeFz<mNG`U0O1dwZHf;)-(fz|9%9-p|3&P$sx^VRysLvi~>Xg_8J0c2}- | |
z3(K>QHG~X>Kd|O`J*pTO1QEl7<J-9nKZ$9yXO!AM+5HE&hBSXJ=~-b5>)g=P!e&kT | |
z^CYsE1A_{LFkql{YK>?iw|$|r=~cb&*UMwN+^S(U%NZR)o~W{LpAt4_N=kAu+>#6` | |
z48zsPE<=#orKtMo1fDhKkWGy{5}hr3I@8ZDyGC&v@f!{79Vto6R$A3r*O7k~Vx1FA | |
z$uHE)w)LrH@By>lO0HleD*z?526o+={_RZGNC+tTkq%<Q=$(6nkNl+(ef?ii;~s<g | |
zD(-1wtPj5dauU!Y;87O{aImt~q3ffZDTSJrdhc`%`ym(920r4^<>+A~IiJet-He;V | |
zqd%wexpp>n(RIdN22S60rZh6I?9RS<OFm_=*>f&%!~pKe<r5;#-6wbW`tsbK0IFWr | |
zLy4rT>QiFBSeADcwT;V{l{Rreog(1rjCco>Qz2RunNhpJa0axb-%8`Y#KGj5wQV*Y | |
zpLi{v00)+cz5?w%aK8_nk1%zN@N|#xLU@FEfdc@Cslk<Dy2@}ZJ2ef2rY-`mb^!)Q | |
xz+m@%5T*amAu!m}*E{O}95n6JbP?*B2u=9^I+$XE7eNQ$vZ<9x6VfgDe*iZ6M}7bR | |
literal 0 | |
HcmV?d00001 | |
diff --git a/examples/qml/shared/images/more.png b/examples/qml/shared/images/more.png | |
new file mode 100644 | |
index 0000000000000000000000000000000000000000..fe7f87e15fb32a10a33063a4b7ea088368325ed7 | |
GIT binary patch | |
literal 4261 | |
zcmY*cc{o&W^uL5A5tU@CMqf0RvNV>l^_?j(V;3<ZWXZ^seGiST5E^68T9lE7A^TRc | |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U_cQtPilL+j42u7f7KO9#(z+05*cBi{b0ed+7osuPa9T3t2x<sU!5j-qBBEb?%x | |
zvZ3(p(YyJR#U#xOCeI<)tyW7Vs~kB}{``4p0j4~9`qBcW>1S^OO?%^0PO-&zEwERU | |
zwr6yy8u#^3KOIwd*ok-VN7ymg7yGE1x&8f9Q&Y{kxw%U@IXU@?3JRaVnXjhzxvqZe | |
zNrjr`;Z}|=n*;e`K7wzS8eCjmxp#MWKYXXZVsEf$$>*+whmp--f4g#$6uL_aEhmT) | |
ziEQ(qtYK<s)!-@bY|H1azo@jMFx2Pg=YMn5fgscd5oiDN*87;QgF}8Kny<c_J{J6S | |
zm-f@M@pEzVbJcYAaRn8iqNJ>HQ3-KTMa@!KRZ~exQ&m-7Nd<h+QA0ofe*yRhE;zT~ | |
i{|ivHR7PlCR?}2f`riP=WJfm`0HF0uuDwM$68;BeTq4#0 | |
literal 0 | |
HcmV?d00001 | |
diff --git a/examples/qml/shared/qmldir b/examples/qml/shared/qmldir | |
new file mode 100644 | |
index 0000000..ffd9414 | |
--- /dev/null | |
+++ b/examples/qml/shared/qmldir | |
@@ -0,0 +1,2 @@ | |
+Button 2.0 Button.qml | |
+LoadIndicator 2.0 LoadIndicator.qml | |
diff --git a/examples/qml/shared/shared.h b/examples/qml/shared/shared.h | |
new file mode 100644 | |
index 0000000..ffb211f | |
--- /dev/null | |
+++ b/examples/qml/shared/shared.h | |
@@ -0,0 +1,50 @@ | |
+/**************************************************************************** | |
+** | |
+** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). | |
+** Contact: http://www.qt-project.org/legal | |
+** | |
+** This file is part of the examples of the Qt Toolkit. | |
+** | |
+** $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$ | |
+** | |
+****************************************************************************/ | |
+#include <QGuiApplication> | |
+#include <QQuickView> | |
+#define QWEBKIT_EXAMPLE_MAIN(NAME) int main(int argc, char* argv[]) \ | |
+{\ | |
+ QGuiApplication app(argc,argv);\ | |
+ QQuickView view;\ | |
+ view.setSource(QUrl::fromLocalFile(QCoreApplication::applicationDirPath() + QLatin1String("/" #NAME ".qml")));\ | |
+ view.setResizeMode(QQuickView::SizeRootObjectToView);\ | |
+ view.show();\ | |
+ return app.exec();\ | |
+} | |
diff --git a/examples/qml/shared/shared.pro b/examples/qml/shared/shared.pro | |
new file mode 100644 | |
index 0000000..f7f0ab1 | |
--- /dev/null | |
+++ b/examples/qml/shared/shared.pro | |
@@ -0,0 +1,11 @@ | |
+#just install the files | |
+TEMPLATE = aux | |
+ | |
+qml.files = images \ | |
+ LoadIndicator.qml \ | |
+ Button.qml \ | |
+ shared.h \ | |
+ qmldir | |
+ | |
+qml.path = $$[QT_INSTALL_EXAMPLES]/qtwebkit-examples-and-demos/examples/qml/shared | |
+INSTALLS = qml | |
diff --git a/examples/qml/youtubeview/content/YouTubeDialog.qml b/examples/qml/youtubeview/content/YouTubeDialog.qml | |
new file mode 100644 | |
index 0000000..ce55608 | |
--- /dev/null | |
+++ b/examples/qml/youtubeview/content/YouTubeDialog.qml | |
@@ -0,0 +1,99 @@ | |
+/**************************************************************************** | |
+** | |
+** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). | |
+** Contact: http://qt-project.org/legal | |
+** | |
+** This file is part of the QtCore module of the Qt Toolkit. | |
+** | |
+** $QT_BEGIN_LICENSE:LGPL$ | |
+** 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 Digia. For licensing terms and | |
+** conditions see http://qt.digia.com/licensing. For further information | |
+** use the contact form at http://qt.digia.com/contact-us. | |
+** | |
+** GNU Lesser General Public License Usage | |
+** Alternatively, this file may be used under the terms of the GNU Lesser | |
+** General Public License version 2.1 as published by the Free Software | |
+** Foundation and appearing in the file LICENSE.LGPL included in the | |
+** packaging of this file. Please review the following information to | |
+** ensure the GNU Lesser General Public License version 2.1 requirements | |
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | |
+** | |
+** In addition, as a special exception, Digia gives you certain additional | |
+** rights. These rights are described in the Digia Qt LGPL Exception | |
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. | |
+** | |
+** GNU General Public License Usage | |
+** Alternatively, this file may be used under the terms of the GNU | |
+** General Public License version 3.0 as published by the Free Software | |
+** Foundation and appearing in the file LICENSE.GPL included in the | |
+** packaging of this file. Please review the following information to | |
+** ensure the GNU General Public License version 3.0 requirements will be | |
+** met: http://www.gnu.org/copyleft/gpl.html. | |
+** | |
+** | |
+** $QT_END_LICENSE$ | |
+** | |
+****************************************************************************/ | |
+ | |
+import QtQuick 2.0 | |
+import "../../shared" | |
+ | |
+Rectangle { | |
+ anchors.fill: parent | |
+ id: container | |
+ | |
+ color: "black" | |
+ | |
+ signal presetClicked(string name) | |
+ | |
+ property int neededHeight: 0 | |
+ | |
+ ListModel { | |
+ id: model | |
+ ListElement { | |
+ name: "trailers" | |
+ } | |
+ ListElement { | |
+ name: "ClevverMovies" | |
+ } | |
+ ListElement { | |
+ name: "nogoodflix" | |
+ } | |
+ ListElement { | |
+ name: "PalaceFilms" | |
+ } | |
+ ListElement { | |
+ name: "CieonMovies" | |
+ } | |
+ ListElement { | |
+ name: "FilmsActuTrailers" | |
+ } | |
+ ListElement { | |
+ name: "movieclipsTRAILERS" | |
+ } | |
+ } | |
+ | |
+ Component { | |
+ id: delegate | |
+ Button { | |
+ buttonWidth: 200 | |
+ text: name | |
+ onClicked: presetClicked(name) | |
+ Component.onCompleted: container.neededHeight += height | |
+ } | |
+ } | |
+ | |
+ ListView { | |
+ id: view | |
+ anchors.centerIn: parent | |
+ width: 200 | |
+ height: (container.neededHeight > parent.height) ? parent.height : container.neededHeight | |
+ model: model | |
+ delegate: delegate | |
+ boundsBehavior: Flickable.StopAtBounds | |
+ } | |
+} | |
diff --git a/examples/qml/youtubeview/content/player.html b/examples/qml/youtubeview/content/player.html | |
new file mode 100644 | |
index 0000000..49986ef | |
--- /dev/null | |
+++ b/examples/qml/youtubeview/content/player.html | |
@@ -0,0 +1,51 @@ | |
+<html> | |
+ <head> | |
+ <title>-1</title> | |
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/> | |
+ </head> | |
+ <body bgcolor="black" marginwidth="0" marginheight="0"> | |
+ <!-- The <iframe> (and video player) will replace this <div> tag. --> | |
+ <div id="player"></div> | |
+ <script> | |
+ function getVideoId() { | |
+ return window.location.href.slice(window.location.href.indexOf('?') + 1); | |
+ } | |
+ // This code loads the IFrame Player API code asynchronously. | |
+ var tag = document.createElement('script'); | |
+ tag.src = "https://www.youtube.com/iframe_api"; | |
+ var firstScriptTag = document.getElementsByTagName('script')[0]; | |
+ firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); | |
+ | |
+ // This function creates an <iframe> (and YouTube player) | |
+ // after the API code downloads. | |
+ var player; | |
+ function onYouTubeIframeAPIReady() { | |
+ player = new YT.Player('player', { | |
+ playerVars: { 'html5': 1 }, | |
+ frameborder: '0', | |
+ height: '100%', | |
+ width: '100%', | |
+ videoId: getVideoId(), | |
+ events: { | |
+ 'onReady': onPlayerReady, | |
+ 'onStateChange': onPlayerStateChange | |
+ } | |
+ }); | |
+ } | |
+ | |
+ // The API will call this function when the video player is ready. | |
+ function onPlayerReady(event) { | |
+ document.title = 0; | |
+ } | |
+ | |
+ // The API calls this function when the player's state changes. | |
+ function onPlayerStateChange(event) { | |
+ if (event.data == YT.PlayerState.PLAYING) { | |
+ document.title = 1; | |
+ } else if (event.data == YT.PlayerState.ENDED || event.data == YT.PlayerState.PAUSED) { | |
+ document.title = 2; | |
+ } | |
+ } | |
+ </script> | |
+ </body> | |
+</html> | |
diff --git a/examples/qml/youtubeview/main.cpp b/examples/qml/youtubeview/main.cpp | |
new file mode 100644 | |
index 0000000..f4c982c | |
--- /dev/null | |
+++ b/examples/qml/youtubeview/main.cpp | |
@@ -0,0 +1,41 @@ | |
+/**************************************************************************** | |
+** | |
+** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). | |
+** Contact: http://www.qt-project.org/legal | |
+** | |
+** This file is part of the examples of the Qt Toolkit. | |
+** | |
+** $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$ | |
+** | |
+****************************************************************************/ | |
+#include "../shared/shared.h" | |
+QWEBKIT_EXAMPLE_MAIN(youtubeview) | |
diff --git a/examples/qml/youtubeview/youtubeview.pro b/examples/qml/youtubeview/youtubeview.pro | |
new file mode 100644 | |
index 0000000..5cd641a | |
--- /dev/null | |
+++ b/examples/qml/youtubeview/youtubeview.pro | |
@@ -0,0 +1,12 @@ | |
+TEMPLATE = app | |
+ | |
+QT += quick qml webkit | |
+SOURCES += main.cpp | |
+ | |
+target.path = $$[QT_INSTALL_EXAMPLES]/qtwebkit-examples-and-demos/examples/qml/youtubeview | |
+qml.files = youtubeview.qml content | |
+qml.path = $$[QT_INSTALL_EXAMPLES]/qtwebkit-examples-and-demos/examples/qml/youtubeview | |
+INSTALLS += target qml | |
+ | |
+OTHER_FILES += \ | |
+ player.html | |
diff --git a/examples/qml/youtubeview/youtubeview.qml b/examples/qml/youtubeview/youtubeview.qml | |
new file mode 100644 | |
index 0000000..4e6292c | |
--- /dev/null | |
+++ b/examples/qml/youtubeview/youtubeview.qml | |
@@ -0,0 +1,490 @@ | |
+/**************************************************************************** | |
+** | |
+** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). | |
+** Contact: http://qt-project.org/legal | |
+** | |
+** This file is part of the QtCore module of the Qt Toolkit. | |
+** | |
+** $QT_BEGIN_LICENSE:LGPL$ | |
+** 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 Digia. For licensing terms and | |
+** conditions see http://qt.digia.com/licensing. For further topInformation | |
+** use the contact form at http://qt.digia.com/contact-us. | |
+** | |
+** GNU Lesser General Public License Usage | |
+** Alternatively, this file may be used under the terms of the GNU Lesser | |
+** General Public License version 2.1 as published by the Free Software | |
+** Foundation and appearing in the file LICENSE.LGPL included in the | |
+** packaging of this file. Please review the following topInformation to | |
+** ensure the GNU Lesser General Public License version 2.1 requirements | |
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. | |
+** | |
+** In addition, as a special exception, Digia gives you certain additional | |
+** rights. These rights are described in the Digia Qt LGPL Exception | |
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. | |
+** | |
+** GNU General Public License Usage | |
+** Alternatively, this file may be used under the terms of the GNU | |
+** General Public License version 3.0 as published by the Free Software | |
+** Foundation and appearing in the file LICENSE.GPL included in the | |
+** packaging of this file. Please review the following topInformation to | |
+** ensure the GNU General Public License version 3.0 requirements will be | |
+** met: http://www.gnu.org/copyleft/gpl.html. | |
+** | |
+** | |
+** $QT_END_LICENSE$ | |
+** | |
+****************************************************************************/ | |
+ | |
+import QtQuick 2.0 | |
+import QtWebKit 3.0 | |
+import QtQuick.XmlListModel 2.0 | |
+import "content" | |
+import "../shared" | |
+ | |
+Rectangle { | |
+ id: container | |
+ width: 850 | |
+ height: 480 | |
+ color: "black" | |
+ focus: true | |
+ | |
+ property QtObject videoStatus: QtObject { | |
+ property int initial: -1 | |
+ property int ready: 0 | |
+ property int playing: 1 | |
+ property int paused: 2 | |
+ } | |
+ | |
+ QtObject { | |
+ id: currentVideo | |
+ property string vId: "" | |
+ property string title: "" | |
+ property int status: videoStatus.initial | |
+ } | |
+ | |
+ readonly property int padding: 20 | |
+ | |
+ Rectangle { | |
+ id: content | |
+ anchors.fill: parent | |
+ color: "black" | |
+ | |
+ WebView { | |
+ id: webView | |
+ anchors.fill: parent | |
+ opacity: 0 | |
+ | |
+ url: "content/player.html?" + currentVideo.vId | |
+ | |
+ Behavior on opacity { NumberAnimation { duration: 200 } } | |
+ | |
+ onLoadingChanged: { | |
+ switch (loadRequest.status) | |
+ { | |
+ case WebView.LoadSucceededStatus: | |
+ opacity = 1 | |
+ return | |
+ case WebView.LoadStartedStatus: | |
+ case WebView.LoadStoppedStatus: | |
+ break | |
+ case WebView.LoadFailedStatus: | |
+ topInfo.text = "Failed to load the requested video" | |
+ break | |
+ } | |
+ opacity = 0 | |
+ } | |
+ onTitleChanged: { | |
+ currentVideo.status = 1 * title | |
+ if (title == videoStatus.paused || title == videoStatus.ready) | |
+ panel.state = "list" | |
+ else if (title == videoStatus.playing) | |
+ panel.state = "hidden" | |
+ } | |
+ } | |
+ | |
+ YouTubeDialog { | |
+ id: presetDialog | |
+ visible: panel.state == "search" | |
+ onPresetClicked: { | |
+ model.userName = name | |
+ model.startIndex = 1 | |
+ panel.state = "list" | |
+ searchBinding.when = false | |
+ presetsBinding.when = true | |
+ model.reload() | |
+ } | |
+ } | |
+ } | |
+ | |
+ Rectangle { | |
+ id: panel | |
+ height: 100 | |
+ color: "black"; | |
+ state: "list" | |
+ | |
+ Behavior on y { NumberAnimation { duration: 200 } } | |
+ Behavior on height { NumberAnimation { duration: 200 } } | |
+ Behavior on opacity { NumberAnimation { duration: 400 } } | |
+ | |
+ Binding { id: presetsBinding; target: model; property: "source"; value: model.usersSource; when: false } | |
+ Binding { id: searchBinding; target: model; property: "source"; value: model.searchSource; when: false } | |
+ | |
+ anchors { | |
+ left: container.left | |
+ right: container.right | |
+ } | |
+ | |
+ states: [ | |
+ State { | |
+ name: "search" | |
+ PropertyChanges { target: panel; color: "black"; opacity: 0.8; y: -height + topInfo.height + searchPanel.height + button.height } | |
+ PropertyChanges { target: listView; visible: false } | |
+ PropertyChanges { target: searchPanel; opacity: 0.8 } | |
+ PropertyChanges { target: hideTimer; running: false } | |
+ }, | |
+ | |
+ State { | |
+ name: "list" | |
+ PropertyChanges { target: panel; color: "black"; opacity: 0.8; y: 0 } | |
+ PropertyChanges { target: listView; visible: true; focus: true } | |
+ PropertyChanges { target: searchPanel; visible: false } | |
+ }, | |
+ | |
+ State { | |
+ name: "hidden" | |
+ PropertyChanges { target: panel; color: "gray"; opacity: 0.2; y: -height + container.padding } | |
+ } | |
+ ] | |
+ | |
+ Timer { | |
+ id: hideTimer | |
+ interval: 3000 | |
+ repeat: false | |
+ onTriggered: panel.state = "hidden" | |
+ } | |
+ | |
+ MouseArea { | |
+ visible: panel.state == "hidden" | |
+ height: container.padding | |
+ anchors { | |
+ bottom: parent.bottom | |
+ left: parent.left | |
+ right: parent.right | |
+ } | |
+ onPressed: { | |
+ panel.state = "list" | |
+ if (currentVideo.status == videoStatus.playing) | |
+ hideTimer.restart() | |
+ } | |
+ } | |
+ | |
+ ListView { | |
+ id: listView | |
+ orientation: "Horizontal" | |
+ | |
+ property int requiredHeight: 0 | |
+ | |
+ anchors { | |
+ top: panel.top | |
+ bottom: button.top | |
+ left: panel.left | |
+ right: panel.right | |
+ } | |
+ model: model | |
+ delegate: delegate | |
+ header: listHeader | |
+ footer: listFooter | |
+ | |
+ focus: true | |
+ visible: panel.state == "list" | |
+ onDraggingChanged: { | |
+ if (dragging) | |
+ hideTimer.stop() | |
+ else if (currentVideo.status == videoStatus.playing) | |
+ hideTimer.start() | |
+ } | |
+ } | |
+ | |
+ LoadIndicator { | |
+ anchors.fill: parent | |
+ color: "black" | |
+ running: panel.state == "list" && model.status != XmlListModel.Ready | |
+ } | |
+ | |
+ Rectangle { | |
+ id: searchPanel | |
+ Behavior on opacity { NumberAnimation { duration: 400 } } | |
+ | |
+ height: searchField.height + container.padding | |
+ | |
+ anchors { | |
+ left: parent.left | |
+ right: parent.right | |
+ bottom: button.top | |
+ } | |
+ | |
+ opacity: 0 | |
+ color: "black" | |
+ | |
+ gradient: Gradient { | |
+ GradientStop { | |
+ position: 0.0 | |
+ color: "grey" | |
+ } | |
+ GradientStop { | |
+ position: 1.0 | |
+ color: "black" | |
+ } | |
+ } | |
+ | |
+ Rectangle { | |
+ id: searchField | |
+ color: "white" | |
+ radius: 2 | |
+ anchors.centerIn: parent | |
+ width: 220 | |
+ border.color: "black" | |
+ border.width: 2 | |
+ height: input.height + container.padding | |
+ TextInput { | |
+ id: input | |
+ color: "black" | |
+ anchors.centerIn: parent | |
+ horizontalAlignment: TextInput.AlignHCenter | |
+ font.capitalization: Font.AllLowercase | |
+ maximumLength: 30 | |
+ cursorVisible: true | |
+ focus: parent.visible | |
+ text: "movie trailers" | |
+ Keys.onPressed: { | |
+ if (event.key == Qt.Key_Return || event.key == Qt.Key_Enter) { | |
+ model.startIndex = 1 | |
+ panel.state = "list" | |
+ presetsBinding.when = false | |
+ searchBinding.when = true | |
+ model.reload() | |
+ } | |
+ } | |
+ } | |
+ MouseArea { | |
+ anchors.fill: parent | |
+ onPressed: input.focus = true | |
+ } | |
+ } | |
+ } | |
+ | |
+ Button { | |
+ id: button | |
+ buttonHeight: container.padding | |
+ buttonWidth: container.width | |
+ fontSize: 8 | |
+ | |
+ visible: panel.state != "hidden" | |
+ | |
+ anchors { | |
+ bottom: parent.bottom | |
+ left: parent.left | |
+ right: parent.right | |
+ } | |
+ | |
+ states: [ | |
+ State { | |
+ name: "search" | |
+ PropertyChanges { target: button; text: "Press to switch back to the video list" } | |
+ }, | |
+ | |
+ State { | |
+ name: "list" | |
+ PropertyChanges { target: button; text: "Press to search for videos" } | |
+ } | |
+ ] | |
+ | |
+ state: panel.state | |
+ | |
+ onClicked: { | |
+ if (panel.state == "search") | |
+ panel.state = "list" | |
+ else | |
+ panel.state = "search" | |
+ } | |
+ } | |
+ } | |
+ | |
+ Rectangle { | |
+ height: 10 | |
+ color: "black" | |
+ opacity: (panel.state == "hidden") ? 0 : 0.8 | |
+ | |
+ Behavior on opacity { NumberAnimation { duration: 200 } } | |
+ | |
+ anchors { | |
+ top: container.top | |
+ left: container.left | |
+ right: container.right | |
+ } | |
+ | |
+ Text { | |
+ id: topInfo | |
+ color: "white" | |
+ font.pointSize: 8 | |
+ anchors.centerIn: parent | |
+ Binding on text { | |
+ value: "Results " + model.startIndex + " through " + ((model.endIndex > model.totalResults) ? model.totalResults : model.endIndex) + " out of " + model.totalResults | |
+ when: model.status == XmlListModel.Ready && panel.state == "list" && model.count | |
+ } | |
+ Binding on text { | |
+ value: "No results found."; | |
+ when: model.state == XmlListModel.Ready && !model.count | |
+ } | |
+ Binding on text { | |
+ value: "Search for videos" | |
+ when: panel.state == "search" | |
+ } | |
+ } | |
+ } | |
+ | |
+ Rectangle { | |
+ height: 10 | |
+ color: "black" | |
+ opacity: (panel.state == "hidden") ? 0 : 0.8 | |
+ | |
+ Behavior on opacity { NumberAnimation { duration: 200 } } | |
+ | |
+ anchors { | |
+ top: panel.bottom | |
+ left: container.left | |
+ right: container.right | |
+ } | |
+ | |
+ Text { | |
+ id: bottomInfo | |
+ color: "white" | |
+ font.weight: Font.DemiBold | |
+ font.pointSize: 8 | |
+ anchors.centerIn: parent | |
+ text: { | |
+ if (panel.state == "search") | |
+ return "Choose from preset video streams" | |
+ else | |
+ return currentVideo.title | |
+ } | |
+ } | |
+ } | |
+ | |
+ Component { | |
+ id: listHeader | |
+ Rectangle { | |
+ visible: model.startIndex != 1 && model.status == XmlListModel.Ready | |
+ color: "black" | |
+ anchors.verticalCenter: parent.verticalCenter | |
+ width: height | |
+ height: visible ? listView.requiredHeight : 0 | |
+ Image { anchors.centerIn: parent; width: 50; height: 50; source: "../shared/images/less.png" } | |
+ MouseArea { | |
+ anchors.fill: parent | |
+ onClicked: model.requestLess() | |
+ } | |
+ } | |
+ } | |
+ | |
+ Component { | |
+ id: listFooter | |
+ Rectangle { | |
+ visible: model.totalResults > model.endIndex && model.status == XmlListModel.Ready | |
+ color: "black" | |
+ anchors.verticalCenter: parent.verticalCenter | |
+ width: height | |
+ height: visible ? listView.requiredHeight : 0 | |
+ Image { anchors.centerIn: parent; width: 50; height: 50; source: "../shared/images/more.png" } | |
+ MouseArea { | |
+ anchors.fill: parent | |
+ onClicked: model.requestMore() | |
+ } | |
+ } | |
+ } | |
+ | |
+ Component { | |
+ id: delegate | |
+ Image { | |
+ source: thumbnail | |
+ MouseArea { | |
+ anchors.fill: parent | |
+ onClicked: { | |
+ currentVideo.vId = id | |
+ currentVideo.title = title | |
+ } | |
+ } | |
+ Component.onCompleted: { | |
+ if (listView.requiredHeight < thumbnailHeight) | |
+ listView.requiredHeight = thumbnailHeight | |
+ if (currentVideo.title == "") { | |
+ currentVideo.vId = id | |
+ currentVideo.title = title | |
+ } | |
+ } | |
+ } | |
+ } | |
+ | |
+ XmlListModel { | |
+ id: model | |
+ | |
+ property int totalResults: 0 | |
+ property int itemsPerPage: 0 | |
+ property int startIndex: 1 | |
+ property int endIndex: itemsPerPage + startIndex - 1 | |
+ | |
+ property string userName: "trailers" | |
+ property string baseUrl: "https://gdata.youtube.com/feeds/api" | |
+ property string defaultQuery: "alt=rss&orderby=published&v=2&start-index=" + startIndex | |
+ property string searchSource: baseUrl + "/videos?" + defaultQuery + "&q=\'" + input.text + "\'" | |
+ property string usersSource: baseUrl + "/users/" + userName + "/uploads?" + defaultQuery | |
+ | |
+ function requestMore() { | |
+ startIndex += itemsPerPage | |
+ reload() | |
+ } | |
+ | |
+ function requestLess() { | |
+ startIndex -= itemsPerPage | |
+ reload() | |
+ } | |
+ | |
+ onSourceChanged: { | |
+ var xhr = new XMLHttpRequest(); | |
+ xhr.onreadystatechange = function(){ | |
+ if (xhr.readyState == XMLHttpRequest.DONE) { | |
+ if (xhr.status != 200) { | |
+ console.log("Something went wrong, received HTTP status code " + xhr.status); | |
+ return; | |
+ } | |
+ var doc = xhr.responseXML.documentElement; | |
+ for (var i = 0; i < doc.childNodes.length; ++i) { | |
+ var child = doc.childNodes[i]; | |
+ for (var j = 0; j < child.childNodes.length; ++j) { | |
+ if (child.childNodes[j].nodeName == "itemsPerPage") | |
+ itemsPerPage = child.childNodes[j].childNodes[0].nodeValue; | |
+ if (child.childNodes[j].nodeName == "totalResults") | |
+ totalResults = child.childNodes[j].childNodes[0].nodeValue; | |
+ } | |
+ } | |
+ } | |
+ } | |
+ xhr.open("GET", source); | |
+ xhr.send(); | |
+ } | |
+ | |
+ namespaceDeclarations: "declare namespace media='http://search.yahoo.com/mrss/';declare namespace yt='http://gdata.youtube.com/schemas/2007';" | |
+ | |
+ source: usersSource | |
+ query: "/rss/channel/item" | |
+ | |
+ XmlRole { name: "id"; query: "media:group/yt:videoid/string()"} | |
+ XmlRole { name: "title"; query: "media:group/media:title/string()" } | |
+ XmlRole { name: "thumbnail"; query: "media:group/media:thumbnail[1]/@url/string()" } | |
+ XmlRole { name: "thumbnailHeight"; query: "media:group/media:thumbnail[1]/@height/number()" } | |
+ } | |
+} | |
diff --git a/examples/qml/youtubeview/youtubeview.qmlproject b/examples/qml/youtubeview/youtubeview.qmlproject | |
new file mode 100644 | |
index 0000000..51f0a40 | |
--- /dev/null | |
+++ b/examples/qml/youtubeview/youtubeview.qmlproject | |
@@ -0,0 +1,16 @@ | |
+import QmlProject 1.1 | |
+ | |
+Project { | |
+ mainFile: "youtubeview.qml" | |
+ | |
+ /* Include .qml, .js, and image files from current directory and subdirectories */ | |
+ QmlFiles { | |
+ directory: "." | |
+ } | |
+ JavaScriptFiles { | |
+ directory: "." | |
+ } | |
+ ImageFiles { | |
+ directory: "." | |
+ } | |
+} | |
-- | |
1.7.12.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment