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

The ProjectSettingsView class provides a viewer to setup and manage the file name before the acquisition starts. More...

#include <projectsettingsview.h>

Signals

void timerChanged (int secs)
 
void recordingTimerStateChanged (bool state)
 
void newProject (const QString &sCurrentProject)
 
void newSubject (const QString &sCurrentSubject)
 
void newParadigm (const QString &sCurrentParadigm)
 
void fileNameChanged (const QString &sCurrentFileName)
 
- Signals inherited from DISPLIB::AbstractView
void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)
 

Public Member Functions

 ProjectSettingsView (const QString &sSettingsPath="", const QString &sDataPath="/TestData", const QString &sCurrentProject="TestProject", const QString &sCurrentSubject="TestSubject", const QString &sCurrentParadigm="UnknownParadigm", QWidget *parent=0)
 
void setRecordingElapsedTime (int mSecsElapsed)
 
QString getCurrentFileName ()
 
void triggerFileNameUpdate ()
 
void hideFileNameUi ()
 
void showFileNameUi ()
 
void hideParadigmUi ()
 
void showParadigmUi ()
 
void saveSettings ()
 
void loadSettings ()
 
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)
 

Protected Member Functions

void updateGuiMode (GuiMode mode)
 
void updateProcessingMode (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 ProjectSettingsView class provides a viewer to setup and manage the file name before the acquisition starts.

The ProjectSettingsView class provides a viewer to setup and manage the file name before the acquisition starts.

Definition at line 79 of file projectsettingsview.h.

Inheritance diagram for DISPLIB::ProjectSettingsView:
Inheritance graph

Member Function Documentation

◆ clearView()

void ProjectSettingsView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 508 of file projectsettingsview.cpp.

◆ getCurrentFileName()

QString ProjectSettingsView::getCurrentFileName ( )

Updates and gets current file name based on project and subject.

Returns
file name

Definition at line 244 of file projectsettingsview.cpp.

◆ hideFileNameUi()

void ProjectSettingsView::hideFileNameUi ( )

Hides file name ui elements.

Definition at line 539 of file projectsettingsview.cpp.

◆ hideParadigmUi()

void ProjectSettingsView::hideParadigmUi ( )

Hides paradigm ui elements.

Definition at line 557 of file projectsettingsview.cpp.

◆ loadSettings()

void ProjectSettingsView::loadSettings ( )
virtual

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

Implements DISPLIB::AbstractView.

Definition at line 184 of file projectsettingsview.cpp.

◆ saveSettings()

void ProjectSettingsView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 172 of file projectsettingsview.cpp.

◆ setRecordingElapsedTime()

void ProjectSettingsView::setRecordingElapsedTime ( int  mSecsElapsed)

Sets elapsed time to input parameter

Parameters
[in]mSecsElapsedelapsed tim in milliseconds

Definition at line 220 of file projectsettingsview.cpp.

◆ showFileNameUi()

void ProjectSettingsView::showFileNameUi ( )

Shows file name ui elements.

Definition at line 548 of file projectsettingsview.cpp.

◆ showParadigmUi()

void ProjectSettingsView::showParadigmUi ( )

Shows paradigm ui elements.

Definition at line 565 of file projectsettingsview.cpp.

◆ triggerFileNameUpdate()

void ProjectSettingsView::triggerFileNameUpdate ( )

Updates file name based on current project and subject.

Definition at line 515 of file projectsettingsview.cpp.

◆ updateGuiMode()

void ProjectSettingsView::updateGuiMode ( GuiMode  mode)
protectedvirtual

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 196 of file projectsettingsview.cpp.

◆ updateProcessingMode()

void ProjectSettingsView::updateProcessingMode ( ProcessingMode  mode)
protectedvirtual

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 208 of file projectsettingsview.cpp.


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