Currently, there is no good way for a Panel in a dock to e.g. add a tab to its own tab bar. This is especially annoying as the state in DockArea::items isn't synced to the underlying views, meaning the `DockArea::add_panel` function will do nothing after first splitting the panel, and then deleting the only element in the first part of the split. https://github.com/user-attachments/assets/2c61f2f0-9b1c-4154-8a53-b917335b94f0 This pull request adds a function that is called when a PanelView is added to a tabbar via `add_panel` or `insert_panel_at` or when it is removed via `detach_panel`. This allows for entities that implement Panel to keep track of and directly access the tab bar they belong to, and for example add new panels to it through buttons in the dropdown menu or the top right of the tab bar. |
||
|---|---|---|
| .. | ||
| locales | ||
| src | ||
| tests/fixtures | ||
| Cargo.toml | ||
| LICENSE-APACHE | ||