Updated version number to 0.5.1.
[openvpnui.git] / qml / pages / AboutPage.qml
1 /*
2   Copyright (C) 2014 David Llewellyn-Jones
3   Contact: David Llewellyn-Jones <david@flypig.co.uk>
4   All rights reserved.
5
6   You may use this file under the terms of BSD license as follows:
7
8   Redistribution and use in source and binary forms, with or without
9   modification, are permitted provided that the following conditions are met:
10     * Redistributions of source code must retain the above copyright
11       notice, this list of conditions and the following disclaimer.
12     * Redistributions in binary form must reproduce the above copyright
13       notice, this list of conditions and the following disclaimer in the
14       documentation and/or other materials provided with the distribution.
15     * Neither the name of the Jolla Ltd nor the
16       names of its contributors may be used to endorse or promote products
17       derived from this software without specific prior written permission.
18
19   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20   ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21   WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22   DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR
23   ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24   (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25   LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26   ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30   Built using the standard template from Jolla
31   Copyright (C) 2013 Jolla Ltd.
32   Contact: Thomas Perl <thomas.perl@jollamobile.com>
33 */
34
35 import QtQuick 2.0
36 import Sailfish.Silica 1.0
37
38 Page {
39     id: aboutPage
40     property string version: "0.5.1"
41
42     SilicaFlickable {
43         width: parent.width
44         height: parent.height
45         interactive: true
46
47         anchors.fill: parent
48         contentHeight: aboutColumn.height + Theme.paddingLarge
49
50         VerticalScrollDecorator {}
51
52         Column {
53             id: aboutColumn
54             width: parent.width
55             spacing: Theme.paddingLarge
56
57             PageHeader {
58                 title: "About OpenVPN Rig"
59             }
60
61             Image {
62                 width: 452
63                 height: 86
64                 anchors.topMargin: Theme.paddingLarge
65                 anchors.horizontalCenter: parent.horizontalCenter
66                 source  : "../images/ovpn-title.png"
67             }
68
69             Label {
70                 text: "OpenVPN client configuration"
71                 wrapMode: Text.WordWrap
72                 font.pixelSize: Theme.fontSizeSmall
73                 anchors {
74                     leftMargin: Theme.paddingLarge
75                     rightMargin: Theme.paddingLarge
76                     left: parent.left
77                     right: parent.right
78                 }
79             }
80             Label {
81                 text: "Version:\t" + version
82                 wrapMode: Text.WordWrap
83                 font.pixelSize: Theme.fontSizeSmall
84                 horizontalAlignment: Text.AlignLeft
85                 anchors {
86                     leftMargin: Theme.paddingLarge
87                     rightMargin: Theme.paddingLarge
88                     left: parent.left
89                     right: parent.right
90                 }
91             }
92             Label {
93                 text: "Author:\tDavid Llewellyn-Jones"
94                 wrapMode: Text.WordWrap
95                 font.pixelSize: Theme.fontSizeSmall
96                 horizontalAlignment: Text.AlignLeft
97                 anchors {
98                     leftMargin: Theme.paddingLarge
99                     rightMargin: Theme.paddingLarge
100                     left: parent.left
101                     right: parent.right
102                 }
103             }
104             Label {
105                 text: "Licence:\tBSD"
106                 wrapMode: Text.WordWrap
107                 font.pixelSize: Theme.fontSizeSmall
108                 horizontalAlignment: Text.AlignLeft
109                 anchors {
110                     leftMargin: Theme.paddingLarge
111                     rightMargin: Theme.paddingLarge
112                     left: parent.left
113                     right: parent.right
114                 }
115             }
116             Label {
117                 text: "Credits"
118                 color: Theme.highlightColor
119                 font.family: Theme.fontFamilyHeading
120                 horizontalAlignment: Text.AlignRight
121                 anchors {
122                     margins: Theme.paddingLarge
123                     left: parent.left
124                     right: parent.right
125                 }
126             }
127
128             Label {
129                 text: "File Browser code by Kari with public domain licence"
130                 wrapMode: Text.WordWrap
131                 font.pixelSize: Theme.fontSizeSmall
132                 anchors {
133                     leftMargin: Theme.paddingLarge
134                     rightMargin: Theme.paddingLarge
135                     left: parent.left
136                     right: parent.right
137                 }
138             }
139
140             Label {
141                 text: "OpenVPN and the OpenVPN logo are trademarks of OpenVPN Technologies, Inc."
142                 wrapMode: Text.WordWrap
143                 font.pixelSize: Theme.fontSizeSmall
144                 anchors {
145                     leftMargin: Theme.paddingLarge
146                     rightMargin: Theme.paddingLarge
147                     left: parent.left
148                     right: parent.right
149                 }
150             }
151
152             Label {
153                 text: "Links"
154                 color: Theme.highlightColor
155                 font.family: Theme.fontFamilyHeading
156                 horizontalAlignment: Text.AlignRight
157                 anchors {
158                     margins: Theme.paddingLarge
159                     left: parent.left
160                     right: parent.right
161                 }
162             }
163
164             Row {
165                 spacing: Theme.paddingLarge
166                 anchors.horizontalCenter: parent.horizontalCenter
167                 Button {
168                     id: connect
169                     text: "Website"
170                     enabled: true
171                     onClicked: Qt.openUrlExternally("http://www.flypig.co.uk/?to=openvpnrig")
172                 }
173                 Button {
174                     id : disconnect
175                     text: "Email"
176                     enabled: true
177                     onClicked: Qt.openUrlExternally("mailto:david@flypig.co.uk")
178                 }
179             }
180         }
181     }
182
183 }