import { Button, VerticalBox , HorizontalBox, TabWidget, ListView, StandardListView, StandardTableView, CheckBox} from "std-widgets.slint"; import {LeftSidePanel} from "left_side_panel.slint"; import {MainList} from "main_lists.slint"; import {CurrentTab} from "common.slint"; export component ActionButtons { callback deleted; callback scan_stopping; callback scan_starting(CurrentTab); in-out property stop_requested: false; in-out property scanning; in-out property active-tab; HorizontalBox { height: 50px; scan_button:= Button { enabled: !scanning; text: "Scan"; clicked => { root.scanning = true; root.scan_starting(active-tab); } } stop_button:= Button { enabled: scanning && !stop_requested; text: "Stop"; clicked => { root.scan_stopping(); root.stop_requested = true; } } delete_button:= Button { enabled: !scanning; text: "Delete"; clicked => { root.deleted(); } } } }