Vertical column of channel-name labels synced with ChannelDataView row geometry.
More...
#include <channellabelpanel.h>
Vertical column of channel-name labels synced with ChannelDataView row geometry.
Listens to the same ChannelDataModel as the central data view; bad channels are greyed and label clicks emit channel selection signals.
Definition at line 56 of file channellabelpanel.h.
◆ ChannelLabelPanel()
| ChannelLabelPanel::ChannelLabelPanel |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
◆ channelBadToggled
| void DISPLIB::ChannelLabelPanel::channelBadToggled |
( |
int | channelIndex, |
|
|
bool | bad ) |
|
signal |
◆ channelScrollRequested
| void DISPLIB::ChannelLabelPanel::channelScrollRequested |
( |
int | targetFirst | ) |
|
|
signal |
Emitted while the user drags vertically on the panel.
- Parameters
-
| [in] | targetFirst | The desired new first-visible-channel index. |
◆ event()
| bool ChannelLabelPanel::event |
( |
QEvent * | e | ) |
|
|
overrideprotected |
◆ minimumSizeHint()
| QSize ChannelLabelPanel::minimumSizeHint |
( |
| ) |
const |
|
override |
◆ mouseMoveEvent()
| void ChannelLabelPanel::mouseMoveEvent |
( |
QMouseEvent * | event | ) |
|
|
overrideprotected |
◆ mousePressEvent()
| void ChannelLabelPanel::mousePressEvent |
( |
QMouseEvent * | event | ) |
|
|
overrideprotected |
◆ mouseReleaseEvent()
| void ChannelLabelPanel::mouseReleaseEvent |
( |
QMouseEvent * | event | ) |
|
|
overrideprotected |
◆ paintEvent()
| void ChannelLabelPanel::paintEvent |
( |
QPaintEvent * | event | ) |
|
|
overrideprotected |
◆ setButterflyMode()
| void ChannelLabelPanel::setButterflyMode |
( |
bool | enabled | ) |
|
Enable or disable butterfly mode. When active, lanes show type group labels (e.g. "MEG", "EEG") instead of individual channel names.
- Parameters
-
| [in] | enabled | true = butterfly mode, false = normal per-channel mode. |
Definition at line 125 of file channellabelpanel.cpp.
◆ setChannelIndices()
| void ChannelLabelPanel::setChannelIndices |
( |
const QVector< int > & | indices | ) |
|
Restrict the panel to a subset of model channel indices. When indices is empty all model channels are available (no filter). Must be kept in sync with ChannelRhiView::setChannelIndices().
- Parameters
-
| [in] | indices | Ordered list of model channel indices to display. |
Definition at line 87 of file channellabelpanel.cpp.
◆ setFirstVisibleChannel()
| void ChannelLabelPanel::setFirstVisibleChannel |
( |
int | ch | ) |
|
Set the index of the first visible channel row (kept in sync with ChannelRhiView).
- Parameters
-
| [in] | ch | Index of the first visible row in the displayed channel list. |
Definition at line 95 of file channellabelpanel.cpp.
◆ setHideBadChannels()
| void ChannelLabelPanel::setHideBadChannels |
( |
bool | hide | ) |
|
Show or hide bad-channel rows. When hide is true, bad channels are removed from the visible row list so the panel stays aligned with the trace view.
- Parameters
-
| [in] | hide | True to hide bad-channel rows. |
Definition at line 115 of file channellabelpanel.cpp.
◆ setModel()
◆ setVisibleChannelCount()
| void ChannelLabelPanel::setVisibleChannelCount |
( |
int | count | ) |
|
Set how many channel rows are simultaneously visible (kept in sync with ChannelRhiView).
- Parameters
-
| [in] | count | Number of simultaneously visible channel rows. |
Definition at line 105 of file channellabelpanel.cpp.
◆ setVisibleSampleRange()
| void ChannelLabelPanel::setVisibleSampleRange |
( |
int | firstSample, |
|
|
int | lastSample ) |
Update the visible sample window used for the per-channel RMS level bar. Call this whenever the horizontal scroll position changes.
- Parameters
-
| [in] | firstSample | Absolute first sample in the visible window. |
| [in] | lastSample | Absolute last sample (exclusive) in the visible window. |
Definition at line 135 of file channellabelpanel.cpp.
◆ sizeHint()
| QSize ChannelLabelPanel::sizeHint |
( |
| ) |
const |
|
override |
The documentation for this class was generated from the following files: