#include <chartview.h>
Public Slots | |
void | setLogarithmicScale (bool n) |
void | setFWHMLine (bool n) |
void | increaseZoom () |
void | decreaseZoom () |
Public Member Functions | |
ChartView (QWidget *=0) | |
~ChartView () | |
QRect | visualRect (const QModelIndex &) const |
void | scrollTo (const QModelIndex &, ScrollHint=EnsureVisible) |
QModelIndex | indexAt (const QPoint &) const |
void | setModel (QAbstractItemModel *) |
bool | logarithmicScale () const |
bool | FWHMLine () const |
double | zoomFactor () const |
Protected Slots | |
void | dataChanged (const QModelIndex &=QModelIndex(), const QModelIndex &=QModelIndex()) |
void | rowsInserted (const QModelIndex &, int, int) |
Protected Member Functions | |
bool | edit (const QModelIndex &, EditTrigger, QEvent *) |
QModelIndex | moveCursor (QAbstractItemView::CursorAction, Qt::KeyboardModifiers) |
int | horizontalOffset () const |
int | verticalOffset () const |
bool | isIndexHidden (const QModelIndex &) const |
void | setSelection (const QRect &, QItemSelectionModel::SelectionFlags) |
void | mouseReleaseEvent (QMouseEvent *) |
void | paintEvent (QPaintEvent *) |
void | resizeEvent (QResizeEvent *) |
void | scrollContentsBy (int, int) |
QRegion | visualRegionForSelection (const QItemSelection &) const |
void | contextMenuEvent (QContextMenuEvent *) |
void | keyPressEvent (QKeyEvent *) |
void | enterEvent (QEvent *) |
void | leaveEvent (QEvent *) |
Properties | |
bool | FWHMLine |
bool | LogarithmicScale |
double | zoomFactor |
Private Slots | |
void | rowsRemoved (const QModelIndex &, int, int) |
void | columnsRemoved (const QModelIndex &, int, int) |
Private Member Functions | |
double | data (const QModelIndex &) |
Access the data and automaticly scale/log. | |
Private Attributes | |
QString | _title |
bool | _inPaintEvent |
struct ChartView::cache_t | _cache |
QList< double > | _zoomfactors |
Zooming and scrolling. | |
QList< double >::Iterator | _currentzoom |
double | _scrollfraction |
QAction * | _action_zoomin |
QAction * | _action_zoomout |
QRectF | _rect_zoomin |
QRectF | _rect_zoomout |
bool | _mouseInside |
Classes | |
struct | cache_t |
ChartView::ChartView | ( | QWidget * | = 0 |
) |
ChartView::~ChartView | ( | ) |
QRect ChartView::visualRect | ( | const QModelIndex & | ) | const |
void ChartView::scrollTo | ( | const QModelIndex & | , | |
ScrollHint | = EnsureVisible | |||
) |
QModelIndex ChartView::indexAt | ( | const QPoint & | ) | const |
void ChartView::setModel | ( | QAbstractItemModel * | ) |
bool ChartView::logarithmicScale | ( | ) | const [inline] |
References _cache, and ChartView::cache_t::logscale.
bool ChartView::FWHMLine | ( | ) | const [inline] |
References _cache, and ChartView::cache_t::fwhmline.
double ChartView::zoomFactor | ( | ) | const [inline] |
References _currentzoom.
void ChartView::setLogarithmicScale | ( | bool | n | ) | [inline, slot] |
References _cache, dataChanged(), ChartView::cache_t::dirty, and ChartView::cache_t::logscale.
void ChartView::setFWHMLine | ( | bool | n | ) | [inline, slot] |
References _cache, and ChartView::cache_t::fwhmline.
void ChartView::increaseZoom | ( | ) | [slot] |
void ChartView::decreaseZoom | ( | ) | [slot] |
void ChartView::dataChanged | ( | const QModelIndex & | = QModelIndex() , |
|
const QModelIndex & | = QModelIndex() | |||
) | [protected, slot] |
Referenced by setLogarithmicScale().
void ChartView::rowsInserted | ( | const QModelIndex & | , | |
int | , | |||
int | ||||
) | [protected, slot] |
bool ChartView::edit | ( | const QModelIndex & | , | |
EditTrigger | , | |||
QEvent * | ||||
) | [protected] |
QModelIndex ChartView::moveCursor | ( | QAbstractItemView::CursorAction | , | |
Qt::KeyboardModifiers | ||||
) | [protected] |
int ChartView::horizontalOffset | ( | ) | const [protected] |
int ChartView::verticalOffset | ( | ) | const [protected] |
bool ChartView::isIndexHidden | ( | const QModelIndex & | ) | const [protected] |
void ChartView::setSelection | ( | const QRect & | , | |
QItemSelectionModel::SelectionFlags | ||||
) | [protected] |
void ChartView::mouseReleaseEvent | ( | QMouseEvent * | ) | [protected] |
void ChartView::paintEvent | ( | QPaintEvent * | ) | [protected] |
void ChartView::resizeEvent | ( | QResizeEvent * | ) | [protected] |
void ChartView::scrollContentsBy | ( | int | , | |
int | ||||
) | [protected] |
QRegion ChartView::visualRegionForSelection | ( | const QItemSelection & | ) | const [protected] |
void ChartView::contextMenuEvent | ( | QContextMenuEvent * | ) | [protected] |
void ChartView::keyPressEvent | ( | QKeyEvent * | ) | [protected] |
void ChartView::enterEvent | ( | QEvent * | ) | [protected] |
void ChartView::leaveEvent | ( | QEvent * | ) | [protected] |
void ChartView::rowsRemoved | ( | const QModelIndex & | , | |
int | , | |||
int | ||||
) | [private, slot] |
void ChartView::columnsRemoved | ( | const QModelIndex & | , | |
int | , | |||
int | ||||
) | [private, slot] |
double ChartView::data | ( | const QModelIndex & | ) | [private] |
Access the data and automaticly scale/log.
QString ChartView::_title [private] |
bool ChartView::_inPaintEvent [private] |
struct ChartView::cache_t ChartView::_cache [private] |
Referenced by FWHMLine(), logarithmicScale(), setFWHMLine(), and setLogarithmicScale().
QList<double> ChartView::_zoomfactors [private] |
Zooming and scrolling.
QList<double>::Iterator ChartView::_currentzoom [private] |
Referenced by zoomFactor().
double ChartView::_scrollfraction [private] |
QAction* ChartView::_action_zoomin [private] |
QAction * ChartView::_action_zoomout [private] |
QRectF ChartView::_rect_zoomin [private] |
QRectF ChartView::_rect_zoomout [private] |
bool ChartView::_mouseInside [private] |
bool ChartView::FWHMLine [read, write] |
bool ChartView::LogarithmicScale [read, write] |
double ChartView::zoomFactor [read] |