-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
723 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- SPDX-License-Identifier: GPL-3.0-or-later --> | ||
<interface> | ||
<requires lib="gtk" version="4.0" /> | ||
<requires lib="Adw" version="1.0" /> | ||
<template class="PwRouteDropDown" parent="GtkWidget"> | ||
<property name="layout-manager"> | ||
<object class="GtkBinLayout" /> | ||
</property> | ||
<child> | ||
<object class="GtkDropDown" id="route_dropdown"> | ||
<property name="hexpand">0</property> | ||
<property name="valign">center</property> | ||
<style> | ||
<class name="suffixes" /> | ||
</style> | ||
</object> | ||
</child> | ||
</template> | ||
</interface> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
mod paramavailability; | ||
mod pwchannelobject; | ||
mod manager; | ||
mod pwdeviceobject; | ||
mod pwprofileobject; | ||
mod pwnodemodel; | ||
mod pwnodeobject; | ||
mod pwrouteobject; | ||
mod routedirection; | ||
mod pwroutefiltermodel; | ||
|
||
pub use paramavailability::ParamAvailability; | ||
pub use pwchannelobject::PwChannelObject; | ||
pub use manager::PwvucontrolManager; | ||
pub use pwdeviceobject::PwDeviceObject; | ||
pub use pwprofileobject::{PwProfileObject, ProfileAvailability}; | ||
pub use pwprofileobject::PwProfileObject; | ||
pub use pwnodemodel::PwNodeModel; | ||
pub use pwnodeobject::{PwNodeObject, NodeType}; | ||
pub use pwrouteobject::PwRouteObject; | ||
pub use routedirection::RouteDirection; | ||
pub use pwroutefiltermodel::PwRouteFilterModel; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#[derive(Debug, Copy, Clone, PartialEq, Eq, glib::Enum, Default)] | ||
#[enum_type(name = "ProfileAvailability")] | ||
pub enum ParamAvailability { | ||
#[default] | ||
Unknown, | ||
No, | ||
Yes | ||
} | ||
|
||
impl From<u32> for ParamAvailability { | ||
fn from(value: u32) -> Self { | ||
match value { | ||
1 => ParamAvailability::No, | ||
2 => ParamAvailability::Yes, | ||
_ => ParamAvailability::Unknown, | ||
} | ||
} | ||
} |
Oops, something went wrong.