77 m_pTableView->setSelectionMode(QAbstractItemView::ExtendedSelection);
82 QVBoxLayout *neLayout =
new QVBoxLayout(
this);
87 this->setLayout(neLayout);
111 connect(
m_pTableView.data(), &QTableView::doubleClicked,
122 m_pTableView->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);
126 m_pTableView->horizontalHeader()->setSectionResizeMode(1, QHeaderView::Stretch);
128 m_pTableView->verticalHeader()->setDefaultSectionSize(140);
135 m_pTableView->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
138 m_pTableView->setContextMenuPolicy(Qt::CustomContextMenu);
162 if(event->type() == QEvent::MouseMove){
163 QMouseEvent *mouseEvent =
static_cast <QMouseEvent*
>( event );
166 int currentRow =
m_pTableView->rowAt(
static_cast<int>(mouseEvent->position().y()));
171 emit
sendMouseLoc(item.row(),
static_cast<int>(mouseEvent->position().x()),
static_cast<int>(mouseEvent->position().y()),
m_pTableView->visualRect(item) );
175 return QWidget::eventFilter(watched, event);
188 QSettings settings(
"MNECPP");
200 QSettings settings(
"MNECPP");
Declaration of the SpectrumView Class.
Declaration of the FrequencySpectrumModel Class.
Declaration of the FrequencySpectrumDelegate Class.
FiffInfo class declaration.
FIFF file I/O and data structures (raw, epochs, evoked, covariance, forward).
2-D display widgets and visualisation helpers (charts, topography, colour maps).
AbstractView(QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
The FrequencySpectrumDelegate class represents a frequency delegate which creates the plot paths.
void rcvMouseLoc(int row, int x, int y, QRect visRect)
The FrequencySpectrumModel class implements the data access model for a real-time multi sample array ...
void toggleFreeze(const QModelIndex &index)
QPointer< QTableView > m_pTableView
QPointer< DISPLIB::FrequencySpectrumModel > m_pFSModel
void updateGuiMode(GuiMode mode)
void addData(const Eigen::MatrixXd &data)
SpectrumView(const QString &sSettingsPath="", QWidget *parent=0, Qt::WindowFlags f=Qt::Widget)
virtual bool eventFilter(QObject *watched, QEvent *event)
QPointer< DISPLIB::FrequencySpectrumDelegate > m_pFSDelegate
void setBoundaries(int iLower, int iUpper)
void init(QSharedPointer< FIFFLIB::FiffInfo > &info, int iScaleType)
void updateProcessingMode(ProcessingMode mode)
void sendMouseLoc(int row, int x, int y, QRect visRect)
QSharedPointer< FiffInfo > SPtr