Skip to content

feat(ui): fullscreen apps

Didier WECKMANN requested to merge 1245-ui-fullscreen-apps into dev

Description

  • Add a "FULLSCREEN" mode in "style" XML config of sight::module::ui::frame:
<service uid="mainFrame" type="sight::module::ui::frame">
    <gui>
        <frame>
             <name>tuto14_gui</name>
             <icon>tuto14_gui/tuto.ico</icon>
             <minSize width="800" height="600" />
             <size width="1600" height="1200" />
             <style mode="FULLSCREEN" />
        </frame>
    </gui>
    <registry>
        <view sid="backgroundView" start="true" />
    </registry>
</service>

The behavior is:

  • Preferences have higher priorities (ie: if the frame position, size, state is already saved, it will be restored)
  • If there are no preferences, then mode="FULLSCREEN" will force fullscreen at first launch.
  • "F11" style keyboard shortcut has been added. If not fullscreen, it will make the window got to fullscreen or restore to the preferred size otherwise (or to the saved size if already saved in preferences)
  • It is now possible to put a "preferred" size: <size width="1600" height="1200" />. Again Preferences have higher priorities

Results

tuto14_gui has been update to demonstrate the change

How to test it?

  • tuto14_gui
  • other applications

Related issue(s)

Closes #1245 (closed)

Edited by Didier WECKMANN

Merge request reports