180 lines
8.2 KiB
XML
180 lines
8.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- Generated with glade 3.18.3 -->
|
|
<interface>
|
|
<requires lib="gtk+" version="3.12"/>
|
|
<requires lib="vn" version="1.0"/>
|
|
<object class="VnSet" id="models">
|
|
<child>
|
|
<object class="VnModel" id="model-alias">
|
|
<property name="sql">SELECT id, alias FROM mail_alias</property>
|
|
<property name="update_flags">DB_MODEL_INSERT | DB_MODEL_DELETE | DB_MODEL_UPDATE</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="VnModel" id="model-child">
|
|
<property name="sql">SELECT parent, child FROM mail_alias_child WHERE #link</property>
|
|
<property name="update_flags">DB_MODEL_INSERT | DB_MODEL_DELETE | DB_MODEL_UPDATE</property>
|
|
<links>
|
|
<link field="mail_alias_child.parent" param="id" linked="True"/>
|
|
</links>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<object class="GtkBox" id="main">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkAlignment" id="alignment1">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="top_padding">8</property>
|
|
<property name="bottom_padding">8</property>
|
|
<property name="left_padding">6</property>
|
|
<property name="right_padding">6</property>
|
|
<child>
|
|
<object class="GtkBox" id="box3">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="spacing">5</property>
|
|
<property name="homogeneous">True</property>
|
|
<child>
|
|
<object class="GtkBox" id="box1">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">8</property>
|
|
<child>
|
|
<object class="GtkScrolledWindow" id="scrolledwindow1">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="shadow_type">in</property>
|
|
<child>
|
|
<object class="VnGrid" id="grid-alias">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="headers_clickable">False</property>
|
|
<property name="data_model">model-alias</property>
|
|
<child internal-child="selection">
|
|
<object class="GtkTreeSelection" id="grid-selection"/>
|
|
</child>
|
|
<child>
|
|
<object class="VnColumnEntry" id="column-alias">
|
|
<property name="title" translatable="yes">Alias</property>
|
|
<property name="column_name">alias</property>
|
|
<property name="editable">True</property>
|
|
<child internal-child="cell">
|
|
<object class="GtkCellRendererText" id="column-entry-cell1"/>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="VnHandler" id="handler1">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="iterator">grid-alias</property>
|
|
<property name="show_flags">VN_HANDLER_SHOW_REFRESH | VN_HANDLER_SHOW_SAVE | VN_HANDLER_SHOW_REMOVE | VN_HANDLER_SHOW_ADD</property>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="box2">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="spacing">8</property>
|
|
<child>
|
|
<object class="GtkScrolledWindow" id="scrolledwindow2">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="shadow_type">in</property>
|
|
<child>
|
|
<object class="VnGrid" id="grid-child">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="headers_clickable">False</property>
|
|
<property name="data_model">model-child</property>
|
|
<child internal-child="selection">
|
|
<object class="GtkTreeSelection" id="grid-selection1"/>
|
|
</child>
|
|
<child>
|
|
<object class="VnColumnCombo" id="column-child">
|
|
<property name="sizing">autosize</property>
|
|
<property name="title" translatable="yes">Children</property>
|
|
<property name="column_name">child</property>
|
|
<property name="editable">True</property>
|
|
<property name="data_model">model-alias</property>
|
|
<child internal-child="cell">
|
|
<object class="GtkCellRendererCombo" id="column-combo-cell1"/>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="VnHandler" id="handler2">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="iterator">grid-child</property>
|
|
<property name="show_flags">VN_HANDLER_SHOW_SAVE | VN_HANDLER_SHOW_REMOVE | VN_HANDLER_SHOW_ADD</property>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">False</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">True</property>
|
|
<property name="fill">True</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<object class="VnSet" id="params">
|
|
<child>
|
|
<object class="DbParam" id="id">
|
|
<property name="iterator">grid-alias</property>
|
|
<property name="column_name">id</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|