MNE-CPP  beta 1.0
Signals | Public Member Functions | List of all members
MNEBrowseRawQt::SelectionManagerWindow Class Reference

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

#include <selectionmanagerwindow.h>

Inheritance diagram for MNEBrowseRawQt::SelectionManagerWindow:

Signals

void showSelectedChannelsOnly (QStringList selectedChannels)
 
void selectionChanged (const QList< QGraphicsItem * > &selectedChannelItems)
 
void loadedLayoutMap (const QMap< QString, QPointF > &layoutMap)
 

Public Member Functions

 SelectionManagerWindow (QWidget *parent=0, ChInfoModel *pChInfoModel=0)
 
 ~SelectionManagerWindow ()
 
void setCurrentlyMappedFiffChannels (const QStringList &mappedLayoutChNames)
 
void highlightChannels (QModelIndexList channelIndexList)
 
void selectChannels (QStringList channelList)
 
QStringList getSelectedChannels ()
 
QListWidgetItem * getItemForChName (QListWidget *listWidget, QString channelName)
 
const QMap< QString, QPointF > & getLayoutMap ()
 
void newFiffFileLoaded ()
 

Detailed Description

The SelectionManagerWindow class provides a channel selection window.

DECLARE CLASS SelectionManagerWindow

Definition at line 92 of file selectionmanagerwindow.h.

Constructor & Destructor Documentation

SelectionManagerWindow::SelectionManagerWindow ( QWidget *  parent = 0,
ChInfoModel pChInfoModel = 0 
)

Constructs a SelectionManagerWindow which is a child of parent.

Parameters
[in]parentpointer to parent widget; If parent is 0, the new SelectionManagerWindow becomes a window. If parent is another widget, SelectionManagerWindow becomes a child window inside parent. SelectionManagerWindow is deleted when its parent is deleted.
[in]pChInfoModelpointer to the channel info model.

Definition at line 58 of file selectionmanagerwindow.cpp.

SelectionManagerWindow::~SelectionManagerWindow ( )

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

Definition at line 74 of file selectionmanagerwindow.cpp.

Member Function Documentation

QListWidgetItem * SelectionManagerWindow::getItemForChName ( QListWidget *  listWidget,
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 177 of file selectionmanagerwindow.cpp.

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

returns the current layout map.

Definition at line 189 of file selectionmanagerwindow.cpp.

QStringList SelectionManagerWindow::getSelectedChannels ( )

Current selected channels This function returns the current channel selection

Definition at line 154 of file selectionmanagerwindow.cpp.

void SelectionManagerWindow::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 112 of file selectionmanagerwindow.cpp.

void MNEBrowseRawQt::SelectionManagerWindow::loadedLayoutMap ( const QMap< QString, QPointF > &  layoutMap)
signal

emit this signal whenever a new layout was loaded

Parameters
[in]layoutMapcurrently loaded layout
void SelectionManagerWindow::newFiffFileLoaded ( )

call this whenever a new file was loaded.

Definition at line 197 of file selectionmanagerwindow.cpp.

void SelectionManagerWindow::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 136 of file selectionmanagerwindow.cpp.

void MNEBrowseRawQt::SelectionManagerWindow::selectionChanged ( const QList< QGraphicsItem * > &  selectedChannelItems)
signal

emit this signal whenever the selection in the scene has changed

Parameters
[in]selectedChannelItemscurrently user selected channels
void SelectionManagerWindow::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 82 of file selectionmanagerwindow.cpp.

void MNEBrowseRawQt::SelectionManagerWindow::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

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