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

okteta

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

#include <charbytearraycolumnrenderer.h>

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

Public Member Functions

 CharByteArrayColumnRenderer (AbstractColumnStylist *stylist, AbstractByteArrayModel *byteArrayModel, ByteArrayTableLayout *layout, ByteArrayTableRanges *ranges)
 
virtual ~CharByteArrayColumnRenderer ()
 
bool isShowingNonprinting () const
 
bool setShowingNonprinting (bool showingNonprinting=true)
 
bool setSubstituteChar (QChar substituteChar)
 
bool setUndefinedChar (QChar undefinedChar)
 
QChar substituteChar () const
 
QChar undefinedChar () const
 
- Public Member Functions inherited from Okteta::AbstractByteArrayColumnRenderer
 AbstractByteArrayColumnRenderer (AbstractColumnStylist *stylist, AbstractByteArrayModel *byteArrayModel, ByteArrayTableLayout *layout, ByteArrayTableRanges *ranges)
 
virtual ~AbstractByteArrayColumnRenderer ()
 
QRect byteRect (const Coord &coord) const
 
PixelX byteSpacingWidth () const
 
PixelX byteWidth () const
 
PixelX columnRightXOfLinePosition (LinePosition posInLine) const
 
PixelX columnXOfLinePosition (LinePosition posInLine) const
 
PixelXRange columnXsOfLinePositionsInclSpaces (const LinePositionRange &linePositions) const
 
PixelX digitWidth () const
 
LinePosition firstLinePos () const
 
PixelX groupSpacingWidth () const
 
bool isByteTypeColored () const
 
LinePosition lastLinePos () const
 
const ByteArrayTableLayout * layout () const
 
LinePosition linePositionOfColumnX (PixelX x) const
 
LinePosition linePositionOfX (PixelX x) const
 
LinePositionRange linePositionsOfColumnXs (PixelX x, PixelX width) const
 
LinePositionRange linePositionsOfX (PixelX x, PixelX width) const
 
LinePosition magneticLinePositionOfX (PixelX x) const
 
int noOfGroupedBytes () const
 
void prepareRendering (const PixelXRange &Xs)
 
void renderByte (QPainter *painter, Address byteIndex)
 
void renderCursor (QPainter *painter, Address byteIndex)
 
virtual void renderFirstLine (QPainter *painter, const PixelXRange &Xs, Line firstLineIndex)
 
void renderFramedByte (QPainter *painter, Address byteIndex, FrameStyle style)
 
void renderLinePositions (QPainter *painter, Line lineIndex, const LineRange &linePositions)
 
virtual void renderNextLine (QPainter *painter)
 
void resetXBuffer ()
 
PixelX rightXOfLinePosition (LinePosition posInLine) const
 
void set (AbstractByteArrayModel *byteArrayModel)
 
bool setByteSpacingWidth (PixelX byteSpacingWidth)
 
void setByteTypeColored (bool byteTypeColored)
 
void setCharCodec (const CharCodec *charCodec)
 
void setFontMetrics (const QFontMetrics &fontMetrics)
 
bool setGroupSpacingWidth (PixelX groupSpacingWidth)
 
bool setNoOfGroupedBytes (int noOfGroupedBytes)
 
bool setSpacing (PixelX byteSpacingWidth, int noOfGroupedBytes=0, PixelX groupSpacingWidth=0)
 
LinePositionRange visibleLinePositions (PixelX x, PixelX width) const
 
LinePositionRange visibleLinePositions () const
 
PixelX xOfLinePosition (LinePosition posInLine) const
 
PixelXRange xsOfLinePositionsInclSpaces (const LinePositionRange &linePositions) const
 
- Public Member Functions inherited from Okteta::AbstractColumnRenderer
 AbstractColumnRenderer (AbstractColumnStylist *stylist)
 
virtual ~AbstractColumnRenderer ()
 
bool isVisible () const
 
PixelY lineHeight () const
 
bool overlaps (const PixelXRange &xSpan) const
 
virtual void renderColumn (QPainter *painter, const PixelXRange &xSpan, const PixelYRange &ySpan)
 
virtual void renderEmptyColumn (QPainter *painter, const PixelXRange &xSpan, const PixelYRange &ySpan)
 
virtual void renderFirstLine (QPainter *painter, const PixelXRange &xSpan, int firstLineIndex)
 
PixelX rightX () const
 
void setLineHeight (PixelY lineHeight)
 
void setVisible (bool isVisible)
 
void setX (PixelX x)
 
AbstractColumnStylist * stylist () const
 
PixelX visibleWidth () const
 
PixelX width () const
 
PixelX x () const
 

Protected Member Functions

virtual void renderByteText (QPainter *painter, Byte byte, Character byteChar, const QColor &color) const
 
- Protected Member Functions inherited from Okteta::AbstractByteArrayColumnRenderer
bool getNextMarkedAddressRange (AddressRange *markedRange, unsigned int *flag, const AddressRange &range) const
 
bool getNextSelectedAddressRange (AddressRange *selectedRange, unsigned int *flag, const AddressRange &range) const
 
virtual void recalcByteWidth ()
 
void recalcX ()
 
void renderBookmark (QPainter *painter, const QBrush &brush)
 
void renderMarking (QPainter *painter, const LinePositionRange &linePositions, Address byteIndex, int flag)
 
void renderPlain (QPainter *painter, const LinePositionRange &linePositions, Address byteIndex)
 
void renderRange (QPainter *painter, const QBrush &brush, const LinePositionRange &linePositions, int flag)
 
void renderSelection (QPainter *painter, const LinePositionRange &linePositions, Address byteIndex, int flag)
 
void renderSelectionSpaceBehind (QPainter *painter, LinePosition linePosition)
 
void renderSpaceBehind (QPainter *painter, const QBrush &brush, LinePosition linePosition)
 
void setByteWidth (int byteWidth)
 
- Protected Member Functions inherited from Okteta::AbstractColumnRenderer
void renderBlankLine (QPainter *painter) const
 
void restrictToXSpan (PixelXRange *xSpan) const
 
void setWidth (PixelX width)
 

Protected Attributes

bool mShowingNonprinting
 
QChar mSubstituteChar
 
QChar mUndefinedChar
 
- Protected Attributes inherited from Okteta::AbstractByteArrayColumnRenderer
Bookmarkable * mBookmarks
 
AbstractByteArrayModel * mByteArrayModel
 
PixelX mByteSpacingWidth
 
bool mByteTypeColored
 
PixelX mByteWidth
 
const CharCodec * mCharCodec
 
PixelY mDigitBaseLine
 
PixelX mDigitWidth
 
QFontMetrics mFontMetrics
 
PixelX mGroupSpacingWidth
 
LinePosition mLastLinePos
 
const ByteArrayTableLayout * mLayout
 
PixelX * mLinePosLeftPixelX
 
PixelX * mLinePosRightPixelX
 
int mNoOfGroupedBytes
 
ByteArrayTableRanges * mRanges
 
Line mRenderLine
 
LinePositionRange mRenderLinePositions
 
PixelX mRenderWidth
 
PixelX mRenderX
 
int mSpacingTrigger
 

Additional Inherited Members

- Public Types inherited from Okteta::AbstractByteArrayColumnRenderer
enum  FrameStyle { Frame, Left, Right }
 

Detailed Description

buffer column that interprets the bytes as chars

Author
Friedrich W. H. Kossebau

Definition at line 37 of file charbytearraycolumnrenderer.h.

Constructor & Destructor Documentation

Okteta::CharByteArrayColumnRenderer::CharByteArrayColumnRenderer ( AbstractColumnStylist *  stylist,
AbstractByteArrayModel *  byteArrayModel,
ByteArrayTableLayout *  layout,
ByteArrayTableRanges *  ranges 
)

Definition at line 35 of file charbytearraycolumnrenderer.cpp.

Okteta::CharByteArrayColumnRenderer::~CharByteArrayColumnRenderer ( )
virtual

Definition at line 59 of file charbytearraycolumnrenderer.cpp.

Member Function Documentation

bool Okteta::CharByteArrayColumnRenderer::isShowingNonprinting ( ) const
inline

returns true if "unprintable" chars (>32) are displayed in the char column with their corresponding character, default is false

Definition at line 86 of file charbytearraycolumnrenderer.h.

void Okteta::CharByteArrayColumnRenderer::renderByteText ( QPainter *  painter,
Byte  byte,
Character  byteChar,
const QColor &  color 
) const
protectedvirtual

Implements Okteta::AbstractByteArrayColumnRenderer.

Definition at line 46 of file charbytearraycolumnrenderer.cpp.

bool Okteta::CharByteArrayColumnRenderer::setShowingNonprinting ( bool  showingNonprinting = true)
inline

sets whether "unprintable" chars (>32) should be displayed in the char column with their corresponding character.

Parameters
showingNonprintingreturns true if there was a change

Definition at line 108 of file charbytearraycolumnrenderer.h.

bool Okteta::CharByteArrayColumnRenderer::setSubstituteChar ( QChar  substituteChar)
inline

sets the substitute character for "unprintable" chars returns true if there was a change

Definition at line 90 of file charbytearraycolumnrenderer.h.

bool Okteta::CharByteArrayColumnRenderer::setUndefinedChar ( QChar  undefinedChar)
inline

sets the undefined character for "undefined" chars returns true if there was a change

Definition at line 99 of file charbytearraycolumnrenderer.h.

QChar Okteta::CharByteArrayColumnRenderer::substituteChar ( ) const
inline

returns the actually used substitute character for "unprintable" chars, default is '.

'

Definition at line 87 of file charbytearraycolumnrenderer.h.

QChar Okteta::CharByteArrayColumnRenderer::undefinedChar ( ) const
inline

returns the actually used undefined character for "undefined" chars, default is '?'

Definition at line 88 of file charbytearraycolumnrenderer.h.

Member Data Documentation

bool Okteta::CharByteArrayColumnRenderer::mShowingNonprinting
protected

Definition at line 78 of file charbytearraycolumnrenderer.h.

QChar Okteta::CharByteArrayColumnRenderer::mSubstituteChar
protected

Definition at line 80 of file charbytearraycolumnrenderer.h.

QChar Okteta::CharByteArrayColumnRenderer::mUndefinedChar
protected

Definition at line 82 of file charbytearraycolumnrenderer.h.


The documentation for this class was generated from the following files:
  • charbytearraycolumnrenderer.h
  • charbytearraycolumnrenderer.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