summaryrefslogtreecommitdiffstats
path: root/panels/info-overview/cc-info-overview-panel.ui
blob: ec2ed2706528a41a5680619b115ab0a76206a3e7 (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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="CcInfoOverviewPanel" parent="CcPanel">
    <child type="content">
      <object class="AdwPreferencesPage">
        <child>
          <object class="AdwPreferencesGroup">

            <child>
              <object class="AdwClamp">
                <property name="orientation">vertical</property>
                <property name="maximum-size">192</property>
                <property name="tightening-threshold">192</property>
                <property name="child">
                  <object class="GtkPicture" id="os_logo">
                    <property name="can-shrink">False</property>
                    <property name="alternative-text" translatable="yes">System Logo</property>
                  </object>
                </property>
              </object>
            </child>

          </object>
        </child>

        <child>
          <object class="AdwPreferencesGroup">

            <!-- Device name -->
            <child>
              <object class="CcListRow" id="hostname_row">
                <property name="title" translatable="yes">Device Name</property>
                <property name="secondary-label" bind-source="hostname_entry" bind-property="text" bind-flags="sync-create" />
                <property name="show-arrow">True</property>
                <signal name="activated" handler="cc_info_panel_row_activated_cb" swapped="yes"/>
              </object>
            </child>

          </object>
        </child>

        <child>
          <object class="AdwPreferencesGroup">

            <!-- Hardware Model -->
            <child>
              <object class="CcListRow" id="hardware_model_row">
                <property name="visible">False</property>
                <property name="activatable">False</property>
                <property name="title" translatable="yes">Hardware Model</property>
              </object>
            </child>

            <!-- Memory -->
            <child>
              <object class="CcListRow" id="memory_row">
                <property name="activatable">False</property>
                <property name="title" translatable="yes">Memory</property>
              </object>
            </child>

            <!-- Processor -->
            <child>
              <object class="CcListRow" id="processor_row">
                <property name="activatable">False</property>
                <property name="title" translatable="yes">Processor</property>
              </object>
            </child>

            <!-- Graphics -->
            <child>
              <object class="CcListRow" id="graphics_row">
                <property name="activatable">False</property>
                <property name="title" translatable="yes">Graphics</property>
              </object>
            </child>

            <!-- Disk Capacity -->
            <child>
              <object class="CcListRow" id="disk_row">
                <property name="activatable">False</property>
                <property name="title" translatable="yes">Disk Capacity</property>
                <property name="secondary-label" translatable="yes">Calculating…</property>
              </object>
            </child>

          </object>
        </child>

        <child>
          <object class="AdwPreferencesGroup">

            <!-- OS Name -->
            <child>
              <object class="CcListRow" id="os_name_row">
                <property name="activatable">False</property>
                <property name="title" translatable="yes"
                          comments="translators: this field contains the distro name and version">OS Name</property>
              </object>
            </child>

            <!-- OS Build -->
            <child>
              <object class="CcListRow" id="os_build_row">
                <property name="activatable">False</property>
                <property name="title" translatable="yes"
                          comments="translators: this field contains the distro build ID">OS Build ID</property>
              </object>
            </child>

            <!-- OS Type -->
            <child>
              <object class="CcListRow" id="os_type_row">
                <property name="activatable">False</property>
                <property name="title" translatable="yes">OS Type</property>
              </object>
            </child>

            <!-- GNOME Version -->
            <child>
              <object class="CcListRow" id="gnome_version_row">
                <property name="activatable">False</property>
                <property name="title" translatable="yes">GNOME Version</property>
                <property name="secondary-label" translatable="yes"
                          comments="translators: this is a placeholder while the GNOME version is being fetched">Loading…</property>
              </object>
            </child>

            <!-- Windowing System -->
            <child>
              <object class="CcListRow" id="windowing_system_row">
                <property name="activatable">False</property>
                <property name="title" translatable="yes">Windowing System</property>
              </object>
            </child>

            <!-- Virtualization -->
            <child>
              <object class="CcListRow" id="virtualization_row">
                <property name="visible">False</property>
                <property name="title" translatable="yes">Virtualization</property>
                <property name="activatable">False</property>
              </object>
            </child>

            <!-- Software Updates -->
            <child>
              <object class="AdwActionRow" id="software_updates_row">
                <property name="activatable">True</property>
                <property name="title" translatable="yes">Software Updates</property>
                <signal name="activated" handler="cc_info_panel_row_activated_cb" swapped="yes"/>
                <child type="suffix">
                  <object class="GtkImage">
                    <property name="valign">center</property>
                    <property name="icon-name">adw-external-link-symbolic</property>
                  </object>
                </child>
              </object>
            </child>

          </object>
        </child>

      </object>
    </child>
  </template>

  <object class="GtkDialog" id="hostname_editor">
    <property name="visible">False</property>
    <property name="modal">True</property>
    <property name="use-header-bar">1</property>
    <property name="default-height">24</property>
    <property name="hide-on-close">True</property>
    <property name="title" translatable="yes">Rename Device</property>
    <signal name="response" handler="on_hostname_editor_dialog_response_cb" object="CcInfoOverviewPanel" swapped="no" />

    <child>
      <object class="GtkBox">
        <property name="margin-top">18</property>
        <property name="margin-start">12</property>
        <property name="margin-end">12</property>
        <property name="margin-bottom">18</property>
        <property name="orientation">vertical</property>
        <child>
          <object class="GtkLabel" id="device_name_description">
            <property name="margin-bottom">18</property>
            <property name="wrap">True</property>
            <property name="max-width-chars">35</property>
            <property name="xalign">0.0</property>
            <property name="label" translatable="yes">The device name is used to identify this device when it is viewed over the network, or when pairing Bluetooth devices.</property>
          </object>
        </child>
        <child>
          <object class="GtkEntry" id="device_name_entry">
            <accessibility>
              <property name="label" translatable="yes">Device name</property>
              <relation name="described-by">device_name_description</relation>
            </accessibility>
            <signal name="changed" handler="on_device_name_entry_changed" swapped="yes"/>
            <signal name="activate" handler="on_device_name_entry_activated_cb" swapped="yes" />
          </object>
        </child>
      </object>
    </child>

    <!-- Rename button -->
    <child type="action">
      <object class="GtkButton" id="rename_button">
        <property name="use-underline">True</property>
        <property name="label" translatable="yes">_Rename</property>
      </object>
    </child>

    <!-- Cancel button -->
    <child type="action">
      <object class="GtkButton" id="cancel_button">
        <property name="use-underline">True</property>
        <property name="label" translatable="yes">_Cancel</property>
      </object>
    </child>

    <action-widgets>
      <action-widget response="apply" default="true">rename_button</action-widget>
      <action-widget response="cancel">cancel_button</action-widget>
    </action-widgets>
  </object>

  <object class="CcHostnameEntry" id="hostname_entry">
    <property name="visible">0</property>
  </object>

</interface>