Skip to main content

ModalitySelectionView

Namespace: DISPLIB  ·  Library: Display Library

#include <disp/modalityselectionview.h>

class DISPLIB::ModalitySelectionView

Per-modality visibility toggle panel (one QCheckBox per channel modality).

Builds itself from the active FiffInfo modalities and emits modalitiesChanged so ButterflyView and AverageLayoutView can hide entire modalities at once.

Inheritance​


Public Methods​

ModalitySelectionView(lChannelList, sSettingsPath, parent, f)​

Constructs a ModalitySelectionView which is a child of parent.

Parameters:

  • lChannelList : const QList< FiffChInfo > & Channels whose modalities are offered for selection.

  • sSettingsPath : const QString & Settings path under which the widget persists its state (empty = no persistence).

  • parent : *QWidget ** parent of widget.

  • f : Qt::WindowFlags Qt window flags passed to the QWidget constructor.


~ModalitySelectionView()​

Destroys the ModalitySelectionView.


setModalityMap(modalityMap)​

Set the modality checkboxes.

Parameters:

  • modalityMap : const QMap< QString, bool > & The modality map.

getModalityMap()​

Get the activation of the already created modality check boxes.

Returns:

  • QMap< QString, bool > — The current modality map.

saveSettings()​

Saves all important settings of this view via QSettings.


loadSettings()​

Loads and inits all important settings of this view via QSettings.


clearView()​

Clears the view.


Authors of this file​