okteta
kvalueeditor.cpp
Go to the documentation of this file.
41 KValueEditor::KValueEditor( ByteArrayTableCursor* cursor, AbstractByteArrayView* view, KController* parent )
266 (newValue >= valueCodec->digitsFilledLimit() || mInsertedDigitsCount == valueCodec->encodingWidth()) )
virtual Size replace(const AddressRange &removeRange, const Byte *insertData, int insertLength)=0
replaces as much as possible
KValueEditor(ByteArrayTableCursor *cursor, AbstractByteArrayView *view, KController *parent)
Definition: kvalueeditor.cpp:41
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
void startEdit(const QString &description)
Definition: kvalueeditor.cpp:54
virtual bool handleKeyPress(QKeyEvent *keyEvent)
Definition: kvalueeditor.cpp:104
virtual void closeGroupedChange(const QString &description=QString())=0
virtual Size insert(Address offset, const Byte *insertData, int insertLength)
inserts bytes copied from the given source at Position.
Definition: abstractbytearraymodel.cpp:47
bool hasSelectedData() const
returns true if there is a selected range in the array
Definition: abstractbytearrayview.cpp:166
virtual void openGroupedChange(const QString &description=QString())=0
const Okteta::ValueCodec * valueCodec() const
Definition: abstractbytearrayview.cpp:85
unsigned int mInsertedDigitsCount
Definition: kvalueeditor.h:84
bool isOverwriteMode() const
Definition: abstractbytearrayview.cpp:49
Definition: kvalueeditor.h:44
void gotoIndex(Address index)
Definition: bytearraytablecursor.cpp:260
void gotoNextByte()
Definition: bytearraytablecursor.cpp:102
Definition: keditor.h:36
void doValueEditAction(KValueEditAction action, int input=-1)
executes keyboard Action Action.
Definition: kvalueeditor.cpp:203
bool mEditModeByInsert
flag whether byte edit mode was reached by inserting
Definition: kvalueeditor.h:78
Class that is able to convert codings to and from hexadecimal, decimal, octal, and binary...
Definition: valuecodec.h:45
Okteta::AbstractByteArrayModel * byteArrayModel() const
Definition: abstractbytearrayview.cpp:44
virtual void cancelGroupedChange()=0
Address validIndex() const
returns the true index if it is valid index that is it is inside the data's range.
Definition: bytearraytablecursor.cpp:329
void cursorPositionChanged(Okteta::Address index)
virtual Byte byte(Address offset) const =0
locates working range The idea behind is to tell buffer which range will be requested in the followin...
navigates through the buffer in an abstract way, based on the layout
Definition: bytearraytablecursor.h:60
Definition: kvalueeditor.h:44
void cancelEdit(bool undoChanges=true)
Definition: kvalueeditor.cpp:68
virtual Byte digitsFilledLimit() const =0
virtual unsigned int encodingWidth() const =0
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 ensureCursorVisible()
scrolls the view as much as needed to have the cursor fully visible
Definition: abstractbytearrayview.cpp:390
virtual bool appendDigit(Byte *byte, unsigned char digit) const =0
Tries to increase the byte value by appending a digit to the digits of the current encoding...
virtual bool handleKeyPress(QKeyEvent *keyEvent)
Definition: keditor.cpp:47
void adaptToValueCodecChange()
Definition: kvalueeditor.cpp:48
virtual void removeLastDigit(Byte *byte) const =0
Tries to remove the last (least significant) digit from byte.
Definition: kvalueeditor.h:44
Definition: kcontroller.h:32
virtual void encode(QString &digits, unsigned int pos, Byte byte) const =0
Encodes the byte using full coding width, prefixing with 0s if needed, and writes the result to digit...
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.