Debian Codegraph @

podcasts-gtk/resources/gtk/episode_widget.ui

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3
4 Copyright (C) 2017 - 2018
5
6 This file is part of GNOME Podcasts.
7
8 GNOME Podcasts is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 GNOME Podcasts is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GNOME Podcasts. If not, see <http://www.gnu.org/licenses/>.
20
21 Authors:
22 Jordan Petridis
23 Tobias Bernard
24
25 -->
26 <interface>
27 <!-- interface-license-type gplv3 -->
28 <!-- interface-name GNOME Podcasts -->
29 <!-- interface-description A podcast client for the GNOME Desktop -->
30 <!-- interface-copyright 2017 - 2018 -->
31 <!-- interface-authors Jordan Petridis\nTobias Bernard -->
32 <template class="PdEpisode" parent="GtkBox">
33 <property name="height_request">64</property>
34 <property name="valign">center</property>
35 <property name="margin_start">6</property>
36 <property name="margin_end">6</property>
37 <property name="orientation">vertical</property>
38
39 <child>
40 <object class="GtkBox">
41 <property name="margin_start">6</property>
42 <property name="margin_end">6</property>
43 <property name="margin_top">6</property>
44 <property name="margin_bottom">6</property>
45 <property name="hexpand">True</property>
46 <property name="vexpand">True</property>
47 <property name="spacing">12</property>
48 <child>
49 <object class="GtkBox" id="info_container">
50 <property name="halign">start</property>
51 <property name="valign">center</property>
52 <property name="orientation">vertical</property>
53 <property name="spacing">6</property>
54 <property name="hexpand">True</property>
55 <child>
56 <object class="GtkBox">
57 <property name="halign">start</property>
58 <property name="spacing">6</property>
59 <child>
60 <object class="GtkLabel" id="title">
61 <property name="label">Episode Title</property>
62 <property name="ellipsize">end</property>
63 <property name="single_line_mode">True</property>
64 <property name="lines">1</property>
65 <property name="xalign">0</property>
66 </object>
67 </child>
68 <child>
69 <object class="GtkImage" id="played_checkmark">
70 <property name="tooltip_text" translatable="yes">You’ve already listened to this episode.</property>
71 <property name="icon_name">object-select-symbolic</property>
72 <property name="visible">False</property>
73 <style>
74 <class name="dim-label"/>
75 </style>
76 </object>
77 </child>
78 </object>
79 </child>
80 <child>
81 <object class="GtkBox">
82 <property name="spacing">6</property>
83 <child>
84 <object class="GtkLabel" id="date">
85 <property name="xalign">0.0</property>
86 <property name="label">3 Jan</property>
87 <property name="single_line_mode">True</property>
88 <style>
89 <class name="dim-label"/>
90 </style>
91 <attributes>
92 <attribute name="font-features" value="tnum=1"/>
93 </attributes>
94 </object>
95 </child>
96 <child>
97 <object class="GtkLabel" id="separator1">
98 <property name="xalign">0.0</property>
99 <property name="visible">False</property>
100 <property name="label">·</property>
101 <style>
102 <class name="dim-label"/>
103 </style>
104 </object>
105 </child>
106 <child>
107 <object class="GtkLabel" id="duration">
108 <property name="xalign">0.0</property>
109 <property name="visible">False</property>
110 <property name="label">42 min</property>
111 <property name="single_line_mode">True</property>
112 <style>
113 <class name="dim-label"/>
114 </style>
115 <attributes>
116 <attribute name="font-features" value="tnum=1"/>
117 </attributes>
118 </object>
119 </child>
120 <child>
121 <object class="GtkLabel" id="separator2">
122 <property name="xalign">0.0</property>
123 <property name="visible">False</property>
124 <property name="label">·</property>
125 <style>
126 <class name="dim-label"/>
127 </style>
128 </object>
129 </child>
130 <child>
131 <object class="GtkLabel" id="local_size">
132 <property name="visible">False</property>
133 <property name="label">0 MB</property>
134 <property name="ellipsize">end</property>
135 <property name="single_line_mode">True</property>
136 <style>
137 <class name="dim-label"/>
138 </style>
139 <attributes>
140 <attribute name="font-features" value="tnum=1"/>
141 </attributes>
142 </object>
143 </child>
144 <child>
145 <object class="GtkLabel" id="size_separator">
146 <property name="xalign">0.0</property>
147 <property name="visible">False</property>
148 <property name="label">/</property>
149 <property name="single_line_mode">True</property>
150 <style>
151 <class name="dim-label"/>
152 </style>
153 </object>
154 </child>
155 <child>
156 <object class="GtkLabel" id="total_size">
157 <property name="visible">False</property>
158 <property name="label" translatable="yes">Calculating episode size…</property>
159 <property name="ellipsize">end</property>
160 <property name="single_line_mode">True</property>
161 <style>
162 <class name="dim-label"/>
163 </style>
164 <attributes>
165 <attribute name="font-features" value="tnum=1"/>
166 </attributes>
167 </object>
168 </child>
169 </object>
170 </child>
171 </object>
172 </child>
173 <child>
174 <object class="GtkBox" id="button_box">
175 <property name="halign">end</property>
176 <property name="margin-top">8</property>
177 <child>
178 <object class="GtkButton" id="play">
179 <property name="receives_default">True</property>
180 <property name="visible">False</property>
181 <property name="tooltip_text" translatable="yes">Play this episode</property>
182 <property name="halign">center</property>
183 <property name="valign">center</property>
184 <property name="icon_name">media-playback-start-symbolic</property>
185 <style>
186 <class name="flat"/>
187 </style>
188 </object>
189 </child>
190 <child>
191 <object class="GtkButton" id="pause">
192 <property name="action-name">win.toggle-pause</property>
193 <property name="receives_default">True</property>
194 <property name="visible">False</property>
195 <property name="tooltip_text" translatable="yes">Pause playback</property>
196 <property name="halign">center</property>
197 <property name="valign">center</property>
198 <property name="icon_name">media-playback-pause-symbolic</property>
199 <style>
200 <class name="flat"/>
201 </style>
202 </object>
203 </child>
204 <child>
205 <object class="GtkButton" id="cancel">
206 <property name="receives_default">False</property>
207 <property name="tooltip_text" translatable="yes">Cancel the download process</property>
208 <property name="halign">center</property>
209 <property name="valign">center</property>
210 <property name="icon_name">media-playback-stop-symbolic</property>
211 <property name="visible">False</property>
212 <style>
213 <class name="flat"/>
214 </style>
215 </object>
216 </child>
217 <child>
218 <object class="GtkButton" id="download">
219 <property name="receives_default">True</property>
220 <property name="tooltip_text" translatable="yes">Download this episode</property>
221 <property name="halign">center</property>
222 <property name="valign">center</property>
223 <property name="visible">False</property>
224 <property name="icon_name">document-save-symbolic</property>
225 <style>
226 <class name="flat"/>
227 </style>
228 </object>
229 </child>
230 <child>
231 <object class="GtkButton" id="text_only">
232 <property name="receives_default">True</property>
233 <property name="visible">False</property>
234 <property name="tooltip-text" translatable="yes">Episode without audio</property>
235 <property name="halign">center</property>
236 <property name="valign">center</property>
237 <property name="icon-name">accessories-text-editor-symbolic</property>
238 <style>
239 <class name="flat"/>
240 </style>
241 </object>
242 </child>
243 </object>
244 </child>
245 </object>
246 </child>
247 <child>
248 <object class="PdDownloadProgress" id="progressbar">
249 <property name="margin-start">6</property>
250 <property name="margin-end">6</property>
251 <property name="height-request">8</property>
252 </object>
253 </child>
254 </template>
255 </interface>