|
|
|
package definitions
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
add(`Dialog`, &defDialog{})
|
|
|
|
}
|
|
|
|
|
|
|
|
type defDialog struct{}
|
|
|
|
|
|
|
|
func (*defDialog) String() string {
|
|
|
|
return `
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!-- Generated with glade 3.20.0 -->
|
|
|
|
<interface>
|
|
|
|
<requires lib="gtk+" version="3.20"/>
|
|
|
|
<object class="GtkWindow" id="window">
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="title">Subgraph Firewall</property>
|
|
|
|
<property name="window_position">center</property>
|
|
|
|
<property name="default_width">600</property>
|
|
|
|
<property name="default_height">400</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkBox" id="box1">
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="vexpand">True</property>
|
|
|
|
<property name="orientation">vertical</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkStack" id="toplevel_stack">
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="margin_bottom">5</property>
|
|
|
|
<property name="transition_duration">1000</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkNotebook" id="rulesnotebook">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">True</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="vexpand">True</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkScrolledWindow" id="swRulesPermanent">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">True</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="vexpand">True</property>
|
|
|
|
<property name="hscrollbar_policy">never</property>
|
|
|
|
<property name="shadow_type">in</property>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="tab_expand">True</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child type="tab">
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="label" translatable="yes">Permanent</property>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="tab_expand">True</property>
|
|
|
|
<property name="tab_fill">False</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkScrolledWindow" id="swRulesSession">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">True</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="vexpand">True</property>
|
|
|
|
<property name="hscrollbar_policy">never</property>
|
|
|
|
<property name="shadow_type">in</property>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="position">1</property>
|
|
|
|
<property name="tab_expand">True</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child type="tab">
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="label" translatable="yes">Session</property>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="position">1</property>
|
|
|
|
<property name="tab_expand">True</property>
|
|
|
|
<property name="tab_fill">False</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkScrolledWindow" id="swRulesProcess">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">True</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="vexpand">True</property>
|
|
|
|
<property name="hscrollbar_policy">never</property>
|
|
|
|
<property name="shadow_type">in</property>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="position">2</property>
|
|
|
|
<property name="tab_expand">True</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child type="tab">
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="label" translatable="yes">Process</property>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="position">2</property>
|
|
|
|
<property name="tab_expand">True</property>
|
|
|
|
<property name="tab_fill">False</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkScrolledWindow" id="swRulesSystem">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">True</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="vexpand">True</property>
|
|
|
|
<property name="hscrollbar_policy">never</property>
|
|
|
|
<property name="shadow_type">in</property>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="position">3</property>
|
|
|
|
<property name="tab_expand">True</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child type="tab">
|
|
|
|
<object class="GtkLabel">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="label" translatable="yes">System</property>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="position">3</property>
|
|
|
|
<property name="tab_expand">True</property>
|
|
|
|
<property name="tab_fill">False</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="name">page0</property>
|
|
|
|
<property name="title" translatable="yes">Rules</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkGrid" id="grid1">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="margin_left">10</property>
|
|
|
|
<property name="margin_right">10</property>
|
|
|
|
<property name="margin_top">10</property>
|
|
|
|
<property name="margin_bottom">10</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="vexpand">True</property>
|
|
|
|
<property name="row_spacing">5</property>
|
|
|
|
<property name="column_homogeneous">True</property>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="label1">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="halign">start</property>
|
|
|
|
<property name="margin_top">10</property>
|
|
|
|
<property name="margin_bottom">5</property>
|
|
|
|
<property name="label" translatable="yes">Prompt</property>
|
|
|
|
<property name="ellipsize">start</property>
|
|
|
|
<attributes>
|
|
|
|
<attribute name="weight" value="bold"/>
|
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="left_attach">0</property>
|
|
|
|
<property name="top_attach">3</property>
|
|
|
|
<property name="width">2</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="label5">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="halign">start</property>
|
|
|
|
<property name="margin_bottom">5</property>
|
|
|
|
<property name="label" translatable="yes">Logging</property>
|
|
|
|
<property name="ellipsize">start</property>
|
|
|
|
<attributes>
|
|
|
|
<attribute name="weight" value="bold"/>
|
|
|
|
</attributes>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="left_attach">0</property>
|
|
|
|
<property name="top_attach">0</property>
|
|
|
|
<property name="width">2</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="label3">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="halign">start</property>
|
|
|
|
<property name="margin_left">10</property>
|
|
|
|
<property name="label" translatable="yes">Daemon Log Level:</property>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="left_attach">0</property>
|
|
|
|
<property name="top_attach">1</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkComboBoxText" id="level_combo">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="active">0</property>
|
|
|
|
<items>
|
|
|
|
<item id="error" translatable="yes">Error</item>
|
|
|
|
<item id="warning" translatable="yes">Warning</item>
|
|
|
|
<item id="notice" translatable="yes">Notice</item>
|
|
|
|
<item id="info" translatable="yes">Info</item>
|
|
|
|
<item id="debug" translatable="yes">Debug</item>
|
|
|
|
</items>
|
|
|
|
<signal name="changed" handler="on_level_combo_changed" swapped="no"/>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="left_attach">1</property>
|
|
|
|
<property name="top_attach">1</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkCheckButton" id="redact_checkbox">
|
|
|
|
<property name="label" translatable="yes">Remove host names and addresses from logs</property>
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">True</property>
|
|
|
|
<property name="receives_default">False</property>
|
|
|
|
<property name="halign">start</property>
|
|
|
|
<property name="margin_left">10</property>
|
|
|
|
<property name="draw_indicator">True</property>
|
|
|
|
<signal name="toggled" handler="on_redact_checkbox_toggled" swapped="no"/>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="left_attach">0</property>
|
|
|
|
<property name="top_attach">2</property>
|
|
|
|
<property name="width">2</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkCheckButton" id="expanded_checkbox">
|
|
|
|
<property name="label" translatable="yes">Always expand event prompt</property>
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">True</property>
|
|
|
|
<property name="receives_default">False</property>
|
|
|
|
<property name="halign">start</property>
|
|
|
|
<property name="margin_left">10</property>
|
|
|
|
<property name="draw_indicator">True</property>
|
|
|
|
<signal name="toggled" handler="on_expanded_checkbox_toggled" swapped="no"/>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="left_attach">0</property>
|
|
|
|
<property name="top_attach">4</property>
|
|
|
|
<property name="width">2</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkCheckButton" id="expert_checkbox">
|
|
|
|
<property name="label" translatable="yes">Show expert options in event prompt</property>
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">True</property>
|
|
|
|
<property name="receives_default">False</property>
|
|
|
|
<property name="halign">start</property>
|
|
|
|
<property name="margin_left">10</property>
|
|
|
|
<property name="draw_indicator">True</property>
|
|
|
|
<signal name="toggled" handler="on_expert_checkbox_toggled" swapped="no"/>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="left_attach">0</property>
|
|
|
|
<property name="top_attach">5</property>
|
|
|
|
<property name="width">2</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="label2">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="halign">start</property>
|
|
|
|
<property name="margin_left">10</property>
|
|
|
|
<property name="label" translatable="yes">Default Scope:</property>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="left_attach">0</property>
|
|
|
|
<property name="top_attach">6</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkComboBoxText" id="action_combo">
|
|
|
|
<property name="visible">True</property>
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="hexpand">True</property>
|
|
|
|
<property name="active">0</property>
|
|
|
|
<items>
|
|
|
|
<item id="FOREVER" translatable="yes">Forever</item>
|
|
|
|
<item id="SESSION" translatable="yes">Session</item>
|
|
|
|
<item id="PROCESS" translatable="yes">Process</item>
|
|
|
|
<item id="ONCE" translatable="yes">Once</item>
|
|
|
|
</items>
|
|
|
|
<signal name="changed" handler="on_action_combo_changed" swapped="no"/>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="left_attach">1</property>
|
|
|
|
<property name="top_attach">6</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="name">page1</property>
|
|
|
|
<property name="title" translatable="yes">Options</property>
|
|
|
|
<property name="position">1</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
<packing>
|
|
|
|
<property name="expand">False</property>
|
|
|
|
<property name="fill">True</property>
|
|
|
|
<property name="position">0</property>
|
|
|
|
</packing>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child type="titlebar">
|
|
|
|
<object class="GtkHeaderBar" id="headerbar">
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="show_close_button">True</property>
|
|
|
|
<property name="decoration_layout">:minimize,maximize,close</property>
|
|
|
|
<child type="title">
|
|
|
|
<object class="GtkStackSwitcher" id="stack_switcher">
|
|
|
|
<property name="can_focus">False</property>
|
|
|
|
<property name="icon_size">2</property>
|
|
|
|
<property name="stack">toplevel_stack</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</interface>
|
|
|
|
|
|
|
|
`
|
|
|
|
}
|