Closed royerloic closed 8 years ago
This is a beautiful function I'd definitely implement soon!
I will test Halcyon with ClearControl/DockFX/pull/10.
@Hi @royerloic,
Currently, layout saving/restoring is working for general DockFX nodes(refer f5e3234). However, Halcyon has HalcyonOtherNode type which are 2D and 3D displays. Do you want to save these windows position/size as well? This can be implemented in Halcyon, not DockFX.
Great!
Thanks HongKee, Yes, saving the open/close state of external other nodes and their position on the screen would be cool...
Sent from my iPhone
On 25 Aug 2016, at 17:28, HongKee Moon notifications@github.com wrote:
Hi @royerloic,
Currently, layout saving/restoring is working for general DockFX nodes. However, Halcyon has HalcyonOtherNode type which are 2D and 3D displays. Do you want to save these windows position/size as well? This can be implemented in Halcyon, not DockFX.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
Hi @royerloic,
There is one thing you can do for me in order to have external nodes adjusted.
Please, implement setPosition(int x, int y) and getX(), getY()
in ClearGLWindow
class by interfacing com.jogamp.newt.opengl.GLWindow
's functions(https://jogamp.org/deployment/v2.1.3/javadoc/jogl/javadoc/com/jogamp/newt/opengl/GLWindow.html#setPosition(int,%20int)).
Let me know when you make it. Thanks!
It would be good, eventually, if we can save the position of the docked but especially of the externally opened panels. Care has to be taken in the case of a multi-monitor setup...
From time to time (maybe every 30 seconds) the saved state would be compared to the compared state (this happens in memory without access to the disk), if a change has occured then a file located at/.halcyon/layout.txt (or some other adequate extension) would be created/updated with the new information. This file is also updated just before Halcyon shutsdown when the halcyon window is closed, or when a panel is opened or closed. The episodic saving is needed because the scope software ight crash and thereforewould never terminate normally, which would prevent the saving...
What should be saved: for docked panes for now just that they are opened in the dock, layout there might be very tricky to reproduce. Most important are for externally opened panes: we would need to store the monitor and screen coordinate as well as size of the panel.
In the menu bar, there should be an option to 'reset' everything: this would close all panels docked, external or other...