~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/Recordings/RecordingOptionsBool.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  MythTv 1.0
 
3
Rectangle{
 
4
    property string name: boolOText.text
 
5
    property string nameColor: boolOText.color
 
6
    property bool checked :checkBox.clicked
 
7
    id:boolORec
 
8
    width: parent.width
 
9
    height: parent.height
 
10
    radius: 0
 
11
    border.color: "#55FFFFFF"
 
12
    border.width: 1
 
13
    gradient: Gradient {
 
14
        GradientStop { position: 0; color: "#12000000"}
 
15
        GradientStop { position: 0.5; color: "#44808080"}
 
16
        GradientStop { position: 1; color: "#12000000"}
 
17
    }
 
18
    x: status === Rectangle.Ready ? 0 : 1
 
19
    Behavior on x {NumberAnimation{from: parent.width * 2; to: 0 ;duration:  1600 ;easing.type: Easing.OutQuint}}
 
20
    Text {
 
21
        id: boolOText
 
22
        color: nameColor
 
23
        font.pixelSize: boolORec.height / 4
 
24
        text: name
 
25
        anchors{
 
26
            left: boolORec.left
 
27
            leftMargin: boolORec.width / 20
 
28
            verticalCenter: boolORec.verticalCenter
 
29
        }
 
30
    }
 
31
 
 
32
 
 
33
    Image{
 
34
        id: boolOButtonRec
 
35
        width: parent.width / 20
 
36
        height:  parent.height / 2
 
37
        source: "../shared/checkbox_background_selected.png"
 
38
        anchors{
 
39
            right: parent.right
 
40
            rightMargin: parent.width / 12.5
 
41
            verticalCenter: boolORec.verticalCenter
 
42
 
 
43
        }
 
44
        MythButton {
 
45
        id: checkBox
 
46
        anchors.fill: boolOButtonRec
 
47
        property bool clicked : false
 
48
        onButtonClick:  clicked = !clicked
 
49
    }
 
50
        Image{
 
51
            id:boolOButton
 
52
            source: "../shared/checkbox_fullcheck.png"
 
53
            visible: checkBox.clicked === true ? true : false
 
54
            anchors{
 
55
                fill: checkBox
 
56
            }
 
57
        }
 
58
 
 
59
}
 
60
}