okteta
columnsview.cpp
Go to the documentation of this file.
103 Line ColumnsView::lineAt( PixelY y ) const { return (d->LineHeight!=0) ? y / d->LineHeight : 0; }
202 void ColumnsView::updateColumn( AbstractColumnRenderer& columnRenderer, const LineRange& lines )
225 LineSize result = (visibleHeight()-1) / d->LineHeight; // -1 ensures to get always the last visible line
325 QListIterator<AbstractColumnRenderer*> fit( d->Columns ); // TODO: reuse later, see some lines below
394 painter->fillRect( cx,cy, cw,ch, viewport()->palette().brush(QPalette::Base) ); // TODO: use stylist here, too
void updateWidths()
recalculates the positions of the columns and the total width
Definition: columnsview.cpp:168
QPoint viewportToColumns(const QPoint &point) const
translates the point to coordinates in the columns
Definition: columnsview.cpp:120
virtual void paintEvent(QPaintEvent *paintEvent)
Definition: columnsview.cpp:279
Line lineAt(PixelY y) const
gives the index of the line that would include y in pixel coord.
Definition: columnsview.cpp:103
void updateColumn(AbstractColumnRenderer &columnRenderer)
calls updateContent for the Column
Definition: columnsview.cpp:196
virtual void scrollContentsBy(int dx, int dy)
Definition: columnsview.cpp:258
void setColumnsPos(PixelX x, PixelY y)
Definition: columnsview.cpp:134
PixelY columnsHeight() const
returns the height of all lines together
Definition: columnsview.cpp:117
void addColumn(AbstractColumnRenderer *columnRenderer)
Definition: columnsview.cpp:235
virtual void setLineHeight(PixelY lineHeight)
sets height of all lines and propagates this information to all columns doesn't update the content si...
Definition: columnsview.cpp:152
static NumberRange fromWidth(N startIndex, S width)
constructs a range by width
Definition: numberrange.h:130
virtual void renderColumns(QPainter *painter, int cx, int cy, int cw, int ch)
draws all columns in columns coordinates
Definition: columnsview.cpp:296
virtual void resizeEvent(QResizeEvent *event)
Definition: columnsview.cpp:272
virtual void setNoOfLines(LineSize noOfLines)
sets the number of lines doesn't update the content size
Definition: columnsview.cpp:141
LineRange visibleLines() const
gives the index of the first and the last line that would be visible these lines might not contain an...
Definition: columnsview.cpp:104
virtual void renderNextLine(QPainter *painter)
the actual painting call for a column's line.
Definition: abstractcolumnrenderer.cpp:67
PixelY yOffsetOfLine(Line lineIndex) const
Definition: columnsview.cpp:128
void removeColumn(AbstractColumnRenderer *columnRenderer)
Definition: columnsview.cpp:246
virtual void renderFirstLine(QPainter *painter, const PixelXRange &xSpan, int firstLineIndex)
Before an update of the columns view each column that intersects with the area to be painted will be ...
Definition: abstractcolumnrenderer.cpp:59
bool startsBefore(T Value) const
returns true is the range starts before index.
Definition: range.h:99
PixelX columnsWidth() const
returns the width of all visible columns together
Definition: columnsview.cpp:118
base class for columns of the ColumnsView
Definition: abstractcolumnrenderer.h:46
bool overlaps(const PixelXRange &xSpan) const
true if column overlaps with pixels between x-positions x1, x2
Definition: abstractcolumnrenderer.cpp:56
LineSize noOfLinesPerPage() const
returns number of fully visible lines, at least 1 (as needed by page down/up) doesn't care about the ...
Definition: columnsview.cpp:220
virtual void renderEmptyArea(QPainter *painter, int cx, int cy, int cw, int ch)
draws area without columns in columns coordinates
Definition: columnsview.cpp:392
Definition: bookmarkable.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.