summaryrefslogtreecommitdiffstats
path: root/examples/helloprezo/HelloPrezo.qml
blob: 6e56ce59f6f9a2ebeada15dd271671fabd503659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import Prezo 1.0
import QtQuick 2.0

Presentation
{
    width: 800
    height: 600


    Slide {
        fontScale: 2
        centeredText: "Click to walk through intro!"
    }


    Slide {
        id: areaSlide
        title: "Title Text - Bullet points"
        content: [
            "Bullet points",
            "Should be short",
            "And to the point"
        ]
        Rectangle {
            x: areaSlide.contentX
            y: areaSlide.contentY
            width: areaSlide.contentWidth
            height: areaSlide.contentHeight

            color: Qt.rgba(0, 0, 0, 0.1)

            Text {
                text: "Dedicated content area"
                anchors.centerIn: parent
            }
        }
    }


    Slide {
        title: "Title Text - Centered Text"
        centeredText: "And this is some centered text..."
    }


    Slide {
        title: "Text is relative to presentation height"
        content: [
            "Which means you don't need to worry about it",
            "Bullet points wraps around on the edges, regardless of how long they are, like this. Even if you should choose to use a very long bullet point (which would distract your audience) it would still look ok'ish",
            "If you run out of height, you're out of luck though..."
        ]
    }


    Slide {
        centeredText: '<font color="red"><i>Use</i> rich text, <font color="blue">if <b>you</b> like...'
    }


    Slide {
        id: interactiveSlide

        title: "Embed Interactive Content"

        Rectangle {
            width: parent.height / 4
            height: width
            color: mouse.pressed ? "lightsteelblue" : "steelblue"
            anchors.centerIn: parent

            NumberAnimation on rotation { from: 0; to: 360; duration: 10000; loops: Animation.Infinite; running: visible }

            Text {
                text: "Click Me!"
                anchors.centerIn: parent
            }

            MouseArea {
                id: mouse
                anchors.fill: parent
            }
        }
    }


    Slide {
        centeredText: 'Hit "Esc" to fade out the current page if there are questions from the audience'
    }


    Slide {
        centeredText: "Now go make our own presentations\n\nEnjoy!"
    }


}