28 lines
583 B
Rust
28 lines
583 B
Rust
use crate::core::model::LibraryKind;
|
|
|
|
pub mod double_ended_slider;
|
|
pub mod library;
|
|
pub mod presenter;
|
|
pub mod song_editor;
|
|
pub mod text_svg;
|
|
pub mod video;
|
|
pub mod widgets;
|
|
|
|
pub enum EditorMode {
|
|
Song,
|
|
Image,
|
|
Video,
|
|
Presentation,
|
|
Slide,
|
|
}
|
|
|
|
impl From<LibraryKind> for EditorMode {
|
|
fn from(value: LibraryKind) -> Self {
|
|
match value {
|
|
LibraryKind::Song => Self::Song,
|
|
LibraryKind::Video => Self::Video,
|
|
LibraryKind::Image => Self::Image,
|
|
LibraryKind::Presentation => Self::Presentation,
|
|
}
|
|
}
|
|
}
|