EditorWindowDock.txt 1.3 KB

123456789101112131415161718192021222324252627
  1. DockManager implementation steps:
  2. Initial:
  3. - Open up two editor windows on app start
  4. - Initially DockManager has empty background
  5. - Dragging one editor window anywhere on the empty background docks the window
  6. - Dragging another editor window over the window shows the drop overlay and you can dock that window onto any side
  7. - Currently the overlay is always shown and will trigger on mouse move and not only mouse drag
  8. Resize sliders
  9. - Add a button between docked windows
  10. - Allow the button to be dragged, and it will automatically resize separating widgets
  11. TitleBar dock/undock
  12. - Releasing the dragged window over the drop overlay will dock the window
  13. - Moving the dragged window over a title bar will temporarily dock the title bar and allow you to move it (as in first step)
  14. - If you release the mouse the window will then be permanently docked at that location
  15. Polish TOOD:
  16. - Change cursor icon when window is dragged
  17. - Prevent docking if available size is less than 20 pixels, otherwise there might be some weirdness
  18. ------------------------
  19. Other things to remember:
  20. - Possibly add a way to have hidden widgets in the EditorWidgetContainer (like side-bars that pop on mouse over in Visual Studio)
  21. - A way to persist window states
  22. - Also a way to reset all widgets to original locations