okteta
bytearraytablecursor.cpp
Go to the documentation of this file.
117 void ByteArrayTableCursor::gotoNextByte( Size indexSteps ) // TODO: think about consistency with gotoNextByte!!!
294 // -> if in the very first line page down will put the cursor on the same page into the last line
331 return ( mLayout->byteArrayOffset() <= mIndex && mIndex <= mLayout->lastByteArrayOffset() ) ? mIndex : -1;
334 Address ByteArrayTableCursor::indexAtLineStart() const { return mLayout->indexAtFirstLinePosition( mCoord.line() ); }
335 Address ByteArrayTableCursor::indexAtLineEnd() const { return mLayout->indexAtLastLinePosition( mCoord.line() ); }
339 bool ByteArrayTableCursor::atEnd() const { return realIndex() == mLayout->lastByteArrayOffset()+1; }
340 bool ByteArrayTableCursor::atAppendPos() const { return mIndex == mLayout->lastByteArrayOffset()+1; }
343 bool ByteArrayTableCursor::atLineStart() const { return mLayout->atFirstLinePosition( mCoord ); }
347 void ByteArrayTableCursor::adaptToChanges( const ArrayChangeMetricsList& changeList, Size oldLength )
Address indexAtLastLinePosition(Line line) const
calculates the index of last pos in line.
Definition: bytearraytablelayout.cpp:207
Address correctIndex(Address index) const
returns the index if valid or the nearest valid index
Definition: bytearraytablelayout.cpp:237
Address index() const
the index that is drawn at the actual coord
Definition: bytearraytablecursor.h:170
Size noOfBytesPerLine() const
returns number of bytes per line
Definition: bytearraytablelayout.h:209
bool isPriorInLineThan(const Coord &other) const
tests if the coord is prior in the same line than the given coord.
Definition: coord.h:288
bool atLastLinePosition(const Coord &coord) const
returns true if the coord is the last in it's line.
Definition: bytearraytablelayout.cpp:260
void stepToEnd()
if newpos allowed steps at a coord behind the last existing or, if that is at a line end...
Definition: bytearraytablecursor.cpp:247
LineSize noOfLinesPerPage() const
returns number of lines per visual page
Definition: bytearraytablelayout.h:220
void gotoPreviousByte()
Definition: bytearraytablecursor.cpp:70
Coord correctCoord(const Coord &coord) const
returns the coord if valid or the nearest valid coord
Definition: bytearraytablelayout.cpp:245
the logical layout of a byte array table for a view
Definition: bytearraytablelayout.h:61
void gotoIndex(Address index)
Definition: bytearraytablecursor.cpp:260
void gotoNextByte()
Definition: bytearraytablecursor.cpp:102
void gotoPageDown()
Definition: bytearraytablecursor.cpp:315
Line startLine() const
Definition: bytearraytablelayout.h:218
Coord coordOfIndex(Address index) const
calculates the coord in which index is found.
Definition: bytearraytablelayout.cpp:223
void setAppendPosEnabled(bool appendPosEnabled=true)
Definition: bytearraytablecursor.cpp:43
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 goCRight(LinePosition maxPos)
moves the coord one position to the right, or if the position has already reached or passed maxPos to...
Definition: coord.h:231
Line finalLine() const
Definition: bytearraytablelayout.h:219
Address indexAtLineEnd() const
returns the index at the end of the cursor's line
Definition: bytearraytablecursor.cpp:335
Address lastByteArrayOffset() const
Definition: bytearraytablelayout.h:212
void gotoCIndex(Address index)
Definition: bytearraytablecursor.cpp:218
Address secondStart() const
Definition: arraychangemetrics.h:145
~ByteArrayTableCursor()
Definition: bytearraytablecursor.cpp:407
void gotoLineStart()
Definition: bytearraytablecursor.cpp:173
void goCLeft(LinePosition maxPos)
moves the coord one position to the left, or if the position is already at the line start to the give...
Definition: coord.h:238
void gotoCCoord(const Coord &coord)
Definition: bytearraytablecursor.cpp:231
Address indexAtCoord(const Coord &coord) const
calculates the index of coord.
Definition: bytearraytablelayout.cpp:213
Size removeLength() const
Definition: arraychangemetrics.h:142
Size secondLength() const
Definition: arraychangemetrics.h:148
void gotoCoord(const Coord &coord)
Definition: bytearraytablecursor.cpp:280
LinePosition firstStartLinePosition() const
Definition: bytearraytablelayout.h:216
Address indexAtFirstLinePosition(Line line) const
calculates the index of the first pos in line.
Definition: bytearraytablelayout.cpp:201
Address byteArrayOffset() const
returns the offset of the start of the displayed byte array section
Definition: bytearraytablelayout.h:210
ByteArrayTableCursor(const ByteArrayTableLayout *layout)
Definition: bytearraytablecursor.cpp:34
Size insertLength() const
Definition: arraychangemetrics.h:143
bool atFirstLinePosition(const Coord &coord) const
returns true if the coord is the first in it's line.
Definition: bytearraytablelayout.cpp:254
Size lengthChange() const
Definition: arraychangemetrics.h:144
Address indexAtLineStart() const
returns the index at the start of the cursor's line
Definition: bytearraytablecursor.cpp:334
Size firstLength() const
Definition: arraychangemetrics.h:147
bool atLineStart() const
Definition: bytearraytablecursor.cpp:343
bool atLineEnd() const
Definition: bytearraytablecursor.cpp:344
bool atAppendPos() const
could only be true in InsertMode: Cursor is behind the last byte
Definition: bytearraytablecursor.cpp:340
bool isLaterInLineThan(const Coord &other) const
tests if the coord is later in the same line than the given coord.
Definition: coord.h:293
Size length() const
returns the length of the displayed byte array section
Definition: bytearraytablelayout.h:211
void adaptToChanges(const ArrayChangeMetricsList &changeList, Size oldLength)
Definition: bytearraytablecursor.cpp:347
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:07 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:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.