summaryrefslogtreecommitdiff
path: root/src/resources/ui/nautilus-column-chooser.ui
blob: c9744c6a0e115bf410fc53ff3ea4032c958e57a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <object class="GtkListStore" id="store">
    <columns>
      <!-- column-name COLUMN_VISIBLE -->
      <column type="gboolean"/>
      <!-- column-name COLUMN_LABEL -->
      <column type="gchararray"/>
      <!-- column-name COLUMN_NAME -->
      <column type="gchararray"/>
      <!-- column-name COLUMN_SENSITIVE -->
      <column type="gboolean"/>
    </columns>
  </object>
  <template class="NautilusColumnChooser" parent="AdwWindow">
    <property name="modal">True</property>
    <property name="default-width">360</property>
    <property name="default-height">480</property>
    <property name="destroy-with-parent">True</property>
    <property name="content">
      <object class="GtkBox">
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkHeaderBar">
            <child type="title">
              <object class="AdwWindowTitle" id="window_title">
                <property name="title" translatable="true">Visible Columns</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkBox" id="box">
            <property name="margin-top">18</property>
            <property name="margin-bottom">18</property>
            <property name="margin-start">18</property>
            <property name="margin-end">18</property>
            <property name="orientation">vertical</property>
            <property name="spacing">18</property>
            <child>
              <object class="GtkScrolledWindow">
                <property name="child">
                  <object class="GtkTreeView" id="view">
                    <property name="vexpand">True</property>
                    <property name="model">store</property>
                    <property name="headers-visible">False</property>
                    <property name="reorderable">True</property>
                    <signal name="row-activated" handler="view_row_activated_callback" swapped="no"/>
                    <child internal-child="selection">
                      <object class="GtkTreeSelection">
                        <signal name="changed" handler="selection_changed_callback" swapped="no"/>
                      </object>
                    </child>
                    <child>
                      <object class="GtkTreeViewColumn" id="visible-column">
                        <child>
                          <object class="GtkCellRendererToggle">
                            <signal name="toggled" handler="visible_toggled_callback" swapped="no"/>
                          </object>
                          <attributes>
                            <attribute name="sensitive">3</attribute>
                            <attribute name="active">0</attribute>
                          </attributes>
                        </child>
                      </object>
                    </child>
                    <child>
                      <object class="GtkTreeViewColumn" id="label-column">
                        <child>
                          <object class="GtkCellRendererText"/>
                          <attributes>
                            <attribute name="sensitive">3</attribute>
                            <attribute name="text">1</attribute>
                          </attributes>
                        </child>
                      </object>
                    </child>
                  </object>
                </property>
                <style>
                  <class name="frame"/>
                </style>
              </object>
            </child>
            <child>
              <object class="GtkBox">
                <property name="spacing">12</property>
                <child>
                  <object class="GtkBox">
                    <style>
                      <class name="linked"/>
                    </style>
                  </object>
                </child>
                <child>
                  <object class="GtkBox">
                    <child>
                      <object class="GtkButton" id="use_default_button">
                        <property name="hexpand">true</property>
                        <property name="halign">end</property>
                        <property name="label" translatable="yes">Reset to De_fault</property>
                        <property name="tooltip-text" translatable="yes">Replace the current List Columns settings with the default settings</property>
                        <property name="use-underline">True</property>
                        <signal name="clicked" handler="use_default_clicked_callback" swapped="no"/>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </child>
          </object>
        </child>
      </object>
    </property>
  </template>
</interface>