(
history: Entity<HistoryEntity>,
collections: Entity<CollectionsEntity>,
history_search: Entity<InputState>,
collections_search: Entity<InputState>,
)
| 51 | on_new_folder: Option<Rc<dyn Fn(Uuid, Option<Uuid>, &mut Window, &mut App) + 'static>>, |
| 52 | on_move_collection_node: Option<Rc<dyn Fn(Uuid, Uuid, &mut Window, &mut App) + 'static>>, |
| 53 | on_toggle_collection_expand: Option<Rc<dyn Fn(Uuid, &mut Window, &mut App) + 'static>>, |
| 54 | on_toggle_collection_node_expand: |
| 55 | Option<Rc<dyn Fn(Uuid, Uuid, &mut Window, &mut App) + 'static>>, |
| 56 | on_filter_change: Option<Rc<dyn Fn(HistoryFilter, &mut Window, &mut App) + 'static>>, |
| 57 | on_group_by_change: Option<Rc<dyn Fn(HistoryGroupBy, &mut Window, &mut App) + 'static>>, |
| 58 | } |
| 59 | |
| 60 | impl AppSidebar { |
| 61 | pub fn new( |
| 62 | history: Entity<HistoryEntity>, |
| 63 | collections: Entity<CollectionsEntity>, |
| 64 | environment_panel: Entity<EnvironmentPanel>, |
| 65 | history_search: Entity<InputState>, |
| 66 | collections_search: Entity<InputState>, |
| 67 | history_rows: Arc<Vec<HistoryRow>>, |
| 68 | history_rows_initialized: bool, |
| 69 | ) -> Self { |
| 70 | Self { |
| 71 | active_tab: SidebarTab::History, |
| 72 | history, |
| 73 | collections, |
| 74 | environment_panel, |
| 75 | history_search, |
| 76 | collections_search, |
| 77 | history_rows, |
| 78 | history_rows_initialized, |
| 79 | history_filter: HistoryFilter::All, |
| 80 | history_group_by: HistoryGroupBy::Time, |
| 81 | tab_transition_progress: 1.0, |
| 82 | on_tab_change: None, |
| 83 | on_load_history_request: None, |
| 84 | on_delete_history_entry: None, |
| 85 | on_toggle_star: None, |
| 86 | on_clear_history: None, |
| 87 | on_load_collection_request: None, |
| 88 | on_delete_collection: None, |
| 89 | on_delete_collection_node: None, |
nothing calls this directly
no outgoing calls
no test coverage detected