代码拉取完成,页面将自动刷新
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.38.2 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<object class="GtkImage" id="add_image">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixbuf">resources\add.svg</property>
</object>
<object class="GtkImage" id="pause_image">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixbuf">resources\stop.png</property>
</object>
<object class="GtkImage" id="play_image">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixbuf">resources\play.svg</property>
</object>
<object class="GtkImage" id="remove_image">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixbuf">resources\minus.svg</property>
</object>
<object class="GtkImage" id="setting_image">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="pixbuf">resources\setting.png</property>
</object>
<object class="GtkListStore" id="task_store">
<columns>
<!-- column-name filename -->
<column type="gchararray"/>
<!-- column-name size -->
<column type="gchararray"/>
<!-- column-name process -->
<column type="gfloat"/>
<!-- column-name status -->
<column type="gchararray"/>
<!-- column-name estimate_time -->
<column type="gchararray"/>
<!-- column-name transfer_rate -->
<column type="gchararray"/>
<!-- column-name create_time -->
<column type="gchararray"/>
<!-- column-name id -->
<column type="gint64"/>
</columns>
</object>
<object class="GtkWindow" id="window">
<property name="width-request">800</property>
<property name="height-request">400</property>
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="title" translatable="yes">GTK下载器</property>
<property name="icon">resources\download.svg</property>
<child>
<!-- n-columns=3 n-rows=3 -->
<object class="GtkGrid">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="margin-left">5</property>
<property name="margin-top">5</property>
<property name="margin-bottom">5</property>
<child>
<!-- n-columns=5 n-rows=3 -->
<object class="GtkGrid">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="halign">start</property>
<property name="column-homogeneous">True</property>
<child>
<object class="GtkButton" id="add_button">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="image">add_image</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="remove_button">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="image">remove_image</property>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="resume_button">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="image">play_image</property>
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="pause_button">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="image">pause_image</property>
</object>
<packing>
<property name="left-attach">3</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="setting_button">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="receives-default">True</property>
<property name="image">setting_image</property>
</object>
<packing>
<property name="left-attach">4</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="shadow-type">in</property>
<property name="min-content-width">300</property>
<property name="min-content-height">200</property>
<child>
<object class="GtkTreeView" id="task_tree">
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="model">task_store</property>
<child internal-child="selection">
<object class="GtkTreeSelection" id="task_selection"/>
</child>
<child>
<object class="GtkTreeViewColumn" id="filename">
<property name="resizable">True</property>
<property name="min-width">150</property>
<property name="title" translatable="yes">名字</property>
<property name="sort-column-id">0</property>
<child>
<object class="GtkCellRendererText" id="name_view"/>
<attributes>
<attribute name="text">0</attribute>
</attributes>
</child>
</object>
</child>
<child>
<object class="GtkTreeViewColumn" id="size">
<property name="resizable">True</property>
<property name="min-width">10</property>
<property name="title" translatable="yes">大小</property>
<property name="sort-column-id">1</property>
<child>
<object class="GtkCellRendererText" id="size_view"/>
<attributes>
<attribute name="text">1</attribute>
</attributes>
</child>
</object>
</child>
<child>
<object class="GtkTreeViewColumn" id="process">
<property name="resizable">True</property>
<property name="min-width">100</property>
<property name="title" translatable="yes">进度</property>
<property name="clickable">True</property>
<child>
<object class="GtkCellRendererProgress" id="progress_bar"/>
<attributes>
<attribute name="value">2</attribute>
</attributes>
</child>
</object>
</child>
<child>
<object class="GtkTreeViewColumn" id="status">
<property name="resizable">True</property>
<property name="title" translatable="yes">状态</property>
<property name="clickable">True</property>
<child>
<object class="GtkCellRendererText" id="status_view"/>
<attributes>
<attribute name="text">3</attribute>
</attributes>
</child>
</object>
</child>
<child>
<object class="GtkTreeViewColumn" id="estimate_time">
<property name="resizable">True</property>
<property name="title" translatable="yes">估计时间</property>
<property name="clickable">True</property>
<child>
<object class="GtkCellRendererText" id="estimate_time_view"/>
<attributes>
<attribute name="text">4</attribute>
</attributes>
</child>
</object>
</child>
<child>
<object class="GtkTreeViewColumn" id="transfer_rate">
<property name="resizable">True</property>
<property name="title" translatable="yes">传输速度</property>
<property name="clickable">True</property>
<child>
<object class="GtkCellRendererText" id="transfer_rate_view"/>
<attributes>
<attribute name="text">5</attribute>
</attributes>
</child>
</object>
</child>
<child>
<object class="GtkTreeViewColumn" id="create_time">
<property name="resizable">True</property>
<property name="title" translatable="yes">创建时间</property>
<property name="clickable">True</property>
<child>
<object class="GtkCellRendererText" id="create_time_view"/>
<attributes>
<attribute name="text">6</attribute>
</attributes>
</child>
</object>
</child>
</object>
</child>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">1</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
</object>
</interface>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。