summaryrefslogtreecommitdiffstats
path: root/panels/network/network-wifi.ui
blob: be6500defe5eb177bdeb940fb211506894e0f825 (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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <!-- interface-requires gtk+ 3.0 -->
  <template class="NetDeviceWifi" parent="AdwBin">

    <child>
      <object class="GtkStack" id="stack">
        <property name="valign">start</property>
        <property name="vhomogeneous">False</property>

        <child>
          <object class="GtkStackPage">
            <property name="child">
              <object class="GtkBox" id="listbox_box">
                <property name="orientation">vertical</property>
                <property name="height-request">140</property>
              </object>
            </property>
          </object>
        </child>

        <!-- Wi-Fi Hotspot deails -->
        <child>
          <object class="GtkStackPage">
            <property name="child">
              <object class="GtkListBox" id="hotspot_box">
                <property name="selection-mode">none</property>
                <style>
                  <class name="boxed-list" />
                </style>
                <child>
                  <object class="CcListRow" id="hotspot_name_row">
                    <property name="activatable">False</property>
                    <property name="title" context="Wi-Fi Hotspot" translatable="yes">Network Name</property>
                  </object>
                </child>
                <child>
                  <object class="CcListRow" id="hotspot_security_row">
                    <property name="activatable">False</property>
                    <property name="title" context="Wi-Fi Hotspot" translatable="yes">Security type</property>
                  </object>
                </child>
                <child>
                  <object class="CcListRow" id="hotspot_password_row">
                    <property name="activatable">False</property>
                    <property name="title" context="Wi-Fi Hotspot" translatable="yes">Password</property>
                  </object>
                </child>
              </object>
            </property>
          </object>
        </child>

      </object>
    </child>

  </template>

  <!-- Center widget -->
  <object class="GtkBox" id="center_box">
    <property name="orientation">vertical</property>
    <property name="halign">center</property>
    <property name="valign">center</property>
    <child>
      <object class="GtkLabel" id="title_label">
        <property name="label" translatable="yes">Wi-Fi</property>
        <style>
          <class name="title" />
        </style>
      </object>
    </child>
    <child>
      <object class="GtkLabel" id="status_label">
        <style>
          <class name="subtitle" />
        </style>
      </object>
    </child>
  </object>

  <!-- Box with the On/Off switch + menu button -->
  <object class="GtkBox" id="header_box">
    <property name="spacing">6</property>
    <property name="halign">end</property>
    <child>
      <object class="GtkSwitch" id="device_off_switch">
        <property name="valign">center</property>
        <signal name="notify::active" handler="device_off_switch_changed_cb" object="NetDeviceWifi" swapped="yes"/>
        <accessibility>
          <property name="label" translatable="yes">Turn Wi-Fi off</property>
        </accessibility>
      </object>
    </child>
    <child>
      <object class="GtkMenuButton" id="header_button">
        <property name="popover">header_button_popover</property>
        <property name="icon_name">view-more-symbolic</property>
        <accessibility>
          <property name="label" translatable="yes">More options…</property>
        </accessibility>
      </object>
    </child>
  </object>

  <!-- Menu Popover -->
  <object class="GtkPopover" id="header_button_popover">
    <style>
      <class name="menu" />
    </style>
    <child>
      <object class="GtkListBox">
        <property name="selection_mode">none</property>
        <signal name="row_activated" handler="on_popover_row_activated_cb" />
        <child>
          <object class="GtkListBoxRow" id="connect_hidden_row">
            <property name="activatable">True</property>
            <child>
              <object class="GtkLabel">
                <property name="label" translatable="yes">_Connect to Hidden Network…</property>
                <property name="use_underline">True</property>
                <property name="xalign">0</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkListBoxRow" id="start_hotspot_row">
            <property name="activatable">True</property>
            <child>
              <object class="GtkLabel">
                <property name="label" translatable="yes">_Turn On Wi-Fi Hotspot…</property>
                <property name="use_underline">True</property>
                <property name="xalign">0</property>
              </object>
            </child>
          </object>
        </child>
        <child>
          <object class="GtkListBoxRow">
            <property name="activatable">True</property>
            <child>
              <object class="GtkLabel">
                <property name="label" translatable="yes">_Known Wi-Fi Networks</property>
                <property name="use_underline">True</property>
                <property name="xalign">0</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </child>
  </object>
</interface>