okteta
#include <bytearraycolumnview.h>
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 () |
Detailed Description
the main widget
The functions split up in helper functions and those that are complete.
Complete functions can be called from the outside and leave the widget in a consistent state. They care for exceptions so one can safely call them in all situations (like empty buffer, cursor behind end etc.)
Helper functions do only partial tasks and need to be completed. They often do not check for exceptions so one has to care for this.
Definition at line 48 of file bytearraycolumnview.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 31 of file bytearraycolumnview.cpp.
|
virtual |
Definition at line 189 of file bytearraycolumnview.cpp.
Member Function Documentation
|
virtual |
Implements Okteta::AbstractByteArrayView.
Definition at line 54 of file bytearraycolumnview.cpp.
|
virtual |
Implements Okteta::AbstractByteArrayView.
Definition at line 39 of file bytearraycolumnview.cpp.
|
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
-
TestSize Size 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 166 of file bytearraycolumnview.cpp.
|
virtual |
Implements Okteta::AbstractByteArrayView.
Definition at line 49 of file bytearraycolumnview.cpp.
|
virtual |
Implements Okteta::AbstractByteArrayView.
Definition at line 74 of file bytearraycolumnview.cpp.
|
virtual |
Definition at line 174 of file bytearraycolumnview.cpp.
|
virtual |
Implements Okteta::AbstractByteArrayView.
Definition at line 44 of file bytearraycolumnview.cpp.
|
virtual |
draws all columns in columns coordinates
Reimplemented from Okteta::ColumnsView.
Definition at line 182 of file bytearraycolumnview.cpp.
|
virtual |
sets the spacing in the middle of a binary byte in the value column
- Parameters
-
binaryGapWidth spacing in the middle of a binary in pixels returns true if there was a change
Implements Okteta::AbstractByteArrayView.
Definition at line 120 of file bytearraycolumnview.cpp.
|
virtual |
sets the spacing in the value column
- Parameters
-
byteSpacingWidth spacing between the bytes in pixels noOfGroupedBytes numbers of grouped bytes, 0 means no grouping groupSpacingWidth spacing between the groups in pixels Default is 4 for NoOfGroupedBytes
Implements Okteta::AbstractByteArrayView.
Definition at line 87 of file bytearraycolumnview.cpp.
|
virtual |
Reimplemented from Okteta::AbstractByteArrayView.
Definition at line 81 of file bytearraycolumnview.cpp.
|
virtual |
sets the spacing between the bytes in the value column
- Parameters
-
byteSpacingWidth spacing between the bytes in pixels default is 3
Implements Okteta::AbstractByteArrayView.
Definition at line 100 of file bytearraycolumnview.cpp.
|
virtual |
Implements Okteta::AbstractByteArrayView.
Definition at line 159 of file bytearraycolumnview.cpp.
|
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 146 of file bytearraycolumnview.cpp.
|
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
-
charCodingName name of the encoding
Implements Okteta::AbstractByteArrayView.
Definition at line 153 of file bytearraycolumnview.cpp.
|
virtual |
sets the spacing between the groups of bytes in the value column
- Parameters
-
groupSpacingWidth spacing between the groups in pixels default is 9
Implements Okteta::AbstractByteArrayView.
Definition at line 113 of file bytearraycolumnview.cpp.
|
virtual |
sets the number of grouped bytes in the value column
- Parameters
-
noOfGroupedBytes numbers of grouped bytes, 0 means no grouping default is 4
Implements Okteta::AbstractByteArrayView.
Definition at line 106 of file bytearraycolumnview.cpp.
|
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
-
showsNonprinting returns true if there was a change
Implements Okteta::AbstractByteArrayView.
Definition at line 139 of file bytearraycolumnview.cpp.
|
virtual |
sets the substitute character for "non-printing" chars returns true if there was a change
Implements Okteta::AbstractByteArrayView.
Definition at line 127 of file bytearraycolumnview.cpp.
|
virtual |
sets the undefined character for "undefined" chars returns true if there was a change
Implements Okteta::AbstractByteArrayView.
Definition at line 133 of file bytearraycolumnview.cpp.
|
virtual |
sets the format of the value column.
Default is Okteta::HexadecimalCoding
Implements Okteta::AbstractByteArrayView.
Definition at line 94 of file bytearraycolumnview.cpp.
|
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, otherwisefalse
Implements Okteta::AbstractByteArrayView.
Definition at line 59 of file bytearraycolumnview.cpp.
|
virtual |
gives the used substitute character for "unprintable" chars, default is '.
'
- Returns
- substitute character
Implements Okteta::AbstractByteArrayView.
Definition at line 64 of file bytearraycolumnview.cpp.
|
virtual |
returns the actually used undefined character for "undefined" chars, default is '?'
Implements Okteta::AbstractByteArrayView.
Definition at line 69 of file bytearraycolumnview.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.