okteta
KHEPrint::ByteColumnRenderer Class Reference
#include <bytecolumnrenderer.h>

Detailed Description
base class of all buffer column displayers holds all information about the vertical layout of a buffer column knows how to paint the data and the editing things (focus, cursor, selection) but does not offer
Definition at line 63 of file bytecolumnrenderer.h.
Member Enumeration Documentation
Constructor & Destructor Documentation
| KHEPrint::ByteColumnRenderer::ByteColumnRenderer | ( | AbstractColumnFrameRenderer * | columnFrameRenderer, | |
| const KHECore::KAbstractByteArrayModel * | byteArray, | |||
| const KHE::KSection & | renderIndizes, | |||
| const KHEUI::ByteArrayTableLayout * | layout | |||
| ) |
Definition at line 48 of file bytecolumnrenderer.cpp.
| KHEPrint::ByteColumnRenderer::~ByteColumnRenderer | ( | ) | [virtual] |
Definition at line 464 of file bytecolumnrenderer.cpp.
Member Function Documentation
| KPixelX KHEPrint::ByteColumnRenderer::byteSpacingWidth | ( | ) | const [inline] |
Definition at line 226 of file bytecolumnrenderer.h.
| KPixelX KHEPrint::ByteColumnRenderer::byteWidth | ( | ) | const [inline] |
Definition at line 224 of file bytecolumnrenderer.h.
| KHECore::KCharCodec * KHEPrint::ByteColumnRenderer::codec | ( | ) | const [inline] |
Definition at line 238 of file bytecolumnrenderer.h.
returns right relative x-coord of byte at position posInLine
Definition at line 328 of file bytecolumnrenderer.cpp.
returns relative x-coord of byte at position posInLine
Definition at line 327 of file bytecolumnrenderer.cpp.
| KPixelXs KHEPrint::ByteColumnRenderer::columnXsOfLinePositionsInclSpaces | ( | const KHE::KSection & | Positions | ) | const |
Definition at line 341 of file bytecolumnrenderer.cpp.
| KPixelX KHEPrint::ByteColumnRenderer::digitWidth | ( | ) | const [inline] |
Definition at line 225 of file bytecolumnrenderer.h.
| void KHEPrint::ByteColumnRenderer::drawByte | ( | QPainter * | painter, | |
| char | Byte, | |||
| KHECore::KChar | B, | |||
| const QColor & | Color | |||
| ) | const [protected, virtual] |
default implementation simply prints the byte as ASCII
Reimplemented in KHEPrint::CharColumnRenderer, and KHEPrint::ValueColumnRenderer.
Definition at line 457 of file bytecolumnrenderer.cpp.
| int KHEPrint::ByteColumnRenderer::firstPos | ( | ) | const [inline] |
Definition at line 231 of file bytecolumnrenderer.h.
| KPixelX KHEPrint::ByteColumnRenderer::groupSpacingWidth | ( | ) | const [inline] |
Definition at line 227 of file bytecolumnrenderer.h.
| int KHEPrint::ByteColumnRenderer::lastPos | ( | ) | const [inline] |
Definition at line 232 of file bytecolumnrenderer.h.
| const KHEUI::ByteArrayTableLayout * KHEPrint::ByteColumnRenderer::layout | ( | ) | const [inline] |
Definition at line 235 of file bytecolumnrenderer.h.
returns byte pos at pixel with relative x-coord x
Definition at line 287 of file bytecolumnrenderer.cpp.
returns byte pos at pixel with absolute x-coord x
Definition at line 218 of file bytecolumnrenderer.cpp.
| KHE::KSection KHEPrint::ByteColumnRenderer::linePositionsOfColumnXs | ( | KPixelX | x, | |
| KPixelX | width | |||
| ) | const |
returns byte positions covered by pixels with relative x-coord x
Definition at line 301 of file bytecolumnrenderer.cpp.
| KHE::KSection KHEPrint::ByteColumnRenderer::linePositionsOfX | ( | KPixelX | x, | |
| KPixelX | width | |||
| ) | const |
returns byte positions covered by pixels with absolute x-coord x
Definition at line 255 of file bytecolumnrenderer.cpp.
returns byte pos at pixel with absolute x-coord x, and sets the flag to true if we are closer to the right
Definition at line 234 of file bytecolumnrenderer.cpp.
| int KHEPrint::ByteColumnRenderer::noOfGroupedBytes | ( | ) | const [inline] |
Definition at line 229 of file bytecolumnrenderer.h.
| void KHEPrint::ByteColumnRenderer::prepareRendering | ( | const KPixelXs & | Xs | ) |
Definition at line 351 of file bytecolumnrenderer.cpp.
| void KHEPrint::ByteColumnRenderer::recalcByteWidth | ( | ) | [protected, virtual] |
default implementation sets byte width to one digit width
Reimplemented in KHEPrint::ValueColumnRenderer.
Definition at line 182 of file bytecolumnrenderer.cpp.
| void KHEPrint::ByteColumnRenderer::recalcX | ( | ) | [protected] |
Definition at line 188 of file bytecolumnrenderer.cpp.
| void KHEPrint::ByteColumnRenderer::renderFirstLine | ( | QPainter * | painter, | |
| const KPixelXs & | Xs, | |||
| int | firstLine | |||
| ) | [virtual] |
Before an update of the columns view each column that intersects with the area to be painted will be called with this function.
As often multiple lines of a column are affected for each lines the same values (like first and last char positions) might be calculated. This function enables a one-time-calculation for such data that must be stored in some class members, though.
- Parameters:
-
painter painter variable cx cw FirstLine no of the first of the range of lines to paint
Reimplemented from KHEPrint::AbstractColumnRenderer.
Definition at line 367 of file bytecolumnrenderer.cpp.
| void KHEPrint::ByteColumnRenderer::renderLinePositions | ( | QPainter * | painter, | |
| int | Line, | |||
| const KHE::KSection & | Positions | |||
| ) |
Definition at line 383 of file bytecolumnrenderer.cpp.
| void KHEPrint::ByteColumnRenderer::renderNextLine | ( | QPainter * | painter | ) | [virtual] |
the actual painting call for a column's line.
The default implementation simply paints the background
Reimplemented from KHEPrint::AbstractColumnRenderer.
Definition at line 377 of file bytecolumnrenderer.cpp.
| void KHEPrint::ByteColumnRenderer::renderPlain | ( | QPainter * | painter, | |
| const KHE::KSection & | Positions, | |||
| int | Index | |||
| ) | [protected] |
Definition at line 408 of file bytecolumnrenderer.cpp.
| void KHEPrint::ByteColumnRenderer::renderRange | ( | QPainter * | painter, | |
| const QBrush & | Brush, | |||
| const KHE::KSection & | Positions, | |||
| int | Flag | |||
| ) | [protected] |
Definition at line 448 of file bytecolumnrenderer.cpp.
| void KHEPrint::ByteColumnRenderer::resetXBuffer | ( | ) |
creates new buffer for x-values; to be called on any change of NoOfBytesPerLine or metrics
Definition at line 79 of file bytecolumnrenderer.cpp.
returns right absolute x-coord of byte at position posInLine
Definition at line 284 of file bytecolumnrenderer.cpp.
| void KHEPrint::ByteColumnRenderer::setByteArrayModel | ( | const KHECore::KAbstractByteArrayModel * | byteArrayModel, | |
| const KHE::KSection & | renderIndizes | |||
| ) |
Definition at line 70 of file bytecolumnrenderer.cpp.
| bool KHEPrint::ByteColumnRenderer::setByteSpacingWidth | ( | KPixelX | ByteSpacingW | ) |
sets the spacing between the bytes in the hex column
- Parameters:
-
ByteSpacingW spacing between the bytes in pixels returns true if there was a change
Definition at line 136 of file bytecolumnrenderer.cpp.
| void KHEPrint::ByteColumnRenderer::setCodec | ( | KHECore::KCharCodec * | C | ) | [inline] |
| bool KHEPrint::ByteColumnRenderer::setDigitWidth | ( | KPixelX | DW | ) |
sets width of digits and recalculates depend sizes returns true if there was a change
Definition at line 100 of file bytecolumnrenderer.cpp.
| bool KHEPrint::ByteColumnRenderer::setGroupSpacingWidth | ( | KPixelX | GroupSpacingW | ) |
sets the spacing between the groups of bytes in the hex column
- Parameters:
-
GroupSpacingW spacing between the groups in pixels returns true if there was a change
Definition at line 166 of file bytecolumnrenderer.cpp.
sets the metrics of the used font
- Parameters:
-
NewDigitWidth the new width of a digit NewDigitBaseLine the new baseline of the digits
Definition at line 93 of file bytecolumnrenderer.cpp.
| bool KHEPrint::ByteColumnRenderer::setNoOfGroupedBytes | ( | int | NewNoOfGroupedBytes | ) |
sets the number of grouped bytes in the hex column
- Parameters:
-
NewNoOfGroupedBytes numbers of grouped bytes, 0 means no grouping returns true if there was a change
Definition at line 152 of file bytecolumnrenderer.cpp.
| bool KHEPrint::ByteColumnRenderer::setSpacing | ( | KPixelX | ByteSpacingW, | |
| int | NewNoOfGroupedBytes = 0, |
|||
| KPixelX | GroupSpacingW = 0 | |||
| ) |
sets the spacing in the hex column
- Parameters:
-
ByteSpacingW spacing between the bytes in pixels NewNoOfGroupedBytes numbers of grouped bytes, 0 means no grouping GroupSpacingW spacing between the groups in pixels returns true if there was a change
Definition at line 116 of file bytecolumnrenderer.cpp.
| KHE::KSection KHEPrint::ByteColumnRenderer::visibleLinePositions | ( | KPixelX | x, | |
| KPixelX | width | |||
| ) | const |
returns the positions that overlap with the absolute x-coords
| KHE::KSection KHEPrint::ByteColumnRenderer::visiblePositions | ( | ) | const [inline] |
Definition at line 233 of file bytecolumnrenderer.h.
returns absolute x-coord of byte at position posInLine
Definition at line 283 of file bytecolumnrenderer.cpp.
| KPixelXs KHEPrint::ByteColumnRenderer::xsOfLinePositionsInclSpaces | ( | const KHE::KSection & | Positions | ) | const |
Member Data Documentation
const KHECore::KAbstractByteArrayModel* KHEPrint::ByteColumnRenderer::mByteArrayModel [protected] |
KPixelX KHEPrint::ByteColumnRenderer::mByteWidth [protected] |
KHECore::KCharCodec* KHEPrint::ByteColumnRenderer::mCodec [protected] |
Definition at line 187 of file bytecolumnrenderer.h.
KPixelY KHEPrint::ByteColumnRenderer::mDigitBaseLine [protected] |
Definition at line 192 of file bytecolumnrenderer.h.
KPixelX KHEPrint::ByteColumnRenderer::mDigitWidth [protected] |
Definition at line 190 of file bytecolumnrenderer.h.
int KHEPrint::ByteColumnRenderer::mLastPos [protected] |
const KHEUI::ByteArrayTableLayout* KHEPrint::ByteColumnRenderer::mLayout [protected] |
int KHEPrint::ByteColumnRenderer::mNoOfGroupedBytes [protected] |
KPixelX* KHEPrint::ByteColumnRenderer::mPosRightX [protected] |
Definition at line 210 of file bytecolumnrenderer.h.
KPixelX* KHEPrint::ByteColumnRenderer::mPosX [protected] |
pointer to array with buffered positions (relative to column position) a spacing gets assigned to the left byte -> .
..c|c|c |c|c...
Definition at line 209 of file bytecolumnrenderer.h.
Definition at line 181 of file bytecolumnrenderer.h.
int KHEPrint::ByteColumnRenderer::mRenderLine [protected] |
Definition at line 217 of file bytecolumnrenderer.h.
Definition at line 216 of file bytecolumnrenderer.h.
KPixelX KHEPrint::ByteColumnRenderer::mRenderW [protected] |
Definition at line 219 of file bytecolumnrenderer.h.
KPixelX KHEPrint::ByteColumnRenderer::mRenderX [protected] |
Definition at line 218 of file bytecolumnrenderer.h.
int KHEPrint::ByteColumnRenderer::mSpacingTrigger [protected] |
Definition at line 220 of file bytecolumnrenderer.h.
The documentation for this class was generated from the following files:
KDE 4.2 API Reference