summaryrefslogtreecommitdiff
path: root/main.qml
blob: 677cd031e6c9cd0e7a0594b703a799176652ac6c (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
98
99
import QtQuick 2.1
import QtQuick.Window 2.0

Rectangle {
    id: root
    //color: "lightgray"
    width: 1024
    height: 768

/* XXX for next phase
    VisualItemModel {
        id: itemModel
        Rectangle {
            width: view.width; height: view.height
            Diagram {
                //width:  1024*parent.height/768
                //height: 768*width/1024
                anchors.fill: parent
                anchors.horizontalCenter: parent.horizontalCenter
            }
        }
        Rectangle {
            width: view.width; height: view.height
            color: "#F0FFF7"
            Text { text: "Policy Rule File Viewer"; font.bold: true; anchors.centerIn: parent }
        }
    }
*/

    Rectangle {
        id: topMenu
        //color: "lightGray"
        width: parent.width
        height: parent.height/12
        Image {
            height: parent.height*2/3
            fillMode: Image.PreserveAspectFit
            source: "images/windriver-logo.png"
            anchors.verticalCenter: parent.verticalCenter
        }
        Text {
            text: "GENIVIĀ® Audio Manager Monitor"
            anchors.right: parent.right
            font.pointSize: parent.height / 3
            anchors.verticalCenter: parent.verticalCenter
            anchors.rightMargin: parent.width/40

        }
    }
    Diagram {
	anchors.top: topMenu.bottom
	//width:  1024*parent.height/768
	//height: 768*width/1024
	width:  parent.width
	height: parent.height * 11/12
	anchors.horizontalCenter: parent.horizontalCenter
    }

/* XXX for next phase
    ListView {
        id: view
        anchors { fill: parent; bottomMargin: pageIndexer.height ; topMargin: topMenu.height}
        model: itemModel
        preferredHighlightBegin: 0; preferredHighlightEnd: 0
        highlightRangeMode: ListView.StrictlyEnforceRange
        orientation: ListView.Horizontal
        snapMode: ListView.SnapOneItem; flickDeceleration: 2000
    }

    Rectangle {
        id: pageIndexer
        width: parent.width; height: parent.height/25
        //anchors { top: view.bottom; bottom: parent.bottom }
        //color: "gray"
        anchors.bottom: parent.bottom

        Row {
            anchors.centerIn: parent
            spacing: 20

            Repeater {
                model: itemModel.count

                Rectangle {
                    width: 5; height: 5
                    radius: 3
                    color: view.currentIndex == index ? "black" : "darkGray"

                    MouseArea {
                        width: 20; height: 20
                        anchors.centerIn: parent
                        onClicked: view.currentIndex = index
                    }
                }
            }
        }
    }
*/
}