1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-29 19:28:47 -05:00
sdrangel/sdrgui/feature
Jon Beniston c966f1cb5a dd maximize button to MainSpectrum and expandible Channels and Features.
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.
2022-11-11 12:24:27 +00:00
..
featuregui.cpp dd maximize button to MainSpectrum and expandible Channels and Features. 2022-11-11 12:24:27 +00:00
featuregui.h dd maximize button to MainSpectrum and expandible Channels and Features. 2022-11-11 12:24:27 +00:00
featureuiset.cpp Arrange rollups after restore geometry to mitigate issue #1474 2022-11-03 19:07:44 +01:00
featureuiset.h Corrected order of deletion of feature vs feature GUI. Fixes #1332 2022-07-22 03:28:20 +02:00
readme.md Massive UI revamping (v7): updated documentation with latest changes 2022-04-27 21:40:29 +02:00

Feature common controls

The feature windows have common top and bottom bars

Feature window

Top bar

1: Feature index

Displays the index of the feature in the list of features as "F" followed by semicolon and index number.

The tooltip displays the feature type name.

You may click on this area and drag the window with the mouse.

2: Common feature settings

Opens a dialog to update the common feature settings

Feature window

2.1: Window title

Changes the feature window title

2.2: Reset title to default

Resets the title to the feature type name.

2.3: Toggle reverse API feature

Use this checkbox to toggle on/off the reverse API feature. With reverse API engaged the changes in the feature settings are forwarded to an API endpoint given by address (8.2.4), port (8.2.5), feature set index (8.2.6) and feature index (8.2.7) in the same format as the SDRangel REST API feature settings endpoint. With the values of the screenshot the API URL is: http://127.0.0.1:8888/sdrangel/featureeset/0/feature/0/settings The JSON payload follows the same format as the SDRangel REST API feature settings. Using the same example this would be:

{
  "SimplePTTSettings": {
    "reverseAPIAddress": "127.0.0.1",
    "reverseAPIChannelIndex": 0,
    "reverseAPIDeviceIndex": 0,
    "reverseAPIPort": 8888,
    "rgbColor": -65536,
    "rx2TxDelayMs": 200,
    "rxDeviceSetIndex": 0,
    "title": "Simple PTT",
    "tx2RxDelayMs": 200,
    "txDeviceSetIndex": 1,
    "useReverseAPI": 0
  },
  "featureType": "SimplePTT"
}

Note that the PATCH method is used. The full set of parameters is sent with the PUT method only when the reverse API is toggled on or a full settings update is done.

2.4: API address

This is the IP address of the API endpoint

2.5: API port

This is the IP port of the API endpoint

2.6: Feature set index

This is the targeted feature set index

2.7: Feature index

This is the targeted feature index

2.8: Cancel changes and exit dialog

Do not make any changes and exit dialog

2.9: Validate and exit dialog

Validates the data and exits the dialog

3: Title

This is the default feature title or as set with (2.1).

You may click on this area and drag the window with the mouse.

4: Help

Clicking on this button opens the documentation about the feature controls in github in the browser.

5: Move to another workspace

Opens a dialog to choose a destination workspace to move the feature window to. Nothing happens if the same workspace is selected.

6: Shrink window

Click this button to reduce the window to its minimum size

7: Close window

Closes the window and deletes the feature

8: Status

Status messages if any appear here.

You may click on this area and drag the window with the mouse.