summaryrefslogtreecommitdiffstats
path: root/panels/wwan/cc-wwan-device-page.ui
blob: 98999204fbfdd17eaf6492a7fcd34fb750cd9b27 (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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <template class="CcWwanDevicePage" parent="GtkBox">
    <child>
      <object class="GtkStack" id="main_stack">
        <property name="vhomogeneous">False</property>
        <property name="hhomogeneous">False</property>

        <!-- SIM not inserted view -->
        <child>
          <object class="GtkStackPage">
            <property name="name">no-sim-view</property>
            <property name="child">
              <object class="AdwStatusPage">
                <property name="hexpand">True</property>
                <property name="icon-name">auth-sim-missing</property>
                <property name="title" translatable="yes">No SIM</property>
                <property name="description" translatable="yes">Insert a SIM card to use this modem</property>
              </object>
            </property>
          </object>
        </child>

        <!-- SIM locked view -->
        <child>
          <object class="GtkStackPage">
            <property name="name">sim-lock-view</property>
            <property name="child">
              <object class="AdwStatusPage">
                <property name="hexpand">True</property>
                <property name="icon-name">auth-sim-locked</property>
                <property name="title" translatable="yes">SIM Locked</property>
                <child>
                  <object class="GtkButton" id="unlock_button">
                    <property name="halign">center</property>
                    <property name="use-underline">True</property>
                    <property name="label" translatable="yes">_Unlock</property>
                    <signal name="clicked" handler="wwan_device_unlock_clicked_cb" swapped="yes"/>
                    <style>
                      <class name="suggested-action"/>
                    </style>
                  </object>
                </child>
              </object>
            </property>
          </object>
        </child>

        <!-- Network Settings -->
        <child>
          <object class="GtkStackPage">
            <property name="name">settings-view</property>
            <property name="child">
              <object class="GtkBox">
                <property name="margin-top">18</property>
                <property name="orientation">vertical</property>

                <child>
                  <object class="AdwPreferencesGroup">
                    <property name="title" translatable="yes">Network</property>
                    <property name="margin-bottom">32</property>

                    <!-- Internet settings -->
                    <child>
                      <object class="GtkListBox" id="data_settings_list">
                        <property name="selection-mode">none</property>
                        <style>
                          <class name="boxed-list"/>
                        </style>

                        <!-- Enable/Disable Data -->
                        <child>
                          <object class="CcListRow" id="data_enable_row">
                            <property name="use-underline">True</property>
                            <property name="show-switch">True</property>
                            <property name="title" translatable="yes">_Mobile Data</property>
                            <property name="subtitle" translatable="yes">Access data using mobile network</property>
                            <signal name="notify::active" handler="wwan_data_settings_changed_cb" swapped="yes"/>
                          </object>
                        </child>

                        <!-- Data Roaming -->
                        <child>
                          <object class="CcListRow" id="data_roaming_row">
                            <property name="use-underline">True</property>
                            <property name="show-switch">True</property>
                            <property name="title" translatable="yes">_Data Roaming</property>
                            <property name="subtitle" translatable="yes">Use mobile data when roaming</property>
                            <signal name="notify::active" handler="wwan_data_settings_changed_cb" swapped="yes"/>
                          </object>
                        </child>

                      </object>
                    </child>

                  </object>
                </child>

                <!-- Network Settings -->
                <child>
                  <object class="AdwPreferencesGroup">
                    <property name="margin-bottom">32</property>
                    <child>
                      <object class="GtkListBox" id="network_settings_list">
                        <property name="selection-mode">none</property>
                        <signal name="row-activated" handler="wwan_network_settings_activated_cb" swapped="yes"/>
                        <style>
                          <class name="boxed-list"/>
                        </style>
                        <child>
                          <object class="CcListRow" id="network_mode_row">
                            <property name="use-underline">True</property>
                            <property name="show-arrow">True</property>
                            <property name="title" translatable="yes">_Network Mode</property>
                          </object>
                        </child>
                        <child>
                          <object class="CcListRow" id="network_name_row">
                            <property name="use-underline">True</property>
                            <property name="show-arrow">True</property>
                            <property name="title" translatable="yes">N_etwork</property>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </child>

                <child>
                  <object class="AdwPreferencesGroup">
                    <property name="title" translatable="yes">Advanced</property>
                    <child>
                      <object class="GtkListBox" id="advanced_settings_list">
                        <property name="selection-mode">none</property>
                        <style>
                          <class name="boxed-list"/>
                        </style>
                        <signal name="row-activated" handler="wwan_advanced_settings_activated_cb" swapped="yes"/>

                        <!-- Accesss Point Settings -->
                        <child>
                          <object class="CcListRow" id="apn_settings_row">
                            <property name="use-underline">True</property>
                            <property name="show-arrow">true</property>
                            <property name="title" translatable="yes">_Access Point Names</property>
                          </object>
                        </child>

                        <!-- SIM Lock -->
                        <child>
                          <object class="CcListRow" id="sim_lock_row">
                            <property name="use-underline">True</property>
                            <property name="show-arrow">True</property>
                            <property name="title" translatable="yes">_SIM Lock</property>
                            <property name="subtitle" translatable="yes">Lock SIM with PIN</property>
                          </object>
                        </child>

                        <!-- Modem Details -->
                        <child>
                          <object class="CcListRow" id="details_row">
                            <property name="use-underline">True</property>
                            <property name="show-arrow">True</property>
                            <property name="title" translatable="yes">M_odem Details</property>
                          </object>
                        </child>

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

              </object>
            </property>
          </object>
        </child>

      </object> <!-- ./GtkStack main_stack -->
    </child>
  </template>
  <object class="GtkSizeGroup">
    <property name="mode">both</property>
    <widgets>
      <widget name="apn_settings_row"/>
      <widget name="sim_lock_row"/>
      <widget name="details_row"/>
    </widgets>
  </object>
</interface>