mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-02 14:38:21 -06:00
refactor(engine): move prefs, session_settings, config, shortcuts, autosave to settings/
This commit is contained in:
@@ -11,9 +11,7 @@
|
||||
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
|
||||
|
||||
mod analysis;
|
||||
pub mod autosave;
|
||||
pub mod cmd;
|
||||
pub mod config;
|
||||
pub mod demo;
|
||||
pub mod doc_path;
|
||||
pub mod footage_check;
|
||||
@@ -29,15 +27,13 @@ pub mod media_cache;
|
||||
pub mod menus;
|
||||
pub mod offload;
|
||||
pub mod perf;
|
||||
pub mod prefs;
|
||||
pub mod preview;
|
||||
pub mod psd_import;
|
||||
pub mod remote;
|
||||
pub mod render_queue;
|
||||
pub mod scriptui;
|
||||
pub mod sequence;
|
||||
mod session_settings;
|
||||
pub mod shortcuts;
|
||||
mod settings;
|
||||
pub mod storage;
|
||||
pub mod sysinfo;
|
||||
pub mod templates;
|
||||
@@ -75,6 +71,10 @@ pub use effectcraft_time as time;
|
||||
pub use effectcraft_track as track;
|
||||
pub use history::{Branch, History, HistoryNode};
|
||||
pub use render_queue::{ExportJob, ExportResult, Exporter, JobState};
|
||||
pub use settings::autosave;
|
||||
pub use settings::config;
|
||||
pub use settings::prefs;
|
||||
pub use settings::shortcuts;
|
||||
|
||||
#[derive(Debug, thiserror::Error)]
|
||||
pub enum EngineError {
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
pub mod autosave;
|
||||
pub mod config;
|
||||
pub mod prefs;
|
||||
pub(super) mod session_settings;
|
||||
pub mod shortcuts;
|
||||
@@ -5486,7 +5486,7 @@ mod tests {
|
||||
("panels/viewers.rs", include_str!("../panels/viewers.rs")),
|
||||
// Text the interface draws but does not own: the settings pages and the viewer's channel
|
||||
// and Fast Previews lists come from the engine as data, so their source strings live here.
|
||||
("engine settings pages", include_str!("../../../engine/src/prefs.rs")),
|
||||
("engine settings pages", include_str!("../../../engine/src/settings/prefs.rs")),
|
||||
("engine viewer channels", include_str!("../../../engine/src/viewer.rs")),
|
||||
("engine viewer commands", include_str!("../../../engine/src/cmd/viewer_cmds.rs")),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user