• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

okteta

AbstractColumnFrameRenderer Class Reference

#include <abstractcolumnframerenderer.h>

Inheritance diagram for AbstractColumnFrameRenderer:

Inheritance graph
[legend]

List of all members.


Detailed Description

class to render columns with the same lineheight for all lines

lines are only completely rendered, so contentHeight <= framesCount*height

Author:
Friedrich W. H. Kossebau

Definition at line 50 of file abstractcolumnframerenderer.h.


Public Member Functions

 AbstractColumnFrameRenderer ()
KPixelY columnsHeight () const
KPixelX columnsWidth () const
KPixelY lineHeight () const
int noOfLines () const
int noOfLinesPerFrame () const
virtual void renderFrame (QPainter *painter, int frameIndex)
void setColumnsPos (KPixelX x, KPixelY y)
virtual ~AbstractColumnFrameRenderer ()

Protected Member Functions

void addColumn (KHEPrint::AbstractColumnRenderer *column)
virtual void drawEmptyArea (QPainter *painter, int cx, int cy, int cw, int ch)
void removeColumn (KHEPrint::AbstractColumnRenderer *column)
virtual void setLineHeight (KPixelY NewLineHeight)
virtual void setNoOfLines (int NewNoOfLines)
void updateWidths ()

Constructor & Destructor Documentation

AbstractColumnFrameRenderer::AbstractColumnFrameRenderer (  ) 

Definition at line 76 of file abstractcolumnframerenderer.cpp.

AbstractColumnFrameRenderer::~AbstractColumnFrameRenderer (  )  [virtual]

Definition at line 252 of file abstractcolumnframerenderer.cpp.


Member Function Documentation

void AbstractColumnFrameRenderer::addColumn ( KHEPrint::AbstractColumnRenderer *  column  )  [protected]

called by AbstractColumnRenderer

Definition at line 133 of file abstractcolumnframerenderer.cpp.

KPixelY AbstractColumnFrameRenderer::columnsHeight (  )  const

returns the height of all lines together

Definition at line 85 of file abstractcolumnframerenderer.cpp.

KPixelX AbstractColumnFrameRenderer::columnsWidth (  )  const

returns the width of all visible columns together

Definition at line 86 of file abstractcolumnframerenderer.cpp.

void AbstractColumnFrameRenderer::drawEmptyArea ( QPainter *  painter,
int  cx,
int  cy,
int  cw,
int  ch 
) [protected, virtual]

draws area without columns in columns coordinates

Definition at line 246 of file abstractcolumnframerenderer.cpp.

KPixelY AbstractColumnFrameRenderer::lineHeight (  )  const

returns the height of each line

Definition at line 83 of file abstractcolumnframerenderer.cpp.

int AbstractColumnFrameRenderer::noOfLines (  )  const

returns the number of all lines

Definition at line 82 of file abstractcolumnframerenderer.cpp.

int AbstractColumnFrameRenderer::noOfLinesPerFrame (  )  const

returns number of fully visible lines, at least 1 (as needed by page down/up) doesn't care about the total height being smaller than the display height

Definition at line 118 of file abstractcolumnframerenderer.cpp.

void AbstractColumnFrameRenderer::removeColumn ( KHEPrint::AbstractColumnRenderer *  column  )  [protected]

Definition at line 141 of file abstractcolumnframerenderer.cpp.

void AbstractColumnFrameRenderer::renderFrame ( QPainter *  painter,
int  frameIndex 
) [virtual]

Implements AbstractFrameRenderer.

Reimplemented in ByteArrayFrameRenderer.

Definition at line 153 of file abstractcolumnframerenderer.cpp.

void AbstractColumnFrameRenderer::setColumnsPos ( KPixelX  x,
KPixelY  y 
)

void AbstractColumnFrameRenderer::setLineHeight ( KPixelY  NewLineHeight  )  [protected, virtual]

sets height of all lines and propagates this information to all columns doesn't update the content size

Parameters:
NewLineHeight height in pixels

Definition at line 97 of file abstractcolumnframerenderer.cpp.

void AbstractColumnFrameRenderer::setNoOfLines ( int  NewNoOfLines  )  [protected, virtual]

sets the number of lines doesn't update the content size

Parameters:
NewNoOfLines new number of lines to display

Definition at line 88 of file abstractcolumnframerenderer.cpp.

void AbstractColumnFrameRenderer::updateWidths (  )  [protected]

recalculates the positions of the columns and the total width

Definition at line 112 of file abstractcolumnframerenderer.cpp.


The documentation for this class was generated from the following files:
  • abstractcolumnframerenderer.h
  • abstractcolumnframerenderer.cpp

okteta

Skip menu "okteta"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal