beginning to add library component
This commit is contained in:
parent
7e7d27ecff
commit
991baa8f32
31
src/ui/library.rs
Normal file
31
src/ui/library.rs
Normal 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!()
|
||||
}
|
||||
}
|
|
@ -1,2 +1,3 @@
|
|||
pub mod library;
|
||||
pub mod presenter;
|
||||
pub mod video;
|
||||
|
|
Loading…
Reference in a new issue