2024-02-15 05:45:25 +13:00
|
|
|
import { SelectMode } from "common.slint";
|
|
|
|
|
2023-12-04 00:06:42 +13:00
|
|
|
export global Callabler {
|
|
|
|
// Bottom panel operations
|
2024-02-15 05:45:25 +13:00
|
|
|
callback remove_item_directories(bool);
|
2023-12-04 00:06:42 +13:00
|
|
|
callback added_manual_directories(bool, string);
|
|
|
|
|
|
|
|
// Right click or middle click opener
|
|
|
|
callback item_opened(string);
|
|
|
|
|
|
|
|
callback delete_selected_items();
|
2024-02-15 05:45:25 +13:00
|
|
|
callback select_items(SelectMode);
|
2023-12-04 00:06:42 +13:00
|
|
|
|
|
|
|
// Preview
|
|
|
|
callback load_image_preview(string);
|
|
|
|
|
|
|
|
// Settings
|
|
|
|
callback changed_settings_preset();
|
|
|
|
callback save_current_preset();
|
|
|
|
callback load_current_preset();
|
|
|
|
callback reset_current_preset();
|
|
|
|
|
2024-02-15 05:45:25 +13:00
|
|
|
callback tab_changed();
|
|
|
|
|
|
|
|
callback move_items(bool, bool, string);
|
|
|
|
|
2023-12-04 00:06:42 +13:00
|
|
|
// Translations
|
|
|
|
pure callback translate(string, [{key: string, value: string}]) -> string;
|
|
|
|
|
|
|
|
// Only Slint
|
|
|
|
callback open_select_popup();
|
|
|
|
|
|
|
|
callback open_config_folder();
|
|
|
|
callback open_cache_folder();
|
2024-02-15 10:44:39 +13:00
|
|
|
|
|
|
|
callback open_link(string);
|
2023-12-04 00:06:42 +13:00
|
|
|
}
|