1<interface domain="easytag">
2    <requires lib="gtk+" version="3.10"/>
3    <object class="GtkListStore" id="genre_combo_model">
4        <columns>
5            <column type="gchararray"/>
6        </columns>
7    </object>
8    <object class="GtkListStore" id="images_model">
9        <columns>
10            <column type="CairoSurface"/>
11            <column type="gchararray"/>
12            <column type="EtPicture"/>
13        </columns>
14    </object>
15    <object class="GtkListStore" id="track_combo_model">
16        <columns>
17            <column type="gchararray"/>
18        </columns>
19    </object>
20    <template class="EtTagArea" parent="GtkBin">
21        <property name="visible">True</property>
22        <child>
23            <object class="GtkNotebook" id="tag_notebook">
24                <property name="border-width">2</property>
25                <property name="visible">True</property>
26                <child type="action-start">
27                    <object class="GtkBox" id="tag_label_box">
28                        <property name="visible">True</property>
29                        <child>
30                            <object class="GtkLabel" id="tag_label">
31                                <property name="halign">start</property>
32                                <property name="label" translatable="yes">Tag</property>
33                                <property name="margin-left">6</property>
34                                <property name="margin-right">6</property>
35                                <property name="visible">True</property>
36                                <attributes>
37                                    <attribute name="weight" value="bold"/>
38                                </attributes>
39                            </object>
40                        </child>
41                    </object>
42                </child>
43                <child>
44                    <object class="GtkGrid" id="common_grid">
45                        <property name="border-width">2</property>
46                        <property name="column-spacing">2</property>
47                        <property name="row-spacing">2</property>
48                        <property name="visible">True</property>
49                        <child>
50                            <object class="GtkLabel" id="title_label">
51                                <property name="halign">end</property>
52                                <property name="label" translatable="yes">Title:</property>
53                                <property name="visible">True</property>
54                            </object>
55                            <packing>
56                                <property name="left-attach">0</property>
57                                <property name="top-attach">0</property>
58                            </packing>
59                        </child>
60                        <child>
61                            <object class="GtkEntry" id="title_entry">
62                                <property name="secondary-icon-name">insert-text</property>
63                                <property name="secondary-icon-tooltip-text" translatable="yes">Tag selected files with this title</property>
64                                <property name="visible">True</property>
65                            </object>
66                            <packing>
67                                <property name="left-attach">1</property>
68                                <property name="top-attach">0</property>
69                                <property name="width">8</property>
70                            </packing>
71                        </child>
72                        <child>
73                            <object class="GtkLabel" id="artist_label">
74                                <property name="halign">end</property>
75                                <property name="label" translatable="yes">Artist:</property>
76                                <property name="visible">True</property>
77                            </object>
78                            <packing>
79                                <property name="left-attach">0</property>
80                                <property name="top-attach">1</property>
81                            </packing>
82                        </child>
83                        <child>
84                            <object class="GtkEntry" id="artist_entry">
85                                <property name="secondary-icon-name">insert-text</property>
86                                <property name="secondary-icon-tooltip-text" translatable="yes">Tag selected files with this artist</property>
87                                <property name="visible">True</property>
88                            </object>
89                            <packing>
90                                <property name="left-attach">1</property>
91                                <property name="top-attach">1</property>
92                                <property name="width">8</property>
93                            </packing>
94                        </child>
95                        <child>
96                            <object class="GtkLabel" id="album_artist_label">
97                                <property name="halign">end</property>
98                                <property name="label" translatable="yes">Album artist:</property>
99                                <property name="visible">True</property>
100                            </object>
101                            <packing>
102                                <property name="left-attach">0</property>
103                                <property name="top-attach">2</property>
104                            </packing>
105                        </child>
106                        <child>
107                            <object class="GtkEntry" id="album_artist_entry">
108                                <property name="secondary-icon-name">insert-text</property>
109                                <property name="secondary-icon-tooltip-text" translatable="yes">Tag selected files with this album artist</property>
110                                <property name="visible">True</property>
111                            </object>
112                            <packing>
113                                <property name="left-attach">1</property>
114                                <property name="top-attach">2</property>
115                                <property name="width">8</property>
116                            </packing>
117                        </child>
118                        <child>
119                            <object class="GtkLabel" id="album_label">
120                                <property name="halign">end</property>
121                                <property name="label" translatable="yes">Album:</property>
122                                <property name="visible">True</property>
123                            </object>
124                            <packing>
125                                <property name="left-attach">0</property>
126                                <property name="top-attach">3</property>
127                            </packing>
128                        </child>
129                        <child>
130                            <object class="GtkEntry" id="album_entry">
131                                <property name="secondary-icon-name">insert-text</property>
132                                <property name="secondary-icon-tooltip-text" translatable="yes">Tag selected files with this album name</property>
133                                <property name="visible">True</property>
134                            </object>
135                            <packing>
136                                <property name="left-attach">1</property>
137                                <property name="top-attach">3</property>
138                                <property name="width">6</property>
139                            </packing>
140                        </child>
141                        <child>
142                            <object class="GtkLabel" id="disc_number_label">
143                                <property name="halign">end</property>
144                                <property name="label" translatable="yes">CD:</property>
145                                <property name="visible">True</property>
146                            </object>
147                            <packing>
148                                <property name="left-attach">7</property>
149                                <property name="top-attach">3</property>
150                            </packing>
151                        </child>
152                        <child>
153                            <object class="GtkEntry" id="disc_number_entry">
154                                <property name="hexpand">True</property>
155                                <property name="secondary-icon-name">insert-text</property>
156                                <property name="secondary-icon-tooltip-text" translatable="yes">Tag selected files with this disc number</property>
157                                <property name="visible">True</property>
158                                <property name="width-chars">3</property>
159                            </object>
160                            <packing>
161                                <property name="left-attach">8</property>
162                                <property name="top-attach">3</property>
163                            </packing>
164                        </child>
165                        <child>
166                            <object class="GtkLabel" id="year_label">
167                                <property name="halign">end</property>
168                                <property name="label" translatable="yes">Year:</property>
169                                <property name="visible">True</property>
170                            </object>
171                            <packing>
172                                <property name="left-attach">0</property>
173                                <property name="top-attach">4</property>
174                            </packing>
175                        </child>
176                        <child>
177                            <object class="GtkEntry" id="year_entry">
178                                <property name="hexpand">True</property>
179                                <property name="max-length">4</property>
180                                <property name="secondary-icon-name">insert-text</property>
181                                <property name="secondary-icon-tooltip-text" translatable="yes">Tag selected files with this year</property>
182                                <property name="visible">True</property>
183                                <property name="width-chars">5</property>
184                                <signal name="activate" handler="on_year_entry_activate"/>
185                                <signal name="focus-out-event" handler="on_year_entry_focus_out_event"/>
186                                <signal name="insert-text" handler="Insert_Only_Digit"/>
187                            </object>
188                            <packing>
189                                <property name="left-attach">1</property>
190                                <property name="top-attach">4</property>
191                            </packing>
192                        </child>
193                        <child>
194                            <object class="GtkSeparator" id="tag_separator">
195                                <property name="orientation">vertical</property>
196                                <property name="visible">True</property>
197                            </object>
198                            <packing>
199                                <property name="left-attach">2</property>
200                                <property name="top-attach">4</property>
201                            </packing>
202                        </child>
203                        <child>
204                            <object class="GtkButton" id="track_sequence_button">
205                                <property name="tooltip-text" translatable="yes">Number selected tracks sequentially. Starts at 01 in each subdirectory</property>
206                                <property name="visible">True</property>
207                                <signal name="clicked" handler="on_apply_to_selection"/>
208                                <child>
209                                    <object class="GtkImage" id="track_sequence_image">
210                                        <property name="resource">/org/gnome/EasyTAG/images/sequence-track.png</property>
211                                        <property name="visible">True</property>
212                                    </object>
213                                </child>
214                            </object>
215                            <packing>
216                                <property name="left-attach">3</property>
217                                <property name="top-attach">4</property>
218                            </packing>
219                        </child>
220                        <child>
221                            <object class="GtkLabel" id="track_label">
222                                <property name="halign">end</property>
223                                <property name="label" translatable="yes">Track #:</property>
224                                <property name="visible">True</property>
225                            </object>
226                            <packing>
227                                <property name="left-attach">4</property>
228                                <property name="top-attach">4</property>
229                            </packing>
230                        </child>
231                        <child>
232                            <object class="GtkComboBox" id="track_combo_entry">
233                                <property name="has-entry">True</property>
234                                <property name="model">track_combo_model</property>
235                                <property name="entry-text-column">0</property>
236                                <property name="hexpand">True</property>
237                                <property name="visible">True</property>
238                                <property name="wrap-width">3</property>
239                            </object>
240                            <packing>
241                                <property name="left-attach">5</property>
242                                <property name="top-attach">4</property>
243                            </packing>
244                        </child>
245                        <child>
246                            <object class="GtkLabel" id="track_separator_label">
247                                <property name="label">/</property>
248                                <property name="visible">True</property>
249                            </object>
250                            <packing>
251                                <property name="left-attach">6</property>
252                                <property name="top-attach">4</property>
253                            </packing>
254                        </child>
255                        <child>
256                            <object class="GtkButton" id="track_number_button">
257                                <property name="tooltip-text" translatable="yes">Set the number of files, in the same directory of the displayed file, to the selected tracks</property>
258                                <property name="visible">True</property>
259                                <signal name="clicked" handler="on_apply_to_selection"/>
260                                <child>
261                                    <object class="GtkImage" id="track_number_image">
262                                        <property name="resource">/org/gnome/EasyTAG/images/sequence-track.png</property>
263                                        <property name="visible">True</property>
264                                    </object>
265                                </child>
266                            </object>
267                            <packing>
268                                <property name="left-attach">7</property>
269                                <property name="top-attach">4</property>
270                            </packing>
271                        </child>
272                        <child>
273                            <object class="GtkEntry" id="track_total_entry">
274                                <property name="secondary-icon-name">insert-text</property>
275                                <property name="secondary-icon-tooltip-text" translatable="yes">Tag selected files with this number of tracks</property>
276                                <property name="visible">True</property>
277                                <property name="width-chars">3</property>
278                                <signal name="insert-text" handler="Insert_Only_Digit"/>
279                            </object>
280                            <packing>
281                                <property name="left-attach">8</property>
282                                <property name="top-attach">4</property>
283                            </packing>
284                        </child>
285                        <child>
286                            <object class="GtkLabel" id="genre_label">
287                                <property name="halign">end</property>
288                                <property name="label" translatable="yes">Genre:</property>
289                                <property name="visible">True</property>
290                            </object>
291                            <packing>
292                                <property name="left-attach">0</property>
293                                <property name="top-attach">5</property>
294                            </packing>
295                        </child>
296                        <child>
297                            <object class="GtkComboBox" id="genre_combo_entry">
298                                <property name="has-entry">True</property>
299                                <property name="model">genre_combo_model</property>
300                                <property name="entry-text-column">0</property>
301                                <property name="visible">True</property>
302                                <property name="wrap-width">2</property>
303                            </object>
304                            <packing>
305                                <property name="left-attach">1</property>
306                                <property name="top-attach">5</property>
307                                <property name="width">8</property>
308                            </packing>
309                        </child>
310                        <child>
311                            <object class="GtkLabel" id="comment_label">
312                                <property name="halign">end</property>
313                                <property name="label" translatable="yes">Comment:</property>
314                                <property name="visible">True</property>
315                            </object>
316                            <packing>
317                                <property name="left-attach">0</property>
318                                <property name="top-attach">6</property>
319                            </packing>
320                        </child>
321                        <child>
322                            <object class="GtkEntry" id="comment_entry">
323                                <property name="secondary-icon-name">insert-text</property>
324                                <property name="secondary-icon-tooltip-text" translatable="yes">Tag selected files with this comment</property>
325                                <property name="visible">True</property>
326                            </object>
327                            <packing>
328                                <property name="left-attach">1</property>
329                                <property name="top-attach">6</property>
330                                <property name="width">8</property>
331                            </packing>
332                        </child>
333                        <child>
334                            <object class="GtkLabel" id="composer_label">
335                                <property name="halign">end</property>
336                                <property name="label" translatable="yes">Composer:</property>
337                                <property name="visible">True</property>
338                            </object>
339                            <packing>
340                                <property name="left-attach">0</property>
341                                <property name="top-attach">7</property>
342                            </packing>
343                        </child>
344                        <child>
345                            <object class="GtkEntry" id="composer_entry">
346                                <property name="secondary-icon-name">insert-text</property>
347                                <property name="secondary-icon-tooltip-text" translatable="yes">Tag selected files with this composer</property>
348                                <property name="visible">True</property>
349                            </object>
350                            <packing>
351                                <property name="left-attach">1</property>
352                                <property name="top-attach">7</property>
353                                <property name="width">8</property>
354                            </packing>
355                        </child>
356                        <child>
357                            <object class="GtkLabel" id="orig_artist_label">
358                                <property name="halign">end</property>
359                                <property name="label" translatable="yes">Orig. artist:</property>
360                                <property name="visible">True</property>
361                            </object>
362                            <packing>
363                                <property name="left-attach">0</property>
364                                <property name="top-attach">8</property>
365                            </packing>
366                        </child>
367                        <child>
368                            <object class="GtkEntry" id="orig_artist_entry">
369                                <property name="secondary-icon-name">insert-text</property>
370                                <property name="secondary-icon-tooltip-text" translatable="yes">Tag selected files with this original artist</property>
371                                <property name="visible">True</property>
372                            </object>
373                            <packing>
374                                <property name="left-attach">1</property>
375                                <property name="top-attach">8</property>
376                                <property name="width">8</property>
377                            </packing>
378                        </child>
379                        <child>
380                            <object class="GtkLabel" id="copyright_label">
381                                <property name="halign">end</property>
382                                <property name="label" translatable="yes">Copyright:</property>
383                                <property name="visible">True</property>
384                            </object>
385                            <packing>
386                                <property name="left-attach">0</property>
387                                <property name="top-attach">9</property>
388                            </packing>
389                        </child>
390                        <child>
391                            <object class="GtkEntry" id="copyright_entry">
392                                <property name="secondary-icon-name">insert-text</property>
393                                <property name="secondary-icon-tooltip-text" translatable="yes">Tag selected files with this copyright</property>
394                                <property name="visible">True</property>
395                            </object>
396                            <packing>
397                                <property name="left-attach">1</property>
398                                <property name="top-attach">9</property>
399                                <property name="width">8</property>
400                            </packing>
401                        </child>
402                        <child>
403                            <object class="GtkLabel" id="url_label">
404                                <property name="halign">end</property>
405                                <property name="label" translatable="yes">URL:</property>
406                                <property name="visible">True</property>
407                            </object>
408                            <packing>
409                                <property name="left-attach">0</property>
410                                <property name="top-attach">10</property>
411                            </packing>
412                        </child>
413                        <child>
414                            <object class="GtkEntry" id="url_entry">
415                                <property name="secondary-icon-name">insert-text</property>
416                                <property name="secondary-icon-tooltip-text" translatable="yes">Tag selected files with this URL</property>
417                                <property name="visible">True</property>
418                            </object>
419                            <packing>
420                                <property name="left-attach">1</property>
421                                <property name="top-attach">10</property>
422                                <property name="width">8</property>
423                            </packing>
424                        </child>
425                        <child>
426                            <object class="GtkLabel" id="encoded_by_label">
427                                <property name="halign">end</property>
428                                <property name="label" translatable="yes">Encoded by:</property>
429                                <property name="visible">True</property>
430                            </object>
431                            <packing>
432                                <property name="left-attach">0</property>
433                                <property name="top-attach">11</property>
434                            </packing>
435                        </child>
436                        <child>
437                            <object class="GtkEntry" id="encoded_by_entry">
438                                <property name="secondary-icon-name">insert-text</property>
439                                <property name="secondary-icon-tooltip-text" translatable="yes">Tag selected files with this encoder name</property>
440                                <property name="visible">True</property>
441                            </object>
442                            <packing>
443                                <property name="left-attach">1</property>
444                                <property name="top-attach">11</property>
445                                <property name="width">8</property>
446                            </packing>
447                        </child>
448                    </object>
449                </child>
450                <child type="tab">
451                    <object class="GtkLabel" id="common_label">
452                        <property name="label" translatable="yes">Common</property>
453                        <property name="visible">True</property>
454                    </object>
455                </child>
456                <child>
457                    <object class="GtkGrid" id="images_grid">
458                        <property name="orientation">vertical</property>
459                        <property name="visible">True</property>
460                        <child>
461                            <object class="GtkScrolledWindow" id="images_scrolled">
462                                <property name="shadow-type">etched-in</property>
463                                <property name="tooltip-text" translatable="yes">You can use drag and drop to add an image</property>
464                                <property name="visible">True</property>
465                                <child>
466                                    <object class="GtkTreeView" id="images_view">
467                                        <property name="expand">True</property>
468                                        <property name="model">images_model</property>
469                                        <property name="headers-visible">False</property>
470                                        <property name="visible">True</property>
471                                        <signal name="button-press-event" handler="on_picture_view_button_pressed"/>
472                                        <signal name="drag-data-received" handler="on_picture_view_drag_data"/>
473                                        <signal name="key-press-event" handler="on_picture_view_key_pressed"/>
474                                        <child>
475                                            <object class="GtkTreeViewColumn" id="images_column">
476                                                <property name="sizing">autosize</property>
477                                                <child>
478                                                    <object class="GtkCellRendererPixbuf" id="images_thumbnail_renderer"/>
479                                                    <attributes>
480                                                        <attribute name="surface">0</attribute>
481                                                    </attributes>
482                                                </child>
483                                                <child>
484                                                    <object class="GtkCellRendererText" id="images_text_renderer"/>
485                                                    <attributes>
486                                                        <attribute name="text">1</attribute>
487                                                    </attributes>
488                                                </child>
489                                            </object>
490                                        </child>
491                                        <child internal-child="selection">
492                                            <object class="GtkTreeSelection" id="selection">
493                                                <property name="mode">multiple</property>
494                                                <signal name="changed" handler="on_picture_view_selection_changed"/>
495                                            </object>
496                                        </child>
497                                    </object>
498                                </child>
499                            </object>
500                        </child>
501                        <child>
502                            <object class="GtkToolbar" id="images_toolbar">
503                                <property name="visible">True</property>
504                                <style>
505                                    <class name="inline-toolbar"/>
506                                </style>
507                                <child>
508                                    <object class="GtkToolButton" id="add_image_toolitem">
509                                        <property name="icon-name">list-add</property>
510                                        <property name="tooltip-text" translatable="yes">Add images to the tag</property>
511                                        <property name="visible">True</property>
512                                        <signal name="clicked" handler="on_picture_add_button_clicked"/>
513                                        <signal name="drag-data-received" handler="on_picture_view_drag_data"/>
514                                    </object>
515                                </child>
516                                <child>
517                                    <object class="GtkToolButton" id="remove_image_toolitem">
518                                        <property name="icon-name">list-remove</property>
519                                        <property name="sensitive">False</property>
520                                        <property name="tooltip-text" translatable="yes">Remove selected images from the tag</property>
521                                        <property name="visible">True</property>
522                                        <signal name="clicked" handler="on_picture_clear_button_clicked"/>
523                                    </object>
524                                </child>
525                                <child>
526                                    <object class="GtkToolButton" id="save_image_toolitem">
527                                        <property name="icon-name">document-save</property>
528                                        <property name="sensitive">False</property>
529                                        <property name="tooltip-text" translatable="yes">Save the selected images to files</property>
530                                        <property name="visible">True</property>
531                                        <signal name="clicked" handler="on_picture_save_button_clicked"/>
532                                    </object>
533                                </child>
534                                <child>
535                                    <object class="GtkToolButton" id="image_properties_toolitem">
536                                        <property name="icon-name">document-properties</property>
537                                        <property name="sensitive">False</property>
538                                        <property name="tooltip-text" translatable="yes">Edit image properties</property>
539                                        <property name="visible">True</property>
540                                        <signal name="clicked" handler="on_picture_properties_button_clicked"/>
541                                    </object>
542                                </child>
543                                <child>
544                                    <object class="GtkToolButton" id="apply_image_toolitem">
545                                        <property name="icon-name">insert-image</property>
546                                        <property name="tooltip-text" translatable="yes">Tag selected files with these images</property>
547                                        <property name="visible">True</property>
548                                        <signal name="clicked" handler="on_apply_to_selection"/>
549                                    </object>
550                                </child>
551                            </object>
552                        </child>
553                    </object>
554                </child>
555                <child type="tab">
556                    <object class="GtkLabel" id="images_label">
557                        <property name="label" translatable="yes">Images</property>
558                        <property name="visible">True</property>
559                    </object>
560                </child>
561            </object>
562        </child>
563    </template>
564</interface>
565