mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-03 14:49:04 +00:00
chore: small cleanup
This commit is contained in:
parent
ad792aa5df
commit
ba6ecf272b
12 changed files with 36 additions and 51 deletions
|
@ -1,6 +1,5 @@
|
||||||
use std::{collections::HashMap, env, fmt::Display, path::Path};
|
|
||||||
|
|
||||||
use crate::linux_distro::LinuxDistro;
|
use crate::linux_distro::LinuxDistro;
|
||||||
|
use std::{collections::HashMap, env, fmt::Display, path::Path};
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub enum DepType {
|
pub enum DepType {
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
use std::fmt::Display;
|
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
profile::Profile,
|
profile::Profile,
|
||||||
profiles::{lighthouse::lighthouse_profile, wivrn::wivrn_profile, wmr::wmr_profile},
|
profiles::{lighthouse::lighthouse_profile, wivrn::wivrn_profile, wmr::wmr_profile},
|
||||||
};
|
};
|
||||||
|
use std::fmt::Display;
|
||||||
|
|
||||||
#[derive(Debug, PartialEq, Eq)]
|
#[derive(Debug, PartialEq, Eq)]
|
||||||
pub enum PhysicalXRDevice {
|
pub enum PhysicalXRDevice {
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
use std::slice::Iter;
|
|
||||||
|
|
||||||
use serde::{Deserialize, Serialize};
|
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
file_utils::{deserialize_file, get_writer},
|
file_utils::{deserialize_file, get_writer},
|
||||||
paths::get_xdg_config_dir,
|
paths::get_xdg_config_dir,
|
||||||
};
|
};
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
use std::slice::Iter;
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||||
pub enum XrtInputName {
|
pub enum XrtInputName {
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
|
use crate::runner::{Runner, RunnerStatus};
|
||||||
use std::{
|
use std::{
|
||||||
mem,
|
mem,
|
||||||
thread::{self, JoinHandle},
|
thread::{self, JoinHandle},
|
||||||
};
|
};
|
||||||
|
|
||||||
use crate::runner::{Runner, RunnerStatus};
|
|
||||||
|
|
||||||
#[derive(Debug, Clone, Default)]
|
#[derive(Debug, Clone, Default)]
|
||||||
pub struct FuncRunnerOut {
|
pub struct FuncRunnerOut {
|
||||||
pub success: bool,
|
pub success: bool,
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
use std::io::Read;
|
|
||||||
|
|
||||||
use crate::file_utils::get_reader;
|
use crate::file_utils::get_reader;
|
||||||
|
use std::io::Read;
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
|
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
|
||||||
pub enum LinuxDistro {
|
pub enum LinuxDistro {
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
use gtk::{
|
use gtk::traits::{GtkApplicationExt, GtkWindowExt};
|
||||||
prelude::IsA,
|
|
||||||
traits::{GtkApplicationExt, GtkWindowExt},
|
|
||||||
};
|
|
||||||
use relm4::{adw::traits::MessageDialogExt, prelude::*};
|
use relm4::{adw::traits::MessageDialogExt, prelude::*};
|
||||||
|
|
||||||
fn alert_base(title: &str, msg: Option<&str>, parent: Option<>k::Window>) -> adw::MessageDialog {
|
fn alert_base(title: &str, msg: Option<&str>, parent: Option<>k::Window>) -> adw::MessageDialog {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
use super::term_widget::TermWidget;
|
||||||
use crate::log_level::LogLevel;
|
use crate::log_level::LogLevel;
|
||||||
use crate::log_parser::MonadoLog;
|
use crate::log_parser::MonadoLog;
|
||||||
use crate::ui::app::{DebugOpenDataAction, DebugOpenPrefixAction};
|
use crate::ui::app::{DebugOpenDataAction, DebugOpenPrefixAction};
|
||||||
|
@ -8,8 +9,6 @@ use relm4::prelude::*;
|
||||||
use relm4::{ComponentSender, SimpleComponent};
|
use relm4::{ComponentSender, SimpleComponent};
|
||||||
use zoha_vte4::TerminalExt;
|
use zoha_vte4::TerminalExt;
|
||||||
|
|
||||||
use super::term_widget::TermWidget;
|
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum SearchDirection {
|
pub enum SearchDirection {
|
||||||
Forward,
|
Forward,
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
use adw::prelude::*;
|
|
||||||
use relm4::{factory::AsyncFactoryComponent, prelude::*, AsyncFactorySender};
|
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
ui::devices_box::DevicesBoxMsg,
|
ui::devices_box::DevicesBoxMsg,
|
||||||
xr_devices::{XRDevice, XRDeviceRole},
|
xr_devices::{XRDevice, XRDeviceRole},
|
||||||
};
|
};
|
||||||
|
use adw::prelude::*;
|
||||||
|
use relm4::{factory::AsyncFactoryComponent, prelude::*, AsyncFactorySender};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
pub enum DeviceRowState {
|
pub enum DeviceRowState {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
use super::alert::alert;
|
||||||
use crate::{
|
use crate::{
|
||||||
adb::get_adb_install_runner,
|
adb::get_adb_install_runner,
|
||||||
cmd_runner::CmdRunner,
|
cmd_runner::CmdRunner,
|
||||||
|
@ -16,8 +17,6 @@ use relm4::{
|
||||||
};
|
};
|
||||||
use std::thread::JoinHandle;
|
use std::thread::JoinHandle;
|
||||||
|
|
||||||
use super::alert::alert;
|
|
||||||
|
|
||||||
#[derive(PartialEq, Eq, Debug, Clone)]
|
#[derive(PartialEq, Eq, Debug, Clone)]
|
||||||
pub enum InstallWivrnStatus {
|
pub enum InstallWivrnStatus {
|
||||||
Success,
|
Success,
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
use crate::profile::{LighthouseDriver, Profile};
|
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
job::{CmdWorkerData, FuncWorkerOut, WorkerJob},
|
job::{CmdWorkerData, FuncWorkerOut, WorkerJob},
|
||||||
state::JobWorkerState,
|
state::JobWorkerState,
|
||||||
};
|
};
|
||||||
|
use crate::profile::{LighthouseDriver, Profile};
|
||||||
use nix::unistd::Pid;
|
use nix::unistd::Pid;
|
||||||
use relm4::{prelude::*, Worker};
|
use relm4::{prelude::*, Worker};
|
||||||
use std::{
|
use std::{
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
pub mod about_dialog;
|
mod about_dialog;
|
||||||
pub mod alert;
|
mod alert;
|
||||||
pub mod app;
|
pub mod app;
|
||||||
pub mod build_window;
|
mod build_window;
|
||||||
pub mod debug_view;
|
mod debug_view;
|
||||||
pub mod devices_box;
|
mod devices_box;
|
||||||
pub mod factories;
|
mod factories;
|
||||||
pub mod fbt_config_editor;
|
mod fbt_config_editor;
|
||||||
pub mod install_wivrn_box;
|
mod install_wivrn_box;
|
||||||
pub mod job_worker;
|
pub mod job_worker;
|
||||||
pub mod libsurvive_setup_window;
|
mod libsurvive_setup_window;
|
||||||
pub mod macros;
|
mod macros;
|
||||||
pub mod main_view;
|
mod main_view;
|
||||||
pub mod preference_rows;
|
mod preference_rows;
|
||||||
pub mod profile_editor;
|
mod profile_editor;
|
||||||
pub mod steam_launch_options_box;
|
mod steam_launch_options_box;
|
||||||
mod steamvr_calibration_box;
|
mod steamvr_calibration_box;
|
||||||
pub mod term_widget;
|
mod term_widget;
|
||||||
pub mod util;
|
mod util;
|
||||||
pub mod wivrn_conf_editor;
|
mod wivrn_conf_editor;
|
||||||
|
|
|
@ -1,21 +1,19 @@
|
||||||
use std::{
|
|
||||||
collections::{HashMap, VecDeque},
|
|
||||||
path::Path,
|
|
||||||
thread::sleep,
|
|
||||||
time::Duration,
|
|
||||||
};
|
|
||||||
|
|
||||||
use crate::paths::get_steamvr_bin_dir_path;
|
|
||||||
|
|
||||||
use super::job_worker::{
|
use super::job_worker::{
|
||||||
internal_worker::JobWorkerOut,
|
internal_worker::JobWorkerOut,
|
||||||
job::{FuncWorkerOut, WorkerJob},
|
job::{FuncWorkerOut, WorkerJob},
|
||||||
JobWorker,
|
JobWorker,
|
||||||
};
|
};
|
||||||
|
use crate::paths::get_steamvr_bin_dir_path;
|
||||||
use relm4::{
|
use relm4::{
|
||||||
gtk::{self, prelude::*},
|
gtk::{self, prelude::*},
|
||||||
ComponentParts, ComponentSender, RelmWidgetExt, SimpleComponent,
|
ComponentParts, ComponentSender, RelmWidgetExt, SimpleComponent,
|
||||||
};
|
};
|
||||||
|
use std::{
|
||||||
|
collections::{HashMap, VecDeque},
|
||||||
|
path::Path,
|
||||||
|
thread::sleep,
|
||||||
|
time::Duration,
|
||||||
|
};
|
||||||
|
|
||||||
#[tracker::track]
|
#[tracker::track]
|
||||||
pub struct SteamVrCalibrationBox {
|
pub struct SteamVrCalibrationBox {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue