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

okteta

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

#include <bytearrayrowview.h>

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

Public Member Functions

 ByteArrayRowView (QWidget *parent=0)
 
virtual ~ByteArrayRowView ()
 
virtual int binaryGapWidth () const
 
virtual int byteSpacingWidth () const
 
virtual int groupSpacingWidth () const
 
virtual bool isByteTypeColored () const
 
virtual QSize minimumSizeHint () const
 
virtual int noOfGroupedBytes () const
 
virtual void renderColumns (QPainter *painter, int cx, int cy, int cw, int ch)
 
virtual void setBinaryGapWidth (int binaryGapWidth)
 
virtual void setBufferSpacing (int byteSpacingWidth, int noOfGroupedBytes=0, int groupSpacingWidth=0)
 
virtual void setByteArrayModel (AbstractByteArrayModel *byteArrayModel)
 
virtual void setByteSpacingWidth (int byteSpacingWidth)
 
virtual void setByteTypeColored (bool isColored)
 
virtual void setCharCoding (CharCoding charCoding)
 
virtual void setCharCoding (const QString &charCodingName)
 
virtual void setGroupSpacingWidth (int groupSpacingWidth)
 
virtual void setNoOfGroupedBytes (int noOfGroupedBytes)
 
virtual void setShowsNonprinting (bool showsNonprinting=true)
 
virtual void setSubstituteChar (QChar substituteChar)
 
virtual void setUndefinedChar (QChar undefinedChar)
 
virtual void setValueCoding (ValueCoding valueCoding)
 
virtual bool showsNonprinting () const
 
virtual QChar substituteChar () const
 
virtual QChar undefinedChar () const
 
- Public Member Functions inherited from Okteta::AbstractByteArrayView
virtual ~AbstractByteArrayView ()
 
CodingTypeId activeCoding () const
 
Okteta::AbstractByteArrayModel * byteArrayModel () const
 
bool canReadData (const QMimeData *data) const
 
CharCoding charCoding () const
 
const QString & charCodingName () const
 
virtual void copy ()
 
Address cursorPosition () const
 
QRect cursorRect () const
 
virtual void cut ()
 
void ensureCursorVisible ()
 
void ensureVisible (const AddressRange &range, bool ensureStartVisible=false)
 
Address firstLineOffset () const
 
bool hasSelectedData () const
 
Address indexByPoint (const QPoint &point) const
 
void insert (const QByteArray &data)
 
bool isCursorBehind () const
 
bool isModified () const
 
bool isOverwriteMode () const
 
bool isOverwriteOnly () const
 
bool isReadOnly () const
 
LayoutStyle layoutStyle () const
 
AddressRange marking () const
 
int noOfBytesPerLine () const
 
OffsetCoding offsetCoding () const
 
bool offsetColumnVisible () const
 
virtual void paste ()
 
void pasteData (const QMimeData *data)
 
void pauseCursor ()
 
void placeCursor (const QPoint &point)
 
void removeSelectedData ()
 
void selectAll (bool select)
 
QByteArray selectedData () const
 
AddressRange selection () const
 
QMimeData * selectionAsMimeData () const
 
bool selectWord (Address index)
 
void setActiveCoding (CodingTypeId codingId)
 
void setCursorPosition (Address index, bool isBehind=false)
 
void setFirstLineOffset (Address firstLineOffset)
 
void setLayoutStyle (LayoutStyle layoutStyle)
 
void setMarking (Address start, Address end)
 
void setMarking (const AddressRange &marking)
 
void setModified (bool modified)
 
void setNoOfBytesPerLine (int noOfBytesPerLine)
 
void setOffsetCoding (OffsetCoding offsetCoding)
 
void setOverwriteMode (bool overwriteMode)
 
void setOverwriteOnly (bool overwriteOnly)
 
void setReadOnly (bool readOnly)
 
void setSelection (Address start, Address end)
 
void setSelection (const AddressRange &selection)
 
void setSelectionCursorPosition (Address index)
 
void setStartOffset (Address startOffset)
 
void setTabChangesFocus (bool tabChangesFocus=true)
 
void setVisibleCodings (int visibleCodings)
 
void setZoomLevel (double level)
 
virtual QSize sizeHint () const
 
void startCursor ()
 
Address startOffset () const
 
void stopCursor ()
 
bool tabChangesFocus () const
 
void toggleOffsetColumn (bool offsetColumnVisible)
 
void unpauseCursor ()
 
void unZoom ()
 
ValueCoding valueCoding () const
 
CodingTypes visibleCodings () const
 
void zoomIn (int pointInc)
 
void zoomIn ()
 
double zoomLevel () const
 
void zoomOut (int pointDec)
 
void zoomOut ()
 
void zoomTo (int pointSize)
 
- Public Member Functions inherited from Okteta::ColumnsView
 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

virtual void changeEvent (QEvent *event)
 
- Protected Member Functions inherited from Okteta::AbstractByteArrayView
 AbstractByteArrayView (AbstractByteArrayViewPrivate *d, QWidget *parent)
 
const Okteta::CharCodec * charCodec () const
 
void copyToClipboard (QClipboard::Mode mode) const
 
virtual void dragEnterEvent (QDragEnterEvent *dragEnterEvent)
 
virtual void dragLeaveEvent (QDragLeaveEvent *dragLeaveEvent)
 
virtual void dragMoveEvent (QDragMoveEvent *dragMoveEvent)
 
virtual void dropEvent (QDropEvent *dropEvent)
 
void emitSelectionSignals ()
 
virtual bool event (QEvent *event)
 
void finishByteEdit ()
 
virtual void focusInEvent (QFocusEvent *focusEvent)
 
virtual void focusOutEvent (QFocusEvent *focusEvent)
 
virtual void keyPressEvent (QKeyEvent *keyEvent)
 
ByteArrayTableLayout * layout () const
 
virtual void mouseDoubleClickEvent (QMouseEvent *mouseDoubleClickEvent)
 
virtual void mouseMoveEvent (QMouseEvent *mouseMoveEvent)
 
virtual void mousePressEvent (QMouseEvent *mousePressEvent)
 
virtual void mouseReleaseEvent (QMouseEvent *mouseReleaseEvent)
 
void pasteFromClipboard (QClipboard::Mode mode)
 
virtual void resizeEvent (QResizeEvent *resizeEvent)
 
virtual void setNoOfLines (int newNoOfLines)
 
virtual void showEvent (QShowEvent *showEvent)
 
ByteArrayTableCursor * tableCursor () const
 
ByteArrayTableRanges * tableRanges () const
 
void updateChanged ()
 
const Okteta::ValueCodec * valueCodec () const
 
virtual bool viewportEvent (QEvent *event)
 
virtual void wheelEvent (QWheelEvent *e)
 
- Protected Member Functions inherited from Okteta::ColumnsView
void addColumn (AbstractColumnRenderer *columnRenderer)
 
virtual void paintEvent (QPaintEvent *paintEvent)
 
void removeColumn (AbstractColumnRenderer *columnRenderer)
 
virtual void renderEmptyArea (QPainter *painter, int cx, int cy, int cw, int ch)
 
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 ()
 

Additional Inherited Members

- Public Types inherited from Okteta::AbstractByteArrayView
enum  CharCoding {
  LocalEncoding =0, ISO8859_1Encoding =1, EBCDIC1047Encoding =2, StartOfOwnEncoding =0x8000,
  MaxEncodingId =0xFFFF
}
 
enum  CodingTypeId { NoCodingId =0, ValueCodingId =1, CharCodingId =2 }
 
enum  CodingTypes { OnlyValueCoding = ValueCodingId, OnlyCharCoding = CharCodingId, ValueAndCharCodings =ValueCodingId|CharCodingId }
 
enum  LayoutStyle { FixedLayoutStyle =0, WrapOnlyByteGroupsLayoutStyle =1, FullSizeLayoutStyle =2, LastUserLayout =0xFF }
 
enum  OffsetCoding { HexadecimalOffset =0, DecimalOffset =1, MaxOffsetCodingId =0xFF }
 
enum  ValueCoding {
  HexadecimalCoding =0, DecimalCoding =1, OctalCoding =2, BinaryCoding =3,
  MaxCodingId =0xFFFF
}
 
- Signals inherited from Okteta::AbstractByteArrayView
void charCodecChanged (const QString &codecName)
 
void clicked (Okteta::Address index)
 
void copyAvailable (bool Really)
 
void cursorPositionChanged (Okteta::Address index)
 
void cutAvailable (bool Really)
 
void doubleClicked (Okteta::Address index)
 
void focusChanged (bool hasFocus)
 
void hasSelectedDataChanged (bool hasSelectedData)
 
void layoutStyleChanged (int layoutStyle)
 
void noOfBytesPerLineChanged (int noOfBytesPerLine)
 
void noOfGroupedBytesChanged (int noOfGroupedBytes)
 
void offsetCodingChanged (int offsetCoding)
 
void offsetColumnVisibleChanged (bool visible)
 
void overwriteModeChanged (bool newOverwriteMode)
 
void readOnlyChanged (bool isReadOnly)
 
void selectionChanged (const Okteta::AddressRange &selection)
 
void showsNonprintingChanged (bool showsNonprinting)
 
void substituteCharChanged (QChar substituteChar)
 
void undefinedCharChanged (QChar undefinedChar)
 
void valueCodingChanged (int valueCoding)
 
void visibleByteArrayCodingsChanged (int columns)
 
- Protected Attributes inherited from Okteta::AbstractByteArrayView
AbstractByteArrayViewPrivate *const d_ptr
 
- Properties inherited from Okteta::AbstractByteArrayView
int BinaryGapWidth
 
int ByteSpacingWidth
 
bool ByteTypeColored
 
ValueCoding Coding
 
int FirstLineOffset
 
int GroupSpacingWidth
 
LayoutStyle LayoutStyle
 
bool Modified
 
int NoOfBytesPerLine
 
int NoOfGroupedBytes
 
OffsetCoding OffsetCoding
 
bool OffsetColumnVisible
 
bool OverwriteMode
 
bool OverwriteOnly
 
bool ReadOnly
 
bool ShowNonprinting
 
int StartOffset
 
QChar SubstituteChar
 
bool TabChangesFocus
 
CodingTypes VisibleCodings
 

Detailed Description

Definition at line 35 of file bytearrayrowview.h.

Constructor & Destructor Documentation

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

Definition at line 31 of file bytearrayrowview.cpp.

Okteta::ByteArrayRowView::~ByteArrayRowView ( )
virtual

Definition at line 186 of file bytearrayrowview.cpp.

Member Function Documentation

PixelX Okteta::ByteArrayRowView::binaryGapWidth ( ) const
virtual

Implements Okteta::AbstractByteArrayView.

Definition at line 59 of file bytearrayrowview.cpp.

PixelX Okteta::ByteArrayRowView::byteSpacingWidth ( ) const
virtual

Implements Okteta::AbstractByteArrayView.

Definition at line 44 of file bytearrayrowview.cpp.

void Okteta::ByteArrayRowView::changeEvent ( QEvent *  event)
protectedvirtual

calculates the number of bytes per line that fit into a widget with the given size tests whether a vertical scroll bar is needed at all or not due to the given width takes the frame width into account

Parameters
TestSizeSize the widget might have
Returns
number of bytes per line that fit into a widget with the given size

Reimplemented from Okteta::AbstractByteArrayView.

Definition at line 163 of file bytearrayrowview.cpp.

PixelX Okteta::ByteArrayRowView::groupSpacingWidth ( ) const
virtual

Implements Okteta::AbstractByteArrayView.

Definition at line 54 of file bytearrayrowview.cpp.

bool Okteta::ByteArrayRowView::isByteTypeColored ( ) const
virtual

Implements Okteta::AbstractByteArrayView.

Definition at line 79 of file bytearrayrowview.cpp.

QSize Okteta::ByteArrayRowView::minimumSizeHint ( ) const
virtual

Definition at line 171 of file bytearrayrowview.cpp.

int Okteta::ByteArrayRowView::noOfGroupedBytes ( ) const
virtual

Implements Okteta::AbstractByteArrayView.

Definition at line 49 of file bytearrayrowview.cpp.

void Okteta::ByteArrayRowView::renderColumns ( QPainter *  painter,
int  cx,
int  cy,
int  cw,
int  ch 
)
virtual

draws all columns in columns coordinates

Reimplemented from Okteta::ColumnsView.

Definition at line 179 of file bytearrayrowview.cpp.

void Okteta::ByteArrayRowView::setBinaryGapWidth ( int  binaryGapWidth)
virtual

sets the spacing in the middle of a binary byte in the value column

Parameters
binaryGapWidthspacing in the middle of a binary in pixels returns true if there was a change

Implements Okteta::AbstractByteArrayView.

Definition at line 117 of file bytearrayrowview.cpp.

void Okteta::ByteArrayRowView::setBufferSpacing ( int  byteSpacingWidth,
int  noOfGroupedBytes = 0,
int  groupSpacingWidth = 0 
)
virtual

sets the spacing in the value column

Parameters
byteSpacingWidthspacing between the bytes in pixels
noOfGroupedBytesnumbers of grouped bytes, 0 means no grouping
groupSpacingWidthspacing between the groups in pixels Default is 4 for NoOfGroupedBytes

Implements Okteta::AbstractByteArrayView.

Definition at line 84 of file bytearrayrowview.cpp.

void Okteta::ByteArrayRowView::setByteArrayModel ( AbstractByteArrayModel *  byteArrayModel)
virtual

Reimplemented from Okteta::AbstractByteArrayView.

Definition at line 38 of file bytearrayrowview.cpp.

void Okteta::ByteArrayRowView::setByteSpacingWidth ( int  byteSpacingWidth)
virtual

sets the spacing between the bytes in the value column

Parameters
byteSpacingWidthspacing between the bytes in pixels default is 3

Implements Okteta::AbstractByteArrayView.

Definition at line 97 of file bytearrayrowview.cpp.

void Okteta::ByteArrayRowView::setByteTypeColored ( bool  isColored)
virtual

Implements Okteta::AbstractByteArrayView.

Definition at line 156 of file bytearrayrowview.cpp.

void Okteta::ByteArrayRowView::setCharCoding ( CharCoding  charCoding)
virtual

sets the encoding of the char column.

Default is Okteta::LocalEncoding. If the encoding is not available the format will not be changed.

Implements Okteta::AbstractByteArrayView.

Definition at line 143 of file bytearrayrowview.cpp.

void Okteta::ByteArrayRowView::setCharCoding ( const QString &  charCodingName)
virtual

sets the encoding of the char column.

Default is Okteta::LocalEncoding. If the encoding is not available the format will not be changed.

Parameters
charCodingNamename of the encoding

Implements Okteta::AbstractByteArrayView.

Definition at line 150 of file bytearrayrowview.cpp.

void Okteta::ByteArrayRowView::setGroupSpacingWidth ( int  groupSpacingWidth)
virtual

sets the spacing between the groups of bytes in the value column

Parameters
groupSpacingWidthspacing between the groups in pixels default is 9

Implements Okteta::AbstractByteArrayView.

Definition at line 110 of file bytearrayrowview.cpp.

void Okteta::ByteArrayRowView::setNoOfGroupedBytes ( int  noOfGroupedBytes)
virtual

sets the number of grouped bytes in the value column

Parameters
noOfGroupedBytesnumbers of grouped bytes, 0 means no grouping default is 4

Implements Okteta::AbstractByteArrayView.

Definition at line 103 of file bytearrayrowview.cpp.

void Okteta::ByteArrayRowView::setShowsNonprinting ( bool  showsNonprinting = true)
virtual

sets whether control chars or "non-printing" chars should be displayed in the char column with their corresponding character.

Currently this simply means all chars with value <32, as known from the ASCII.

Parameters
showsNonprintingreturns true if there was a change

Implements Okteta::AbstractByteArrayView.

Definition at line 136 of file bytearrayrowview.cpp.

void Okteta::ByteArrayRowView::setSubstituteChar ( QChar  substituteChar)
virtual

sets the substitute character for "non-printing" chars returns true if there was a change

Implements Okteta::AbstractByteArrayView.

Definition at line 124 of file bytearrayrowview.cpp.

void Okteta::ByteArrayRowView::setUndefinedChar ( QChar  undefinedChar)
virtual

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

Implements Okteta::AbstractByteArrayView.

Definition at line 130 of file bytearrayrowview.cpp.

void Okteta::ByteArrayRowView::setValueCoding ( ValueCoding  valueCoding)
virtual

sets the format of the value column.

Default is Okteta::HexadecimalCoding

Implements Okteta::AbstractByteArrayView.

Definition at line 91 of file bytearrayrowview.cpp.

bool Okteta::ByteArrayRowView::showsNonprinting ( ) const
virtual

reports if "non-printing" chars are displayed in the char column with their original character.

Default is false

Returns
true if original chars are displayed, otherwise false

Implements Okteta::AbstractByteArrayView.

Definition at line 64 of file bytearrayrowview.cpp.

QChar Okteta::ByteArrayRowView::substituteChar ( ) const
virtual

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

'

Returns
substitute character

Implements Okteta::AbstractByteArrayView.

Definition at line 69 of file bytearrayrowview.cpp.

QChar Okteta::ByteArrayRowView::undefinedChar ( ) const
virtual

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

Implements Okteta::AbstractByteArrayView.

Definition at line 74 of file bytearrayrowview.cpp.


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