#include <qttableview.h>
Public Member Functions | |
virtual void | setBackgroundColor (const QColor &) |
virtual void | setPalette (const QPalette &) |
void | show () |
void | repaint (bool erase=TRUE) |
void | repaint (int x, int y, int w, int h, bool erase=TRUE) |
void | repaint (const QRect &, bool erase=TRUE) |
Protected Member Functions | |
QtTableView (QWidget *parent=0, const char *name=0, WFlags f=0) | |
~QtTableView () | |
int | numRows () const |
virtual void | setNumRows (int) |
int | numCols () const |
virtual void | setNumCols (int) |
int | topCell () const |
virtual void | setTopCell (int row) |
int | leftCell () const |
virtual void | setLeftCell (int col) |
virtual void | setTopLeftCell (int row, int col) |
int | xOffset () const |
virtual void | setXOffset (int) |
int | yOffset () const |
virtual void | setYOffset (int) |
virtual void | setOffset (int x, int y, bool updateScrBars=TRUE) |
virtual int | cellWidth (int col) |
virtual int | cellHeight (int row) |
int | cellWidth () const |
int | cellHeight () const |
virtual void | setCellWidth (int) |
virtual void | setCellHeight (int) |
virtual int | totalWidth () |
virtual int | totalHeight () |
uint | tableFlags () const |
bool | testTableFlags (uint f) const |
virtual void | setTableFlags (uint f) |
void | clearTableFlags (uint f=~0) |
bool | autoUpdate () const |
virtual void | setAutoUpdate (bool) |
void | updateCell (int row, int column, bool erase=TRUE) |
QRect | cellUpdateRect () const |
QRect | viewRect () const |
int | lastRowVisible () const |
int | lastColVisible () const |
bool | rowIsVisible (int row) const |
bool | colIsVisible (int col) const |
QScrollBar * | verticalScrollBar () const |
QScrollBar * | horizontalScrollBar () const |
virtual void | paintCell (QPainter *, int row, int col)=0 |
virtual void | setupPainter (QPainter *) |
void | paintEvent (QPaintEvent *) |
void | resizeEvent (QResizeEvent *) |
int | findRow (int yPos) const |
int | findCol (int xPos) const |
bool | rowYPos (int row, int *yPos) const |
bool | colXPos (int col, int *xPos) const |
int | maxXOffset () |
int | maxYOffset () |
int | maxColOffset () |
int | maxRowOffset () |
int | minViewX () const |
int | minViewY () const |
int | maxViewX () const |
int | maxViewY () const |
int | viewWidth () const |
int | viewHeight () const |
void | scroll (int xPixels, int yPixels) |
void | updateScrollBars () |
void | updateTableSize () |
Private Slots | |
void | horSbValue (int) |
void | horSbSliding (int) |
void | horSbSlidingDone () |
void | verSbValue (int) |
void | verSbSliding (int) |
void | verSbSlidingDone () |
Private Member Functions | |
void | coverCornerSquare (bool) |
void | snapToGrid (bool horizontal, bool vertical) |
virtual void | setHorScrollBar (bool on, bool update=TRUE) |
virtual void | setVerScrollBar (bool on, bool update=TRUE) |
void | updateView () |
int | findRawRow (int yPos, int *cellMaxY, int *cellMinY=0, bool goOutsideView=FALSE) const |
int | findRawCol (int xPos, int *cellMaxX, int *cellMinX=0, bool goOutsideView=FALSE) const |
int | maxColsVisible () const |
void | updateScrollBars (uint) |
void | updateFrameSize () |
void | doAutoScrollBars () |
void | showOrHideScrollBars () |
Private Attributes | |
int | nRows |
int | nCols |
int | xOffs |
int | yOffs |
int | xCellOffs |
int | yCellOffs |
short | xCellDelta |
short | yCellDelta |
short | cellH |
short | cellW |
uint | eraseInPaint: 1 |
uint | verSliding: 1 |
uint | verSnappingOff: 1 |
uint | horSliding: 1 |
uint | horSnappingOff: 1 |
uint | coveringCornerSquare: 1 |
uint | sbDirty: 8 |
uint | inSbUpdate: 1 |
uint | tFlags |
QRect | cellUpdateR |
QScrollBar * | vScrollBar |
QScrollBar * | hScrollBar |
QCornerSquare * | cornerSquare |
QtTableView::QtTableView | ( | QWidget * | parent = 0 , |
const char * | name = 0 , |
||
WFlags | f = 0 |
||
) | [protected] |
QtTableView::~QtTableView | ( | ) | [protected] |
bool QtTableView::autoUpdate | ( | ) | const [inline, protected] |
virtual int QtTableView::cellHeight | ( | int | row ) | [protected, virtual] |
int QtTableView::cellHeight | ( | ) | const [inline, protected] |
References cellH.
QRect QtTableView::cellUpdateRect | ( | ) | const [inline, protected] |
References cellUpdateR.
virtual int QtTableView::cellWidth | ( | int | col ) | [protected, virtual] |
int QtTableView::cellWidth | ( | ) | const [inline, protected] |
References cellW.
void QtTableView::clearTableFlags | ( | uint | f = ~0 ) |
[protected] |
bool QtTableView::colIsVisible | ( | int | col ) | const [protected] |
bool QtTableView::colXPos | ( | int | col, |
int * | xPos | ||
) | const [protected] |
void QtTableView::coverCornerSquare | ( | bool | ) | [private] |
void QtTableView::doAutoScrollBars | ( | ) | [private] |
int QtTableView::findCol | ( | int | xPos ) | const [protected] |
int QtTableView::findRawCol | ( | int | xPos, |
int * | cellMaxX, | ||
int * | cellMinX = 0 , |
||
bool | goOutsideView = FALSE |
||
) | const [private] |
int QtTableView::findRawRow | ( | int | yPos, |
int * | cellMaxY, | ||
int * | cellMinY = 0 , |
||
bool | goOutsideView = FALSE |
||
) | const [private] |
int QtTableView::findRow | ( | int | yPos ) | const [protected] |
QScrollBar* QtTableView::horizontalScrollBar | ( | ) | const [protected] |
void QtTableView::horSbSliding | ( | int | ) | [private, slot] |
void QtTableView::horSbSlidingDone | ( | ) | [private, slot] |
void QtTableView::horSbValue | ( | int | ) | [private, slot] |
int QtTableView::lastColVisible | ( | ) | const [protected] |
int QtTableView::lastRowVisible | ( | ) | const [protected] |
int QtTableView::leftCell | ( | ) | const [inline, protected] |
References xCellOffs.
int QtTableView::maxColOffset | ( | ) | [protected] |
int QtTableView::maxColsVisible | ( | ) | const [private] |
int QtTableView::maxRowOffset | ( | ) | [protected] |
int QtTableView::maxViewX | ( | ) | const [protected] |
int QtTableView::maxViewY | ( | ) | const [protected] |
int QtTableView::maxXOffset | ( | ) | [protected] |
int QtTableView::maxYOffset | ( | ) | [protected] |
int QtTableView::minViewX | ( | ) | const [protected] |
int QtTableView::minViewY | ( | ) | const [protected] |
int QtTableView::numCols | ( | ) | const [inline, protected] |
References nCols.
int QtTableView::numRows | ( | ) | const [inline, protected] |
References nRows.
virtual void QtTableView::paintCell | ( | QPainter * | , |
int | row, | ||
int | col | ||
) | [protected, pure virtual] |
void QtTableView::paintEvent | ( | QPaintEvent * | ) | [protected] |
void QtTableView::repaint | ( | int | x, |
int | y, | ||
int | w, | ||
int | h, | ||
bool | erase = TRUE |
||
) |
void QtTableView::repaint | ( | bool | erase = TRUE ) |
[inline] |
void QtTableView::repaint | ( | const QRect & | r, |
bool | erase = TRUE |
||
) | [inline] |
void QtTableView::resizeEvent | ( | QResizeEvent * | ) | [protected] |
bool QtTableView::rowIsVisible | ( | int | row ) | const [protected] |
bool QtTableView::rowYPos | ( | int | row, |
int * | yPos | ||
) | const [protected] |
void QtTableView::scroll | ( | int | xPixels, |
int | yPixels | ||
) | [protected] |
virtual void QtTableView::setAutoUpdate | ( | bool | ) | [protected, virtual] |
virtual void QtTableView::setBackgroundColor | ( | const QColor & | ) | [virtual] |
virtual void QtTableView::setCellHeight | ( | int | ) | [protected, virtual] |
virtual void QtTableView::setCellWidth | ( | int | ) | [protected, virtual] |
virtual void QtTableView::setHorScrollBar | ( | bool | on, |
bool | update = TRUE |
||
) | [private, virtual] |
virtual void QtTableView::setLeftCell | ( | int | col ) | [protected, virtual] |
virtual void QtTableView::setNumCols | ( | int | ) | [protected, virtual] |
virtual void QtTableView::setNumRows | ( | int | ) | [protected, virtual] |
virtual void QtTableView::setOffset | ( | int | x, |
int | y, | ||
bool | updateScrBars = TRUE |
||
) | [protected, virtual] |
virtual void QtTableView::setPalette | ( | const QPalette & | ) | [virtual] |
virtual void QtTableView::setTableFlags | ( | uint | f ) | [protected, virtual] |
virtual void QtTableView::setTopCell | ( | int | row ) | [protected, virtual] |
virtual void QtTableView::setTopLeftCell | ( | int | row, |
int | col | ||
) | [protected, virtual] |
virtual void QtTableView::setupPainter | ( | QPainter * | ) | [protected, virtual] |
virtual void QtTableView::setVerScrollBar | ( | bool | on, |
bool | update = TRUE |
||
) | [private, virtual] |
virtual void QtTableView::setXOffset | ( | int | ) | [protected, virtual] |
virtual void QtTableView::setYOffset | ( | int | ) | [protected, virtual] |
void QtTableView::show | ( | ) |
void QtTableView::showOrHideScrollBars | ( | ) | [private] |
void QtTableView::snapToGrid | ( | bool | horizontal, |
bool | vertical | ||
) | [private] |
uint QtTableView::tableFlags | ( | ) | const [inline, protected] |
References tFlags.
bool QtTableView::testTableFlags | ( | uint | f ) | const [inline, protected] |
References tFlags.
int QtTableView::topCell | ( | ) | const [inline, protected] |
References yCellOffs.
virtual int QtTableView::totalHeight | ( | ) | [protected, virtual] |
virtual int QtTableView::totalWidth | ( | ) | [protected, virtual] |
void QtTableView::updateCell | ( | int | row, |
int | column, | ||
bool | erase = TRUE |
||
) | [protected] |
void QtTableView::updateFrameSize | ( | ) | [private] |
void QtTableView::updateScrollBars | ( | uint | ) | [private] |
void QtTableView::updateScrollBars | ( | ) | [inline, protected] |
void QtTableView::updateTableSize | ( | ) | [protected] |
void QtTableView::updateView | ( | ) | [private] |
void QtTableView::verSbSliding | ( | int | ) | [private, slot] |
void QtTableView::verSbSlidingDone | ( | ) | [private, slot] |
void QtTableView::verSbValue | ( | int | ) | [private, slot] |
QScrollBar* QtTableView::verticalScrollBar | ( | ) | const [protected] |
int QtTableView::viewHeight | ( | ) | const [protected] |
QRect QtTableView::viewRect | ( | ) | const [protected] |
int QtTableView::viewWidth | ( | ) | const [protected] |
int QtTableView::xOffset | ( | ) | const [inline, protected] |
References xOffs.
int QtTableView::yOffset | ( | ) | const [inline, protected] |
References yOffs.
short QtTableView::cellH [private] |
Referenced by cellHeight().
QRect QtTableView::cellUpdateR [private] |
Referenced by cellUpdateRect().
short QtTableView::cellW [private] |
Referenced by cellWidth().
QCornerSquare* QtTableView::cornerSquare [private] |
uint QtTableView::coveringCornerSquare [private] |
uint QtTableView::eraseInPaint [private] |
uint QtTableView::horSliding [private] |
uint QtTableView::horSnappingOff [private] |
QScrollBar* QtTableView::hScrollBar [private] |
uint QtTableView::inSbUpdate [private] |
int QtTableView::nCols [private] |
Referenced by numCols().
int QtTableView::nRows [private] |
Referenced by numRows().
uint QtTableView::sbDirty [private] |
uint QtTableView::tFlags [private] |
Referenced by tableFlags(), and testTableFlags().
uint QtTableView::verSliding [private] |
uint QtTableView::verSnappingOff [private] |
QScrollBar* QtTableView::vScrollBar [private] |
short QtTableView::xCellDelta [private] |
int QtTableView::xCellOffs [private] |
Referenced by leftCell().
int QtTableView::xOffs [private] |
Referenced by xOffset().
short QtTableView::yCellDelta [private] |
int QtTableView::yCellOffs [private] |
Referenced by topCell().
int QtTableView::yOffs [private] |
Referenced by yOffset().