use iced::Color;

use crate::polygon_draw::Polygon;

#[derive(Debug, Clone)]
pub enum Message {
    None,
    CreatFile,
    GoToLoadView,
    ForceToQuit,
    Tick,
    Save,
    Load,
    TogglePaused,
    ChangeDelta(f32),
    ClickedOnTimeLine(f32),
    ChangeDeltaString(String),

    ChangeNbPerSec(String),
    AddPolygon(String),
    ReAddPolygon(Polygon),
    ChangeTeta(usize, f32),
    Remove(usize),
    ChangeSound(usize),
    ReChangeSound(usize, String),
    LengthChange(String),
    AddPoint,
    RemovePoint,
    SlidePointLeft,
    SlidePointRight,
    ChangeDegree(usize, String),
    ReAddPoint,

    ChooseColor(usize, Color),
    CancelColor(usize),
    SubmitColor(usize),

    Undo,
    Redo,
}
