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

The DataManagerView class provides the plugin control. More...

#include <bidsview.h>

Signals

void removeItem (const QModelIndex &pIndex)
 
void selectedModelChanged (const QVariant &data)
 
void selectedItemChanged (const QModelIndex &pIndex)
 
void onAddSubject (const QString &sSubjectName)
 
void onAddSession (QModelIndex subjectIndex, const QString &sSessionName)
 
void onMoveSession (QModelIndex subjectIndex, QModelIndex sessionIndex)
 
void onMoveData (QModelIndex sessionIndex, QModelIndex dataIndex)
 
- Signals inherited from DISPLIB::AbstractView
void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)
 

Public Member Functions

 BidsView (QWidget *parent=0)
 
virtual ~BidsView ()
 
void setModel (QAbstractItemModel *pModel)
 
virtual void saveSettings ()
 
virtual void loadSettings ()
 
virtual void updateGuiMode (GuiMode mode)
 
virtual void updateProcessingMode (ProcessingMode mode)
 
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

- 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
 
- Protected Attributes inherited from DISPLIB::AbstractView
bool m_bResearchModeIsActive
 
bool m_bOfflineModeIsActive
 
QString m_sSettingsPath
 

Detailed Description

The DataManagerView class provides the plugin control.

DataManagerView Plugin Control

Definition at line 82 of file bidsview.h.

Inheritance diagram for DISPLIB::BidsView:
Inheritance graph

Constructor & Destructor Documentation

◆ BidsView()

BidsView::BidsView ( QWidget *  parent = 0)
explicit

Constructs the DataManagerView

Parameters
[in]parentIf parent is not NULL the QWidget becomes a child of QWidget inside parent.

Definition at line 69 of file bidsview.cpp.

◆ ~BidsView()

BidsView::~BidsView ( )
virtual

Destroys the DataManagerView.

Definition at line 81 of file bidsview.cpp.

Member Function Documentation

◆ clearView()

void BidsView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 359 of file bidsview.cpp.

◆ loadSettings()

void BidsView::loadSettings ( )
virtual

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

Implements DISPLIB::AbstractView.

Definition at line 321 of file bidsview.cpp.

◆ onAddSession

void DISPLIB::BidsView::onAddSession ( QModelIndex  subjectIndex,
const QString &  sSessionName 
)
signal

Triggers a session to be added with name sSessionName to subject at index subjectIndex

Parameters
[in]subjectIndexindex of subject to which the session will be added.
[in]sSessionNamename of new session.

◆ onAddSubject

void DISPLIB::BidsView::onAddSubject ( const QString &  sSubjectName)
signal

Triggers a subject to be added with name sSubjectName

Parameters
[in]sSubjectNamename of new subject.

◆ onMoveData

void DISPLIB::BidsView::onMoveData ( QModelIndex  sessionIndex,
QModelIndex  dataIndex 
)
signal

Triggers data at dataIndex to be moved to session at sessionIndex

Parameters
[in]sessionIndexindex of destination session.
[in]dataIndexindex of data to me moved.

◆ onMoveSession

void DISPLIB::BidsView::onMoveSession ( QModelIndex  subjectIndex,
QModelIndex  sessionIndex 
)
signal

Triggers session at sessionIndex to be moved to subject at subjectIndex

Parameters
[in]subjectIndexindex of destination subject.
[in]sessionIndexindex of session to be moved.

◆ removeItem

void DISPLIB::BidsView::removeItem ( const QModelIndex &  pIndex)
signal

Sends index of item to be removed from model

Parameters
[in]pIndexindex of item to be removed.

◆ saveSettings()

void BidsView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 314 of file bidsview.cpp.

◆ selectedItemChanged

void DISPLIB::BidsView::selectedItemChanged ( const QModelIndex &  pIndex)
signal

Sends the index of currently selected item to update saved current items

Parameters
[in]pIndexindex of new item.

◆ selectedModelChanged

void DISPLIB::BidsView::selectedModelChanged ( const QVariant &  data)
signal

Sends model in 'data' to be send via the event manager

Parameters
[in]datanew selected model in a QVariant.

◆ setModel()

void BidsView::setModel ( QAbstractItemModel *  pModel)

Sets the model to the tree view.

Parameters
[in]pModelThe new model.

Definition at line 88 of file bidsview.cpp.

◆ updateGuiMode()

void BidsView::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 328 of file bidsview.cpp.

◆ updateProcessingMode()

void BidsView::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 340 of file bidsview.cpp.


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