MNE-CPP  beta 1.0
Public Member Functions | List of all members
XDISPLIB::FrequencySpectrumDelegate Class Reference

The FrequencySpectrumDelegate class represents a RTMSA delegate which creates the plot paths. More...

#include <frequencyspectrumdelegate.h>

Inheritance diagram for XDISPLIB::FrequencySpectrumDelegate:

Public Member Functions

 FrequencySpectrumDelegate (QTableView *m_pTableView, QObject *parent=0)
 
void setScaleType (qint8 ScaleType)
 
virtual void paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const
 
virtual QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const
 
void rcvMouseLoc (int row, int x, int y, QRect visRect)
 

Detailed Description

The FrequencySpectrumDelegate class represents a RTMSA delegate which creates the plot paths.

DECLARE CLASS FrequencySpectrumDelegate

Definition at line 78 of file frequencyspectrumdelegate.h.

Constructor & Destructor Documentation

FrequencySpectrumDelegate::FrequencySpectrumDelegate ( QTableView *  m_pTableView,
QObject *  parent = 0 
)

Creates a new abstract item delegate with the given parent.

Parameters
[in]parentParent of the delegate

Definition at line 70 of file frequencyspectrumdelegate.cpp.

Member Function Documentation

void FrequencySpectrumDelegate::paint ( QPainter *  painter,
const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
virtual

Use the painter and style option to render the item specified by the item index.

(sizeHint() must be implemented also)

Parameters
[in]painterLow-level painting on widgets and other paint devices
[in]optionDescribes the parameters used to draw an item in a view widget
[in]indexUsed to locate data in a data model.

Definition at line 91 of file frequencyspectrumdelegate.cpp.

void FrequencySpectrumDelegate::rcvMouseLoc ( int  row,
int  x,
int  y,
QRect  visRect 
)

Receive Mouse location

Parameters
[in]rowThe select row of tableview
[in]xmouse x pos.
[in]ymouse y pos.
[in]visRectvisual rect of row_tableview.

Definition at line 205 of file frequencyspectrumdelegate.cpp.

void FrequencySpectrumDelegate::setScaleType ( qint8  ScaleType)

Set scale type.

Parameters
[in]ScaleType.

Definition at line 83 of file frequencyspectrumdelegate.cpp.

QSize FrequencySpectrumDelegate::sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
virtual

Item size

Parameters
[in]optionDescribes the parameters used to draw an item in a view widget
[in]indexUsed to locate data in a data model.

Definition at line 182 of file frequencyspectrumdelegate.cpp.


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