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

The FilterSettingsView class provides a view to select between different modalities. More...

#include <filtersettingsview.h>

Public Types

typedef QSharedPointer< FilterSettingsViewSPtr
 
typedef QSharedPointer< const FilterSettingsViewConstSPtr
 
- 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 filterActivationChanged (bool activated)
 
- Signals inherited from DISPLIB::AbstractView
void guiStyleChanged (DISPLIB::AbstractView::StyleMode style)
 

Public Member Functions

 FilterSettingsView (const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
 
 ~FilterSettingsView ()
 
QSharedPointer< FilterDesignViewgetFilterView ()
 
bool getFilterActive ()
 
void setSamplingRate (double dSFreq)
 
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)
 
void onShowFilterView ()
 
void onFilterActivationChanged ()
 
void onFilterFromChanged ()
 
void onFilterToChanged ()
 
void onFilterChannelTypeChanged (const QString &sType)
 

Protected Attributes

QString m_sSettingsPath
 
QSharedPointer< FilterDesignViewm_pFilterView
 
Ui::FilterSettingsViewWidget * m_pUi
 
- Protected Attributes inherited from DISPLIB::AbstractView
bool m_bResearchModeIsActive
 
bool m_bOfflineModeIsActive
 
QString m_sSettingsPath
 

Detailed Description

The FilterSettingsView class provides a view to select between different modalities.

DECLARE CLASS FilterSettingsView

Definition at line 84 of file filtersettingsview.h.

Inheritance diagram for DISPLIB::FilterSettingsView:
Inheritance graph

Member Typedef Documentation

◆ ConstSPtr

Const shared pointer type for FilterSettingsView.

Definition at line 90 of file filtersettingsview.h.

◆ SPtr

Shared pointer type for FilterSettingsView.

Definition at line 89 of file filtersettingsview.h.

Constructor & Destructor Documentation

◆ FilterSettingsView()

FilterSettingsView::FilterSettingsView ( const QString &  sSettingsPath = "",
QWidget *  parent = 0,
Qt::WindowFlags  f = Qt::Widget 
)

Constructs a FilterSettingsView which is a child of parent.

Parameters
[in]parentparent of widget.

Definition at line 68 of file filtersettingsview.cpp.

◆ ~FilterSettingsView()

FilterSettingsView::~FilterSettingsView ( )

Destroys the FilterSettingsView.

Definition at line 114 of file filtersettingsview.cpp.

Member Function Documentation

◆ clearView()

void FilterSettingsView::clearView ( )
virtual

Clears the view

Implements DISPLIB::AbstractView.

Definition at line 270 of file filtersettingsview.cpp.

◆ filterActivationChanged

void DISPLIB::FilterSettingsView::filterActivationChanged ( bool  activated)
signal

Signal emited when the filter activation box's state is changed.

◆ getFilterActive()

bool FilterSettingsView::getFilterActive ( )

Returns true if the filters a set as active.

Definition at line 129 of file filtersettingsview.cpp.

◆ getFilterView()

QSharedPointer< FilterDesignView > FilterSettingsView::getFilterView ( )

Returns the filter design view used to design filters.

Definition at line 122 of file filtersettingsview.cpp.

◆ loadSettings()

void FilterSettingsView::loadSettings ( )
virtual

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

Implements DISPLIB::AbstractView.

Definition at line 173 of file filtersettingsview.cpp.

◆ onFilterActivationChanged()

void FilterSettingsView::onFilterActivationChanged ( )
protected

This function is called whenever the filter activation changed

Definition at line 228 of file filtersettingsview.cpp.

◆ onFilterChannelTypeChanged()

void FilterSettingsView::onFilterChannelTypeChanged ( const QString &  sType)
protected

This function is called whenever the channel type changed

Parameters
[in]sTypethe channel type.

Definition at line 261 of file filtersettingsview.cpp.

◆ onFilterFromChanged()

void FilterSettingsView::onFilterFromChanged ( )
protected

This function is called whenever the filter parameters From changed

Definition at line 237 of file filtersettingsview.cpp.

◆ onFilterToChanged()

void FilterSettingsView::onFilterToChanged ( )
protected

This function is called whenever the filter parameters To changed

Definition at line 246 of file filtersettingsview.cpp.

◆ onShowFilterView()

void FilterSettingsView::onShowFilterView ( )
protected

Show the filter option screen to the user.

Definition at line 215 of file filtersettingsview.cpp.

◆ saveSettings()

void FilterSettingsView::saveSettings ( )
virtual

Saves all important settings of this view via QSettings.

Implements DISPLIB::AbstractView.

Definition at line 157 of file filtersettingsview.cpp.

◆ setSamplingRate()

void FilterSettingsView::setSamplingRate ( double  dSFreq)

Sets the sampling frequency and setups this view accrodingly.

Parameters
[in]dSFreqthe new sampling frequency.

Definition at line 136 of file filtersettingsview.cpp.

◆ updateGuiMode()

void FilterSettingsView::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 189 of file filtersettingsview.cpp.

◆ updateProcessingMode()

void FilterSettingsView::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 203 of file filtersettingsview.cpp.

Member Data Documentation

◆ m_pFilterView

QSharedPointer<FilterDesignView> DISPLIB::FilterSettingsView::m_pFilterView
protected

The filter view.

Definition at line 204 of file filtersettingsview.h.

◆ m_pUi

Ui::FilterSettingsViewWidget* DISPLIB::FilterSettingsView::m_pUi
protected

The filter settings GUI view.

Definition at line 206 of file filtersettingsview.h.

◆ m_sSettingsPath

QString DISPLIB::FilterSettingsView::m_sSettingsPath
protected

The settings path to store the GUI settings to.

Definition at line 202 of file filtersettingsview.h.


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