okteta
dropper.cpp
Go to the documentation of this file.
132 AbstractByteArrayView* sourceByteArrayView = qobject_cast<AbstractByteArrayView*>( dropEvent->source() );
147 void Dropper::handleInternalDrag( QDropEvent* dropEvent, AbstractByteArrayView* sourceByteArrayView )
199 byteArrayModel->replace( overwriteRange, reinterpret_cast<const Byte*>(data.constData()), overwriteRange.width() );
203 byteArrayModel->insert( insertIndex, reinterpret_cast<const Byte*>(data.constData()), data.size() );
virtual Size replace(const AddressRange &removeRange, const Byte *insertData, int insertLength)=0
replaces as much as possible
ByteArrayTableCursor * tableCursor() const
Definition: abstractbytearrayview.cpp:106
could it be useful to hide the data access behind an iterator? * class KDataBufferIterator { public: ...
Definition: abstractbytearraymodel.h:79
Address index() const
the index that is drawn at the actual coord
Definition: bytearraytablecursor.h:170
virtual bool swap(Address firstStart, const AddressRange &secondRange)=0
moves the second section before the start of the first which is the same as moving the first behind t...
virtual Size insert(Address offset, const Byte *insertData, int insertLength)
inserts bytes copied from the given source at Position.
Definition: abstractbytearraymodel.cpp:47
bool handleDropEvent(QDropEvent *dropEvent)
Definition: dropper.cpp:121
bool isReadOnly() const
Definition: abstractbytearrayview.cpp:59
bool isOverwriteMode() const
Definition: abstractbytearrayview.cpp:49
void gotoIndex(Address index)
Definition: bytearraytablecursor.cpp:260
void pasteData(const QMimeData *data)
Definition: abstractbytearrayview.cpp:190
static NumberRange fromWidth(AddressstartIndex, Sizewidth)
constructs a range by width
Okteta::AbstractByteArrayModel * byteArrayModel() const
Definition: abstractbytearrayview.cpp:44
bool handleDragEnterEvent(QDragEnterEvent *dragEnterEvent)
Definition: dropper.cpp:54
void cursorPositionChanged(Okteta::Address index)
void handleInternalDrag(QDropEvent *dropEvent, AbstractByteArrayView *sourceByteArrayView)
Definition: dropper.cpp:147
bool canReadData(const QMimeData *data) const
Definition: abstractbytearrayview.cpp:196
void finishByteEdit()
Definition: abstractbytearrayview.cpp:487
navigates through the buffer in an abstract way, based on the layout
Definition: bytearraytablecursor.h:60
ByteArrayTableLayout * layout() const
Definition: abstractbytearrayview.cpp:75
void gotoCIndex(Address index)
Definition: bytearraytablecursor.cpp:218
ByteArrayTableRanges * tableRanges() const
Definition: abstractbytearrayview.cpp:111
bool handleDragMoveEvent(QDragMoveEvent *dragMoveEvent)
Definition: dropper.cpp:76
AddressRange removeSelection(int id=0)
removes selection with id and returns it
Definition: bytearraytableranges.cpp:156
static const char DropperOctetStreamFormatName[]
Definition: dropper.cpp:43
bool isBehind() const
true if the cursor is located to the right of the actual coord but still shown at the coord ...
Definition: bytearraytablecursor.h:174
void placeCursor(const QPoint &point)
puts the cursor in the column at the pos of Point (in absolute coord), does not handle the drawing ...
Definition: abstractbytearrayview.cpp:396
Size length() const
returns the length of the displayed byte array section
Definition: bytearraytablelayout.h:211
bool handleDragLeaveEvent(QDragLeaveEvent *dragLeaveEvent)
Definition: dropper.cpp:99
void stepBehind()
puts the cursor behind the actual position if it isn't already
Definition: bytearraytablecursor.h:178
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.