PulseView  0.3.0
A Qt-based sigrok GUI
pv::widgets::WellArray Class Reference

#include <wellarray.hpp>

Inheritance diagram for pv::widgets::WellArray:
Collaboration diagram for pv::widgets::WellArray:

Signals

void selected (int row, int col)
 

Public Member Functions

 WellArray (int rows, int cols, QWidget *parent=0)
 
QString cellContent (int row, int col) const
 
int selectedColumn () const
 
int selectedRow () const
 
virtual void setCurrent (int row, int col)
 
virtual void setSelected (int row, int col)
 
QSize sizeHint () const
 
virtual void setCellBrush (int row, int col, const QBrush &)
 
QBrush cellBrush (int row, int col)
 
int cellWidth () const
 
int cellHeight () const
 
int rowAt (int y) const
 
int columnAt (int x) const
 
int rowY (int row) const
 
int columnX (int column) const
 
int numRows () const
 
int numCols () const
 
QRect cellRect () const
 
QSize gridSize () const
 
QRect cellGeometry (int row, int column)
 
void updateCell (int row, int column)
 

Protected Member Functions

virtual void paintCell (QPainter *, int row, int col, const QRect &)
 
virtual void paintCellContents (QPainter *, int row, int col, const QRect &)
 
void mousePressEvent (QMouseEvent *)
 
void mouseReleaseEvent (QMouseEvent *)
 
void keyPressEvent (QKeyEvent *)
 
void focusInEvent (QFocusEvent *)
 
void focusOutEvent (QFocusEvent *)
 
void paintEvent (QPaintEvent *)
 

Properties

int selectedColumn
 
int selectedRow
 

Private Attributes

int nrows
 
int ncols
 
int cellw
 
int cellh
 
int curRow
 
int curCol
 
int selRow
 
int selCol
 
WellArrayDatad
 

Detailed Description

Definition at line 49 of file wellarray.hpp.

Constructor & Destructor Documentation

pv::widgets::WellArray::WellArray ( int  rows,
int  cols,
QWidget *  parent = 0 
)

Definition at line 103 of file wellarray.cpp.

Member Function Documentation

QBrush pv::widgets::WellArray::cellBrush ( int  row,
int  col 
)

Definition at line 247 of file wellarray.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QString pv::widgets::WellArray::cellContent ( int  row,
int  col 
) const
QRect pv::widgets::WellArray::cellGeometry ( int  row,
int  column 
)
inline

Definition at line 100 of file wellarray.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int pv::widgets::WellArray::cellHeight ( ) const
inline

Definition at line 73 of file wellarray.hpp.

Here is the caller graph for this function:

QRect pv::widgets::WellArray::cellRect ( ) const
inline

Definition at line 94 of file wellarray.hpp.

int pv::widgets::WellArray::cellWidth ( ) const
inline

Definition at line 70 of file wellarray.hpp.

Here is the caller graph for this function:

int pv::widgets::WellArray::columnAt ( int  x) const
inline

Definition at line 79 of file wellarray.hpp.

Here is the caller graph for this function:

int pv::widgets::WellArray::columnX ( int  column) const
inline

Definition at line 85 of file wellarray.hpp.

Here is the caller graph for this function:

void pv::widgets::WellArray::focusInEvent ( QFocusEvent *  )
protected

Definition at line 226 of file wellarray.cpp.

Here is the call graph for this function:

void pv::widgets::WellArray::focusOutEvent ( QFocusEvent *  )
protected

Definition at line 259 of file wellarray.cpp.

Here is the call graph for this function:

QSize pv::widgets::WellArray::gridSize ( ) const
inline

Definition at line 97 of file wellarray.hpp.

Here is the caller graph for this function:

void pv::widgets::WellArray::keyPressEvent ( QKeyEvent *  e)
protected

Definition at line 266 of file wellarray.cpp.

Here is the call graph for this function:

void pv::widgets::WellArray::mousePressEvent ( QMouseEvent *  e)
protected

Definition at line 166 of file wellarray.cpp.

Here is the call graph for this function:

void pv::widgets::WellArray::mouseReleaseEvent ( QMouseEvent *  )
protected

Definition at line 173 of file wellarray.cpp.

Here is the call graph for this function:

int pv::widgets::WellArray::numCols ( ) const
inline

Definition at line 91 of file wellarray.hpp.

Here is the caller graph for this function:

int pv::widgets::WellArray::numRows ( ) const
inline

Definition at line 88 of file wellarray.hpp.

Here is the caller graph for this function:

void pv::widgets::WellArray::paintCell ( QPainter *  p,
int  row,
int  col,
const QRect &  rect 
)
protectedvirtual

Definition at line 124 of file wellarray.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::widgets::WellArray::paintCellContents ( QPainter *  p,
int  row,
int  col,
const QRect &  r 
)
protectedvirtual

Reimplement this function to change the contents of the well array.

Definition at line 154 of file wellarray.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::widgets::WellArray::paintEvent ( QPaintEvent *  e)
protected

Definition at line 52 of file wellarray.cpp.

Here is the call graph for this function:

int pv::widgets::WellArray::rowAt ( int  y) const
inline

Definition at line 76 of file wellarray.hpp.

Here is the caller graph for this function:

int pv::widgets::WellArray::rowY ( int  row) const
inline

Definition at line 82 of file wellarray.hpp.

Here is the caller graph for this function:

void pv::widgets::WellArray::selected ( int  row,
int  col 
)
signal

Definition at line 161 of file moc_wellarray.cpp.

Here is the caller graph for this function:

int pv::widgets::WellArray::selectedColumn ( ) const
inline

Definition at line 59 of file wellarray.hpp.

int pv::widgets::WellArray::selectedRow ( ) const
inline

Definition at line 60 of file wellarray.hpp.

void pv::widgets::WellArray::setCellBrush ( int  row,
int  col,
const QBrush &  b 
)
virtual

Definition at line 231 of file wellarray.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::widgets::WellArray::setCurrent ( int  row,
int  col 
)
virtual

Definition at line 185 of file wellarray.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void pv::widgets::WellArray::setSelected ( int  row,
int  col 
)
virtual

Definition at line 209 of file wellarray.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

QSize pv::widgets::WellArray::sizeHint ( ) const

Definition at line 117 of file wellarray.cpp.

Here is the call graph for this function:

void pv::widgets::WellArray::updateCell ( int  row,
int  column 
)
inline

Definition at line 108 of file wellarray.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

int pv::widgets::WellArray::cellh
private

Definition at line 130 of file wellarray.hpp.

int pv::widgets::WellArray::cellw
private

Definition at line 129 of file wellarray.hpp.

int pv::widgets::WellArray::curCol
private

Definition at line 132 of file wellarray.hpp.

int pv::widgets::WellArray::curRow
private

Definition at line 131 of file wellarray.hpp.

WellArrayData* pv::widgets::WellArray::d
private

Definition at line 135 of file wellarray.hpp.

int pv::widgets::WellArray::ncols
private

Definition at line 128 of file wellarray.hpp.

int pv::widgets::WellArray::nrows
private

Definition at line 127 of file wellarray.hpp.

int pv::widgets::WellArray::selCol
private

Definition at line 134 of file wellarray.hpp.

int pv::widgets::WellArray::selRow
private

Definition at line 133 of file wellarray.hpp.

Property Documentation

int pv::widgets::WellArray::selectedColumn
read

Definition at line 52 of file wellarray.hpp.

int pv::widgets::WellArray::selectedRow
read

Definition at line 53 of file wellarray.hpp.


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