MNE-CPP
beta 1.0
|
The SelectionManagerWindow class provides a channel selection window. More...
#include <selectionmanagerwindow.h>
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 () |
The SelectionManagerWindow class provides a channel selection window.
DECLARE CLASS SelectionManagerWindow
Definition at line 92 of file selectionmanagerwindow.h.
SelectionManagerWindow::SelectionManagerWindow | ( | QWidget * | parent = 0 , |
ChInfoModel * | pChInfoModel = 0 |
||
) |
Constructs a SelectionManagerWindow which is a child of parent.
[in] | parent | pointer 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] | pChInfoModel | pointer 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.
QListWidgetItem * SelectionManagerWindow::getItemForChName | ( | QListWidget * | listWidget, |
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 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)
[in] | channelList | channels which are be to set as selected |
Definition at line 112 of file selectionmanagerwindow.cpp.
|
signal |
emit this signal whenever a new layout was loaded
[in] | layoutMap | currently 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)
[in] | channelList | channels which are be to set as selected |
Definition at line 136 of file selectionmanagerwindow.cpp.
|
signal |
emit this signal whenever the selection in the scene has changed
[in] | selectedChannelItems | currently user selected channels |
void SelectionManagerWindow::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 82 of file selectionmanagerwindow.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 |