okteta
#include <columnsview.h>

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
Definition at line 47 of file columnsview.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 87 of file columnsview.cpp.
|
virtual |
Definition at line 398 of file columnsview.cpp.
Member Function Documentation
|
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.
|
protectedvirtual |
Reimplemented in Okteta::AbstractByteArrayView.
Definition at line 263 of file columnsview.cpp.
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.
|
protectedvirtual |
Definition at line 279 of file columnsview.cpp.
|
protected |
Definition at line 246 of file columnsview.cpp.
|
protectedvirtual |
draws all columns in columns coordinates
Reimplemented in Okteta::ByteArrayColumnView, and Okteta::ByteArrayRowView.
Definition at line 296 of file columnsview.cpp.
|
protectedvirtual |
draws area without columns in columns coordinates
Definition at line 392 of file columnsview.cpp.
|
protectedvirtual |
Reimplemented in Okteta::AbstractByteArrayView.
Definition at line 272 of file columnsview.cpp.
|
protectedvirtual |
Definition at line 258 of file columnsview.cpp.
Definition at line 134 of file columnsview.cpp.
|
protectedvirtual |
sets height of all lines and propagates this information to all columns doesn't update the content size
- Parameters
-
lineHeight height in pixels
Definition at line 152 of file columnsview.cpp.
|
protectedvirtual |
sets the number of lines doesn't update the content size
- Parameters
-
noOfLines new number of lines to display
Definition at line 141 of file columnsview.cpp.
|
protected |
calls updateContent for the Column
Definition at line 196 of file columnsview.cpp.
|
protected |
calls updateContent for the Column for the given lines, if needed
Definition at line 202 of file columnsview.cpp.
|
protected |
Definition at line 176 of file columnsview.cpp.
|
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.
- 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:
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.