~cibersheep/unav/systemcolors

« back to all changes in this revision

Viewing changes to qml/tuto/Slide5.qml

  • Committer: costales
  • Date: 2016-03-26 18:53:17 UTC
  • Revision ID: costales.marcos@gmail.com-20160326185317-4iau3yhe8986h5pg
Init team

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * uNav http://launchpad.net/unav
 
3
 * Copyright (C) 2015-2016 Marcos Alvarez Costales https://launchpad.net/~costales
 
4
 * This code is based on Podbird app code
 
5
 *
 
6
 * uNav is free software; you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation; either version 3 of the License, or
 
9
 * (at your option) any later version.
 
10
 *
 
11
 * uNav is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 */
 
16
 
 
17
import QtQuick 2.4
 
18
import Ubuntu.Components 1.3
 
19
 
 
20
// Slide 4
 
21
Component {
 
22
    id: slide4
 
23
    Item {
 
24
        id: slide1Container
 
25
 
 
26
        Image {
 
27
            anchors {
 
28
                top: parent.top
 
29
                bottom: introductionText.top
 
30
                bottomMargin: units.gu(3)
 
31
                horizontalCenter: parent.horizontalCenter
 
32
            }
 
33
            fillMode: Image.PreserveAspectFit
 
34
            source: Qt.resolvedUrl("img/5.png")
 
35
        }
 
36
 
 
37
        Label {
 
38
            id: introductionText
 
39
            anchors.centerIn: parent
 
40
            elide: Text.ElideRight
 
41
            fontSize: "x-large"
 
42
            maximumLineCount: 2
 
43
            text: i18n.tr("Simulate a route")
 
44
            horizontalAlignment: Text.AlignHCenter
 
45
            width: parent.width
 
46
            wrapMode: Text.WordWrap
 
47
        }
 
48
 
 
49
        Label {
 
50
            id: finalMessage
 
51
            anchors {
 
52
                top: introductionText.bottom
 
53
                bottom: parent.bottom
 
54
                left: parent.left
 
55
                right: parent.right
 
56
                margins: units.gu(1)
 
57
                topMargin: units.gu(4)
 
58
            }
 
59
            wrapMode: Text.WordWrap
 
60
            horizontalAlignment: Text.AlignHCenter
 
61
            text: i18n.tr("Set an origin: Click on map and click on simulate icon\n\nSet a destination: Then, click on map and click the same icon again")
 
62
            onLinkActivated: Qt.openUrlExternally(link)
 
63
        }
 
64
    }
 
65
}