(ui): fullscreen apps
Description
For medical applications, it would be better to display them in fullscreen.
Functional specifications
- We should be able to specify that the main frame of an app is in fullscreen
- For users, this should not be a setting or a preference
- For developers, it will be convenient to disable it. I propose a special keyboard shortcut to enable/disable the fullscreen mode.
- when disabling the fullscreen mode, the frame defaults to the size specified in the XML instead of the "previous size", which will be convenient when developing UI
- Our preference system stores the state of the frame, so the behavior should be correct without any change
Technical specifications
The configuration should be done in the sight::ui::frame
XML configuration. <style mode="XXX" />
should be extended with a FULLSCREEN
value (upper case to match other settings, but....).
We should modify libs\ui\__\layout\frame_manager.cpp
, libs\ui\qt\layout\frame.cpp
...
For the keyboard cheat code, I would install a global event filter in qApp / frame:
- to disallow F11 "standard" shortcut for normal user
- map to ctrl + F11 for developers.
Test plan
- Manual