Rename layout to workspace and fix typo (#36)

This commit is contained in:
TrueDoctor 2021-03-22 09:24:09 +01:00 committed by Keavon Chambers
parent e03bbc099a
commit 36de2bfb02
3 changed files with 5 additions and 4 deletions

View File

@ -1,8 +1,8 @@
mod color; mod color;
mod error; mod error;
pub mod layout;
mod scheduler; mod scheduler;
pub mod tools; pub mod tools;
pub mod workspace;
#[doc(inline)] #[doc(inline)]
pub use error::EditorError; pub use error::EditorError;
@ -15,4 +15,5 @@ use tools::ToolState;
// TODO: serialize with serde to save the current editor state // TODO: serialize with serde to save the current editor state
struct Editor { struct Editor {
tools: ToolState, tools: ToolState,
workspace: workspace::Workspace,
} }

View File

@ -37,6 +37,6 @@ pub enum ToolSettings {
pub enum SelectAppendMode { pub enum SelectAppendMode {
New, New,
Add, Add,
Substract, Subtract,
Intersect, Intersect,
} }

View File

@ -1,12 +1,12 @@
use crate::EditorError; use crate::EditorError;
pub type PanelId = usize; pub type PanelId = usize;
struct LayoutRoot { struct Workspace {
hovered_panel: PanelId, hovered_panel: PanelId,
root: PanelGroup, root: PanelGroup,
} }
impl LayoutRoot { impl Workspace {
// add panel / panel group // add panel / panel group
// delete panel / panel group // delete panel / panel group
// move panel / panel group // move panel / panel group