2 Star 0 Fork 0

付少爷/gtk_downlader

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
gtkdown.ui 12.17 KB
一键复制 编辑 原始数据 按行查看 历史
fulingjun 提交于 2021-07-31 11:47 . SRC 删除界面Task
<?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>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lingjiao0710/gtk_downlader.git
git@gitee.com:lingjiao0710/gtk_downlader.git
lingjiao0710
gtk_downlader
gtk_downlader
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385