kspread

Painting

Classes and methods related to the painting of cells and objects. More...

Functions

void KSpread::CellView::paintCellBackground (QPainter &painter, const QPointF &coordinate)
void KSpread::CellView::paintCellBorders (const QRectF &paintRegion, QPainter &painter, const QPointF &coordinate, const QRect &cellRange, const Cell &cell, SheetView *sheetView)
void KSpread::CellView::paintCellContents (const QRectF &paintRegion, QPainter &painter, QPaintDevice *paintDevice, const QPointF &coordinate, const Cell &cell, SheetView *sheetView)
void KSpread::Doc::paintCellRegions (QPainter &painter, const QRect &viewRect, View *view, const Region &region)
void KSpread::Doc::paintContent (QPainter &painter, const QRect &rect, Sheet *sheet, bool drawCursor=true)
virtual void KSpread::Doc::paintContent (QPainter &painter, const QRect &rect)
void KSpread::CellView::paintDefaultBorders (QPainter &painter, const QRectF &paintRegion, const QPointF &coordinate, Borders paintBorder, const QRect &cellRange, const Cell &cell, SheetView *sheetView)
void KSpread::Sheet::setRegionPaintDirty (const Region &region)
void KSpread::Sheet::updateView (const Region &region)
void KSpread::Sheet::updateView ()

Detailed Description

Classes and methods related to the painting of cells and objects.

Painting


Function Documentation

void CellView::paintCellBackground ( QPainter painter,
const QPointF coordinate 
) [inherited]

Paints the cell's background.

Parameters:
painter the used painter
coordinate the top left coordinate (scroll offset dependent)

Definition at line 576 of file CellView.cpp.

void CellView::paintCellBorders ( const QRectF paintRegion,
QPainter painter,
const QPointF coordinate,
const QRect cellRange,
const Cell cell,
SheetView sheetView 
) [inherited]

Paints the cell custom borders, the page borders, diagonal lines.

Parameters:
paintRegion the portion of the canvas that is actually in view
painter the used painter
coordinate the top left coordinate (scroll offset dependent)
cellRange the cell range, that is painted
cell the Cell
sheetView the SheetView

Definition at line 383 of file CellView.cpp.

void CellView::paintCellContents ( const QRectF paintRegion,
QPainter painter,
QPaintDevice paintDevice,
const QPointF coordinate,
const Cell cell,
SheetView sheetView 
) [inherited]

Paints the cell.

Parameters:
paintRegion the portion of the canvas that is actually in view
painter the used painter
paintDevice the paintDevice of this data.
coordinate the top left coordinate (scroll offset dependent)
cell the Cell

Definition at line 319 of file CellView.cpp.

void Doc::paintCellRegions ( QPainter painter,
const QRect viewRect,
View view,
const Region region 
) [inherited]

Primary entry point for painting.

Use this function to paint groups of cells

Parameters:
painter the painter object to use. This should already be initialized with the world matrix. The begin and end calls should surround this function.
viewRect the document coordinates showing what is actually visible in the screen
view the view of the region -- may be 0 but no selection markers can be passed in that case.
region a list of rectangles indicating the cell ranges needing painted.

Definition at line 871 of file Doc.cpp.

void Doc::paintContent ( QPainter painter,
const QRect rect,
Sheet sheet,
bool  drawCursor = true 
) [inherited]

Definition at line 833 of file Doc.cpp.

void Doc::paintContent ( QPainter painter,
const QRect rect 
) [virtual, inherited]

Definition at line 790 of file Doc.cpp.

void CellView::paintDefaultBorders ( QPainter painter,
const QRectF paintRegion,
const QPointF coordinate,
Borders  paintBorder,
const QRect cellRange,
const Cell cell,
SheetView sheetView 
) [inherited]

Paints the default cell borders.

Parameters:
painter the used painter
paintRegion the portion of the canvas that is actually in view
coordinate the painting coordinate
paintBorder the borders, that should be painted (should be removed???)
cellRange the cell range, that is painted
cell the Cell
sheetView the SheetView

Definition at line 609 of file CellView.cpp.

void KSpread::Sheet::setRegionPaintDirty ( const Region region  )  [inherited]

set a region of the spreadsheet to be 'paint dirty' meaning it needs repainted.

This is not a flag on the cell itself since quite often this needs set on a default cell

Definition at line 4306 of file Sheet.cpp.

void KSpread::Sheet::updateView ( const Region region  )  [inherited]

repaints all visible cells in region

Definition at line 1845 of file Sheet.cpp.

void KSpread::Sheet::updateView (  )  [inherited]

repaints all visible cells

Definition at line 1840 of file Sheet.cpp.