~josephjamesmills/mythbuntu/mythtv-qml

« back to all changes in this revision

Viewing changes to programs/build-Mythbuntu-QML-Desktop-Debug/qml/Mythbuntu-QML/themes/Mythbuntu/InfoCenter.qml

  • Committer: Joseph Mills
  • Date: 2013-07-10 17:59:50 UTC
  • Revision ID: josephjamesmills@gmail.com-20130710175950-3xye623izda9ro1b
autopush for help with zeroconf 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 2.0
 
2
import "common"
 
3
import MythTv 1.0
 
4
import "InfoCenter"
 
5
Image {
 
6
    id: mediaLibRoot
 
7
    width:parent.width
 
8
    height: parent.height
 
9
    source: "background.png"
 
10
    BorderImage {
 
11
        id: watermark
 
12
        source: "watermark/settings.png"
 
13
        anchors.fill:mediaLibRoot
 
14
        width: parent.width
 
15
        height: parent.height
 
16
    }
 
17
    Flickable{
 
18
        width: parent.width
 
19
        height: parent.height
 
20
        flickableDirection: Flickable.VerticalFlick
 
21
        contentHeight:  mediaLibRoot.height
 
22
        Column{
 
23
            spacing:2
 
24
            width: parent.width
 
25
            height: parent.height /1.2
 
26
            y: parent.height  / 6
 
27
 
 
28
            MButton{
 
29
                id: mediaLib
 
30
                buttonHeight: focus === true ? parent.height / 7.7 : parent.height / 8
 
31
                buttonWidth: focus === true ? parent.width : parent.width / 1.7
 
32
                name: "System Status "
 
33
                MouseArea{anchors.fill: mediaLib
 
34
                    onClicked: {
 
35
                        infoLoader.source = "InfoCenter/Info.qml"
 
36
                        infoLoader.opacity = 1
 
37
                    }
 
38
                }
 
39
            }
 
40
        }
 
41
    }
 
42
    Text {
 
43
        id: time
 
44
        color: "grey"
 
45
        text: Qt.formatDateTime(new Date(),"ddd MMMM d yyyy , hh:mm ap")
 
46
        font.pixelSize:  parent.width / 30
 
47
        anchors{
 
48
            bottom:parent.bottom
 
49
            bottomMargin: bkgRoot.height / 20
 
50
            right: parent.right
 
51
            rightMargin: 12
 
52
        }
 
53
    }
 
54
    Loader{
 
55
        id: infoLoader
 
56
        anchors.fill: parent
 
57
        source: ""
 
58
        opacity:  0
 
59
        Behavior on opacity {
 
60
            NumberAnimation {
 
61
                target: infoLoader
 
62
                property: "scale"
 
63
                from:0
 
64
                to:1
 
65
                duration: 1800
 
66
                easing.type: Easing.OutBounce
 
67
            }
 
68
        }
 
69
    }
 
70
    BackButton{
 
71
        id: backaroo
 
72
        backButtonWidth: parent.width / 6
 
73
        backButtionHeight:  parent.width / 6
 
74
        iconSource: "../../artwork/mythbuntu.png"
 
75
        backButtonsmooth: false
 
76
        MouseArea{
 
77
            anchors.fill: backaroo
 
78
            onClicked:{
 
79
                infoLoader.source = "StartHere.qml"
 
80
                infoLoader.opacity = 1
 
81
                pageLoader.source = ""
 
82
 
 
83
                pageLoader.opacity = 0
 
84
                mediaLibRoot.opacity = 0
 
85
            }
 
86
        }
 
87
    }
 
88
}