Rename state to machine

This commit is contained in:
Wojciech Kozlowski 2024-02-18 14:05:07 +01:00
parent d427612bbf
commit 9a803c1dde
9 changed files with 14 additions and 14 deletions

View File

@ -3,7 +3,7 @@
use crate::tui::{ use crate::tui::{
app::{ app::{
state::{ machine::{
browse::AppBrowse, critical::AppCritical, error::AppError, info::AppInfo, browse::AppBrowse, critical::AppCritical, error::AppError, info::AppInfo,
reload::AppReload, search::AppSearch, AppInner, AppMachine, reload::AppReload, search::AppSearch, AppInner, AppMachine,
}, },

View File

@ -1,8 +1,8 @@
use crate::tui::{ use crate::tui::{
app::{ app::{
app::App, app::App,
machine::{AppInner, AppMachine},
selection::{Delta, ListSelection}, selection::{Delta, ListSelection},
state::{AppInner, AppMachine},
AppPublic, AppState, IAppInteractBrowse, AppPublic, AppState, IAppInteractBrowse,
}, },
lib::IMusicHoard, lib::IMusicHoard,
@ -95,7 +95,7 @@ impl<MH: IMusicHoard> IAppInteractBrowse for AppMachine<MH, AppBrowse> {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::tui::app::{ use crate::tui::app::{
state::tests::{inner, music_hoard}, machine::tests::{inner, music_hoard},
IAppInteract, IAppInteract,
}; };

View File

@ -1,7 +1,7 @@
use crate::tui::{ use crate::tui::{
app::{ app::{
app::App, app::App,
state::{AppInner, AppMachine}, machine::{AppInner, AppMachine},
AppPublic, AppState, IAppInteractCritical, AppPublic, AppState, IAppInteractCritical,
}, },
lib::IMusicHoard, lib::IMusicHoard,
@ -47,7 +47,7 @@ impl<MH: IMusicHoard> IAppInteractCritical for AppMachine<MH, AppCritical> {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::tui::app::state::tests::{music_hoard, inner}; use crate::tui::app::machine::tests::{music_hoard, inner};
use super::*; use super::*;

View File

@ -1,7 +1,7 @@
use crate::tui::{ use crate::tui::{
app::{ app::{
app::App, app::App,
state::{AppInner, AppMachine}, machine::{AppInner, AppMachine},
AppPublic, AppState, IAppInteractError, AppPublic, AppState, IAppInteractError,
}, },
lib::IMusicHoard, lib::IMusicHoard,
@ -47,7 +47,7 @@ impl<MH: IMusicHoard> IAppInteractError for AppMachine<MH, AppError> {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::tui::app::state::tests::{inner, music_hoard}; use crate::tui::app::machine::tests::{inner, music_hoard};
use super::*; use super::*;

View File

@ -1,7 +1,7 @@
use crate::tui::{ use crate::tui::{
app::{ app::{
app::App, app::App,
state::{AppInner, AppMachine}, machine::{AppInner, AppMachine},
AppPublic, AppState, IAppInteractInfo, AppPublic, AppState, IAppInteractInfo,
}, },
lib::IMusicHoard, lib::IMusicHoard,
@ -47,7 +47,7 @@ impl<MH: IMusicHoard> IAppInteractInfo for AppMachine<MH, AppInfo> {
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::tui::app::state::tests::{music_hoard, inner}; use crate::tui::app::machine::tests::{music_hoard, inner};
use super::*; use super::*;

View File

@ -2,7 +2,7 @@ use crate::tui::{
app::{ app::{
app::App, app::App,
selection::IdSelection, selection::IdSelection,
state::{AppInner, AppMachine}, machine::{AppInner, AppMachine},
AppPublic, AppState, IAppInteractReload, AppPublic, AppState, IAppInteractReload,
}, },
lib::IMusicHoard, lib::IMusicHoard,
@ -83,7 +83,7 @@ impl<MH: IMusicHoard> IAppInteractReloadPrivate<MH> for AppMachine<MH, AppReload
#[cfg(test)] #[cfg(test)]
mod tests { mod tests {
use crate::tui::app::state::tests::{inner, music_hoard}; use crate::tui::app::machine::tests::{inner, music_hoard};
use super::*; use super::*;

View File

@ -4,7 +4,7 @@ use crate::tui::{
app::{ app::{
app::App, app::App,
selection::ListSelection, selection::ListSelection,
state::{AppInner, AppMachine}, machine::{AppInner, AppMachine},
AppPublic, AppState, IAppInteractSearch, AppPublic, AppState, IAppInteractSearch,
}, },
lib::IMusicHoard, lib::IMusicHoard,
@ -196,7 +196,7 @@ mod tests {
use ratatui::widgets::ListState; use ratatui::widgets::ListState;
use crate::tui::{ use crate::tui::{
app::state::tests::{inner, music_hoard}, app::machine::tests::{inner, music_hoard},
testmod::COLLECTION, testmod::COLLECTION,
}; };

View File

@ -1,6 +1,6 @@
pub mod app; pub mod app;
pub mod selection; pub mod selection;
mod state; mod machine;
use musichoard::collection::Collection; use musichoard::collection::Collection;