use crate::components::wifi::wifiOptions; use adw::subclass::prelude::NavigationPageImpl; use adw::{ActionRow, ComboRow, EntryRow, NavigationPage, PreferencesGroup, SwitchRow}; use gtk::subclass::prelude::*; use gtk::{glib, Button, CompositeTemplate}; use std::cell::RefCell; use std::rc::Rc; use ReSet_Lib::network::connection::Connection; #[allow(non_snake_case)] #[derive(Default, CompositeTemplate)] #[template(resource = "/org/Xetibo/ReSet/resetWifiOptions.ui")] pub struct WifiOptions { // General #[template_child] pub resetWifiName: TemplateChild, #[template_child] pub resetWifiMac: TemplateChild, #[template_child] pub resetWifiLinkSpeed: TemplateChild, #[template_child] pub resetWifiIP4Addr: TemplateChild, #[template_child] pub resetWifiIP6Addr: TemplateChild, #[template_child] pub resetWifiGateway: TemplateChild, #[template_child] pub resetWifiDNS: TemplateChild, #[template_child] pub resetWifiLastUsed: TemplateChild, #[template_child] pub resetWifiAutoConnect: TemplateChild, #[template_child] pub resetWifiMetered: TemplateChild, // IPv4 #[template_child] pub resetIP4Method: TemplateChild, #[template_child] pub resetIP4DNS: TemplateChild, #[template_child] pub resetIP4Gateway: TemplateChild, #[template_child] pub resetIP4AddressGroup: TemplateChild, #[template_child] pub resetIP4AddressAddButton: TemplateChild