|
|
|
@ -5,8 +5,13 @@ import {CurrentTab, TypeOfOpenedItem} from "common.slint";
|
|
|
|
|
import {MainListModel} from "common.slint";
|
|
|
|
|
|
|
|
|
|
export component MainList {
|
|
|
|
|
in-out property <CurrentTab> active-tab;
|
|
|
|
|
in-out property <[MainListModel]> empty_folder_model;
|
|
|
|
|
in-out property <CurrentTab> active-tab: CurrentTab.EmptyFolders;
|
|
|
|
|
in-out property <[MainListModel]> empty_folder_model: [
|
|
|
|
|
{checked: false, selected_row: false, header_row: true, val: ["kropkarz", "/Xd1", "24.10.2023"]} ,
|
|
|
|
|
{checked: false, selected_row: false, header_row: false, val: ["witasphere", "/Xd1/Imagerren2", "25.11.1991"]} ,
|
|
|
|
|
{checked: false, selected_row: false, header_row: false, val: ["witasphere", "/Xd1/Imagerren2", "25.11.1991"]} ,
|
|
|
|
|
{checked: true, selected_row: false, header_row: false, val: ["lokkaler", "/Xd1/Vide2", "01.23.1911"]}
|
|
|
|
|
];
|
|
|
|
|
in-out property <[MainListModel]> empty_files_model;
|
|
|
|
|
in-out property <[MainListModel]> similar_images_model;
|
|
|
|
|
callback changed_current_tab();
|
|
|
|
@ -45,6 +50,9 @@ export component MainList {
|
|
|
|
|
fileNameIdx: 4;
|
|
|
|
|
}
|
|
|
|
|
focus_item := FocusScope {
|
|
|
|
|
x:0;
|
|
|
|
|
width: 0px; // Hack to not steal first click from other components - https://github.com/slint-ui/slint/issues/3503
|
|
|
|
|
|
|
|
|
|
key-released(event) => {
|
|
|
|
|
if (!self.visible || !self.has-focus) {
|
|
|
|
|
return accept;
|
|
|
|
|