use crate::components::wifi::wifi_options; use adw::subclass::prelude::NavigationPageImpl; use adw::{ ActionRow, ComboRow, EntryRow, NavigationPage, PasswordEntryRow, PreferencesGroup, SwitchRow, }; use gtk::subclass::prelude::*; use gtk::{glib, Button, CompositeTemplate, Label}; use re_set_lib::network::connection::Connection; use std::cell::RefCell; use std::rc::Rc; #[derive(Default, CompositeTemplate)] #[template(resource = "/org/Xetibo/ReSet/resetWifiOptions.ui")] pub struct WifiOptions { // General #[template_child] pub reset_wifi_name: TemplateChild, #[template_child] pub reset_wifi_mac: TemplateChild, #[template_child] pub reset_wifi_link_speed: TemplateChild, #[template_child] pub reset_wifi_ip4_addr: TemplateChild, #[template_child] pub reset_wifi_ip6_addr: TemplateChild, #[template_child] pub reset_wifi_gateway: TemplateChild, #[template_child] pub reset_wifi_dns: TemplateChild, #[template_child] pub reset_wifi_last_used: TemplateChild, #[template_child] pub reset_wifi_auto_connect: TemplateChild, #[template_child] pub reset_wifi_metered: TemplateChild, // IPv4 #[template_child] pub reset_ip4_method: TemplateChild, #[template_child] pub reset_ip4_dns: TemplateChild, #[template_child] pub reset_ip4_gateway: TemplateChild, #[template_child] pub reset_ip4_address_group: TemplateChild, #[template_child] pub reset_ip4_address_add_button: TemplateChild