visualizers: discover visualizers from capture reader

The goal here is to avoid having to hard code what visualizers are shown
from the .ui files. We just should add things that we find are supported.

Long term, I think we'll add a concept of an "instrument" which is the
combination of a data source (SpSource) and a visualizer (SpVisualizerRow).

The other goal here is to enable the future support for discovering marks
and adding rows for each of those threads.
This commit is contained in:
Christian Hergert
2018-05-15 16:02:35 +01:00
parent 6da2a3be4b
commit 6fa2c270e8
2 changed files with 103 additions and 11 deletions

View File

@ -169,16 +169,6 @@
<object class="SpVisualizerView" id="visualizers">
<property name="visible">true</property>
<property name="zoom-manager">zoom_manager</property>
<child type="visualizer">
<object class="SpCpuVisualizerRow" id="cpu_row">
<property name="title" translatable="yes">CPU</property>
<property name="height-request">75</property>
<property name="selectable">false</property>
<property name="visible">true</property>
<property name="y-lower">0.0</property>
<property name="y-upper">100.0</property>
</object>
</child>
</object>
</child>
<child>