beginning to add library component

This commit is contained in:
Chris Cochrun 2024-12-17 06:40:53 -06:00
parent 7e7d27ecff
commit 991baa8f32
2 changed files with 32 additions and 0 deletions

31
src/ui/library.rs Normal file
View file

@ -0,0 +1,31 @@
use cosmic::{Element, Task};
use crate::core::{
images::Image, model::Model, presentations::Presentation,
songs::Song, videos::Video,
};
struct Library {
song_library: Model<Song>,
image_library: Model<Image>,
video_library: Model<Video>,
presentation_library: Model<Presentation>,
}
enum Message {
AddItem,
None,
}
impl Library {
pub fn update(&mut self, message: Message) -> Task<Message> {
match message {
Message::AddItem => todo!(),
Message::None => todo!(),
}
}
pub fn view(&self) -> Element<Message> {
todo!()
}
}

View file

@ -1,2 +1,3 @@
pub mod library;
pub mod presenter;
pub mod video;