mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-07-01 15:57:46 +02:00
feat: Add initial Sound Mapping
This commit is contained in:
parent
679b4f0331
commit
5999bb1b45
8 changed files with 206 additions and 52 deletions
|
@ -1,9 +1,12 @@
|
|||
use gtk::{CompositeTemplate, DropDown, TemplateChild, glib};
|
||||
use gtk::prelude::*;
|
||||
use gtk::subclass::prelude::*;
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
||||
use crate::components::base::listEntry::ListEntry;
|
||||
use crate::components::input::inputStreamEntry::InputStreamEntry;
|
||||
use crate::components::input::sourceBox;
|
||||
use gtk::prelude::*;
|
||||
use gtk::subclass::prelude::*;
|
||||
use gtk::{glib, CompositeTemplate, DropDown, TemplateChild};
|
||||
use ReSet_Lib::audio::audio::{OutputStream, Source};
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
#[derive(Default, CompositeTemplate)]
|
||||
|
@ -15,6 +18,8 @@ pub struct SourceBox {
|
|||
pub resetSourceRow: TemplateChild<ListEntry>,
|
||||
#[template_child]
|
||||
pub resetInputStreamButton: TemplateChild<ListEntry>,
|
||||
pub resetSources: Arc<Mutex<Vec<Source>>>,
|
||||
pub resetOutputStreams: Arc<Mutex<Vec<OutputStream>>>,
|
||||
}
|
||||
|
||||
#[glib::object_subclass]
|
||||
|
@ -49,4 +54,5 @@ impl WidgetImpl for SourceBox {}
|
|||
|
||||
impl WindowImpl for SourceBox {}
|
||||
|
||||
impl ApplicationWindowImpl for SourceBox {}
|
||||
impl ApplicationWindowImpl for SourceBox {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue