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 26011dab9b
commit 169a281fbf
3 changed files with 5 additions and 4 deletions

View file

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

View file

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

View file

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