485 lines
23 KiB
XML
485 lines
23 KiB
XML
<?xml version="1.0"?>
|
|
<interface>
|
|
<requires lib="gtk+" version="2.16"/>
|
|
<!-- interface-naming-policy project-wide -->
|
|
<object class="GtkListStore" id="liststore1"/>
|
|
<object class="GtkListStore" id="liststore2"/>
|
|
<object class="GtkListStore" id="liststore3"/>
|
|
<object class="GtkListStore" id="liststore4"/>
|
|
<object class="GtkListStore" id="liststore5"/>
|
|
<object class="GtkTreeStore" id="treestore1"/>
|
|
<object class="GtkListStore" id="liststore6"/>
|
|
<object class="GtkWindow" id="wndMain">
|
|
<property name="width_request">1024</property>
|
|
<property name="height_request">800</property>
|
|
<property name="title" translatable="yes">DHCP Tools</property>
|
|
<property name="resizable">False</property>
|
|
<property name="type_hint">dialog</property>
|
|
<signal name="destroy" handler="on_window_destroy"/>
|
|
<child>
|
|
<object class="GtkVBox" id="vbWnd">
|
|
<property name="height_request">800</property>
|
|
<property name="visible">True</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkMenuBar" id="menuMain">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="GtkMenuItem" id="menuFile">
|
|
<property name="visible">True</property>
|
|
<property name="label" translatable="yes">_File</property>
|
|
<property name="use_underline">True</property>
|
|
<child type="submenu">
|
|
<object class="GtkMenu" id="menu1">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="imagemenuitem1">
|
|
<property name="label">gtk-new</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="imagemenuitem2">
|
|
<property name="label">gtk-open</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="imagemenuitem3">
|
|
<property name="label">gtk-save</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="imagemenuitem4">
|
|
<property name="label">gtk-save-as</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSeparatorMenuItem" id="separatormenuitem1">
|
|
<property name="visible">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="imagemenuitem5">
|
|
<property name="label">gtk-quit</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkMenuItem" id="menuitem2">
|
|
<property name="visible">True</property>
|
|
<property name="label" translatable="yes">_Edit</property>
|
|
<property name="use_underline">True</property>
|
|
<child type="submenu">
|
|
<object class="GtkMenu" id="menu2">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="imagemenuitem6">
|
|
<property name="label">gtk-cut</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="imagemenuitem7">
|
|
<property name="label">gtk-copy</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="imagemenuitem8">
|
|
<property name="label">gtk-paste</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="imagemenuitem9">
|
|
<property name="label">gtk-delete</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkMenuItem" id="menuitem3">
|
|
<property name="visible">True</property>
|
|
<property name="label" translatable="yes">_View</property>
|
|
<property name="use_underline">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkMenuItem" id="menuHelp">
|
|
<property name="visible">True</property>
|
|
<property name="label" translatable="yes">_Help</property>
|
|
<property name="use_underline">True</property>
|
|
<child type="submenu">
|
|
<object class="GtkMenu" id="menu3">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="GtkImageMenuItem" id="imagemenuitem10">
|
|
<property name="label">gtk-about</property>
|
|
<property name="visible">True</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="use_stock">True</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkToolbar" id="tbMain">
|
|
<property name="visible">True</property>
|
|
<property name="toolbar_style">both</property>
|
|
<property name="icon_size">4</property>
|
|
<property name="icon_size_set">True</property>
|
|
<child>
|
|
<object class="GtkToolButton" id="tblStart">
|
|
<property name="visible">True</property>
|
|
<property name="is_important">True</property>
|
|
<property name="label" translatable="yes">Start</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="stock_id">gtk-media-play</property>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="homogeneous">True</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkToolButton" id="Stop">
|
|
<property name="visible">True</property>
|
|
<property name="is_important">True</property>
|
|
<property name="label" translatable="yes">Stop</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="stock_id">gtk-media-stop</property>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="homogeneous">True</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">False</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkVBox" id="vbContent">
|
|
<property name="visible">True</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkTable" id="table1">
|
|
<property name="visible">True</property>
|
|
<property name="n_rows">2</property>
|
|
<property name="n_columns">4</property>
|
|
<property name="column_spacing">5</property>
|
|
<property name="row_spacing">5</property>
|
|
<child>
|
|
<object class="GtkLabel" id="lblMac">
|
|
<property name="width_request">15</property>
|
|
<property name="visible">True</property>
|
|
<property name="xalign">0</property>
|
|
<property name="label" translatable="yes">MAC起始地址:</property>
|
|
</object>
|
|
<packing>
|
|
<property name="x_padding">5</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkEntry" id="txtMacStart">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="invisible_char">●</property>
|
|
<property name="text" translatable="yes">06:01:02:00:00:01</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="right_attach">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label1">
|
|
<property name="visible">True</property>
|
|
<property name="xalign">0</property>
|
|
<property name="ypad">2</property>
|
|
<property name="label" translatable="yes">主机名前缀:</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">2</property>
|
|
<property name="right_attach">3</property>
|
|
<property name="x_padding">5</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkEntry" id="entry1">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="invisible_char">●</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">3</property>
|
|
<property name="right_attach">4</property>
|
|
<property name="x_padding">5</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="lblMac1">
|
|
<property name="visible">True</property>
|
|
<property name="xalign">0</property>
|
|
<property name="label" translatable="yes">DHCP 并发请求数:</property>
|
|
</object>
|
|
<packing>
|
|
<property name="top_attach">1</property>
|
|
<property name="bottom_attach">2</property>
|
|
<property name="x_padding">5</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSpinButton" id="sbReqNum">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="max_length">5</property>
|
|
<property name="invisible_char">●</property>
|
|
<property name="shadow_type">none</property>
|
|
<property name="climb_rate">1</property>
|
|
<property name="snap_to_ticks">True</property>
|
|
<property name="numeric">True</property>
|
|
<property name="wrap">True</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">1</property>
|
|
<property name="right_attach">2</property>
|
|
<property name="top_attach">1</property>
|
|
<property name="bottom_attach">2</property>
|
|
<property name="y_padding">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label3">
|
|
<property name="visible">True</property>
|
|
<property name="xalign">0</property>
|
|
<property name="ypad">2</property>
|
|
<property name="label" translatable="yes">VNI 起始值:</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">2</property>
|
|
<property name="right_attach">3</property>
|
|
<property name="top_attach">1</property>
|
|
<property name="bottom_attach">2</property>
|
|
<property name="x_padding">5</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSpinButton" id="sbVni">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="max_length">5</property>
|
|
<property name="invisible_char">●</property>
|
|
<property name="shadow_type">none</property>
|
|
<property name="climb_rate">1</property>
|
|
<property name="snap_to_ticks">True</property>
|
|
<property name="numeric">True</property>
|
|
<property name="wrap">True</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">3</property>
|
|
<property name="right_attach">4</property>
|
|
<property name="top_attach">1</property>
|
|
<property name="bottom_attach">2</property>
|
|
<property name="x_padding">5</property>
|
|
<property name="y_padding">2</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">False</property>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkScrolledWindow" id="scrolledwindow2">
|
|
<property name="height_request">200</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="border_width">1</property>
|
|
<property name="resize_mode">immediate</property>
|
|
<property name="hscrollbar_policy">automatic</property>
|
|
<child>
|
|
<object class="GtkTreeView" id="treeResult">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="model">liststore1</property>
|
|
<property name="enable_grid_lines">both</property>
|
|
<child>
|
|
<object class="GtkTreeViewColumn" id="tvcIndex">
|
|
<property name="min_width">120</property>
|
|
<property name="title">VNI</property>
|
|
<property name="alignment">0.5</property>
|
|
<child>
|
|
<object class="GtkCellRendererText" id="crVni"/>
|
|
<attributes>
|
|
<attribute name="text">0</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkTreeViewColumn" id="tvcMac">
|
|
<property name="resizable">True</property>
|
|
<property name="min_width">120</property>
|
|
<property name="title">MAC</property>
|
|
<property name="alignment">0.5</property>
|
|
<child>
|
|
<object class="GtkCellRendererText" id="clMac"/>
|
|
<attributes>
|
|
<attribute name="text">1</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkTreeViewColumn" id="tvcDiscover">
|
|
<property name="min_width">120</property>
|
|
<property name="title">Discover</property>
|
|
<property name="alignment">0.5</property>
|
|
<child>
|
|
<object class="GtkCellRendererText" id="clDiscover"/>
|
|
<attributes>
|
|
<attribute name="text">2</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkTreeViewColumn" id="tvcOffer">
|
|
<property name="min_width">120</property>
|
|
<property name="title">Offer</property>
|
|
<property name="alignment">0.5</property>
|
|
<child>
|
|
<object class="GtkCellRendererText" id="clOffer"/>
|
|
<attributes>
|
|
<attribute name="text">3</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkTreeViewColumn" id="tvcRequest">
|
|
<property name="min_width">120</property>
|
|
<property name="title">Request</property>
|
|
<property name="alignment">0.5</property>
|
|
<child>
|
|
<object class="GtkCellRendererText" id="clRequest"/>
|
|
<attributes>
|
|
<attribute name="text">4</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkTreeViewColumn" id="tvcAck">
|
|
<property name="min_width">120</property>
|
|
<property name="title">ACK</property>
|
|
<property name="alignment">0.5</property>
|
|
<child>
|
|
<object class="GtkCellRendererText" id="crAck"/>
|
|
<attributes>
|
|
<attribute name="text">5</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkScrolledWindow" id="scLogPanel">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="border_width">1</property>
|
|
<property name="hscrollbar_policy">automatic</property>
|
|
<child>
|
|
<object class="GtkTextView" id="textview1">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="pack_type">end</property>
|
|
<property name="position">2</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="position">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkStatusbar" id="statusbar1">
|
|
<property name="visible">True</property>
|
|
<property name="spacing">2</property>
|
|
<child>
|
|
<object class="GtkLabel" id="label2">
|
|
<property name="visible">True</property>
|
|
<property name="label" translatable="yes">label</property>
|
|
</object>
|
|
<packing>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">False</property>
|
|
<property name="position">3</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<object class="GtkLabel" id="label1">
|
|
<property name="visible">True</property>
|
|
<property name="label" translatable="yes">label</property>
|
|
</object>
|
|
</interface>
|