GET /sdrangel/windows lists every device, spectrum, channel and feature
window with its workspace, title and whether it is hidden; the workspace
PUTs take a hidden field alongside the index.
The Web API has no access to the GUI, so MainCore keeps a table of what
the GUI has published for each window, keyed by the DeviceAPI,
SpectrumVis, ChannelAPI or Feature it belongs to. The GUI side is a new
WorkspaceWindow base for the four window classes, which publishes on
every show and hide, on a retitle and when the workspaces are renumbered,
and takes the workspace from the window's Workspace ancestor rather than
the plugin's settings, which a settings message from the channel can
reset.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Device, spectrum, channel and feature windows gain a hide button beside
the existing ones. A hidden window is still there and still running, it
just takes no screen space, which is the difference between hiding one and
closing it.
The new Window menu brings them back: it lists whatever is currently
hidden, grouped under Devices, Spectrums, Channels and Features, and is
empty when nothing is. It also carries the sub window arrangements that
until now only existed as workspace title bar buttons: cascade, tile,
stack vertically, stack in columns, and tabs.
Those buttons held Ctrl+Shift+C/T/V/S/B, but every workspace's buttons
claimed the same keys, so with more than one workspace the shortcuts were
ambiguous and none of them fired. The menu items take the shortcuts
instead, as application shortcuts since an undocked workspace is a window
of its own, and act on the workspace last worked in. Tabs is per
workspace, so its tick follows whichever workspace that is.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Use right click to auto-stack sub-windows, rather than having a
dedicated button.
Allow maximize button to make window full screen, if already maximized.
Add title to device windows, for when displayed in tabs.
Add menu button to workspace toolbar, for Android only, to avoid having
menu bar, which takes up a lot of space.
Add configuration presets button to workspace toolbar.
Add icons for window arangement
Add sizeToContents in ChannelGUI and FeatureGUI, called when widget is
rolled, so we can remove resizing code from all of the individual
channels and features.
In RollupContents, use minimumSizeHint for calculated size, so that
minimumWidth can come from .ui file.
In DeviceGUI::sizeToContents(), call adjustSize(), so Device GUIs start
out at minimum needed size (which should restore appearance prior to
last patch).
In stackSubWindows, use available space for channels if no
spectrum/features present.
In stackSubWindows, fix spectrum from being sized too big, resulting in
scroll bars appearing.
Reset user-defined channel width in stackSubWindows, when channels are
removed.
Don't stack maximized windows.
There's one hack in Channel/FeatureGUI::maximizeWindow(). It seems that
when maximimzing a window, QOpenGLWidgets aren't always paint properly
immediately afterwards, so the code forces an additional update. I can't
see why the first call to paintGL doesn't work.