okteta
abstractcolumnframerenderer.cpp
Go to the documentation of this file.
88 Okteta::PixelY AbstractColumnFrameRenderer::columnsHeight() const { return d->mNoOfLines*d->mLineHeight; }
145 void AbstractColumnFrameRenderer::removeColumn( Okteta::AbstractColumnRenderer *columnRenderer )
176 Okteta::LineRange renderedLines = Okteta::LineRange::fromWidth( baseLine, noOfLinesPerFrame() );
179 Okteta::PixelYRange renderedYs = Okteta::PixelYRange::fromWidth( 0, renderedLines.width()*d->mLineHeight );
185 QListIterator<Okteta::AbstractColumnRenderer*> fit( columnRenderers ); // TODO: reuse later, see some lines below
250 void AbstractColumnFrameRenderer::drawEmptyArea( QPainter *painter, int cx ,int cy, int cw, int ch )
void updateWidths()
recalculates the positions of the columns and the total width
Definition: abstractcolumnframerenderer.cpp:115
virtual int width() const =0
Okteta::LineSize noOfLines() const
returns the number of all lines
Definition: abstractcolumnframerenderer.cpp:85
AbstractColumnFrameRenderer()
Definition: abstractcolumnframerenderer.cpp:79
virtual ~AbstractColumnFrameRenderer()
Definition: abstractcolumnframerenderer.cpp:256
Okteta::LineSize noOfLinesPerFrame() const
returns number of fully visible lines, at least 1 (as needed by page down/up) doesn't care about the ...
Definition: abstractcolumnframerenderer.cpp:121
virtual void setLineHeight(Okteta::PixelY NewLineHeight)
sets height of all lines and propagates this information to all columns doesn't update the content si...
Definition: abstractcolumnframerenderer.cpp:100
Okteta::PixelY columnsHeight() const
returns the height of all lines together
Definition: abstractcolumnframerenderer.cpp:88
virtual void drawEmptyArea(QPainter *painter, int cx, int cy, int cw, int ch)
draws area without columns in columns coordinates
Definition: abstractcolumnframerenderer.cpp:250
PixelX visibleWidth() const
convenience: returns width if visible else 0
Definition: abstractcolumnrenderer.cpp:46
void removeColumn(Okteta::AbstractColumnRenderer *column)
Definition: abstractcolumnframerenderer.cpp:145
virtual void setNoOfLines(Okteta::LineSize NewNoOfLines)
sets the number of lines doesn't update the content size
Definition: abstractcolumnframerenderer.cpp:91
virtual void renderFrame(QPainter *painter, int frameIndex)
Definition: abstractcolumnframerenderer.cpp:157
static NumberRange fromWidth(PixelXstartIndex, S width)
constructs a range by width
Okteta::PixelY lineHeight() const
returns the height of each line
Definition: abstractcolumnframerenderer.cpp:86
virtual void renderNextLine(QPainter *painter)
the actual painting call for a column's line.
Definition: abstractcolumnrenderer.cpp:67
Okteta::PixelX columnsWidth() const
returns the width of all visible columns together
Definition: abstractcolumnframerenderer.cpp:89
virtual int height() const =0
void addColumn(Okteta::AbstractColumnRenderer *column)
takes ownership of column renderer
Definition: abstractcolumnframerenderer.cpp:137
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
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:06 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:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.