mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-08 22:52:01 +02:00
commit
4f1eacf56e
|
@ -20,6 +20,7 @@ tokio = { version = "1.33.0", features = [
|
|||
"sync",
|
||||
] }
|
||||
fork = "0.1.22"
|
||||
regex = "1.10.2"
|
||||
|
||||
[build-dependencies]
|
||||
glib-build-tools = "0.18.0"
|
||||
|
|
|
@ -5,12 +5,15 @@ use adw::glib::Object;
|
|||
use adw::prelude::{ComboRowExt, PreferencesRowExt};
|
||||
use dbus::blocking::Connection;
|
||||
use dbus::Error;
|
||||
use glib::{Cast, clone, ObjectExt};
|
||||
use glib::{Cast, clone};
|
||||
use glib::subclass::types::ObjectSubclassIsExt;
|
||||
use gtk::{Align, gio, SignalListItemFactory, StringList, StringObject};
|
||||
use gtk::prelude::{GObjectPropertyExpressionExt, ListItemExt, WidgetExt};
|
||||
use gtk::{gio, StringList, StringObject};
|
||||
use ReSet_Lib::audio::audio::Card;
|
||||
|
||||
use components::utils::createDropdownLabelFactory;
|
||||
|
||||
use crate::components;
|
||||
|
||||
use super::cardEntryImpl;
|
||||
|
||||
glib::wrapper! {
|
||||
|
@ -55,18 +58,7 @@ impl CardEntry {
|
|||
let (device_index, profile_name) = map.get(&selected).unwrap();
|
||||
set_card_profile_of_device(*device_index, profile_name.clone());
|
||||
}));
|
||||
|
||||
let factory = &SignalListItemFactory::new();
|
||||
factory.connect_setup(|_, item| {
|
||||
let item = item.downcast_ref::<gtk::ListItem>().unwrap();
|
||||
let label = gtk::Label::new(None);
|
||||
label.set_halign(Align::Start);
|
||||
item.property_expression("item")
|
||||
.chain_property::<StringObject>("string")
|
||||
.bind(&label, "label", gtk::Widget::NONE);
|
||||
item.set_child(Some(&label));
|
||||
});
|
||||
entry.set_factory(Some(factory));
|
||||
entry.set_factory(Some(&createDropdownLabelFactory()));
|
||||
}
|
||||
entry
|
||||
}
|
||||
|
|
|
@ -3,20 +3,21 @@ use std::time::{Duration, SystemTime};
|
|||
|
||||
use adw::glib;
|
||||
use adw::glib::Object;
|
||||
use adw::prelude::{ButtonExt, RangeExt};
|
||||
use adw::prelude::{ButtonExt, ComboRowExt, PreferencesRowExt, RangeExt};
|
||||
use dbus::blocking::Connection;
|
||||
use dbus::Error;
|
||||
use glib::subclass::types::ObjectSubclassIsExt;
|
||||
use glib::{clone, Cast, Propagation};
|
||||
use gtk::{gio, StringObject};
|
||||
use ReSet_Lib::audio::audio::OutputStream;
|
||||
use crate::components::utils::{createDropdownLabelFactory, setComboRowEllipsis};
|
||||
|
||||
use super::outputStreamEntryImpl;
|
||||
use super::sourceBox::SourceBox;
|
||||
|
||||
glib::wrapper! {
|
||||
pub struct OutputStreamEntry(ObjectSubclass<outputStreamEntryImpl::OutputStreamEntry>)
|
||||
@extends gtk::Box, gtk::Widget,
|
||||
@extends adw::PreferencesGroup, gtk::Widget,
|
||||
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget, gtk::Orientable;
|
||||
}
|
||||
|
||||
|
@ -31,7 +32,9 @@ impl OutputStreamEntry {
|
|||
let box_imp = source_box.imp();
|
||||
let imp = obj.imp();
|
||||
let name = stream.application_name.clone() + ": " + stream.name.as_str();
|
||||
imp.resetSourceName.set_text(name.as_str());
|
||||
imp.resetSourceSelection.set_title(name.as_str());
|
||||
imp.resetSourceSelection.set_factory(Some(&createDropdownLabelFactory()));
|
||||
setComboRowEllipsis(imp.resetSourceSelection.get());
|
||||
let volume = stream.volume.first().unwrap_or(&0_u32);
|
||||
let fraction = (*volume as f64 / 655.36).round();
|
||||
let percentage = (fraction).to_string() + "%";
|
||||
|
@ -69,7 +72,7 @@ impl OutputStreamEntry {
|
|||
// list = box_imp.resetModelList.try_borrow();
|
||||
// }
|
||||
// let list = list.unwrap();
|
||||
imp.resetSelectedSource.set_model(Some(&*list));
|
||||
imp.resetSourceSelection.set_model(Some(&*list));
|
||||
let map = box_imp.resetSourceMap.write().unwrap();
|
||||
// while map.is_err() {
|
||||
// map = box_imp.resetSourceMap.try_borrow();
|
||||
|
@ -83,10 +86,10 @@ impl OutputStreamEntry {
|
|||
let name = &name.alias;
|
||||
let index = map.get(name);
|
||||
if index.is_some() {
|
||||
imp.resetSelectedSource.set_selected(index.unwrap().1);
|
||||
imp.resetSourceSelection.set_selected(index.unwrap().1);
|
||||
}
|
||||
}
|
||||
imp.resetSelectedSource.connect_selected_notify(
|
||||
imp.resetSourceSelection.connect_selected_notify(
|
||||
clone!(@weak imp, @weak box_imp => move |dropdown| {
|
||||
let selected = dropdown.selected_item();
|
||||
if selected.is_none() {
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
use std::cell::RefCell;
|
||||
use std::sync::Arc;
|
||||
use std::time::SystemTime;
|
||||
use adw::{ComboRow, PreferencesGroup};
|
||||
use adw::subclass::prelude::PreferencesGroupImpl;
|
||||
|
||||
use crate::components::input::outputStreamEntry;
|
||||
use gtk::subclass::prelude::*;
|
||||
|
@ -12,9 +14,7 @@ use ReSet_Lib::audio::audio::OutputStream;
|
|||
#[template(resource = "/org/Xetibo/ReSet/resetOutputStreamEntry.ui")]
|
||||
pub struct OutputStreamEntry {
|
||||
#[template_child]
|
||||
pub resetSourceName: TemplateChild<Label>,
|
||||
#[template_child]
|
||||
pub resetSelectedSource: TemplateChild<DropDown>,
|
||||
pub resetSourceSelection: TemplateChild<ComboRow>,
|
||||
#[template_child]
|
||||
pub resetSourceMute: TemplateChild<Button>,
|
||||
#[template_child]
|
||||
|
@ -33,7 +33,7 @@ impl ObjectSubclass for OutputStreamEntry {
|
|||
const ABSTRACT: bool = false;
|
||||
const NAME: &'static str = "resetOutputStreamEntry";
|
||||
type Type = outputStreamEntry::OutputStreamEntry;
|
||||
type ParentType = gtk::Box;
|
||||
type ParentType = PreferencesGroup;
|
||||
|
||||
fn class_init(klass: &mut Self::Class) {
|
||||
klass.bind_template();
|
||||
|
@ -44,7 +44,7 @@ impl ObjectSubclass for OutputStreamEntry {
|
|||
}
|
||||
}
|
||||
|
||||
impl BoxImpl for OutputStreamEntry {}
|
||||
impl PreferencesGroupImpl for OutputStreamEntry {}
|
||||
|
||||
impl ObjectImpl for OutputStreamEntry {}
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
use adw::prelude::PreferencesRowExt;
|
||||
use std::sync::Arc;
|
||||
use std::time::{Duration, SystemTime};
|
||||
|
||||
|
@ -9,8 +10,8 @@ use dbus::blocking::Connection;
|
|||
use dbus::message::SignalArgs;
|
||||
use glib::{Cast, clone, Propagation, Variant};
|
||||
use glib::subclass::prelude::ObjectSubclassIsExt;
|
||||
use gtk::{Align, gio, SignalListItemFactory, StringObject};
|
||||
use gtk::prelude::{ActionableExt, GObjectPropertyExpressionExt, ListItemExt, WidgetExt};
|
||||
use gtk::{gio, StringObject};
|
||||
use gtk::prelude::{ActionableExt};
|
||||
use ReSet_Lib::audio::audio::{Card, OutputStream, Source};
|
||||
|
||||
use crate::components::base::cardEntry::CardEntry;
|
||||
|
@ -21,6 +22,7 @@ use crate::components::base::utils::{
|
|||
};
|
||||
use crate::components::input::sourceBoxImpl;
|
||||
use crate::components::input::sourceEntry::set_source_volume;
|
||||
use crate::components::utils::{createDropdownLabelFactory, setComboRowEllipsis};
|
||||
|
||||
use super::outputStreamEntry::OutputStreamEntry;
|
||||
use super::sourceEntry::{set_default_source, SourceEntry, toggle_source_mute};
|
||||
|
@ -55,25 +57,15 @@ impl SourceBox {
|
|||
selfImp
|
||||
.resetCardsRow
|
||||
.set_action_target_value(Some(&Variant::from("profileConfiguration")));
|
||||
selfImp
|
||||
.resetOutputStreamButton
|
||||
.set_action_name(Some("navigation.pop"));
|
||||
selfImp
|
||||
.resetInputCardsBackButton
|
||||
.set_action_name(Some("navigation.pop"));
|
||||
|
||||
let factory = &SignalListItemFactory::new();
|
||||
factory.connect_setup(|_, item| {
|
||||
let item = item.downcast_ref::<gtk::ListItem>().unwrap();
|
||||
let label = gtk::Label::new(None);
|
||||
label.set_halign(Align::Start);
|
||||
item.property_expression("item")
|
||||
.chain_property::<StringObject>("string")
|
||||
.bind(&label, "label", gtk::Widget::NONE);
|
||||
item.set_child(Some(&label));
|
||||
});
|
||||
selfImp.resetOutputStreamButton.set_activatable(true);
|
||||
selfImp.resetOutputStreamButton.set_action_name(Some("navigation.pop"));
|
||||
|
||||
selfImp.resetSourceDropdown.set_factory(Some(factory));
|
||||
selfImp.resetInputCardsBackButton.set_activatable(true);
|
||||
selfImp.resetInputCardsBackButton.set_action_name(Some("navigation.pop"));
|
||||
|
||||
selfImp.resetSourceDropdown.set_factory(Some(&createDropdownLabelFactory()));
|
||||
setComboRowEllipsis(selfImp.resetSourceDropdown.get());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -457,7 +449,7 @@ pub fn start_input_box_listener(conn: Connection, source_box: Arc<SourceBox>) ->
|
|||
} else {
|
||||
imp.resetSelectedSource.set_active(false);
|
||||
}
|
||||
imp.resetSourceName.set_text(ir.source.alias.clone().as_str());
|
||||
imp.resetSourceName.set_title(ir.source.alias.clone().as_str());
|
||||
imp.resetVolumePercentage.set_text(&percentage);
|
||||
imp.resetVolumeSlider.set_value(*volume as f64);
|
||||
|
||||
|
@ -530,7 +522,7 @@ pub fn start_input_box_listener(conn: Connection, source_box: Arc<SourceBox>) ->
|
|||
.set_icon_name("audio-input-microphone-symbolic");
|
||||
}
|
||||
let name = ir.stream.application_name.clone() + ": " + ir.stream.name.as_str();
|
||||
imp.resetSourceName.set_text(name.as_str());
|
||||
imp.resetSourceSelection.set_title(name.as_str());
|
||||
let volume = ir.stream.volume.first().unwrap_or(&0_u32);
|
||||
let fraction = (*volume as f64 / 655.36).round();
|
||||
let percentage = (fraction).to_string() + "%";
|
||||
|
@ -539,7 +531,7 @@ pub fn start_input_box_listener(conn: Connection, source_box: Arc<SourceBox>) ->
|
|||
let map = output_box_imp.resetSourceMap.read().unwrap();
|
||||
let index = map.get(&alias);
|
||||
if index.is_some() {
|
||||
imp.resetSelectedSource.set_selected(index.unwrap().1);
|
||||
imp.resetSourceSelection.set_selected(index.unwrap().1);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -35,11 +35,11 @@ pub struct SourceBox {
|
|||
#[template_child]
|
||||
pub resetSources: TemplateChild<gtk::Box>,
|
||||
#[template_child]
|
||||
pub resetOutputStreamButton: TemplateChild<ListEntry>,
|
||||
pub resetOutputStreamButton: TemplateChild<ActionRow>,
|
||||
#[template_child]
|
||||
pub resetOutputStreams: TemplateChild<gtk::Box>,
|
||||
#[template_child]
|
||||
pub resetInputCardsBackButton: TemplateChild<ListEntry>,
|
||||
pub resetInputCardsBackButton: TemplateChild<ActionRow>,
|
||||
#[template_child]
|
||||
pub resetCards: TemplateChild<PreferencesGroup>,
|
||||
pub resetDefaultCheckButton: Arc<CheckButton>,
|
||||
|
|
|
@ -3,7 +3,7 @@ use std::time::{Duration, SystemTime};
|
|||
|
||||
use adw::glib;
|
||||
use adw::glib::Object;
|
||||
use adw::prelude::{ButtonExt, CheckButtonExt, RangeExt};
|
||||
use adw::prelude::{ButtonExt, CheckButtonExt, PreferencesRowExt, RangeExt};
|
||||
use dbus::blocking::Connection;
|
||||
use dbus::Error;
|
||||
use glib::subclass::types::ObjectSubclassIsExt;
|
||||
|
@ -15,7 +15,7 @@ use super::sourceEntryImpl;
|
|||
|
||||
glib::wrapper! {
|
||||
pub struct SourceEntry(ObjectSubclass<sourceEntryImpl::SourceEntry>)
|
||||
@extends gtk::Box, gtk::Widget,
|
||||
@extends adw::PreferencesGroup, gtk::Widget,
|
||||
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget, gtk::Orientable;
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ impl SourceEntry {
|
|||
// TODO use event callback for progress bar -> this is the "im speaking" indicator
|
||||
{
|
||||
let imp = obj.imp();
|
||||
imp.resetSourceName.set_text(stream.alias.clone().as_str());
|
||||
imp.resetSourceName.set_title(stream.alias.clone().as_str());
|
||||
let name = Arc::new(stream.name.clone());
|
||||
let volume = stream.volume.first().unwrap_or(&0_u32);
|
||||
let fraction = (*volume as f64 / 655.36).round();
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
use std::cell::RefCell;
|
||||
use std::sync::Arc;
|
||||
use std::time::SystemTime;
|
||||
use adw::{ActionRow, PreferencesGroup};
|
||||
use adw::subclass::prelude::PreferencesGroupImpl;
|
||||
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk::{glib, Button, CheckButton, CompositeTemplate, Label, ProgressBar, Scale};
|
||||
|
@ -13,7 +15,7 @@ use super::sourceEntry;
|
|||
#[template(resource = "/org/Xetibo/ReSet/resetSourceEntry.ui")]
|
||||
pub struct SourceEntry {
|
||||
#[template_child]
|
||||
pub resetSourceName: TemplateChild<Label>,
|
||||
pub resetSourceName: TemplateChild<ActionRow>,
|
||||
#[template_child]
|
||||
pub resetSelectedSource: TemplateChild<CheckButton>,
|
||||
#[template_child]
|
||||
|
@ -33,7 +35,7 @@ impl ObjectSubclass for SourceEntry {
|
|||
const ABSTRACT: bool = false;
|
||||
const NAME: &'static str = "resetSourceEntry";
|
||||
type Type = sourceEntry::SourceEntry;
|
||||
type ParentType = gtk::Box;
|
||||
type ParentType = PreferencesGroup;
|
||||
|
||||
fn class_init(klass: &mut Self::Class) {
|
||||
klass.bind_template();
|
||||
|
@ -44,7 +46,7 @@ impl ObjectSubclass for SourceEntry {
|
|||
}
|
||||
}
|
||||
|
||||
impl BoxImpl for SourceEntry {}
|
||||
impl PreferencesGroupImpl for SourceEntry {}
|
||||
|
||||
impl ObjectImpl for SourceEntry {}
|
||||
|
||||
|
|
|
@ -4,4 +4,5 @@ mod input;
|
|||
pub mod output;
|
||||
pub mod wifi;
|
||||
pub mod window;
|
||||
pub mod utils;
|
||||
|
||||
|
|
|
@ -3,20 +3,21 @@ use std::time::{Duration, SystemTime};
|
|||
|
||||
use adw::glib;
|
||||
use adw::glib::Object;
|
||||
use adw::prelude::{ButtonExt, RangeExt};
|
||||
use adw::prelude::{ButtonExt, ComboRowExt, PreferencesRowExt, RangeExt};
|
||||
use dbus::blocking::Connection;
|
||||
use dbus::Error;
|
||||
use glib::subclass::types::ObjectSubclassIsExt;
|
||||
use glib::{clone, Cast, Propagation};
|
||||
use gtk::{gio, StringObject};
|
||||
use ReSet_Lib::audio::audio::InputStream;
|
||||
use crate::components::utils::{createDropdownLabelFactory, setComboRowEllipsis};
|
||||
|
||||
use super::inputStreamEntryImpl;
|
||||
use super::sinkBox::SinkBox;
|
||||
|
||||
glib::wrapper! {
|
||||
pub struct InputStreamEntry(ObjectSubclass<inputStreamEntryImpl::InputStreamEntry>)
|
||||
@extends gtk::Box, gtk::Widget,
|
||||
@extends adw::PreferencesGroup, gtk::Widget,
|
||||
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget, gtk::Orientable;
|
||||
}
|
||||
|
||||
|
@ -36,7 +37,9 @@ impl InputStreamEntry {
|
|||
.set_icon_name("audio-volume-high-symbolic");
|
||||
}
|
||||
let name = stream.application_name.clone() + ": " + stream.name.as_str();
|
||||
imp.resetSinkName.set_text(name.as_str());
|
||||
imp.resetSinkSelection.set_title(name.as_str());
|
||||
imp.resetSinkSelection.set_factory(Some(&createDropdownLabelFactory()));
|
||||
setComboRowEllipsis(imp.resetSinkSelection.get());
|
||||
let volume = stream.volume.first().unwrap_or(&0_u32);
|
||||
let fraction = (*volume as f64 / 655.36).round();
|
||||
let percentage = (fraction).to_string() + "%";
|
||||
|
@ -76,7 +79,7 @@ impl InputStreamEntry {
|
|||
// list = box_imp.resetModelList.try_borrow();
|
||||
// }
|
||||
// let list = list.unwrap();
|
||||
imp.resetSelectedSink.set_model(Some(&*list));
|
||||
imp.resetSinkSelection.set_model(Some(&*list));
|
||||
let map = box_imp.resetSinkMap.read().unwrap();
|
||||
let sink_list = box_imp.resetSinkList.read().unwrap();
|
||||
let name = sink_list.get(&index);
|
||||
|
@ -84,7 +87,7 @@ impl InputStreamEntry {
|
|||
let name = &name.unwrap().2;
|
||||
let index = map.get(name);
|
||||
if index.is_some() {
|
||||
imp.resetSelectedSink.set_selected(index.unwrap().1);
|
||||
imp.resetSinkSelection.set_selected(index.unwrap().1);
|
||||
}
|
||||
} else {
|
||||
let mut name = box_imp.resetDefaultSink.try_borrow();
|
||||
|
@ -94,11 +97,11 @@ impl InputStreamEntry {
|
|||
let name = &name.unwrap().alias;
|
||||
let index = map.get(name);
|
||||
if index.is_some() {
|
||||
imp.resetSelectedSink.set_selected(index.unwrap().1);
|
||||
imp.resetSinkSelection.set_selected(index.unwrap().1);
|
||||
}
|
||||
}
|
||||
}
|
||||
imp.resetSelectedSink.connect_selected_notify(
|
||||
imp.resetSinkSelection.connect_selected_notify(
|
||||
clone!(@weak imp, @weak box_imp => move |dropdown| {
|
||||
let selected = dropdown.selected_item();
|
||||
if selected.is_none() {
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
use std::cell::RefCell;
|
||||
use std::sync::Arc;
|
||||
use std::time::SystemTime;
|
||||
use adw::{ComboRow, PreferencesGroup};
|
||||
use adw::subclass::prelude::PreferencesGroupImpl;
|
||||
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk::{glib, Button, CompositeTemplate, DropDown, Label, ProgressBar, Scale};
|
||||
use gtk::{glib, Button, CompositeTemplate, Label, ProgressBar, Scale};
|
||||
use ReSet_Lib::audio::audio::InputStream;
|
||||
|
||||
use super::inputStreamEntry;
|
||||
|
@ -13,9 +15,7 @@ use super::inputStreamEntry;
|
|||
#[template(resource = "/org/Xetibo/ReSet/resetInputStreamEntry.ui")]
|
||||
pub struct InputStreamEntry {
|
||||
#[template_child]
|
||||
pub resetSinkName: TemplateChild<Label>,
|
||||
#[template_child]
|
||||
pub resetSelectedSink: TemplateChild<DropDown>,
|
||||
pub resetSinkSelection: TemplateChild<ComboRow>,
|
||||
#[template_child]
|
||||
pub resetSinkMute: TemplateChild<Button>,
|
||||
#[template_child]
|
||||
|
@ -34,7 +34,7 @@ impl ObjectSubclass for InputStreamEntry {
|
|||
const ABSTRACT: bool = false;
|
||||
const NAME: &'static str = "resetInputStreamEntry";
|
||||
type Type = inputStreamEntry::InputStreamEntry;
|
||||
type ParentType = gtk::Box;
|
||||
type ParentType = PreferencesGroup;
|
||||
|
||||
fn class_init(klass: &mut Self::Class) {
|
||||
klass.bind_template();
|
||||
|
@ -45,7 +45,7 @@ impl ObjectSubclass for InputStreamEntry {
|
|||
}
|
||||
}
|
||||
|
||||
impl BoxImpl for InputStreamEntry {}
|
||||
impl PreferencesGroupImpl for InputStreamEntry {}
|
||||
|
||||
impl ObjectImpl for InputStreamEntry {}
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
use adw::prelude::PreferencesRowExt;
|
||||
use adw::prelude::PreferencesGroupExt;
|
||||
use std::sync::Arc;
|
||||
use std::time::{Duration, SystemTime};
|
||||
|
@ -10,9 +11,8 @@ use dbus::blocking::Connection;
|
|||
use dbus::message::SignalArgs;
|
||||
use glib::{Cast, clone, Propagation, Variant};
|
||||
use glib::subclass::prelude::ObjectSubclassIsExt;
|
||||
use gtk::{Align, gio, SignalListItemFactory, StringObject};
|
||||
use gtk::prelude::*;
|
||||
use gtk::prelude::{ActionableExt, GObjectPropertyExpressionExt, ListItemExt};
|
||||
use gtk::{gio, StringObject};
|
||||
use gtk::prelude::ActionableExt;
|
||||
use ReSet_Lib::audio::audio::{Card, InputStream, Sink};
|
||||
|
||||
use crate::components::base::cardEntry::CardEntry;
|
||||
|
@ -21,6 +21,7 @@ use crate::components::base::utils::{
|
|||
InputStreamAdded, InputStreamChanged, InputStreamRemoved, SinkAdded, SinkChanged, SinkRemoved,
|
||||
};
|
||||
use crate::components::output::sinkEntry::set_sink_volume;
|
||||
use crate::components::utils::{createDropdownLabelFactory, setComboRowEllipsis};
|
||||
|
||||
use super::inputStreamEntry::InputStreamEntry;
|
||||
use super::sinkBoxImpl;
|
||||
|
@ -64,25 +65,14 @@ impl SinkBox {
|
|||
.set_action_target_value(Some(&Variant::from("profileConfiguration")));
|
||||
selfImp.resetCardsRow.connect_action_name_notify(|_| {});
|
||||
|
||||
selfImp
|
||||
.resetInputStreamButton
|
||||
.set_action_name(Some("navigation.pop"));
|
||||
selfImp
|
||||
.resetInputCardsBackButton
|
||||
.set_action_name(Some("navigation.pop"));
|
||||
selfImp.resetInputStreamButton.set_activatable(true);
|
||||
selfImp.resetInputStreamButton.set_action_name(Some("navigation.pop"));
|
||||
|
||||
let factory = &SignalListItemFactory::new();
|
||||
factory.connect_setup(|_, item| {
|
||||
let item = item.downcast_ref::<gtk::ListItem>().unwrap();
|
||||
let label = gtk::Label::new(None);
|
||||
label.set_halign(Align::Start);
|
||||
item.property_expression("item")
|
||||
.chain_property::<StringObject>("string")
|
||||
.bind(&label, "label", gtk::Widget::NONE);
|
||||
item.set_child(Some(&label));
|
||||
});
|
||||
selfImp.resetInputCardsBackButton.set_activatable(true);
|
||||
selfImp.resetInputCardsBackButton.set_action_name(Some("navigation.pop"));
|
||||
|
||||
selfImp.resetSinkDropdown.set_factory(Some(factory));
|
||||
selfImp.resetSinkDropdown.set_factory(Some(&createDropdownLabelFactory()));
|
||||
setComboRowEllipsis(selfImp.resetSinkDropdown.get());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -462,7 +452,7 @@ pub fn start_output_box_listener(conn: Connection, sink_box: Arc<SinkBox>) -> Co
|
|||
} else {
|
||||
imp.resetSelectedSink.set_active(false);
|
||||
}
|
||||
imp.resetSinkName.set_text(ir.sink.alias.clone().as_str());
|
||||
imp.resetSinkName.set_title(ir.sink.alias.clone().as_str());
|
||||
imp.resetVolumePercentage.set_text(&percentage);
|
||||
imp.resetVolumeSlider.set_value(*volume as f64);
|
||||
});
|
||||
|
@ -531,7 +521,7 @@ pub fn start_output_box_listener(conn: Connection, sink_box: Arc<SinkBox>) -> Co
|
|||
.set_icon_name("audio-volume-high-symbolic");
|
||||
}
|
||||
let name = ir.stream.application_name.clone() + ": " + ir.stream.name.as_str();
|
||||
imp.resetSinkName.set_text(name.as_str());
|
||||
imp.resetSinkSelection.set_title(name.as_str());
|
||||
let volume = ir.stream.volume.first().unwrap_or(&0_u32);
|
||||
let fraction = (*volume as f64 / 655.36).round();
|
||||
let percentage = (fraction).to_string() + "%";
|
||||
|
@ -540,7 +530,7 @@ pub fn start_output_box_listener(conn: Connection, sink_box: Arc<SinkBox>) -> Co
|
|||
let map = output_box_imp.resetSinkMap.read().unwrap();
|
||||
let index = map.get(&alias);
|
||||
if index.is_some() {
|
||||
imp.resetSelectedSink.set_selected(index.unwrap().1);
|
||||
imp.resetSinkSelection.set_selected(index.unwrap().1);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -37,11 +37,11 @@ pub struct SinkBox {
|
|||
#[template_child]
|
||||
pub resetSinks: TemplateChild<Box>,
|
||||
#[template_child]
|
||||
pub resetInputStreamButton: TemplateChild<ListEntry>,
|
||||
pub resetInputStreamButton: TemplateChild<ActionRow>,
|
||||
#[template_child]
|
||||
pub resetInputStreams: TemplateChild<Box>,
|
||||
#[template_child]
|
||||
pub resetInputCardsBackButton: TemplateChild<ListEntry>,
|
||||
pub resetInputCardsBackButton: TemplateChild<ActionRow>,
|
||||
#[template_child]
|
||||
pub resetCards: TemplateChild<PreferencesGroup>,
|
||||
pub resetDefaultCheckButton: Arc<CheckButton>,
|
||||
|
|
|
@ -3,7 +3,7 @@ use std::time::{Duration, SystemTime};
|
|||
|
||||
use adw::glib;
|
||||
use adw::glib::Object;
|
||||
use adw::prelude::{ButtonExt, CheckButtonExt, RangeExt};
|
||||
use adw::prelude::{ButtonExt, CheckButtonExt, PreferencesRowExt, RangeExt};
|
||||
use dbus::blocking::Connection;
|
||||
use dbus::Error;
|
||||
use glib::subclass::types::ObjectSubclassIsExt;
|
||||
|
@ -15,7 +15,7 @@ use super::sinkEntryImpl;
|
|||
|
||||
glib::wrapper! {
|
||||
pub struct SinkEntry(ObjectSubclass<sinkEntryImpl::SinkEntry>)
|
||||
@extends gtk::Box, gtk::Widget,
|
||||
@extends adw::PreferencesGroup, gtk::Widget,
|
||||
@implements gtk::Accessible, gtk::Buildable, gtk::ConstraintTarget, gtk::Orientable;
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ impl SinkEntry {
|
|||
// TODO handle events
|
||||
{
|
||||
let imp = obj.imp();
|
||||
imp.resetSinkName.set_text(stream.alias.clone().as_str());
|
||||
imp.resetSinkName.set_title(stream.alias.clone().as_str());
|
||||
let name = Arc::new(stream.name.clone());
|
||||
let volume = stream.volume.first().unwrap_or(&0_u32);
|
||||
let fraction = (*volume as f64 / 655.36).round();
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
use std::cell::RefCell;
|
||||
use std::sync::Arc;
|
||||
use std::time::SystemTime;
|
||||
use adw::{ActionRow, PreferencesGroup};
|
||||
use adw::subclass::prelude::PreferencesGroupImpl;
|
||||
|
||||
use crate::components::output::sinkEntry;
|
||||
use gtk::subclass::prelude::*;
|
||||
|
@ -12,7 +14,7 @@ use ReSet_Lib::audio::audio::Sink;
|
|||
#[template(resource = "/org/Xetibo/ReSet/resetSinkEntry.ui")]
|
||||
pub struct SinkEntry {
|
||||
#[template_child]
|
||||
pub resetSinkName: TemplateChild<Label>,
|
||||
pub resetSinkName: TemplateChild<ActionRow>,
|
||||
#[template_child]
|
||||
pub resetSelectedSink: TemplateChild<CheckButton>,
|
||||
#[template_child]
|
||||
|
@ -32,7 +34,7 @@ impl ObjectSubclass for SinkEntry {
|
|||
const ABSTRACT: bool = false;
|
||||
const NAME: &'static str = "resetSinkEntry";
|
||||
type Type = sinkEntry::SinkEntry;
|
||||
type ParentType = gtk::Box;
|
||||
type ParentType = PreferencesGroup;
|
||||
|
||||
fn class_init(klass: &mut Self::Class) {
|
||||
klass.bind_template();
|
||||
|
@ -43,7 +45,7 @@ impl ObjectSubclass for SinkEntry {
|
|||
}
|
||||
}
|
||||
|
||||
impl BoxImpl for SinkEntry {}
|
||||
impl PreferencesGroupImpl for SinkEntry {}
|
||||
|
||||
impl ObjectImpl for SinkEntry {}
|
||||
|
||||
|
|
37
src/components/utils.rs
Normal file
37
src/components/utils.rs
Normal file
|
@ -0,0 +1,37 @@
|
|||
use adw::ComboRow;
|
||||
use adw::gdk::pango::EllipsizeMode;
|
||||
use adw::prelude::ListModelExtManual;
|
||||
use glib::{Cast, Object};
|
||||
use gtk::{Align, SignalListItemFactory, StringObject};
|
||||
use gtk::prelude::{GObjectPropertyExpressionExt, ListBoxRowExt, ListItemExt, WidgetExt};
|
||||
|
||||
pub fn createDropdownLabelFactory() -> SignalListItemFactory {
|
||||
let factory = SignalListItemFactory::new();
|
||||
factory.connect_setup(|_, item| {
|
||||
let item = item.downcast_ref::<gtk::ListItem>().unwrap();
|
||||
let label = gtk::Label::new(None);
|
||||
label.set_halign(Align::Start);
|
||||
item.property_expression("item")
|
||||
.chain_property::<StringObject>("string")
|
||||
.bind(&label, "label", gtk::Widget::NONE);
|
||||
item.set_child(Some(&label));
|
||||
});
|
||||
factory
|
||||
}
|
||||
|
||||
pub fn setComboRowEllipsis(element: ComboRow) {
|
||||
for (i, child) in element.child().unwrap().observe_children().iter::<Object>().enumerate() {
|
||||
if i == 2 {
|
||||
if let Ok(object) = child {
|
||||
if let Some(item) = object.downcast_ref::<gtk::Box>() {
|
||||
if let Some(widget) = item.first_child() {
|
||||
if let Some(label) = widget.downcast_ref::<gtk::Label>() {
|
||||
label.set_ellipsize(EllipsizeMode::End);
|
||||
label.set_max_width_chars(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -10,4 +10,5 @@ pub mod wifiOptionsImpl;
|
|||
pub mod wifiAddressEntry;
|
||||
pub mod wifiAddressEntryImpl;
|
||||
pub mod wifiRouteEntry;
|
||||
pub mod wifiRouteEntryImpl;
|
||||
pub mod wifiRouteEntryImpl;
|
||||
pub mod utils;
|
|
@ -10,6 +10,7 @@ use glib::subclass::types::ObjectSubclassIsExt;
|
|||
use glib::{clone, PropertySet};
|
||||
use gtk::gio;
|
||||
use gtk::prelude::ListBoxRowExt;
|
||||
use crate::components::wifi::wifiBoxImpl::WifiBox;
|
||||
|
||||
glib::wrapper! {
|
||||
pub struct SavedWifiEntry(ObjectSubclass<savedWifiEntryImpl::SavedWifiEntry>)
|
||||
|
@ -18,11 +19,17 @@ glib::wrapper! {
|
|||
}
|
||||
|
||||
impl SavedWifiEntry {
|
||||
pub fn new(name: &String, path: Path<'static>) -> Self {
|
||||
pub fn new(name: &String, path: Path<'static>, wifiBox: &WifiBox) -> Self {
|
||||
let entry: SavedWifiEntry = Object::builder().build();
|
||||
entry.set_activatable(false);
|
||||
let entryImp = entry.imp();
|
||||
// TODO handle edit
|
||||
|
||||
entryImp.resetEditSavedWifiButton.connect_clicked(clone!(@ weak entryImp, @ weak wifiBox => move |_| {
|
||||
// TODO accesspoint has to be saved somewhere i guess
|
||||
// let _option = getConnectionSettings(entryImp.accessPoint.borrow().associated_connection.clone());
|
||||
// wifiBox.resetWifiNavigation.push(&*WifiOptions::new(_option));
|
||||
}));
|
||||
|
||||
entryImp.resetSavedWifiLabel.set_text(name);
|
||||
entryImp.resetConnectionPath.set(path);
|
||||
entryImp.resetDeleteSavedWifiButton.connect_clicked(
|
||||
|
|
|
@ -6,6 +6,7 @@ use adw::subclass::prelude::ActionRowImpl;
|
|||
use dbus::Path;
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk::{glib, Button, CompositeTemplate, Label};
|
||||
use ReSet_Lib::network::network::AccessPoint;
|
||||
|
||||
use super::savedWifiEntry;
|
||||
|
||||
|
@ -20,6 +21,7 @@ pub struct SavedWifiEntry {
|
|||
#[template_child]
|
||||
pub resetSavedWifiLabel: TemplateChild<Label>,
|
||||
pub resetConnectionPath: RefCell<Path<'static>>,
|
||||
pub accessPoint: RefCell<AccessPoint>,
|
||||
}
|
||||
|
||||
unsafe impl Send for SavedWifiEntry {}
|
||||
|
|
29
src/components/wifi/utils.rs
Normal file
29
src/components/wifi/utils.rs
Normal file
|
@ -0,0 +1,29 @@
|
|||
use std::collections::HashMap;
|
||||
use std::time::Duration;
|
||||
use dbus::arg::{RefArg};
|
||||
use dbus::blocking::Connection;
|
||||
use dbus::Error;
|
||||
use dbus::Path;
|
||||
use ReSet_Lib::network::connection::Connection as ResetConnection;
|
||||
|
||||
pub fn getConnectionSettings(path: Path<'static>) -> ResetConnection {
|
||||
let conn = Connection::new_session().unwrap();
|
||||
let proxy = conn.with_proxy(
|
||||
"org.xetibo.ReSet",
|
||||
"/org/xetibo/ReSet",
|
||||
Duration::from_millis(1000),
|
||||
);
|
||||
let res: Result<
|
||||
(HashMap<String, HashMap<String, dbus::arg::Variant<Box<dyn RefArg>>>>,),
|
||||
Error,
|
||||
> = proxy.method_call("org.xetibo.ReSet", "GetConnectionSettings", (path,));
|
||||
if res.is_err() {
|
||||
ResetConnection::default();
|
||||
}
|
||||
let (res,) = res.unwrap();
|
||||
let res = ResetConnection::convert_from_propmap(res);
|
||||
if res.is_err() {
|
||||
ResetConnection::default();
|
||||
}
|
||||
res.unwrap()
|
||||
}
|
|
@ -1,5 +1,3 @@
|
|||
use std::collections::HashMap;
|
||||
|
||||
use std::sync::atomic::Ordering;
|
||||
|
||||
use std::sync::Arc;
|
||||
|
@ -24,6 +22,7 @@ use gtk::prelude::{ActionableExt, WidgetExt};
|
|||
use ReSet_Lib::network::network::{AccessPoint, WifiStrength};
|
||||
use ReSet_Lib::signals::{AccessPointAdded};
|
||||
use ReSet_Lib::signals::{AccessPointChanged, AccessPointRemoved};
|
||||
use crate::components::utils::setComboRowEllipsis;
|
||||
|
||||
|
||||
use crate::components::wifi::wifiBoxImpl;
|
||||
|
@ -31,7 +30,6 @@ use crate::components::wifi::wifiEntry::WifiEntry;
|
|||
|
||||
use super::savedWifiEntry::SavedWifiEntry;
|
||||
|
||||
use ReSet_Lib::network::connection::Connection as ResetConnection;
|
||||
|
||||
glib::wrapper! {
|
||||
pub struct WifiBox(ObjectSubclass<wifiBoxImpl::WifiBox>)
|
||||
|
@ -57,9 +55,9 @@ impl WifiBox {
|
|||
.resetSavedNetworks
|
||||
.set_action_target_value(Some(&Variant::from("saved")));
|
||||
|
||||
selfImp
|
||||
.resetAvailableNetworks
|
||||
.set_action_name(Some("navigation.pop"));
|
||||
selfImp.resetAvailableNetworks.set_activatable(true);
|
||||
selfImp.resetAvailableNetworks.set_action_name(Some("navigation.pop"));
|
||||
setComboRowEllipsis(selfImp.resetWiFiDevice.get());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -103,7 +101,7 @@ pub fn show_stored_connections(wifiBox: Arc<WifiBox>) {
|
|||
// TODO include button for settings
|
||||
let name =
|
||||
&String::from_utf8(connection.1).unwrap_or_else(|_| String::from(""));
|
||||
let entry = SavedWifiEntry::new(name, connection.0);
|
||||
let entry = SavedWifiEntry::new(name, connection.0, selfImp);
|
||||
selfImp.resetStoredWifiList.add(&entry);
|
||||
}
|
||||
});
|
||||
|
@ -154,28 +152,6 @@ pub fn get_stored_connections() -> Vec<(Path<'static>, Vec<u8>)> {
|
|||
connections
|
||||
}
|
||||
|
||||
pub fn getConnectionSettings(path: Path<'static>) -> ResetConnection {
|
||||
let conn = Connection::new_session().unwrap();
|
||||
let proxy = conn.with_proxy(
|
||||
"org.xetibo.ReSet",
|
||||
"/org/xetibo/ReSet",
|
||||
Duration::from_millis(1000),
|
||||
);
|
||||
let res: Result<
|
||||
(HashMap<String, HashMap<String, dbus::arg::Variant<Box<dyn RefArg>>>>,),
|
||||
Error,
|
||||
> = proxy.method_call("org.xetibo.ReSet", "GetConnectionSettings", (path,));
|
||||
if res.is_err() {
|
||||
ResetConnection::default();
|
||||
}
|
||||
let (res,) = res.unwrap();
|
||||
let res = ResetConnection::convert_from_propmap(res);
|
||||
if res.is_err() {
|
||||
ResetConnection::default();
|
||||
}
|
||||
res.unwrap()
|
||||
}
|
||||
|
||||
pub fn start_event_listener(listeners: Arc<Listeners>, wifi_box: Arc<WifiBox>) {
|
||||
gio::spawn_blocking(move || {
|
||||
if listeners.network_listener.load(Ordering::SeqCst) {
|
||||
|
|
|
@ -29,7 +29,7 @@ pub struct WifiBox {
|
|||
#[template_child]
|
||||
pub resetStoredWifiList: TemplateChild<PreferencesGroup>,
|
||||
#[template_child]
|
||||
pub resetAvailableNetworks: TemplateChild<ListEntry>,
|
||||
pub resetAvailableNetworks: TemplateChild<ActionRow>,
|
||||
pub wifiEntries: Arc<Mutex<HashMap<Vec<u8>, Arc<WifiEntry>>>>,
|
||||
pub wifiEntriesPath: Arc<Mutex<HashMap<Path<'static>, Arc<WifiEntry>>>>,
|
||||
pub savedWifiEntries: Arc<Mutex<Vec<ListEntry>>>,
|
||||
|
|
|
@ -12,8 +12,8 @@ use glib::clone;
|
|||
use gtk::gio;
|
||||
use gtk::prelude::{ListBoxRowExt, WidgetExt};
|
||||
use ReSet_Lib::network::network::{AccessPoint, WifiStrength};
|
||||
use crate::components::wifi::utils::getConnectionSettings;
|
||||
|
||||
use crate::components::wifi::wifiBox::getConnectionSettings;
|
||||
use crate::components::wifi::wifiBoxImpl::WifiBox;
|
||||
use crate::components::wifi::wifiEntryImpl;
|
||||
use crate::components::wifi::wifiOptions::WifiOptions;
|
||||
|
|
|
@ -5,8 +5,9 @@ use adw::glib::Object;
|
|||
use adw::prelude::{ActionRowExt, ComboRowExt, PreferencesGroupExt};
|
||||
use adw::subclass::prelude::ObjectSubclassIsExt;
|
||||
use dbus::arg::PropMap;
|
||||
use glib::{PropertySet, ObjectExt};
|
||||
use glib::{clone, PropertySet};
|
||||
use gtk::prelude::{EditableExt, WidgetExt};
|
||||
use regex::Regex;
|
||||
use ReSet_Lib::network::connection::{Connection, Enum, TypeSettings};
|
||||
|
||||
use crate::components::wifi::wifiAddressEntry::WifiAddressEntry;
|
||||
|
@ -24,7 +25,8 @@ impl WifiOptions {
|
|||
let wifiOption: Arc<WifiOptions> = Arc::new(Object::builder().build());
|
||||
wifiOption.imp().connection.set(connection);
|
||||
wifiOption.initializeUI();
|
||||
setupCallbacks(wifiOption)
|
||||
setupCallbacks(&wifiOption);
|
||||
wifiOption
|
||||
}
|
||||
|
||||
pub fn initializeUI(&self) {
|
||||
|
@ -35,8 +37,25 @@ impl WifiOptions {
|
|||
selfImp.resetWifiAutoConnect.set_active(conn.settings.autoconnect);
|
||||
selfImp.resetWifiMetered.set_active(conn.settings.metered != -1);
|
||||
match &conn.device {
|
||||
TypeSettings::WIFI(_wifi) => {}
|
||||
TypeSettings::ETHERNET(_ethernet) => {}
|
||||
TypeSettings::WIFI(wifi) => {
|
||||
selfImp.resetWifiLinkSpeed.set_visible(false);
|
||||
selfImp.resetWifiIP4Addr.set_visible(false);
|
||||
selfImp.resetWifiIP6Addr.set_visible(false);
|
||||
selfImp.resetWifiDNS.set_visible(false);
|
||||
selfImp.resetWifiGateway.set_visible(false);
|
||||
selfImp.resetWifiLastUsed.set_visible(true);
|
||||
selfImp.resetWifiMac.set_subtitle(&*wifi.cloned_mac_address);
|
||||
}
|
||||
TypeSettings::ETHERNET(ethernet) => {
|
||||
selfImp.resetWifiLinkSpeed.set_visible(true);
|
||||
selfImp.resetWifiIP4Addr.set_visible(true);
|
||||
selfImp.resetWifiIP6Addr.set_visible(true);
|
||||
selfImp.resetWifiDNS.set_visible(true);
|
||||
selfImp.resetWifiGateway.set_visible(true);
|
||||
selfImp.resetWifiLastUsed.set_visible(false);
|
||||
selfImp.resetWifiMac.set_subtitle(&*ethernet.cloned_mac_address);
|
||||
selfImp.resetWifiLinkSpeed.set_subtitle(&*ethernet.speed.to_string());
|
||||
}
|
||||
TypeSettings::VPN(_vpn) => {}
|
||||
TypeSettings::None => {}
|
||||
};
|
||||
|
@ -147,20 +166,51 @@ impl WifiOptions {
|
|||
}
|
||||
}
|
||||
|
||||
fn setupCallbacks(wifiOptions: Arc<WifiOptions>) -> Arc<WifiOptions> {
|
||||
fn setupCallbacks(wifiOptions: &Arc<WifiOptions>) {
|
||||
let imp = wifiOptions.imp();
|
||||
let wifiOptionsRef = wifiOptions.clone();
|
||||
let wifiOptionsRef2 = wifiOptions.clone();
|
||||
|
||||
imp.resetIP4Method.connect_selected_notify(move |dropdown| {
|
||||
// General
|
||||
imp.resetWifiAutoConnect.connect_active_notify(clone!(@weak imp => move |x| {
|
||||
imp.connection.borrow_mut().settings.autoconnect = x.is_active();
|
||||
}));
|
||||
imp.resetWifiMetered.connect_active_notify(clone!(@weak imp => move |x| {
|
||||
imp.connection.borrow_mut().settings.metered = if x.is_active() { 1 } else { 2 };
|
||||
}));
|
||||
// IPv4
|
||||
let wifiOptionsIP4 = wifiOptions.clone();
|
||||
imp.resetIP4Method.connect_selected_notify(clone!(@weak imp => move |dropdown| {
|
||||
let selected = dropdown.selected();
|
||||
wifiOptionsRef.setIP4Visibility(selected);
|
||||
});
|
||||
imp.resetIP6Method.connect_selected_notify(move |dropdown| {
|
||||
wifiOptionsIP4.setIP4Visibility(selected);
|
||||
}));
|
||||
|
||||
let dnsRegex = Regex::new(r"^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$").unwrap();
|
||||
imp.resetIP4DNS.connect_changed(clone!(@weak imp => move |entry| {
|
||||
let dnsInput = entry.text();
|
||||
let mut conn = imp.connection.borrow_mut();
|
||||
conn.ipv4.dns.clear();
|
||||
if dnsInput.as_str().is_empty() {
|
||||
imp.resetIP4DNS.remove_css_class("error");
|
||||
return;
|
||||
}
|
||||
for dnsEntry in dnsInput.as_str().split(',').collect::<Vec<&str>>() {
|
||||
if dnsRegex.is_match(dnsEntry) {
|
||||
imp.resetIP4DNS.remove_css_class("error");
|
||||
let dnsParts = dnsEntry.split('.')
|
||||
.map(|s| s.parse::<u8>().unwrap())
|
||||
.collect::<Vec<u8>>();
|
||||
conn.ipv4.dns.push(dnsParts);
|
||||
} else {
|
||||
imp.resetIP4DNS.add_css_class("error");
|
||||
}
|
||||
}
|
||||
}));
|
||||
// IPv6
|
||||
let wifiOptionsIP6 = wifiOptions.clone();
|
||||
imp.resetIP6Method.connect_selected_notify(clone!(@weak imp => move |dropdown| {
|
||||
let selected = dropdown.selected();
|
||||
wifiOptionsRef2.setIP6Visibility(selected);
|
||||
});
|
||||
wifiOptions
|
||||
wifiOptionsIP6.setIP6Visibility(selected);
|
||||
}));
|
||||
// Security
|
||||
}
|
||||
|
||||
pub fn getValueFromKey(map: &PropMap, key: &str) -> String {
|
||||
|
|
|
@ -4,7 +4,7 @@ use adw::{ActionRow, ComboRow, EntryRow, NavigationPage, PreferencesGroup, Switc
|
|||
use adw::subclass::prelude::NavigationPageImpl;
|
||||
use crate::components::wifi::{wifiOptions};
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk::{glib, CompositeTemplate};
|
||||
use gtk::{glib, CompositeTemplate, Button};
|
||||
use ReSet_Lib::network::connection::Connection;
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
|
@ -27,6 +27,8 @@ pub struct WifiOptions {
|
|||
#[template_child]
|
||||
pub resetWifiDNS: TemplateChild<ActionRow>,
|
||||
#[template_child]
|
||||
pub resetWifiLastUsed: TemplateChild<ActionRow>,
|
||||
#[template_child]
|
||||
pub resetWifiAutoConnect: TemplateChild<SwitchRow>,
|
||||
#[template_child]
|
||||
pub resetWifiMetered: TemplateChild<SwitchRow>,
|
||||
|
@ -54,6 +56,8 @@ pub struct WifiOptions {
|
|||
pub resetIP6RoutesGroup: TemplateChild<PreferencesGroup>,
|
||||
// Security
|
||||
// Misc
|
||||
#[template_child]
|
||||
pub wifiOptionsApplyButton: TemplateChild<Button>,
|
||||
pub connection: Rc<RefCell<Connection>>
|
||||
}
|
||||
|
||||
|
|
|
@ -131,33 +131,16 @@
|
|||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkListBox">
|
||||
<property name="css-classes">boxed-list</property>
|
||||
<property name="margin-bottom">10</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<property name="show-separators">True</property>
|
||||
<property name="valign">start</property>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="resetListBoxRow" id="resetOutputStreamButton">
|
||||
<object class="AdwActionRow" id="resetOutputStreamButton">
|
||||
<property name="title">Input Streams</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="height-request">40</property>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Input Streams</property>
|
||||
<property name="margin-start">5</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkImage">
|
||||
<property name="halign">end</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="icon-name">go-previous-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
</object>
|
||||
</child>
|
||||
<object class="GtkImage">
|
||||
<property name="halign">end</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="icon-name">go-previous-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
@ -190,33 +173,16 @@
|
|||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkListBox">
|
||||
<property name="css-classes">boxed-list</property>
|
||||
<property name="margin-bottom">10</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<property name="show-separators">True</property>
|
||||
<property name="valign">start</property>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="resetListBoxRow" id="resetInputCardsBackButton">
|
||||
<object class="AdwActionRow" id="resetInputCardsBackButton">
|
||||
<property name="title">Input Streams</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="height-request">40</property>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Input Streams</property>
|
||||
<property name="margin-start">5</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkImage">
|
||||
<property name="halign">end</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="icon-name">go-previous-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
</object>
|
||||
</child>
|
||||
<object class="GtkImage">
|
||||
<property name="halign">end</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="icon-name">go-previous-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
|
|
@ -131,33 +131,16 @@
|
|||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkListBox">
|
||||
<property name="css-classes">boxed-list</property>
|
||||
<property name="margin-bottom">10</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<property name="show-separators">True</property>
|
||||
<property name="valign">start</property>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="resetListBoxRow" id="resetInputStreamButton">
|
||||
<object class="AdwActionRow" id="resetInputStreamButton">
|
||||
<property name="title">Output Streams</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="height-request">40</property>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Output Streams</property>
|
||||
<property name="margin-start">5</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkImage">
|
||||
<property name="halign">end</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="icon-name">go-previous-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
</object>
|
||||
</child>
|
||||
<object class="GtkImage">
|
||||
<property name="halign">end</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="icon-name">go-previous-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
@ -193,33 +176,16 @@
|
|||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkListBox">
|
||||
<property name="css-classes">boxed-list</property>
|
||||
<property name="margin-bottom">10</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<property name="show-separators">True</property>
|
||||
<property name="valign">start</property>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="resetListBoxRow" id="resetInputCardsBackButton">
|
||||
<object class="AdwActionRow" id="resetInputCardsBackButton">
|
||||
<property name="title">Output Streams</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="height-request">40</property>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Output Streams</property>
|
||||
<property name="margin-start">5</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkImage">
|
||||
<property name="halign">end</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="icon-name">go-previous-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
</object>
|
||||
</child>
|
||||
<object class="GtkImage">
|
||||
<property name="halign">end</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="icon-name">go-previous-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
@ -229,11 +195,11 @@
|
|||
<child>
|
||||
<object class="GtkLabel"/>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup" id="resetCards">
|
||||
<property name="title">Devices</property>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup" id="resetCards">
|
||||
<property name="title">Devices</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
|
|
@ -2,71 +2,72 @@
|
|||
<!-- Created with Cambalache 0.17.0 -->
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.12"/>
|
||||
<template class="resetInputStreamEntry" parent="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<requires lib="libadwaita" version="1.4"/>
|
||||
<template class="resetInputStreamEntry" parent="AdwPreferencesGroup">
|
||||
<property name="margin-bottom">10</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="resetSinkName">
|
||||
<property name="label">text</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="wrap">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkDropDown" id="resetSelectedSink">
|
||||
<property name="halign">end</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="margin-end">5</property>
|
||||
</object>
|
||||
</child>
|
||||
<object class="GtkSeparator">
|
||||
<property name="margin-top">10</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="resetSinkMute">
|
||||
<property name="icon-name">audio-volume-high-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScale" id="resetVolumeSlider">
|
||||
<property name="adjustment">
|
||||
<object class="GtkAdjustment">
|
||||
<property name="page-increment">2005.4016</property>
|
||||
<property name="step-increment">2005.4016</property>
|
||||
<property name="upper">100270.08</property>
|
||||
<object class="AdwComboRow" id="resetSinkSelection">
|
||||
<property name="css-classes">audioRow</property>
|
||||
<property name="title">asadf</property>
|
||||
<property name="use-subtitle">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="child">
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="resetSinkMute">
|
||||
<property name="icon-name">audio-input-microphone-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScale" id="resetVolumeSlider">
|
||||
<property name="adjustment">
|
||||
<object class="GtkAdjustment">
|
||||
<property name="page-increment">2005.4016</property>
|
||||
<property name="step-increment">2005.4016</property>
|
||||
<property name="upper">100270.08</property>
|
||||
</object>
|
||||
</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="value-pos">bottom</property>
|
||||
<marks>
|
||||
<mark position="bottom" value="65536.0">100%</mark>
|
||||
</marks>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="resetVolumePercentage">
|
||||
<property name="label">100%</property>
|
||||
<property name="lines">1</property>
|
||||
<property name="width-request">40</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="value-pos">bottom</property>
|
||||
<marks>
|
||||
<mark position="bottom" value="65536.0">100%</mark>
|
||||
</marks>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkProgressBar" id="resetVolumeMeter">
|
||||
<property name="margin-top">5</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="resetVolumePercentage">
|
||||
<property name="label">100%</property>
|
||||
<property name="lines">1</property>
|
||||
<property name="width-request">40</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkProgressBar" id="resetVolumeMeter">
|
||||
<property name="margin-top">5</property>
|
||||
</property>
|
||||
<property name="css-classes">audioRow
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
|
|
|
@ -2,71 +2,71 @@
|
|||
<!-- Created with Cambalache 0.17.0 -->
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.12"/>
|
||||
<template class="resetOutputStreamEntry" parent="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<requires lib="libadwaita" version="1.4"/>
|
||||
<template class="resetOutputStreamEntry" parent="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="resetSourceName">
|
||||
<property name="label">text</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="wrap">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkDropDown" id="resetSelectedSource">
|
||||
<property name="halign">end</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="margin-end">5</property>
|
||||
</object>
|
||||
</child>
|
||||
<object class="GtkSeparator">
|
||||
<property name="margin-top">10</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="resetSourceMute">
|
||||
<property name="icon-name">audio-input-microphone-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScale" id="resetVolumeSlider">
|
||||
<property name="adjustment">
|
||||
<object class="GtkAdjustment">
|
||||
<property name="page-increment">2005.4016</property>
|
||||
<property name="step-increment">2005.4016</property>
|
||||
<property name="upper">100270.08</property>
|
||||
<object class="AdwComboRow" id="resetSourceSelection">
|
||||
<property name="css-classes">audioRow</property>
|
||||
<property name="title">asadf</property>
|
||||
<property name="use-subtitle">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="child">
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="resetSourceMute">
|
||||
<property name="icon-name">audio-input-microphone-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScale" id="resetVolumeSlider">
|
||||
<property name="adjustment">
|
||||
<object class="GtkAdjustment">
|
||||
<property name="page-increment">2005.4016</property>
|
||||
<property name="step-increment">2005.4016</property>
|
||||
<property name="upper">100270.08</property>
|
||||
</object>
|
||||
</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="value-pos">bottom</property>
|
||||
<marks>
|
||||
<mark position="bottom" value="65536.0">100%</mark>
|
||||
</marks>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="resetVolumePercentage">
|
||||
<property name="label">100%</property>
|
||||
<property name="lines">1</property>
|
||||
<property name="width-request">40</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="value-pos">bottom</property>
|
||||
<marks>
|
||||
<mark position="bottom" value="65536.0">100%</mark>
|
||||
</marks>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkProgressBar" id="resetVolumeMeter">
|
||||
<property name="margin-top">5</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="resetVolumePercentage">
|
||||
<property name="label">100%</property>
|
||||
<property name="lines">1</property>
|
||||
<property name="width-request">40</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkProgressBar" id="resetVolumeMeter">
|
||||
<property name="margin-top">5</property>
|
||||
</property>
|
||||
<property name="css-classes">audioRow
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
|
|
|
@ -2,22 +2,13 @@
|
|||
<!-- Created with Cambalache 0.17.0 -->
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.12"/>
|
||||
<template class="resetSinkEntry" parent="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<requires lib="libadwaita" version="1.3"/>
|
||||
<template class="resetSinkEntry" parent="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="resetSinkName">
|
||||
<property name="label">text</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="wrap">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<object class="AdwActionRow" id="resetSinkName">
|
||||
<property name="css-classes">audioRow</property>
|
||||
<property name="title">aaaaaaaaaaaaaaa</property>
|
||||
<property name="title-lines">3</property>
|
||||
<child>
|
||||
<object class="GtkCheckButton" id="resetSelectedSink">
|
||||
<property name="halign">end</property>
|
||||
|
@ -28,44 +19,61 @@
|
|||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="resetSinkMute">
|
||||
<property name="icon-name">audio-volume-high-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScale" id="resetVolumeSlider">
|
||||
<property name="adjustment">
|
||||
<object class="GtkAdjustment">
|
||||
<property name="page-increment">2005.4016</property>
|
||||
<property name="step-increment">2005.4016</property>
|
||||
<property name="upper">100270.08</property>
|
||||
<object class="AdwActionRow">
|
||||
<property name="child">
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="resetSinkMute">
|
||||
<property name="icon-name">audio-input-microphone-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScale" id="resetVolumeSlider">
|
||||
<property name="adjustment">
|
||||
<object class="GtkAdjustment">
|
||||
<property name="page-increment">2005.4016</property>
|
||||
<property name="step-increment">2005.4016</property>
|
||||
<property name="upper">100270.08</property>
|
||||
</object>
|
||||
</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="value-pos">bottom</property>
|
||||
<marks>
|
||||
<mark position="bottom" value="65536.0">100%</mark>
|
||||
</marks>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="resetVolumePercentage">
|
||||
<property name="label">100%</property>
|
||||
<property name="lines">1</property>
|
||||
<property name="width-request">40</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="value-pos">bottom</property>
|
||||
<marks>
|
||||
<mark position="bottom" value="65536.0">100%</mark>
|
||||
</marks>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkProgressBar" id="resetVolumeMeter">
|
||||
<property name="margin-top">5</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="resetVolumePercentage">
|
||||
<property name="label">100%</property>
|
||||
<property name="lines">1</property>
|
||||
<property name="width-request">40</property>
|
||||
</object>
|
||||
</child>
|
||||
</property>
|
||||
<property name="css-classes">audioRow
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkProgressBar" id="resetVolumeMeter">
|
||||
<object class="GtkSeparator">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
</object>
|
||||
</child>
|
||||
|
|
|
@ -2,22 +2,13 @@
|
|||
<!-- Created with Cambalache 0.17.0 -->
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.12"/>
|
||||
<template class="resetSourceEntry" parent="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<requires lib="libadwaita" version="1.3"/>
|
||||
<template class="resetSourceEntry" parent="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="resetSourceName">
|
||||
<property name="label">text</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="wrap">True</property>
|
||||
</object>
|
||||
</child>
|
||||
<object class="AdwActionRow" id="resetSourceName">
|
||||
<property name="css-classes">audioRow</property>
|
||||
<property name="title">text</property>
|
||||
<property name="title-lines">3</property>
|
||||
<child>
|
||||
<object class="GtkCheckButton" id="resetSelectedSource">
|
||||
<property name="halign">end</property>
|
||||
|
@ -28,44 +19,61 @@
|
|||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="resetSourceMute">
|
||||
<property name="icon-name">microphone-sensitivity-high-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScale" id="resetVolumeSlider">
|
||||
<property name="adjustment">
|
||||
<object class="GtkAdjustment">
|
||||
<property name="page-increment">2005.4016</property>
|
||||
<property name="step-increment">2005.4016</property>
|
||||
<property name="upper">100270.08</property>
|
||||
<object class="AdwActionRow">
|
||||
<property name="child">
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="resetSourceMute">
|
||||
<property name="icon-name">audio-input-microphone-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScale" id="resetVolumeSlider">
|
||||
<property name="adjustment">
|
||||
<object class="GtkAdjustment">
|
||||
<property name="page-increment">2005.4016</property>
|
||||
<property name="step-increment">2005.4016</property>
|
||||
<property name="upper">100270.08</property>
|
||||
</object>
|
||||
</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="value-pos">bottom</property>
|
||||
<marks>
|
||||
<mark position="bottom" value="65536.0">100%</mark>
|
||||
</marks>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="resetVolumePercentage">
|
||||
<property name="label">100%</property>
|
||||
<property name="lines">1</property>
|
||||
<property name="width-request">40</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="value-pos">bottom</property>
|
||||
<marks>
|
||||
<mark position="bottom" value="65536.0">100%</mark>
|
||||
</marks>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkProgressBar" id="resetVolumeMeter">
|
||||
<property name="margin-top">5</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="resetVolumePercentage">
|
||||
<property name="label">100%</property>
|
||||
<property name="lines">1</property>
|
||||
<property name="width-request">40</property>
|
||||
</object>
|
||||
</child>
|
||||
</property>
|
||||
<property name="css-classes">audioRow
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkProgressBar" id="resetVolumeMeter">
|
||||
<object class="GtkSeparator">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
</object>
|
||||
</child>
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,7 +1,7 @@
|
|||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!-- Created with Cambalache 0.17.0 -->
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.12"/>
|
||||
<requires lib="gtk" version="4.6"/>
|
||||
<requires lib="libadwaita" version="1.4"/>
|
||||
<template class="resetWifi" parent="GtkBox">
|
||||
<property name="hexpand">True</property>
|
||||
|
@ -87,179 +87,6 @@
|
|||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="AdwComboRow">
|
||||
<property name="activatable-widget">
|
||||
<object class="GtkLabel"/>
|
||||
</property>
|
||||
<property name="model">
|
||||
<object class="GtkStringList">
|
||||
<items>
|
||||
<item>asdf</item>
|
||||
<item>dsfds</item>
|
||||
</items>
|
||||
</object>
|
||||
</property>
|
||||
<property name="title">asadf</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="child">
|
||||
<object class="GtkBox">
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="hexpand">True</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="resetOutputStreamEntry">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="resetSourceMute">
|
||||
<property name="icon-name">audio-input-microphone-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScale" id="resetVolumeSlider">
|
||||
<property name="adjustment">
|
||||
<object class="GtkAdjustment">
|
||||
<property name="page-increment">2005.4016</property>
|
||||
<property name="step-increment">2005.4016</property>
|
||||
<property name="upper">100270.08</property>
|
||||
</object>
|
||||
</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="value-pos">bottom</property>
|
||||
<marks>
|
||||
<mark position="bottom" value="65536.0">100%</mark>
|
||||
</marks>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="resetVolumePercentage">
|
||||
<property name="label">100%</property>
|
||||
<property name="lines">1</property>
|
||||
<property name="width-request">40</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkProgressBar" id="resetVolumeMeter">
|
||||
<property name="margin-top">5</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSeparator"/>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="AdwComboRow">
|
||||
<property name="activatable-widget">
|
||||
<object class="GtkLabel"/>
|
||||
</property>
|
||||
<property name="model">
|
||||
<object class="GtkStringList">
|
||||
<items>
|
||||
<item>asdf</item>
|
||||
<item>dsfds</item>
|
||||
</items>
|
||||
</object>
|
||||
</property>
|
||||
<property name="title">asadf</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="child">
|
||||
<object class="GtkBox">
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="hexpand">True</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="resetOutputStreamEn2try">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="margin-bottom">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="resetSou2rceMute">
|
||||
<property name="icon-name">audio-input-microphone-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkScale" id="resetVolum2eSlider">
|
||||
<property name="adjustment">
|
||||
<object class="GtkAdjustment">
|
||||
<property name="page-increment">2005.4016</property>
|
||||
<property name="step-increment">2005.4016</property>
|
||||
<property name="upper">100270.08</property>
|
||||
</object>
|
||||
</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="valign">center</property>
|
||||
<property name="value-pos">bottom</property>
|
||||
<marks>
|
||||
<mark position="bottom" value="65536.0">100%</mark>
|
||||
</marks>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel" id="resetVolum2ePercentage">
|
||||
<property name="label">100%</property>
|
||||
<property name="lines">1</property>
|
||||
<property name="width-request">40</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkProgressBar" id="resetVolu2meMeter">
|
||||
<property name="margin-top">5</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
@ -272,33 +99,16 @@
|
|||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkListBox">
|
||||
<property name="css-classes">boxed-list</property>
|
||||
<property name="margin-bottom">10</property>
|
||||
<property name="margin-end">5</property>
|
||||
<property name="margin-start">5</property>
|
||||
<property name="margin-top">5</property>
|
||||
<property name="show-separators">True</property>
|
||||
<property name="valign">start</property>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="resetListBoxRow" id="resetAvailableNetworks">
|
||||
<object class="AdwActionRow" id="resetAvailableNetworks">
|
||||
<property name="title">Available Networks</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="height-request">40</property>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Available Networks</property>
|
||||
<property name="margin-start">5</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkImage">
|
||||
<property name="halign">end</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="icon-name">go-previous-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
</object>
|
||||
</child>
|
||||
<object class="GtkImage">
|
||||
<property name="halign">end</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="icon-name">go-previous-symbolic</property>
|
||||
<property name="margin-end">5</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
|
|
@ -5,252 +5,270 @@
|
|||
<requires lib="libadwaita" version="1.4"/>
|
||||
<template class="resetWifiOptions" parent="AdwNavigationPage">
|
||||
<child>
|
||||
<object class="GtkNotebook">
|
||||
<property name="scrollable">True</property>
|
||||
<property name="show-border">False</property>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<object class="GtkNotebook">
|
||||
<property name="scrollable">True</property>
|
||||
<property name="show-border">False</property>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="resetWifiName">
|
||||
<property name="css-classes">property</property>
|
||||
<property name="title">WiFi Name</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="resetWifiMac">
|
||||
<property name="css-classes">property</property>
|
||||
<property name="title">MAC-Address</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="resetWifiLinkSpeed">
|
||||
<property name="css-classes">property</property>
|
||||
<property name="title">Link Speed</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="resetWifiIP4Addr">
|
||||
<property name="css-classes">property</property>
|
||||
<property name="title">IPv4 Address</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="resetWifiIP6Addr">
|
||||
<property name="css-classes">property</property>
|
||||
<property name="title">IPv6 Address</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="resetWifiGateway">
|
||||
<property name="css-classes">property</property>
|
||||
<property name="title">Gateway</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="resetWifiDNS">
|
||||
<property name="css-classes">property</property>
|
||||
<property name="title">DNS</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwSwitchRow" id="resetWifiAutoConnect">
|
||||
<property name="title">Connect automatically</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwSwitchRow" id="resetWifiMetered">
|
||||
<property name="title">Metered Connection</property>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="AdwActionRow" id="resetWifiName">
|
||||
<property name="css-classes">property</property>
|
||||
<property name="title">WiFi Name</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="resetWifiMac">
|
||||
<property name="css-classes">property</property>
|
||||
<property name="title">MAC-Address</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="resetWifiLinkSpeed">
|
||||
<property name="css-classes">property</property>
|
||||
<property name="title">Link Speed</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="resetWifiIP4Addr">
|
||||
<property name="css-classes">property</property>
|
||||
<property name="title">IPv4 Address</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="resetWifiIP6Addr">
|
||||
<property name="css-classes">property</property>
|
||||
<property name="title">IPv6 Address</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="resetWifiGateway">
|
||||
<property name="css-classes">property</property>
|
||||
<property name="title">Gateway</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="resetWifiDNS">
|
||||
<property name="css-classes">property</property>
|
||||
<property name="title">DNS</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="resetWifiLastUsed">
|
||||
<property name="css-classes">property</property>
|
||||
<property name="title">Last Used</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwSwitchRow" id="resetWifiAutoConnect">
|
||||
<property name="title">Connect automatically</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwSwitchRow" id="resetWifiMetered">
|
||||
<property name="title">Metered Connection</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel">
|
||||
<property name="label">General</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel">
|
||||
<property name="label">General</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="AdwComboRow" id="resetIP4Method">
|
||||
<property name="model">
|
||||
<object class="GtkStringList">
|
||||
<items>
|
||||
<item>Automatic (DHCP)</item>
|
||||
<item>Manual</item>
|
||||
<item>Link-Local Only</item>
|
||||
<item>Shared to other computers</item>
|
||||
<item>Disabled</item>
|
||||
</items>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="AdwComboRow" id="resetIP4Method">
|
||||
<property name="model">
|
||||
<object class="GtkStringList">
|
||||
<items>
|
||||
<item>Automatic (DHCP)</item>
|
||||
<item>Manual</item>
|
||||
<item>Link-Local Only</item>
|
||||
<item>Shared to other computers</item>
|
||||
<item>Disabled</item>
|
||||
</items>
|
||||
</object>
|
||||
</property>
|
||||
<property name="title">IPv4 Method</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwEntryRow" id="resetIP4DNS">
|
||||
<property name="title">DNS (separate IP by comma, empty for automatic)</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwEntryRow" id="resetIP4Gateway">
|
||||
<property name="title">Gateway</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup" id="resetIP4AddressGroup">
|
||||
<property name="margin-top">10</property>
|
||||
<property name="title">Addresses</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup" id="resetIP4RoutesGroup">
|
||||
<property name="header-suffix">
|
||||
<object class="GtkBox">
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Automatic</property>
|
||||
<property name="margin-end">5</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSwitch">
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</property>
|
||||
<property name="title">IPv4 Method</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwEntryRow" id="resetIP4DNS">
|
||||
<property name="title">DNS (separate IP by comma, empty for automatic)</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwEntryRow" id="resetIP4Gateway">
|
||||
<property name="title">Gateway</property>
|
||||
<property name="margin-top">10</property>
|
||||
<property name="title">Routes</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel">
|
||||
<property name="label">IPv4</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup" id="resetIP4AddressGroup">
|
||||
<property name="margin-top">10</property>
|
||||
<property name="title">Addresses</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup" id="resetIP4RoutesGroup">
|
||||
<property name="header-suffix">
|
||||
<object class="GtkBox">
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Automatic</property>
|
||||
<property name="margin-end">5</property>
|
||||
<object class="AdwComboRow" id="resetIP6Method">
|
||||
<property name="model">
|
||||
<object class="GtkStringList">
|
||||
<items>
|
||||
<item>Automatic</item>
|
||||
<item>Automatic (DHCP)</item>
|
||||
<item>Manual</item>
|
||||
<item>Link-Local Only</item>
|
||||
<item>Shared to other computers</item>
|
||||
<item>Disabled</item>
|
||||
</items>
|
||||
</object>
|
||||
</property>
|
||||
<property name="title">IPv6 Method</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSwitch">
|
||||
<property name="valign">center</property>
|
||||
<object class="AdwEntryRow" id="resetIP6DNS">
|
||||
<property name="title">DNS (separate IP by comma, empty for automatic)</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwEntryRow" id="resetIP6Gateway">
|
||||
<property name="title">Gateway</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</property>
|
||||
<property name="margin-top">10</property>
|
||||
<property name="title">Routes</property>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup" id="resetIP6AddressGroup">
|
||||
<property name="margin-top">10</property>
|
||||
<property name="title">Addresses</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup" id="resetIP6RoutesGroup">
|
||||
<property name="header-suffix">
|
||||
<object class="GtkBox">
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Automatic</property>
|
||||
<property name="margin-end">5</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSwitch">
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</property>
|
||||
<property name="margin-top">10</property>
|
||||
<property name="title">Routes</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel">
|
||||
<property name="label">IPv6</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="AdwComboRow">
|
||||
<property name="model">
|
||||
<object class="GtkStringList">
|
||||
<items>
|
||||
<item>None</item>
|
||||
<item>Enhanced Open</item>
|
||||
<item>WEP 40/128-bit Key (Hex or ASCII)</item>
|
||||
<item>WEP 128-bit Passphrase</item>
|
||||
<item>LEAP</item>
|
||||
<item>Dynamic WEP (802.1X)</item>
|
||||
<item>WPA & WPA2 Personal</item>
|
||||
<item>WPA & WPA2 Enterprise</item>
|
||||
<item>WPA3 Personal</item>
|
||||
</items>
|
||||
</object>
|
||||
</property>
|
||||
<property name="title">Security</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwEntryRow">
|
||||
<property name="title">Username</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPasswordEntryRow">
|
||||
<property name="title">Password</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Security</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel">
|
||||
<property name="label">IPv4</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="AdwComboRow" id="resetIP6Method">
|
||||
<property name="model">
|
||||
<object class="GtkStringList">
|
||||
<items>
|
||||
<item>Automatic</item>
|
||||
<item>Automatic (DHCP)</item>
|
||||
<item>Manual</item>
|
||||
<item>Link-Local Only</item>
|
||||
<item>Shared to other computers</item>
|
||||
<item>Disabled</item>
|
||||
</items>
|
||||
</object>
|
||||
</property>
|
||||
<property name="title">IPv6 Method</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwEntryRow" id="resetIP6DNS">
|
||||
<property name="title">DNS (separate IP by comma, empty for automatic)</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwEntryRow" id="resetIP6Gateway">
|
||||
<property name="title">Gateway</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup" id="resetIP6AddressGroup">
|
||||
<property name="margin-top">10</property>
|
||||
<property name="title">Addresses</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup" id="resetIP6RoutesGroup">
|
||||
<property name="header-suffix">
|
||||
<object class="GtkBox">
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Automatic</property>
|
||||
<property name="margin-end">5</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSwitch">
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</property>
|
||||
<property name="margin-top">10</property>
|
||||
<property name="title">Routes</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel">
|
||||
<property name="label">IPv6</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="AdwComboRow">
|
||||
<property name="model">
|
||||
<object class="GtkStringList">
|
||||
<items>
|
||||
<item>None</item>
|
||||
<item>Enhanced Open</item>
|
||||
<item>WEP 40/128-bit Key (Hex or ASCII)</item>
|
||||
<item>WEP 128-bit Passphrase</item>
|
||||
<item>LEAP</item>
|
||||
<item>Dynamic WEP (802.1X)</item>
|
||||
<item>WPA & WPA2 Personal</item>
|
||||
<item>WPA & WPA2 Enterprise</item>
|
||||
<item>WPA3 Personal</item>
|
||||
</items>
|
||||
</object>
|
||||
</property>
|
||||
<property name="title">Security</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwEntryRow">
|
||||
<property name="title">Username</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPasswordEntryRow">
|
||||
<property name="title">Password</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child type="tab">
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Security</property>
|
||||
<object class="GtkButton" id="wifiOptionsApplyButton">
|
||||
<property name="halign">end</property>
|
||||
<property name="label">Apply</property>
|
||||
<property name="margin-top">10</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
|
|
@ -20,3 +20,7 @@ label.resetSettingLabel {
|
|||
font-size: 32px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
row.audioRow {
|
||||
border-color: transparent;
|
||||
}
|
Loading…
Reference in a new issue