summaryrefslogtreecommitdiff
path: root/ui/xmleditor.ui
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2019-04-14 17:31:41 -0400
committerCole Robinson <crobinso@redhat.com>2019-06-13 07:13:43 -0400
commit18af72212b1174290a7c5374674486a41be9633e (patch)
tree51ebf3c650195f9e1a76067e215c2334acb6ef4d /ui/xmleditor.ui
parentc88e49233162ccd5ebc5f986a333c9b45e9cbc01 (diff)
downloadvirt-manager-18af72212b1174290a7c5374674486a41be9633e.tar.gz
xmleditor: Add the shared code
The XML editor ui is a two tabbed notebook, one 'Details' tab and one 'XML' tab. The latter has a gtksourceview and allows editing the raw libvirt XML for whatever the selected object is. API users will programmatically insert the xmleditor notebook into their UI, with the existing UI under the details tab.
Diffstat (limited to 'ui/xmleditor.ui')
-rw-r--r--ui/xmleditor.ui85
1 files changed, 85 insertions, 0 deletions
diff --git a/ui/xmleditor.ui b/ui/xmleditor.ui
new file mode 100644
index 00000000..8003fca7
--- /dev/null
+++ b/ui/xmleditor.ui
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.22.1 -->
+<interface>
+ <requires lib="gtk+" version="3.22"/>
+ <object class="GtkNotebook" id="xml-notebook">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="border_width">0</property>
+ <property name="show_border">False</property>
+ <child>
+ <object class="GtkBox" id="xml-details-box">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">6</property>
+ <property name="margin_top">6</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="label" translatable="yes">_Details</property>
+ <property name="use_underline">True</property>
+ <child internal-child="accessible">
+ <object class="AtkObject">
+ <property name="AtkObject::accessible-name">Details tab</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="tab_fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="xml-box">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">6</property>
+ <property name="margin_top">6</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkScrolledWindow" id="xml-scroll">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="shadow_type">in</property>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child type="tab">
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="tooltip_text">Edit libvirt XML</property>
+ <property name="label" translatable="yes">_XML</property>
+ <property name="use_underline">True</property>
+ <child internal-child="accessible">
+ <object class="AtkObject">
+ <property name="AtkObject::accessible-name">XML tab</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ <property name="tab_fill">False</property>
+ </packing>
+ </child>
+ </object>
+</interface>