675 lines
31 KiB
XML
675 lines
31 KiB
XML
<?xml version="1.0"?>
|
|
<interface>
|
|
<requires lib="gtk+" version="2.16"/>
|
|
<!-- interface-naming-policy project-wide -->
|
|
<object class="GtkListStore" id="lsNicName">
|
|
<columns>
|
|
<!-- column-name cNicName -->
|
|
<column type="gchararray"/>
|
|
</columns>
|
|
</object>
|
|
<object class="GtkTreeStore" id="tsDhcpInfo">
|
|
<columns>
|
|
<!-- column-name cIndex -->
|
|
<column type="gchararray"/>
|
|
<!-- column-name cVni -->
|
|
<column type="guint"/>
|
|
<!-- column-name cMac -->
|
|
<column type="gchararray"/>
|
|
<!-- column-name cHostname -->
|
|
<column type="gchararray"/>
|
|
<!-- column-name cDiscover -->
|
|
<column type="gboolean"/>
|
|
<!-- column-name cOffer -->
|
|
<column type="gboolean"/>
|
|
<!-- column-name cRequest -->
|
|
<column type="gboolean"/>
|
|
<!-- column-name cAck -->
|
|
<column type="gboolean"/>
|
|
<!-- column-name cResult -->
|
|
<column type="gchararray"/>
|
|
<!-- column-name cRltPrgess -->
|
|
<column type="gfloat"/>
|
|
<!-- column-name cAttrPrgTest -->
|
|
<column type="gboolean"/>
|
|
<!-- column-name cAttrVisialbe -->
|
|
<column type="gboolean"/>
|
|
</columns>
|
|
</object>
|
|
<object class="GtkWindow" id="wndMain">
|
|
<property name="width_request">1024</property>
|
|
<property name="height_request">768</property>
|
|
<child>
|
|
<object class="GtkVBox" id="vbWnd">
|
|
<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="menuitem1">
|
|
<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="menuitem4">
|
|
<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>
|
|
<child>
|
|
<object class="GtkToolButton" id="tbStart">
|
|
<property name="visible">True</property>
|
|
<property name="is_important">True</property>
|
|
<property name="label" translatable="yes">开始</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="tbStop">
|
|
<property name="visible">True</property>
|
|
<property name="sensitive">False</property>
|
|
<property name="is_important">True</property>
|
|
<property name="label" translatable="yes">停止</property>
|
|
<property name="stock_id">gtk-media-stop</property>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="homogeneous">True</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSeparatorToolItem" id="toolbutton1">
|
|
<property name="visible">True</property>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="homogeneous">True</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkToggleToolButton" id="tbExpand">
|
|
<property name="visible">True</property>
|
|
<property name="label" translatable="yes">展开</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="stock_id">gtk-unindent</property>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="homogeneous">True</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkToolButton" id="tbCleanup">
|
|
<property name="visible">True</property>
|
|
<property name="label" translatable="yes">清除</property>
|
|
<property name="use_underline">True</property>
|
|
<property name="stock_id">gtk-delete</property>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="homogeneous">True</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSeparatorToolItem" id="toolbutton2">
|
|
<property name="visible">True</property>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="homogeneous">True</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkVBox" id="vbSetting">
|
|
<property name="visible">True</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkFrame" id="frame1">
|
|
<property name="visible">True</property>
|
|
<property name="border_width">5</property>
|
|
<property name="label_xalign">0</property>
|
|
<child>
|
|
<object class="GtkTable" id="table1">
|
|
<property name="visible">True</property>
|
|
<property name="border_width">5</property>
|
|
<property name="n_rows">2</property>
|
|
<property name="n_columns">6</property>
|
|
<property name="column_spacing">5</property>
|
|
<property name="row_spacing">5</property>
|
|
<child>
|
|
<object class="GtkLabel" id="label2">
|
|
<property name="visible">True</property>
|
|
<property name="xalign">0</property>
|
|
<property name="label" translatable="yes">MAC起始地址:</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label4">
|
|
<property name="visible">True</property>
|
|
<property name="xalign">0</property>
|
|
<property name="label" translatable="yes">主机名前缀:</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">2</property>
|
|
<property name="right_attach">3</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="GtkEntry" id="txtHostname">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="invisible_char">●</property>
|
|
<property name="text" translatable="yes">hostname</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">3</property>
|
|
<property name="right_attach">4</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label7">
|
|
<property name="visible">True</property>
|
|
<property name="xalign">0</property>
|
|
<property name="label" translatable="yes">网卡:</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">4</property>
|
|
<property name="right_attach">5</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkComboBox" id="cbNicName">
|
|
<property name="width_request">64</property>
|
|
<property name="visible">True</property>
|
|
<property name="model">lsNicName</property>
|
|
<child>
|
|
<object class="GtkCellRendererText" id="cellrenderertext5"/>
|
|
<attributes>
|
|
<attribute name="text">0</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">5</property>
|
|
<property name="right_attach">6</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label8">
|
|
<property name="visible">True</property>
|
|
<property name="xalign">0</property>
|
|
<property name="label" translatable="yes">VNI客户端数:</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">4</property>
|
|
<property name="right_attach">5</property>
|
|
<property name="top_attach">1</property>
|
|
<property name="bottom_attach">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSpinButton" id="sbVniClient">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="invisible_char">●</property>
|
|
</object>
|
|
<packing>
|
|
<property name="left_attach">5</property>
|
|
<property name="right_attach">6</property>
|
|
<property name="top_attach">1</property>
|
|
<property name="bottom_attach">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSpinButton" id="sbVni">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="invisible_char">●</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>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkSpinButton" id="sbReqNum">
|
|
<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="top_attach">1</property>
|
|
<property name="bottom_attach">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label3">
|
|
<property name="visible">True</property>
|
|
<property name="xalign">0</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>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="label5">
|
|
<property name="visible">True</property>
|
|
<property name="xalign">0</property>
|
|
<property name="label" translatable="yes">VNI 起始值:</property>
|
|
</object>
|
|
<packing>
|
|
<property name="top_attach">1</property>
|
|
<property name="bottom_attach">2</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child type="label">
|
|
<object class="GtkLabel" id="label1">
|
|
<property name="visible">True</property>
|
|
<property name="xpad">5</property>
|
|
<property name="label" translatable="yes"><b> 参数设置 </b></property>
|
|
<property name="use_markup">True</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="position">2</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkScrolledWindow" id="sclTreeView">
|
|
<property name="height_request">400</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="border_width">5</property>
|
|
<property name="hscrollbar_policy">automatic</property>
|
|
<property name="vscrollbar_policy">automatic</property>
|
|
<child>
|
|
<object class="GtkTreeView" id="treeResult">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="model">tsDhcpInfo</property>
|
|
<property name="enable_grid_lines">both</property>
|
|
<child>
|
|
<object class="GtkTreeViewColumn" id="tvcIndex">
|
|
<property name="title">Index</property>
|
|
<property name="alignment">0.5</property>
|
|
<child>
|
|
<object class="GtkCellRendererText" id="cellrenderertext1"/>
|
|
<attributes>
|
|
<attribute name="text">0</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkTreeViewColumn" id="tvcVni">
|
|
<property name="visible">False</property>
|
|
<property name="title">VNI</property>
|
|
<property name="alignment">0.5</property>
|
|
<child>
|
|
<object class="GtkCellRendererText" id="cellrenderertext4"/>
|
|
<attributes>
|
|
<attribute name="text">1</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkTreeViewColumn" id="tvcMac">
|
|
<property name="title">MAC</property>
|
|
<property name="alignment">0.5</property>
|
|
<child>
|
|
<object class="GtkCellRendererText" id="cellrenderertext2"/>
|
|
<attributes>
|
|
<attribute name="visible">11</attribute>
|
|
<attribute name="text">2</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkTreeViewColumn" id="tvcHostname">
|
|
<property name="title">Hostname</property>
|
|
<property name="alignment">0.5</property>
|
|
<child>
|
|
<object class="GtkCellRendererText" id="cellrenderertext3"/>
|
|
<attributes>
|
|
<attribute name="visible">11</attribute>
|
|
<attribute name="text">3</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkTreeViewColumn" id="tvcDiscover">
|
|
<property name="sizing">fixed</property>
|
|
<property name="fixed_width">32</property>
|
|
<property name="title">D</property>
|
|
<property name="alignment">0.5</property>
|
|
<child>
|
|
<object class="GtkCellRendererToggle" id="crDiscover"/>
|
|
<attributes>
|
|
<attribute name="sensitive">10</attribute>
|
|
<attribute name="visible">11</attribute>
|
|
<attribute name="active">4</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkTreeViewColumn" id="tvcOffer">
|
|
<property name="sizing">fixed</property>
|
|
<property name="fixed_width">32</property>
|
|
<property name="title">O</property>
|
|
<property name="alignment">0.5</property>
|
|
<child>
|
|
<object class="GtkCellRendererToggle" id="crOffer"/>
|
|
<attributes>
|
|
<attribute name="sensitive">10</attribute>
|
|
<attribute name="visible">11</attribute>
|
|
<attribute name="active">5</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkTreeViewColumn" id="tvcRequest">
|
|
<property name="sizing">fixed</property>
|
|
<property name="fixed_width">32</property>
|
|
<property name="title">R</property>
|
|
<property name="alignment">0.5</property>
|
|
<child>
|
|
<object class="GtkCellRendererToggle" id="crRequest"/>
|
|
<attributes>
|
|
<attribute name="sensitive">10</attribute>
|
|
<attribute name="visible">11</attribute>
|
|
<attribute name="active">6</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkTreeViewColumn" id="tvcAck">
|
|
<property name="sizing">fixed</property>
|
|
<property name="fixed_width">32</property>
|
|
<property name="title">A</property>
|
|
<property name="alignment">0.5</property>
|
|
<child>
|
|
<object class="GtkCellRendererToggle" id="crAck"/>
|
|
<attributes>
|
|
<attribute name="sensitive">10</attribute>
|
|
<attribute name="visible">11</attribute>
|
|
<attribute name="active">7</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkTreeViewColumn" id="tvcResult">
|
|
<property name="sizing">fixed</property>
|
|
<property name="fixed_width">400</property>
|
|
<property name="title">Result</property>
|
|
<property name="alignment">0.5</property>
|
|
<child>
|
|
<object class="GtkCellRendererText" id="crResult"/>
|
|
<attributes>
|
|
<attribute name="text">8</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkTreeViewColumn" id="tblStatus">
|
|
<property name="sizing">fixed</property>
|
|
<property name="fixed_width">32</property>
|
|
<property name="title">Progress</property>
|
|
<property name="alignment">0.5</property>
|
|
<child>
|
|
<object class="GtkCellRendererProgress" id="crPrgTotal"/>
|
|
<attributes>
|
|
<attribute name="visible">11</attribute>
|
|
<attribute name="value">9</attribute>
|
|
</attributes>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="position">3</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkExpander" id="epLogout">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="border_width">5</property>
|
|
<child>
|
|
<object class="GtkScrolledWindow" id="sclLogout">
|
|
<property name="height_request">150</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="hscrollbar_policy">automatic</property>
|
|
<property name="vscrollbar_policy">automatic</property>
|
|
<child>
|
|
<object class="GtkTextView" id="txtLogout">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child type="label">
|
|
<object class="GtkLabel" id="label6">
|
|
<property name="visible">True</property>
|
|
<property name="label" translatable="yes">Logs</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="fill">False</property>
|
|
<property name="position">4</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkHBox" id="hbox1">
|
|
<property name="visible">True</property>
|
|
<child>
|
|
<object class="GtkLabel" id="labMsg">
|
|
<property name="width_request">682</property>
|
|
<property name="visible">True</property>
|
|
<property name="xalign">0.0099999997764825821</property>
|
|
</object>
|
|
<packing>
|
|
<property name="position">0</property>
|
|
</packing>
|
|
</child>
|
|
<child>
|
|
<object class="GtkProgressBar" id="prgTotal">
|
|
<property name="visible">True</property>
|
|
<property name="show_text">True</property>
|
|
</object>
|
|
<packing>
|
|
<property name="position">1</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
<packing>
|
|
<property name="expand">False</property>
|
|
<property name="position">5</property>
|
|
</packing>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</interface>
|