~stefan-schwarzburg/qreator/qreator-qml

« back to all changes in this revision

Viewing changes to qreator/PageAbout.qml

  • Committer: Stefan Schwarzburg
  • Date: 2013-03-08 12:38:59 UTC
  • Revision ID: stefan.schwarzburg@gmail.com-20130308123859-ilpzpqsgitgyo6ej
restructured the code a little; made the QR code datatypes a little more plugin-like; added an about page and credits

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 2.0
 
2
import Ubuntu.Components 0.1
 
3
import Ubuntu.Components 0.1 as Theming
 
4
import Ubuntu.Components.ListItems 0.1 as ListItem
 
5
import Ubuntu.Components.Popups 0.1
 
6
 
 
7
 
 
8
Page {
 
9
    id: pageSettings
 
10
    title: i18n.tr("About")
 
11
    visible: false
 
12
    Column {
 
13
        id: aboutColumn
 
14
        anchors.fill: parent
 
15
        Image {
 
16
            anchors.horizontalCenter: parent.horizontalCenter
 
17
            source: Qt.resolvedUrl("../img/qreator-128.png")
 
18
        }
 
19
        Label {
 
20
            anchors.horizontalCenter: parent.horizontalCenter
 
21
            anchors.topMargin: units.gu(1)
 
22
            text: i18n.tr("<b>Create your own QR codes!</b>")
 
23
            fontSize: "large"
 
24
            height: units.gu(8)
 
25
        }
 
26
        Label {
 
27
            id: longLabel
 
28
            width: parent.width - units.gu(2)
 
29
            anchors.horizontalCenter: parent.horizontalCenter
 
30
            text: i18n.tr("If you use Qreator and you like it, please consider giving a hand in making it better for you and for others. Thank you!")
 
31
            wrapMode: Theming.ComponentUtils.style(longLabel, "wrapMode", Text.Wrap) // FIXME: this feels aweful, why not 'wrapMode: "wrap"'?
 
32
        }
 
33
 
 
34
        ListItem.SingleValue {
 
35
            text: i18n.tr("Not in your language yet?")
 
36
            value: i18n.tr("Translate it!")
 
37
            onClicked: Qt.openUrlExternally("https://translations.launchpad.net/qreator")
 
38
        }
 
39
 
 
40
        ListItem.SingleValue {
 
41
            text: i18n.tr("Something not working?")
 
42
            value: i18n.tr("Report a bug!")
 
43
            onClicked: Qt.openUrlExternally("https://bugs.launchpad.net/qreator/+filebug")
 
44
        }
 
45
 
 
46
        ListItem.SingleValue {
 
47
            text: i18n.tr("Do you want to improve it?")
 
48
            value: i18n.tr("Contribute code!")
 
49
            onClicked: Qt.openUrlExternally("https://code.launchpad.net/qreator")
 
50
        }
 
51
        ListItem.Empty {
 
52
            height: units.gu(8)
 
53
            Label {
 
54
                anchors.horizontalCenter: parent.horizontalCenter
 
55
                anchors.verticalCenter: parent.verticalCenter
 
56
                text: "<b>Qreator 13.04.1-dev</b>"
 
57
            }
 
58
            onClicked: Qt.openUrlExternally("https://launchpad.net/qreator")
 
59
        }
 
60
        ListItem.Empty {
 
61
            height: units.gu(8)
 
62
            Label {
 
63
                anchors.horizontalCenter: parent.horizontalCenter
 
64
                anchors.verticalCenter: parent.verticalCenter
 
65
                text: "Copyright (c) 2012 David Planella <br/> http://about.me/david.planella"
 
66
            }
 
67
            onClicked: Qt.openUrlExternally("http://about.me/david.planella")
 
68
        }
 
69
    }
 
70
    PageCredits {
 
71
        id: pageCredits
 
72
    }
 
73
    PageLicense {
 
74
        id: pageLicense
 
75
    }
 
76
    tools: ToolbarActions {
 
77
        Action {
 
78
            iconSource: Qt.resolvedUrl("../img/icons/at_24x24.png")
 
79
            text: i18n.tr("Credits")
 
80
            onTriggered: pageStack.push(pageCredits)
 
81
        }
 
82
        Action {
 
83
            iconSource: Qt.resolvedUrl("../img/icons/book_alt_24x24.png")
 
84
            text: i18n.tr("License")
 
85
            onTriggered: pageStack.push(pageLicense)
 
86
        }
 
87
 
 
88
    }
 
89
}
 
90
 
 
91
 
 
92