MNE-CPP
0.1.9
A Framework for Electrophysiology
|
The ChannelSelectionView class provides a channel selection window. More...
#include <channelselectionview.h>
Public Types | |
typedef QSharedPointer< ChannelSelectionView > | SPtr |
typedef QSharedPointer< const ChannelSelectionView > | ConstSPtr |
Public Types inherited from DISPLIB::AbstractView | |
enum | StyleMode { Default, Dark } |
enum | GuiMode { Clinical, Research } |
enum | ProcessingMode { RealTime, Offline } |
typedef QSharedPointer< AbstractView > | SPtr |
typedef QSharedPointer< const AbstractView > | ConstSPtr |
Signals | |
void | showSelectedChannelsOnly (QStringList selectedChannels) |
void | selectionChanged (const QList< QGraphicsItem * > &selectedChannelItems) |
void | loadedLayoutMap (const QMap< QString, QPointF > &layoutMap) |
Signals inherited from DISPLIB::AbstractView | |
void | guiStyleChanged (DISPLIB::AbstractView::StyleMode style) |
Public Member Functions | |
ChannelSelectionView (const QString &sSettingsPath="", QWidget *parent=0, QSharedPointer< ChannelInfoModel > pChannelInfoModel=QSharedPointer< ChannelInfoModel >(0), Qt::WindowType f=Qt::Widget) | |
~ChannelSelectionView () | |
void | setCurrentlyMappedFiffChannels (const QStringList &mappedLayoutChNames) |
void | highlightChannels (QModelIndexList channelIndexList) |
void | selectChannels (QStringList channelList) |
QStringList | getSelectedChannels () |
QListWidgetItem * | getItemForChName (QListWidget *listWidget, const QString &channelName) |
const QMap< QString, QPointF > & | getLayoutMap () |
void | newFiffFileLoaded (QSharedPointer< FIFFLIB::FiffInfo > &pFiffInfo) |
QString | getCurrentLayoutFile () |
QString | getCurrentGroupFile () |
void | setCurrentLayoutFile (QString currentLayoutFile) |
void | updateBadChannels () |
void | updateDataView () |
void | saveSettings () |
void | loadSettings () |
void | updateGuiMode (GuiMode mode) |
void | updateProcessingMode (ProcessingMode mode) |
QWidget * | getViewWidget () |
QWidget * | getControlWidget () |
bool | isSelectionEmpty () |
void | clearView () |
Public Member Functions inherited from DISPLIB::AbstractView | |
AbstractView (QWidget *parent=0, Qt::WindowFlags f=Qt::Widget) | |
virtual void | setGuiMode (GuiMode mode) |
virtual void | setProcessingMode (ProcessingMode mode) |
Additional Inherited Members | |
Protected Attributes inherited from DISPLIB::AbstractView | |
bool | m_bResearchModeIsActive |
bool | m_bOfflineModeIsActive |
QString | m_sSettingsPath |
The ChannelSelectionView class provides a channel selection window.
DECLARE CLASS ChannelSelectionView
Definition at line 92 of file channelselectionview.h.
typedef QSharedPointer<const ChannelSelectionView> DISPLIB::ChannelSelectionView::ConstSPtr |
Const shared pointer type for ChannelSelectionView.
Definition at line 98 of file channelselectionview.h.
typedef QSharedPointer<ChannelSelectionView> DISPLIB::ChannelSelectionView::SPtr |
Shared pointer type for ChannelSelectionView.
Definition at line 97 of file channelselectionview.h.
ChannelSelectionView::ChannelSelectionView | ( | const QString & | sSettingsPath = "" , |
QWidget * | parent = 0 , |
||
QSharedPointer< ChannelInfoModel > | pChannelInfoModel = QSharedPointer<ChannelInfoModel>(0) , |
||
Qt::WindowType | f = Qt::Widget |
||
) |
Constructs a ChannelSelectionView which is a child of parent.
[in] | parent | pointer to parent widget; If parent is 0, the new ChannelSelectionView becomes a window. If parent is another widget, ChannelSelectionView becomes a child window inside parent. ChannelSelectionView is deleted when its parent is deleted. |
[in] | pChannelInfoModel | pointer to the channel info model. |
Definition at line 81 of file channelselectionview.cpp.
ChannelSelectionView::~ChannelSelectionView | ( | ) |
Destroys the ChannelSelectionView. All ChannelSelectionView's children are deleted first. The application exits if ChannelSelectionView is the main widget.
Definition at line 109 of file channelselectionview.cpp.
|
virtual |
Clears the view
Implements DISPLIB::AbstractView.
Definition at line 859 of file channelselectionview.cpp.
QWidget * ChannelSelectionView::getControlWidget | ( | ) |
Returns pointer to the portion of the channel view with the controls
Definition at line 845 of file channelselectionview.cpp.
QString ChannelSelectionView::getCurrentGroupFile | ( | ) |
Returns the currently loaded group file
Definition at line 328 of file channelselectionview.cpp.
QString ChannelSelectionView::getCurrentLayoutFile | ( | ) |
Returns the currently selected layout file.
Definition at line 321 of file channelselectionview.cpp.
QListWidgetItem * ChannelSelectionView::getItemForChName | ( | QListWidget * | listWidget, |
const QString & | channelName | ||
) |
gets the item corresponding to text in listWidget
[in] | listWidget | QListWidget which inhibits the needed item. |
[in] | channelName | the corresponding channel name. |
Definition at line 293 of file channelselectionview.cpp.
const QMap< QString, QPointF > & ChannelSelectionView::getLayoutMap | ( | ) |
returns the current layout map.
Definition at line 305 of file channelselectionview.cpp.
QStringList ChannelSelectionView::getSelectedChannels | ( | ) |
Current selected channels This function returns the current channel selection
Definition at line 271 of file channelselectionview.cpp.
QWidget * ChannelSelectionView::getViewWidget | ( | ) |
Returns pointer to the portion of the channel view with the graphics view
Definition at line 838 of file channelselectionview.cpp.
void ChannelSelectionView::highlightChannels | ( | QModelIndexList | channelIndexList | ) |
Highlight channels This function highlights channels which were selected outside this selection manager (i.e in the DataWindow's Table View)
[in] | channelList | channels which are be to set as selected. |
Definition at line 231 of file channelselectionview.cpp.
bool ChannelSelectionView::isSelectionEmpty | ( | ) |
Returns whether there is a user selection
Definition at line 852 of file channelselectionview.cpp.
|
signal |
emit this signal whenever a new layout was loaded
[in] | layoutMap | currently loaded layout. |
|
virtual |
Loads and inits all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 436 of file channelselectionview.cpp.
void ChannelSelectionView::newFiffFileLoaded | ( | QSharedPointer< FIFFLIB::FiffInfo > & | pFiffInfo | ) |
call this whenever a new file was loaded.
Definition at line 312 of file channelselectionview.cpp.
|
virtual |
Saves all important settings of this view via QSettings.
Implements DISPLIB::AbstractView.
Definition at line 419 of file channelselectionview.cpp.
void ChannelSelectionView::selectChannels | ( | QStringList | channelList | ) |
Select channels This function selects channels which were selected outside this selection manager (i.e in the DataWindow's Table View)
[in] | channelList | channels which are be to set as selected. |
Definition at line 254 of file channelselectionview.cpp.
|
signal |
emit this signal whenever the selection in the scene has changed
[in] | selectedChannelItems | currently user selected channels. |
void ChannelSelectionView::setCurrentLayoutFile | ( | QString | currentLayoutFile | ) |
Sets the current layout file.
[in] | currentLayoutFile | the current layout file. |
Definition at line 335 of file channelselectionview.cpp.
void ChannelSelectionView::setCurrentlyMappedFiffChannels | ( | const QStringList & | mappedLayoutChNames | ) |
Sets the currently mapped fiff channels. used to create the group All.
[in] | mappedLayoutChNames | the currently to layout mapped channels. |
Definition at line 200 of file channelselectionview.cpp.
|
signal |
emit this signal whenever the user or group selection has changed
[in] | selectedChannels | currently user selected channels or items which are in the visible list widget. |
void ChannelSelectionView::updateBadChannels | ( | ) |
Update the scene items according to the bad channel list in the fiff info file.
Definition at line 345 of file channelselectionview.cpp.
void ChannelSelectionView::updateDataView | ( | ) |
Updates data view.
Definition at line 373 of file channelselectionview.cpp.
|
virtual |
Update the views GUI based on the set GuiMode (Clinical=0, Research=1).
[in] | mode | The new mode (Clinical=0, Research=1). |
Implements DISPLIB::AbstractView.
Definition at line 462 of file channelselectionview.cpp.
|
virtual |
Update the views GUI based on the set ProcessingMode (RealTime=0, Offline=1).
[in] | mode | The new mode (RealTime=0, Offline=1). |
Implements DISPLIB::AbstractView.
Definition at line 474 of file channelselectionview.cpp.