summaryrefslogtreecommitdiff
path: root/Diagram.qml
diff options
context:
space:
mode:
Diffstat (limited to 'Diagram.qml')
-rw-r--r--Diagram.qml12
1 files changed, 7 insertions, 5 deletions
diff --git a/Diagram.qml b/Diagram.qml
index a320881..21f0a53 100644
--- a/Diagram.qml
+++ b/Diagram.qml
@@ -46,7 +46,7 @@ Item {
onSinkInfoChanged: {
console.log("onSinkInfoChanged " + sinkinfo.index + " Volume " + sinkinfo.volume);
Code.savePASinkInfo(sinkinfo);
- architectureDiagram.requestPaint();
+ architectureDiagram.requestPaint();
audiomanagerChart.updateData(sinkinfo.name, sinkinfo.index, sinkinfo.volume);
sinkInfoProcessed(0, sinkinfo.index);
@@ -262,12 +262,13 @@ Item {
id: audiomanagerChart
graphName : "AudiomanagerChart"
title: "Sinks of GENIVIĀ® Audio Manager"
- description: "AM's Sink volume changes by Control Plugin"
+ description: "AM's Sink volume changes by Control Plugin"
anchors.fill: parent
defaultValue : 0
maxDataLength: 100
width: parent.width
height: parent.height
+ type: Code.GraphType.CONTINUOUS_LINE
}
}
@@ -281,13 +282,14 @@ Item {
Graph {
id: pulseaudioChart
title: "Sink Inputs of PulseAudio"
- description: "PA's Sink Input volume changes"
+ description: "PA's Sink Input volume changes"
anchors.fill: parent
graphName : "PulseAudioChart"
defaultValue : 0
maxDataLength: 100
width: parent.width
height: parent.height
+ type: Code.GraphType.TRANSIENT_LINE
}
}
@@ -570,7 +572,7 @@ Item {
}
);
ctx.save();
- ctx.strokeStyle = Code.getGraphNodeData("AudiomanagerChart", sink.name).color;
+ ctx.strokeStyle = audiomanagerChart.getGraphNodeColor(sink.name);
ctx.beginPath();
ctx.moveTo(tx+tw, ty+(th+th/4)*i+th/2);
ctx.lineTo(tx+tw+tw*2/5, ty+(th+th/4)*i+th/2);
@@ -626,7 +628,7 @@ Item {
var sink = Code.paSinks[j];
if(sink.index == client.sinkInput.sinkIndex) {
ctx.fillText(" Stream idx: "+sinkInput.index, tx+tw,ty+(th+th/4)*i+th/2);
- ctx.strokeStyle = Code.getGraphNodeColor("PulseAudioChart", client.sinkInput.role);
+ ctx.strokeStyle = pulseaudioChart.getGraphNodeColor(client.sinkInput.role);
ctx.beginPath();
ctx.moveTo(tx+tw,ty+(th+th/4)*i+th/2);
ctx.lineTo(sinkJCX, sinkJCY+(sinkH+sinkH/4)*j+sinkH/2);