WEMarsSoftware / MissionControl

A custom Java command centre for the Western Engineering Mars Rover Team.
https://wemars.org/wemars/
MIT License
0 stars 0 forks source link

Added support for dockable windows #13

Closed JhnBrunelle closed 6 years ago

JhnBrunelle commented 6 years ago

Implemented dockable windows into the app using TabPanes, This was achieved by overriding the tab pane class built into JavaFX, and creates a new stage from the content of the scene when the window is dragged out. On closing the new stage it docks it back to the previous location. The utility for this is in the wemars package, and i think any other modular utilities like this should be added to this package.

This seems to be the easiest and most effective way to do it, but if you have any suggestions let me know!

JhnBrunelle commented 6 years ago

Also, commit a5586d removes the 2DPoint library which I used to place the window at the dropped position on the screen. I removed it cause I had a lot of issues with it, and now the new undocked stage positions to the center of the screen. This should be fixed and reimplemented in the future.

JhnBrunelle commented 6 years ago

ALSO: Tabs cant be moved between tab panes, which makes sense. This should maybe be implemented later