import {CurrentTab} from "common.slint"; import {SelectModel, SelectMode} from "common.slint"; // State Gui state that shows the current state of the GUI // It extends Settings global state with settings that are not saved to the settings file export global GuiState { in-out property app_width; in-out property app_height; in-out property info_text: "Nothing to report"; in-out property preview_visible; in-out property preview_image; in-out property preview_image_path; in-out property maximum_threads: 40; in-out property choosing_include_directories; in-out property visible_tool_settings; in-out property available_subsettings: active_tab == CurrentTab.SimilarImages; in-out property active_tab: CurrentTab.EmptyFiles; in-out property <[SelectModel]> select_results_list: [{data: SelectMode.SelectAll, name: "Select All"}, {data: SelectMode.UnselectAll, name: "Deselect All"}, {data: SelectMode.SelectTheSmallestResolution, name: "Select the smallest resolution"}]; }