Added About page.
[openvpnui.git] / qml / pages / AboutPage.qml
diff --git a/qml/pages/AboutPage.qml b/qml/pages/AboutPage.qml
new file mode 100644 (file)
index 0000000..da6fabb
--- /dev/null
@@ -0,0 +1,182 @@
+/*
+  Copyright (C) 2014 David Llewellyn-Jones
+  Contact: David Llewellyn-Jones <david@flypig.co.uk>
+  All rights reserved.
+
+  You may use this file under the terms of BSD license as follows:
+
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions are met:
+    * Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+    * Neither the name of the Jolla Ltd nor the
+      names of its contributors may be used to endorse or promote products
+      derived from this software without specific prior written permission.
+
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS 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.
+
+  Built using the standard template from Jolla
+  Copyright (C) 2013 Jolla Ltd.
+  Contact: Thomas Perl <thomas.perl@jollamobile.com>
+*/
+
+import QtQuick 2.0
+import Sailfish.Silica 1.0
+
+Page {
+    id: aboutPage
+
+    SilicaFlickable {
+        width: parent.width
+        height: parent.height
+        interactive: true
+
+        anchors.fill: parent
+        contentHeight: aboutColumn.height + Theme.paddingLarge
+
+        VerticalScrollDecorator {}
+
+        Column {
+            id: aboutColumn
+            width: parent.width
+            spacing: Theme.paddingLarge
+
+            PageHeader {
+                title: "About OpenVPN Rig"
+            }
+
+            Image {
+                width: 452
+                height: 86
+                anchors.topMargin: Theme.paddingLarge
+                anchors.horizontalCenter: parent.horizontalCenter
+                source  : "../images/ovpn-title.png"
+            }
+
+            Label {
+                text: "OpenVPN client configuration"
+                wrapMode: Text.WordWrap
+                font.pixelSize: Theme.fontSizeSmall
+                anchors {
+                    leftMargin: Theme.paddingLarge
+                    rightMargin: Theme.paddingLarge
+                    left: parent.left
+                    right: parent.right
+                }
+            }
+            Label {
+                text: "Version:\t0.5.0"
+                wrapMode: Text.WordWrap
+                font.pixelSize: Theme.fontSizeSmall
+                horizontalAlignment: Text.AlignLeft
+                anchors {
+                    leftMargin: Theme.paddingLarge
+                    rightMargin: Theme.paddingLarge
+                    left: parent.left
+                    right: parent.right
+                }
+            }
+            Label {
+                text: "Author:\tDavid Llewellyn-Jones"
+                wrapMode: Text.WordWrap
+                font.pixelSize: Theme.fontSizeSmall
+                horizontalAlignment: Text.AlignLeft
+                anchors {
+                    leftMargin: Theme.paddingLarge
+                    rightMargin: Theme.paddingLarge
+                    left: parent.left
+                    right: parent.right
+                }
+            }
+            Label {
+                text: "Licence:\tBSD"
+                wrapMode: Text.WordWrap
+                font.pixelSize: Theme.fontSizeSmall
+                horizontalAlignment: Text.AlignLeft
+                anchors {
+                    leftMargin: Theme.paddingLarge
+                    rightMargin: Theme.paddingLarge
+                    left: parent.left
+                    right: parent.right
+                }
+            }
+            Label {
+                text: "Credits"
+                color: Theme.highlightColor
+                font.family: Theme.fontFamilyHeading
+                horizontalAlignment: Text.AlignRight
+                anchors {
+                    margins: Theme.paddingLarge
+                    left: parent.left
+                    right: parent.right
+                }
+            }
+
+            Label {
+                text: "File Browser code by Kari with public domain licence"
+                wrapMode: Text.WordWrap
+                font.pixelSize: Theme.fontSizeSmall
+                anchors {
+                    leftMargin: Theme.paddingLarge
+                    rightMargin: Theme.paddingLarge
+                    left: parent.left
+                    right: parent.right
+                }
+            }
+
+            Label {
+                text: "OpenVPN and the OpenVPN logo are trademarks of OpenVPN Technologies, Inc."
+                wrapMode: Text.WordWrap
+                font.pixelSize: Theme.fontSizeSmall
+                anchors {
+                    leftMargin: Theme.paddingLarge
+                    rightMargin: Theme.paddingLarge
+                    left: parent.left
+                    right: parent.right
+                }
+            }
+
+            Label {
+                text: "Links"
+                color: Theme.highlightColor
+                font.family: Theme.fontFamilyHeading
+                horizontalAlignment: Text.AlignRight
+                anchors {
+                    margins: Theme.paddingLarge
+                    left: parent.left
+                    right: parent.right
+                }
+            }
+
+            Row {
+                spacing: Theme.paddingLarge
+                anchors.horizontalCenter: parent.horizontalCenter
+                Button {
+                    id: connect
+                    text: "Website"
+                    enabled: true
+                    onClicked: Qt.openUrlExternally("http://www.flypig.co.uk/?to=openvpnrig")
+                }
+                Button {
+                    id : disconnect
+                    text: "Email"
+                    enabled: true
+                    onClicked: Qt.openUrlExternally("mailto:david@flypig.co.uk")
+                }
+            }
+        }
+    }
+
+}