mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
implement local directory browser widget
This commit is contained in:
parent
2a1f4a89ac
commit
7cd5555aa2
4 changed files with 131 additions and 27 deletions
|
|
@ -1,7 +1,9 @@
|
|||
mod directory;
|
||||
mod image;
|
||||
mod status;
|
||||
mod text;
|
||||
|
||||
use directory::Directory;
|
||||
use image::Image;
|
||||
use text::Text;
|
||||
|
||||
|
|
@ -129,6 +131,11 @@ impl Content {
|
|||
text
|
||||
}
|
||||
|
||||
pub fn to_directory(&self, file: &File) {
|
||||
self.clean();
|
||||
self.g_box.append(&Directory::for_file(file))
|
||||
}
|
||||
|
||||
/// * system `source:`
|
||||
pub fn to_text_source(&self, data: &str) -> Text {
|
||||
self.clean();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue