MNE-CPP  0.1.9
A Framework for Electrophysiology
Public Types | Signals | Public Member Functions | List of all members
DISPLIB::ChannelSelectionView Class Reference

The ChannelSelectionView class provides a channel selection window. More...

#include <channelselectionview.h>

Public Types

typedef QSharedPointer< ChannelSelectionViewSPtr
 
typedef QSharedPointer< const ChannelSelectionViewConstSPtr
 
- Public Types inherited from DISPLIB::AbstractView
enum  StyleMode { Default, Dark }
 
enum  GuiMode { Clinical, Research }
 
enum  ProcessingMode { RealTime, Offline }
 
typedef QSharedPointer< AbstractViewSPtr
 
typedef QSharedPointer< const AbstractViewConstSPtr
 

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
 

Detailed Description

The ChannelSelectionView class provides a channel selection window.

DECLARE CLASS ChannelSelectionView

Definition at line 92 of file channelselectionview.h.

Inheritance diagram for DISPLIB::ChannelSelectionView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for ChannelSelectionView.

Definition at line 98 of file channelselectionview.h.

◆ SPtr

Shared pointer type for ChannelSelectionView.

Definition at line 97 of file channelselectionview.h.

Constructor & Destructor Documentation

◆ ChannelSelectionView()

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.

Parameters
[in]parentpointer 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]pChannelInfoModelpointer to the channel info model.

Definition at line 83 of file channelselectionview.cpp.

◆ ~ChannelSelectionView()

ChannelSelectionView::~ChannelSelectionView ( )

Destroys the ChannelSelectionView. All ChannelSelectionView's children are deleted first. The application exits if ChannelSelectionView is the main widget.

Definition at line 111 of file channelselectionview.cpp.

Member Function Documentation

◆ clearView()

void ChannelSelectionView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 856 of file channelselectionview.cpp.

◆ getControlWidget()

QWidget * ChannelSelectionView::getControlWidget ( )

Returns pointer to the portion of the channel view with the controls

Returns
pointer to the channelselectionview controls.

Definition at line 842 of file channelselectionview.cpp.

◆ getCurrentGroupFile()

QString ChannelSelectionView::getCurrentGroupFile ( )

Returns the currently loaded group file

Returns
currently loaded selection group file.

Definition at line 328 of file channelselectionview.cpp.

◆ getCurrentLayoutFile()

QString ChannelSelectionView::getCurrentLayoutFile ( )

Returns the currently selected layout file.

Returns
the currently selected layout file.

Definition at line 321 of file channelselectionview.cpp.

◆ getItemForChName()

QListWidgetItem * ChannelSelectionView::getItemForChName ( QListWidget *  listWidget,
const QString &  channelName 
)

gets the item corresponding to text in listWidget

Parameters
[in]listWidgetQListWidget which inhibits the needed item.
[in]channelNamethe corresponding channel name.

Definition at line 293 of file channelselectionview.cpp.

◆ getLayoutMap()

const QMap< QString, QPointF > & ChannelSelectionView::getLayoutMap ( )

returns the current layout map.

Definition at line 305 of file channelselectionview.cpp.

◆ getSelectedChannels()

QStringList ChannelSelectionView::getSelectedChannels ( )

Current selected channels This function returns the current channel selection

Definition at line 271 of file channelselectionview.cpp.

◆ getViewWidget()

QWidget * ChannelSelectionView::getViewWidget ( )

Returns pointer to the portion of the channel view with the graphics view

Returns
pointer to the channelselectionview view.

Definition at line 835 of file channelselectionview.cpp.

◆ highlightChannels()

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)

Parameters
[in]channelListchannels which are be to set as selected.

Definition at line 231 of file channelselectionview.cpp.

◆ isSelectionEmpty()

bool ChannelSelectionView::isSelectionEmpty ( )

Returns whether there is a user selection

Returns
true if there is a user selection, false if not.

Definition at line 849 of file channelselectionview.cpp.

◆ loadedLayoutMap

void DISPLIB::ChannelSelectionView::loadedLayoutMap ( const QMap< QString, QPointF > &  layoutMap)
signal

emit this signal whenever a new layout was loaded

Parameters
[in]layoutMapcurrently loaded layout.

◆ loadSettings()

void ChannelSelectionView::loadSettings ( )
virtual

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

Implements DISPLIB::AbstractView.

Definition at line 436 of file channelselectionview.cpp.

◆ newFiffFileLoaded()

void ChannelSelectionView::newFiffFileLoaded ( QSharedPointer< FIFFLIB::FiffInfo > &  pFiffInfo)

call this whenever a new file was loaded.

Definition at line 312 of file channelselectionview.cpp.

◆ saveSettings()

void ChannelSelectionView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 419 of file channelselectionview.cpp.

◆ selectChannels()

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)

Parameters
[in]channelListchannels which are be to set as selected.

Definition at line 254 of file channelselectionview.cpp.

◆ selectionChanged

void DISPLIB::ChannelSelectionView::selectionChanged ( const QList< QGraphicsItem *> &  selectedChannelItems)
signal

emit this signal whenever the selection in the scene has changed

Parameters
[in]selectedChannelItemscurrently user selected channels.

◆ setCurrentLayoutFile()

void ChannelSelectionView::setCurrentLayoutFile ( QString  currentLayoutFile)

Sets the current layout file.

Parameters
[in]currentLayoutFilethe current layout file.

Definition at line 335 of file channelselectionview.cpp.

◆ setCurrentlyMappedFiffChannels()

void ChannelSelectionView::setCurrentlyMappedFiffChannels ( const QStringList &  mappedLayoutChNames)

Sets the currently mapped fiff channels. used to create the group All.

Parameters
[in]mappedLayoutChNamesthe currently to layout mapped channels.

Definition at line 202 of file channelselectionview.cpp.

◆ showSelectedChannelsOnly

void DISPLIB::ChannelSelectionView::showSelectedChannelsOnly ( QStringList  selectedChannels)
signal

emit this signal whenever the user or group selection has changed

Parameters
[in]selectedChannelscurrently user selected channels or items which are in the visible list widget.

◆ updateBadChannels()

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.

◆ updateDataView()

void ChannelSelectionView::updateDataView ( )

Updates data view.

Definition at line 373 of file channelselectionview.cpp.

◆ updateGuiMode()

void ChannelSelectionView::updateGuiMode ( GuiMode  mode)
virtual

Update the views GUI based on the set GuiMode (Clinical=0, Research=1).

Parameters
[in]modeThe new mode (Clinical=0, Research=1).

Implements DISPLIB::AbstractView.

Definition at line 462 of file channelselectionview.cpp.

◆ updateProcessingMode()

void ChannelSelectionView::updateProcessingMode ( ProcessingMode  mode)
virtual

Update the views GUI based on the set ProcessingMode (RealTime=0, Offline=1).

Parameters
[in]modeThe new mode (RealTime=0, Offline=1).

Implements DISPLIB::AbstractView.

Definition at line 474 of file channelselectionview.cpp.


The documentation for this class was generated from the following files: