mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
visualizer-view: add SpVisualizerView
This adds a new helper widget SpVisualizerView to simplify using visualizers from applications using libsysprof-ui-2 such as Builder. We can manage the view range, zoom, etc from this widget going forward.
This commit is contained in:
@ -7,5 +7,6 @@
|
||||
<file compressed="true">ui/sp-process-model-row.ui</file>
|
||||
<file compressed="true">ui/sp-profiler-menu-button.ui</file>
|
||||
<file compressed="true">ui/sp-recording-state-view.ui</file>
|
||||
<file compressed="true">ui/sp-visualizer-view.ui</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
|
||||
29
lib/resources/ui/sp-visualizer-view.ui
Normal file
29
lib/resources/ui/sp-visualizer-view.ui
Normal file
@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<template class="SpVisualizerView" parent="GtkBin">
|
||||
<child>
|
||||
<object class="GtkOverlay">
|
||||
<property name="visible">true</property>
|
||||
<child type="overlay">
|
||||
<object class="SpVisualizerTicks" id="ticks">
|
||||
<property name="valign">start</property>
|
||||
<property name="hexpand">true</property>
|
||||
<property name="visible">true</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScrolledWindow">
|
||||
<property name="visible">true</property>
|
||||
<property name="min-content-height">75</property>
|
||||
<property name="propagate-natural-height">true</property>
|
||||
<child>
|
||||
<object class="SpVisualizerList" id="list">
|
||||
<property name="visible">true</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
Reference in New Issue
Block a user