• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

okteta

  • Okteta
  • ColumnsView
Public Member Functions | Protected Member Functions | List of all members
Okteta::ColumnsView Class Reference

#include <columnsview.h>

Inheritance diagram for Okteta::ColumnsView:
Inheritance graph
[legend]

Public Member Functions

 ColumnsView (QWidget *parent=0)
 
virtual ~ColumnsView ()
 
PixelY columnsHeight () const
 
PixelX columnsWidth () const
 
Line lineAt (PixelY y) const
 
PixelY lineHeight () const
 
LineSize noOfLines () const
 
LineSize noOfLinesPerPage () const
 
void setColumnsPos (PixelX x, PixelY y)
 
QPoint viewportToColumns (const QPoint &point) const
 
PixelY visibleHeight () const
 
LineRange visibleLines () const
 
LineRange visibleLines (const PixelYRange &yPixels) const
 
PixelX visibleWidth () const
 
PixelX xOffset () const
 
PixelY yOffset () const
 
PixelY yOffsetOfLine (Line lineIndex) const
 

Protected Member Functions

void addColumn (AbstractColumnRenderer *columnRenderer)
 
virtual bool event (QEvent *event)
 
virtual void paintEvent (QPaintEvent *paintEvent)
 
void removeColumn (AbstractColumnRenderer *columnRenderer)
 
virtual void renderColumns (QPainter *painter, int cx, int cy, int cw, int ch)
 
virtual void renderEmptyArea (QPainter *painter, int cx, int cy, int cw, int ch)
 
virtual void resizeEvent (QResizeEvent *event)
 
virtual void scrollContentsBy (int dx, int dy)
 
virtual void setLineHeight (PixelY lineHeight)
 
virtual void setNoOfLines (LineSize noOfLines)
 
void updateColumn (AbstractColumnRenderer &columnRenderer)
 
void updateColumn (AbstractColumnRenderer &columnRenderer, const LineRange &lines)
 
void updateScrollBars ()
 
void updateWidths ()
 

Detailed Description

general class for widgets with columns that display different aspects of the same data with the same lineheight for all lines

Author
Friedrich W. H. Kossebau

Definition at line 47 of file columnsview.h.

Constructor & Destructor Documentation

Okteta::ColumnsView::ColumnsView ( QWidget *  parent = 0)
explicit

Definition at line 87 of file columnsview.cpp.

Okteta::ColumnsView::~ColumnsView ( )
virtual

Definition at line 398 of file columnsview.cpp.

Member Function Documentation

void Okteta::ColumnsView::addColumn ( AbstractColumnRenderer *  columnRenderer)
protected

Definition at line 235 of file columnsview.cpp.

PixelY Okteta::ColumnsView::columnsHeight ( ) const

returns the height of all lines together

Definition at line 117 of file columnsview.cpp.

PixelX Okteta::ColumnsView::columnsWidth ( ) const

returns the width of all visible columns together

Definition at line 118 of file columnsview.cpp.

bool Okteta::ColumnsView::event ( QEvent *  event)
protectedvirtual

Reimplemented in Okteta::AbstractByteArrayView.

Definition at line 263 of file columnsview.cpp.

Line Okteta::ColumnsView::lineAt ( PixelY  y) const

gives the index of the line that would include y in pixel coord.

y is not forced to be inside the total height.

Definition at line 103 of file columnsview.cpp.

PixelY Okteta::ColumnsView::lineHeight ( ) const

returns the height of each line

Definition at line 102 of file columnsview.cpp.

LineSize Okteta::ColumnsView::noOfLines ( ) const

returns the number of all lines

Definition at line 101 of file columnsview.cpp.

LineSize Okteta::ColumnsView::noOfLinesPerPage ( ) 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 220 of file columnsview.cpp.

void Okteta::ColumnsView::paintEvent ( QPaintEvent *  paintEvent)
protectedvirtual

Definition at line 279 of file columnsview.cpp.

void Okteta::ColumnsView::removeColumn ( AbstractColumnRenderer *  columnRenderer)
protected

Definition at line 246 of file columnsview.cpp.

void Okteta::ColumnsView::renderColumns ( QPainter *  painter,
int  cx,
int  cy,
int  cw,
int  ch 
)
protectedvirtual

draws all columns in columns coordinates

Reimplemented in Okteta::ByteArrayColumnView, and Okteta::ByteArrayRowView.

Definition at line 296 of file columnsview.cpp.

void Okteta::ColumnsView::renderEmptyArea ( QPainter *  painter,
int  cx,
int  cy,
int  cw,
int  ch 
)
protectedvirtual

draws area without columns in columns coordinates

Definition at line 392 of file columnsview.cpp.

void Okteta::ColumnsView::resizeEvent ( QResizeEvent *  event)
protectedvirtual

Reimplemented in Okteta::AbstractByteArrayView.

Definition at line 272 of file columnsview.cpp.

void Okteta::ColumnsView::scrollContentsBy ( int  dx,
int  dy 
)
protectedvirtual

Definition at line 258 of file columnsview.cpp.

void Okteta::ColumnsView::setColumnsPos ( PixelX  x,
PixelY  y 
)

Definition at line 134 of file columnsview.cpp.

void Okteta::ColumnsView::setLineHeight ( PixelY  lineHeight)
protectedvirtual

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

Parameters
lineHeightheight in pixels

Definition at line 152 of file columnsview.cpp.

void Okteta::ColumnsView::setNoOfLines ( LineSize  noOfLines)
protectedvirtual

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

Parameters
noOfLinesnew number of lines to display

Definition at line 141 of file columnsview.cpp.

void Okteta::ColumnsView::updateColumn ( AbstractColumnRenderer &  columnRenderer)
protected

calls updateContent for the Column

Definition at line 196 of file columnsview.cpp.

void Okteta::ColumnsView::updateColumn ( AbstractColumnRenderer &  columnRenderer,
const LineRange &  lines 
)
protected

calls updateContent for the Column for the given lines, if needed

Definition at line 202 of file columnsview.cpp.

void Okteta::ColumnsView::updateScrollBars ( )
protected

Definition at line 176 of file columnsview.cpp.

void Okteta::ColumnsView::updateWidths ( )
protected

recalculates the positions of the columns and the total width

Definition at line 168 of file columnsview.cpp.

QPoint Okteta::ColumnsView::viewportToColumns ( const QPoint &  point) const

translates the point to coordinates in the columns

Definition at line 120 of file columnsview.cpp.

PixelY Okteta::ColumnsView::visibleHeight ( ) const
Returns
visible height of the current view

Definition at line 115 of file columnsview.cpp.

LineRange Okteta::ColumnsView::visibleLines ( ) const

gives the index of the first and the last line that would be visible these lines might not contain anything

Definition at line 104 of file columnsview.cpp.

LineRange Okteta::ColumnsView::visibleLines ( const PixelYRange &  yPixels) const

gives the index of the first and the last line that would be visible in the given pixel range these lines might not contain anything

Definition at line 109 of file columnsview.cpp.

PixelX Okteta::ColumnsView::visibleWidth ( ) const
Returns
visible width of the current view

Definition at line 114 of file columnsview.cpp.

PixelX Okteta::ColumnsView::xOffset ( ) const
Returns
x offset of the current view

Definition at line 126 of file columnsview.cpp.

PixelY Okteta::ColumnsView::yOffset ( ) const
Returns
y offset of the current view

Definition at line 127 of file columnsview.cpp.

PixelY Okteta::ColumnsView::yOffsetOfLine ( Line  lineIndex) const
Returns
y offset of the current view

Definition at line 128 of file columnsview.cpp.


The documentation for this class was generated from the following files:
  • columnsview.h
  • columnsview.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okteta

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

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal