MNE-CPP  beta 1.0
Classes
rawdelegate.h File Reference

This class represents the delegate of the model/view framework of mne_browse_raw_qt application. Since it is derived from the QAbstractItemDelegate class [1], the virtual functions paint() und sizeHint() need to be reimplemented. The paint() function is invoked from the connected QTableView for each table cell for any individual item with a certain QModelIndex. The task of this function is to paint this cell with the data that is requested by index.model()->data(index,Qt::DisplayRole); with the corresponding QModelIndex. More...

#include "../Models/rawmodel.h"
#include "../Models/eventmodel.h"
#include "../Utils/types.h"
#include "../Utils/rawsettings.h"
#include "../Windows/scalewindow.h"
#include <QDebug>
#include <QAbstractItemDelegate>
#include <QPainter>
#include <QPainterPath>
#include <QPointF>
#include <QRect>
#include <QTableView>
#include <fiff/fiff.h>
#include <mne/mne.h>
#include <Eigen/Core>
#include <Eigen/SparseCore>

Go to the source code of this file.

Classes

class  MNEBrowseRawQt::RawDelegate
 

Detailed Description

This class represents the delegate of the model/view framework of mne_browse_raw_qt application. Since it is derived from the QAbstractItemDelegate class [1], the virtual functions paint() und sizeHint() need to be reimplemented. The paint() function is invoked from the connected QTableView for each table cell for any individual item with a certain QModelIndex. The task of this function is to paint this cell with the data that is requested by index.model()->data(index,Qt::DisplayRole); with the corresponding QModelIndex.

Author
Florian Schlembach flori.nosp@m.an.s.nosp@m.chlem.nosp@m.bach.nosp@m.@tu-i.nosp@m.lmen.nosp@m.au.de; Christoph Dinh chdin.nosp@m.h@nm.nosp@m.r.mgh.nosp@m..har.nosp@m.vard..nosp@m.edu; Matti Hamalainen msh@n.nosp@m.mr.m.nosp@m.gh.ha.nosp@m.rvar.nosp@m.d.edu; Jens Haueisen jens..nosp@m.haue.nosp@m.isen@.nosp@m.tu-i.nosp@m.lmena.nosp@m.u.de
Version
1.0
Date
January, 2014

LICENSE

Copyright (C) 2014, Florian Schlembach, Christoph Dinh, Matti Hamalainen and Jens Haueisen. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

      [1] http://qt-project.org/doc/qt-5/QAbstractItemDelegate.html

Definition in file rawdelegate.h.