As per HIG guidelines: https://developer.gnome.org/hig/guidelines/writing-style.html#header-capitalization
133 lines
4.7 KiB
XML
133 lines
4.7 KiB
XML
<?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 details -->
|
|
<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="AdwActionRow" id="hotspot_name_row">
|
|
<property name="title" context="Wi-Fi Hotspot" translatable="yes">Network Name</property>
|
|
<style>
|
|
<class name="property"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow" id="hotspot_security_row">
|
|
<property name="title" context="Wi-Fi Hotspot" translatable="yes">Security Type</property>
|
|
<style>
|
|
<class name="property"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow" id="hotspot_password_row">
|
|
<property name="title" context="Wi-Fi Hotspot" translatable="yes">Password</property>
|
|
<style>
|
|
<class name="property"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
|
|
</template>
|
|
|
|
<!-- Center widget -->
|
|
<object class="AdwWindowTitle" id="wifi_headerbar_title">
|
|
<property name="title" translatable="yes">Wi-Fi</property>
|
|
</object>
|
|
|
|
<!-- Box with the On/Off switch + menu button -->
|
|
<object class="AdwPreferencesGroup" id="details_box">
|
|
|
|
<!-- Enable Wi-Fi -->
|
|
<child>
|
|
<object class="AdwSwitchRow" id="device_enable_row">
|
|
<property name="title" translatable="yes">Wi-Fi</property>
|
|
<signal name="notify::active" handler="device_off_switch_changed_cb" object="NetDeviceWifi" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Saved Networks -->
|
|
<child>
|
|
<object class="CcListRow" id="saved_network_row">
|
|
<property name="title" translatable="yes">Saved Networks</property>
|
|
<property name="show-arrow">True</property>
|
|
<signal name="activated" handler="adw_dialog_present" object="saved_networks_dialog"/>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Connect To Hidden -->
|
|
<child>
|
|
<object class="CcListRow" id="connect_hidden_row">
|
|
<property name="title" translatable="yes">_Connect to Hidden Network…</property>
|
|
<property name="show-arrow">True</property>
|
|
<signal name="activated" handler="on_connect_hidden_network" object="NetDeviceWifi" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
|
|
<!-- Enable Wi-Fi Hotspot -->
|
|
<child>
|
|
<object class="CcListRow" id="hotspot_row">
|
|
<property name="title" translatable="yes">_Turn On Wi-Fi Hotspot…</property>
|
|
<property name="show-arrow">True</property>
|
|
<signal name="activated" handler="on_wifi_hotspot_network" object="NetDeviceWifi" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
|
|
<object class="AdwDialog" id="saved_networks_dialog">
|
|
<property name="title" translatable="yes">Saved Wi-Fi Networks</property>
|
|
<property name="content-width">500</property>
|
|
<property name="content-height">600</property>
|
|
<property name="child">
|
|
<object class="AdwToolbarView">
|
|
<child type="top">
|
|
<object class="AdwHeaderBar"/>
|
|
</child>
|
|
<property name="content">
|
|
<object class="AdwToastOverlay" id="saved_networks_toast_overlay">
|
|
<child>
|
|
<object class="AdwPreferencesPage">
|
|
<child>
|
|
<object class="AdwPreferencesGroup" id="saved_networks_box"/>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</interface>
|