summaryrefslogtreecommitdiffstats
path: root/panels/wwan/cc-wwan-panel.ui
blob: a984022af5d34c20f7eecb99058d2cc209ac7819 (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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <template class="CcWwanPanel" parent="CcPanel">

    <!-- Cellular panel on/off switch -->
    <child type="titlebar-end">
      <object class="GtkSwitch" id="enable_switch">
        <accessibility>
          <property name="label" translatable="yes">Enable Mobile Network</property>
        </accessibility>
      </object>
    </child>

    <child type="content">
      <object class="AdwToastOverlay" id="toast_overlay">
        <property name="child">
          <object class="GtkScrolledWindow">
            <property name="hscrollbar-policy">never</property>
            <property name="min-content-height">500</property>
            <child>
              <object class="AdwClamp">
                <property name="margin-top">0</property>
                <property name="margin-bottom">32</property>
                <property name="margin-start">18</property>
                <property name="margin-end">18</property>

                <child>
                  <object class="GtkBox">
                    <property name="hexpand">True</property>
                    <property name="orientation">vertical</property>
                    <child>
                      <object class="GtkStack" id="main_stack">
                        <property name="vhomogeneous">False</property>
                        <property name="hhomogeneous">False</property>
                        <property name="transition-type">crossfade</property>

                        <!-- "No WWAN Adapter" page -->
                        <child>
                          <object class="GtkStackPage">
                            <property name="name">no-wwan-devices</property>
                            <property name="child">
                              <object class="GtkBox">
                                <property name="hexpand">True</property>
                                <property name="vexpand">True</property>
                                <property name="valign">center</property>
                                <property name="orientation">vertical</property>
                                <child>
                                  <object class="GtkImage">
                                    <property name="icon-name">network-cellular-offline-symbolic</property>
                                    <property name="pixel-size">192</property>
                                    <property name="margin-bottom">18</property>
                                    <style>
                                      <class name="dim-label"/>
                                    </style>
                                  </object>
                                </child>
                                <child>
                                  <object class="GtkLabel">
                                    <property name="wrap">True</property>
                                    <property name="label" translatable="yes">No WWAN Adapter Found</property>
                                    <attributes>
                                      <attribute name="weight" value="bold"></attribute>
                                      <attribute name="scale" value="1.2"></attribute>
                                    </attributes>
                                  </object>
                                </child>
                                <child>
                                  <object class="GtkLabel">
                                    <property name="wrap">True</property>
                                    <property name="label" translatable="yes">Make sure you have a Wireless Wan/Cellular device</property>
                                  </object>
                                </child>
                              </object>
                            </property>
                          </object>
                        </child>

                        <!-- "Airplane Mode" page -->
                        <child>
                          <object class="GtkStackPage">
                            <property name="name">airplane-mode</property>
                            <property name="child">
                              <object class="GtkBox">
                                <property name="hexpand">True</property>
                                <property name="vexpand">True</property>
                                <property name="orientation">vertical</property>
                                <property name="valign">center</property>
                                <child>
                                  <object class="GtkImage">
                                    <property name="icon-name">airplane-mode-symbolic</property>
                                    <property name="pixel-size">192</property>
                                    <property name="margin-bottom">18</property>
                                    <style>
                                      <class name="dim-label"/>
                                    </style>
                                  </object>
                                </child>
                                <child>
                                  <object class="GtkLabel">
                                    <property name="wrap">True</property>
                                    <property name="label" translatable="yes">Airplane Mode On</property>
                                    <attributes>
                                      <attribute name="weight" value="bold"></attribute>
                                      <attribute name="scale" value="1.2"></attribute>
                                    </attributes>
                                  </object>
                                </child>
                                <child>
                                  <object class="GtkLabel">
                                    <property name="wrap">True</property>
                                    <property name="label" translatable="yes">Wireless Wan is disabled when airplane mode is on</property>
                                  </object>
                                </child>
                                <child>
                                  <object class="GtkButton">
                                    <property name="halign">center</property>
                                    <property name="use-underline">True</property>
                                    <property name="margin-top">24</property>
                                    <property name="label" translatable="yes">_Turn off Airplane Mode</property>
                                    <signal name="clicked" handler="wwan_on_airplane_off_clicked_cb" swapped="yes"/>
                                  </object>
                                </child>
                              </object>
                            </property>
                          </object>
                        </child>
                        <child>
                          <object class="GtkStackPage">
                            <property name="name">device-settings</property>
                            <property name="child">
                              <object class="GtkBox">
                                <property name="orientation">vertical</property>

                                <child>
                                  <object class="GtkRevealer" id="multi_device_revealer">
                                    <property name="margin-top">18</property>
                                    <property name="child">
                                      <object class="GtkBox">
                                        <property name="orientation">vertical</property>

                                        <!-- Data SIM selector -->
                                        <child>
                                          <object class="GtkListBox" id="data_sim_select_listbox">
                                            <property name="margin-bottom">32</property>
                                            <style>
                                              <class name="boxed-list"/>
                                            </style>
                                            <child>
                                              <object class="AdwComboRow" id="data_list_row">
                                                <property name="title" translatable="yes">Data Connection</property>
                                                <property name="subtitle" translatable="yes">SIM card used for internet</property>
                                                <signal name="notify::selected-item" handler="wwan_data_list_selected_sim_changed_cb" swapped="1"/>
                                              </object>
                                            </child>
                                          </object>
                                        </child>

                                        <!-- Device (SIM) Name -->
                                        <child>
                                          <object class="GtkStackSwitcher" id="devices_switcher">
                                            <property name="stack">devices_stack</property>
                                            <property name="hexpand">True</property>
                                            <property name="halign">center</property>
                                          </object>
                                        </child>

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

                                <!-- Device (SIM) settings page -->
                                <child>
                                  <object class="GtkStack" id="devices_stack">
                                    <property name="vhomogeneous">False</property>
                                    <property name="hhomogeneous">False</property>
                                  </object>
                                </child>

                              </object>
                            </property>
                          </object>
                        </child>
                      </object> <!-- ./GtkStack main_stack -->
                    </child>
                  </object>
                </child>

              </object> <!-- ./AdwClamp -->
            </child>
          </object> <!-- ./GtkScrolledWindow -->
        </property>
      </object>
    </child>

  </template>
</interface>