Logo Search packages:      
Sourcecode: kdeutils-kde4 version File versions  Download package

KHEUI::KByteArrayView Class Reference

#include <kbytearrayview.h>

Inheritance diagram for KHEUI::KByteArrayView:


List of all members.

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.

Friedrich W. H. Kossebau

Definition at line 77 of file kbytearrayview.h.

Public Types

enum  KCoding {
  HexadecimalCoding = 0, DecimalCoding = 1, OctalCoding = 2, BinaryCoding = 3,
  MaxCodingId = 0xFFFF
enum  KDataColumnId { ValueColumnId = 1, CharColumnId = 2 }
enum  KEncoding {
  LocalEncoding = 0, ISO8859_1Encoding = 1, EBCDIC1047Encoding = 2, StartOfOwnEncoding = 0x8000,
  MaxEncodingId = 0xFFFF
enum  KResizeStyle { NoResize = 0, LockGrouping = 1, FullSizeUsage = 2, MaxResizeStyleId = 0xFF }

Public Slots

virtual void copy ()
virtual void cut ()
void ensureCursorVisible ()
virtual void insert (const QByteArray &D)
virtual void paste ()
virtual void pauseCursor (bool LeaveEdit=false)
virtual void removeSelectedData ()
void selectAll (bool select)
bool selectWord (int Index)
void setBinaryGapWidth (int BGW)
void setBufferSpacing (KPixelX ByteSpacingWidth, int NoOfGroupedBytes=0, KPixelX GroupSpacingWidth=0)
void setByteArrayModel (KHECore::KAbstractByteArrayModel *B)
void setByteSpacingWidth (int BSW)
void setCoding (KCoding C)
void setEncoding (const QString &Encoding)
void setEncoding (KEncoding C)
void setFirstLineOffset (int FLO)
void setGroupSpacingWidth (int GSW)
virtual void setModified (bool b)
virtual void setNoOfBytesPerLine (int NoCpL)
void setNoOfGroupedBytes (int NoGB)
virtual void setOverwriteMode (bool b)
virtual void setOverwriteOnly (bool b)
virtual void setReadOnly (bool b)
void setResizeStyle (KResizeStyle Style)
void setShowUnprintable (bool SU=true)
void setStartOffset (int SO)
void setSubstituteChar (QChar SC)
virtual void setTabChangesFocus (bool b=true)
void setUndefinedChar (QChar UC)
void setZoomLevel (double Level)
void showBufferColumns (int Columns)
virtual void startCursor ()
virtual void stopCursor ()
void toggleOffsetColumn (bool Visible)
virtual void unpauseCursor ()
virtual void unZoom ()
virtual void zoomIn ()
virtual void zoomIn (int PointInc)
virtual void zoomOut ()
virtual void zoomOut (int PointInc)
virtual void zoomTo (int PointSize)


void clicked (int Index)
void copyAvailable (bool Really)
void cursorPositionChanged (int Index)
void cutAvailable (bool Really)
void doubleClicked (int Index)
void selectionChanged (bool HasSelection)

Public Member Functions

int binaryGapWidth () const
KHECore::KAbstractByteArrayModelbyteArrayModel () const
int byteSpacingWidth () const
KCoding coding () const
KPixelY columnsHeight () const
KPixelX columnsWidth () const
KDataColumnId cursorColumn () const
int cursorPosition () const
QMimeData * dragObject () const
virtual void drawColumns (QPainter *p, int cx, int cy, int cw, int ch)
KEncoding encoding () const
const QString & encodingName () const
virtual bool eventFilter (QObject *O, QEvent *E)
int firstLineOffset () const
int fittingBytesPerLine () const
int groupSpacingWidth () const
bool hasSelectedData () const
int indexByPoint (const QPoint &Point) const
bool isCursorBehind () const
bool isModified () const
bool isOverwriteMode () const
bool isOverwriteOnly () const
bool isReadOnly () const
 KByteArrayView (KHECore::KAbstractByteArrayModel *Model=0, QWidget *Parent=0)
uint lineAt (KPixelY y) const
KPixelY lineHeight () const
virtual QSize minimumSizeHint () const
int noOfBytesPerLine () const
int noOfGroupedBytes () const
int noOfLines () const
int noOfLinesPerPage () const
bool offsetColumnVisible () const
void pasteFromSource (const QMimeData *Source)
void placeCursor (const QPoint &Point)
KResizeStyle resizeStyle () const
QByteArray selectedData () const
KHE::KSection selection () const
void setColumnsPos (KPixelX x, KPixelY y)
void setCursorColumn (KDataColumnId)
void setCursorPosition (int Index, bool Behind=false)
void setSelection (int Start, int End)
bool showUnprintable () const
virtual QSize sizeHint () const
int startOffset () const
QChar substituteChar () const
bool tabChangesFocus () const
QChar undefinedChar () const
QPoint viewportToColumns (const QPoint &P) const
int visibleBufferColumns () const
KPixelY visibleHeight () const
KHE::KSection visibleLines (const KPixelYs &YPixels) const
KHE::KSection visibleLines () const
KPixelX visibleWidth () const
KPixelX xOffset () const
KPixelY yOffset () const
double zoomLevel () const

Protected Slots

void autoScrollTimerDone ()
void blinkCursor ()
void clipboardChanged ()
virtual void fontChange (const QFont &OldFont)
void onContentsMoved (int Destination, int Source, int MovedLength)
void onContentsReplaced (int Pos, int RemovedLength, int InsertedLength)
void startDrag ()
void updateRange (int Start, int End)

Protected Member Functions

const KDataColumnactiveColumn () const
KDataColumnactiveColumn ()
void addColumn (KColumn *C)
void adjustLayoutToSize ()
void adjustToLayoutNoOfBytesPerLine ()
const KCharColumncharColumn () const
KCharColumncharColumn ()
void createCursorPixmaps ()
virtual void dragEnterEvent (QDragEnterEvent *e)
virtual void dragLeaveEvent (QDragLeaveEvent *)
virtual void dragMoveEvent (QDragMoveEvent *e)
void drawActiveCursor ()
virtual void drawEmptyArea (QPainter *p, int cx, int cy, int cw, int ch)
void drawInactiveCursor ()
virtual void dropEvent (QDropEvent *e)
void emitSelectionSignals ()
void ensureVisible (const KDataColumn &Column, const KCoord &Coord)
virtual bool event (QEvent *Event)
void handleInternalDrag (QDropEvent *e)
void handleMouseMove (const QPoint &Point)
bool hasChanged (const KCoordRange &VisibleRange, KCoordRange *ChangedRange) const
const KDataColumninactiveColumn () const
KDataColumninactiveColumn ()
virtual void keyPressEvent (QKeyEvent *KeyEvent)
virtual void mouseDoubleClickEvent (QMouseEvent *e)
virtual void mouseMoveEvent (QMouseEvent *e)
virtual void mousePressEvent (QMouseEvent *e)
virtual void mouseReleaseEvent (QMouseEvent *e)
virtual void paintEvent (QPaintEvent *Event)
void pointPainterToCursor (QPainter &Painter, const KDataColumn &Column) const
void removeColumn (KColumn *C)
virtual void resizeEvent (QResizeEvent *ResizeEvent)
virtual void scrollContentsBy (int dx, int dy)
virtual void setLineHeight (KPixelY NewLineHeight)
virtual void setNoOfLines (int NewNoOfLines)
virtual void showEvent (QShowEvent *e)
void updateChanged ()
void updateColumn (KColumn &Column)
void updateCursor (const KDataColumn &Column)
void updateCursors ()
void updateScrollBars ()
void updateViewByWidth ()
void updateWidths ()
const KValueColumnvalueColumn () const
KValueColumnvalueColumn ()
virtual void wheelEvent (QWheelEvent *e)

Protected Attributes

bool BlinkCursorVisible:1
KCharEditor * CharEditor
QClipboard::Mode ClipboardMode
KHECore::KCharCodec * Codec
KController * Controller
QTimer * CursorBlinkTimer
bool CursorPaused:1
int DefaultFontSize
int DoubleClickLine
QPoint DoubleClickPoint
QPoint DragStartPoint
bool DragStartPossible:1
QTimer * DragStartTimer
KEncoding Encoding
bool InDnD:1
bool InDoubleClick:1
bool InZooming:1
bool MousePressed:1
KNavigator * Navigator
bool OverWrite:1
bool OverWriteOnly:1
QTimer * ScrollTimer
KTabController * TabController
QTimer * TrippleClickTimer
KValueEditor * ValueEditor


int BinaryGapWidth
int ByteSpacingWidth
KCoding Coding
int FirstLineOffset
int GroupSpacingWidth
bool Modified
int NoOfBytesPerLine
int NoOfGroupedBytes
bool OverwriteMode
bool OverwriteOnly
bool ReadOnly
KResizeStyle ResizeStyle
bool ShowUnprintable
int StartOffset
QChar SubstituteChar
bool TabChangesFocus

Private Member Functions

 KByteArrayView (const KByteArrayView &)
KByteArrayViewoperator= (const KByteArrayView &)

Private Attributes

KByteArrayViewPrivate *const d


class KCharEditor
class KEditor
class KNavigator
class KTabController
class KValueEditor

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index