Kate
kateviewinternal.cpp
Go to the documentation of this file.
70 , m_bm(doc()->newMovingRange(KTextEditor::Range::invalid(), KTextEditor::MovingRange::DoNotExpand))
71 , m_bmStart(doc()->newMovingRange(KTextEditor::Range::invalid(), KTextEditor::MovingRange::DoNotExpand))
72 , m_bmEnd(doc()->newMovingRange(KTextEditor::Range::invalid(), KTextEditor::MovingRange::DoNotExpand))
176 connect( &m_view->textFolding(), SIGNAL(foldingRangesChanged()), SLOT(slotRegionVisibilityChanged()));
292 return KTextEditor::Cursor(m_view->textFolding().visibleLines() - 1, doc()->lineLength(m_view->textFolding().visibleLineToLine(m_view->textFolding().visibleLines() - 1)));
295 return KTextEditor::Cursor(thisLine.virtualLine(), thisLine.wrap() ? thisLine.endCol() - 1 : thisLine.endCol());
412 KTextEditor::Cursor end(m_view->textFolding().visibleLines() - 1, doc()->lineLength(m_view->textFolding().visibleLineToLine(m_view->textFolding().visibleLines() - 1)));
465 KTextEditor::Cursor end(m_view->textFolding().visibleLines() - 1, doc()->lineLength(m_view->textFolding().visibleLineToLine(m_view->textFolding().visibleLines() - 1)));
600 void KateViewInternal::makeVisible (const KTextEditor::Cursor& c, int endCol, bool force, bool center, bool calledExternally)
602 //kDebug(13030) << "MakeVisible start " << startPos() << " end " << endPos() << " -> request: " << c;// , new start [" << scroll.line << "," << scroll.col << "] lines " << (linesDisplayed() - 1) << " height " << height();
712 QPoint KateViewInternal::cursorToCoordinate( const KTextEditor::Cursor & cursor, bool realCursor, bool includeBorder ) const
882 bool atEdge() const { return atEdge( KateViewInternal::left ) || atEdge( KateViewInternal::right ); }
933 maxColumn = thisLine->length() + ((m_vi->width() - thisLine->widthOfLastLine()) / m_vi->renderer()->spaceWidth()) - 1;
1248 return cache()->textLayout(m_view->textFolding().visibleLineToLine(m_displayCursor.line() - 1), -1);
1257 return cache()->textLayout(m_view->textFolding().visibleLineToLine(m_displayCursor.line() + 1), currentViewLine);
1271 KTextEditor::Cursor KateViewInternal::viewLineOffset(const KTextEditor::Cursor& virtualCursor, int offset, bool keepX)
1274 KTextEditor::Cursor ret(qMin((int)m_view->textFolding().visibleLines() - 1, virtualCursor.line() + offset), 0);
1291 realCursor.setLine(m_view->textFolding().visibleLineToLine(m_view->textFolding().lineToVisibleLine(virtualCursor.line())));
1317 Q_ASSERT(thisLine.virtualLine() == (int) m_view->textFolding().lineToVisibleLine(virtualCursor.line()));
1372 return KTextEditor::Cursor(m_view->textFolding().visibleLines() - 1, doc()->lineLength(m_view->textFolding().visibleLineToLine (m_view->textFolding().visibleLines() - 1)));
1409 if (m_displayCursor.line() == 0 && (!m_view->dynWordWrap() || cache()->viewLine(m_cursor) == 0))
1436 if ((m_displayCursor.line() >= m_view->textFolding().visibleLines() - 1) && (!m_view->dynWordWrap() || cache()->viewLine(m_cursor) == cache()->lastViewLine(m_cursor.line())))
1611 maxLen = qMax(maxLen, cache()->line(m_view->textFolding().visibleLineToLine(virtualLine))->width());
1619 return !m_view->dynWordWrap() && m_columnScroll->isEnabled() && (m_columnScroll->maximum() > 0);
1626 newCursor = renderer()->xToCursor(cache()->textLayout(newCursor), m_preservedX, !m_view->wrapCursor());
1636 newCursor = renderer()->xToCursor(cache()->textLayout(newCursor), m_preservedX, !m_view->wrapCursor());
1820 disconnect(m_view, SIGNAL(selectionChanged(KTextEditor::View*)), this, SLOT(viewSelectionChanged()));
1822 connect(m_view, SIGNAL(selectionChanged(KTextEditor::View*)), this, SLOT(viewSelectionChanged()));
1841 void KateViewInternal::updateCursor( const KTextEditor::Cursor& newCursor, bool force, bool center, bool calledExternally )
1870 // It's efficient enough to just tag them both without checking to see if they're on the same view line
1889 m_preservedX = renderer()->cursorToX(cache()->textLayout(m_cursor), m_cursor, !m_view->wrapCursor());
1891 //kDebug(13030) << "m_preservedX: " << m_preservedX << " (was "<< oldmaxx << "), m_cursorX: " << m_cursorX;
1892 //kDebug(13030) << "Cursor now located at real " << cursor.line << "," << cursor.col << ", virtual " << m_displayCursor.line << ", " << m_displayCursor.col << "; Top is " << startLine() << ", " << startPos().col;
1903 KTextEditor::Attribute::Ptr bracketFill = KTextEditor::Attribute::Ptr(new KTextEditor::Attribute());
1915 KTextEditor::Attribute::Ptr expressionFill = KTextEditor::Attribute::Ptr(new KTextEditor::Attribute());
1938 m_bmStart->setRange (KTextEditor::Range (m_bm->start(), KTextEditor::Cursor (m_bm->start().line(), m_bm->start().column() + 1)));
1939 m_bmEnd->setRange (KTextEditor::Range (m_bm->end(), KTextEditor::Cursor (m_bm->end().line(), m_bm->end().column() + 1)));
1970 bool KateViewInternal::tagLines(KTextEditor::Cursor start, KTextEditor::Cursor end, bool realCursors)
1990 // less optimal but still adequate approximation (potential overestimation but minimal performance difference)
2006 if ((line.virtualLine() > start.line() || (line.virtualLine() == start.line() && line.endCol() >= start.column() && start.column() != -1)) &&
2007 (line.virtualLine() < end.line() || (line.virtualLine() == end.line() && (line.startCol() <= end.column() || end.column() == -1)))) {
2032 ((line.virtualLine() > start.line() || (line.virtualLine() == start.line() && line.endCol() >= start.column() && start.column() != -1)) &&
2033 (line.virtualLine() < end.line() || (line.virtualLine() == end.line() && (line.startCol() <= end.column() || end.column() == -1)))))
2036 m_leftBorder->update (0, z * renderer()->lineHeight(), m_leftBorder->width(), m_leftBorder->height());
2042 leftBorder->update (0, z * doc()->viewFont.fontHeight, leftBorder->width(), doc()->viewFont.fontHeight);
2072 void KateViewInternal::placeCursor( const QPoint& p, bool keepSelection, bool updateSelection )
2105 return m_view->cursorSelected(renderer()->xToCursor(thisLine, startX() + p.x(), !m_view->wrapCursor()));
2114 // the second condition is to make sure a scroll on the vertical bar doesn't cause a horizontal scroll ;)
2170 if (m_view->viInputMode() && m_view->viInputModeStealKeys() && ( m_view->getCurrentViMode() != InsertMode ||
2275 && !m_view->viInputMode() /* Vi input mode needs to handle completion keypresses itself for e.g. mappings */)
2313 if ((key == Qt::Key_Return) || (key == Qt::Key_Enter) || (key == Qt::SHIFT + Qt::Key_Return) || (key == Qt::SHIFT + Qt::Key_Enter))
2367 doc()->indent( m_view->selection() ? m_view->selectionRange() : KTextEditor::Range(m_cursor.line(), 0, m_cursor.line(), 0), 1 );
2376 doc()->indent( m_view->selection() ? m_view->selectionRange() : KTextEditor::Range(m_cursor.line(), 0, m_cursor.line(), 0), -1 );
2383 if ( !(e->modifiers() & Qt::ControlModifier) && !e->text().isEmpty() && doc()->typeChars ( m_view, e->text() ) )
2392 if( (e->modifiers() & altGR) == altGR && !e->text().isEmpty() && doc()->typeChars ( m_view, e->text() ) )
2404 if( e->key() == Qt::Key_Alt && m_view->completionWidget()->isCompletionActive() && ((m_completionItemExpanded && (m_view->completionWidget()->hadNavigation() || m_altDownTime.msecsTo(QTime::currentTime()) > 300)) || (!m_completionItemExpanded && !m_view->completionWidget()->hadNavigation())) ) {
2456 m_view->spellingMenu()->setUseMouseForMisspelledRange((e->reason() == QContextMenuEvent::Mouse));
2527 QStyle::RequestSoftwareInputPanel behavior = QStyle::RequestSoftwareInputPanel( style()->styleHint( QStyle::SH_RequestSoftwareInputPanel ) );
2730 // fix bug 194452, scrolling keeps going if you scroll via mouse drag and press and other mouse
2736 KTextEditor::Cursor KateViewInternal::coordinatesToCursor(const QPoint& _coord, bool includeBorder) const
2939 //kDebug (13030) << "paint text: line: " << thisLine.line() << " viewLine " << thisLine.viewLine() << " x: " << unionRect.x() << " y: " << sy
2946 //paint.setClipRect(QRect(xStart, 0, xEnd - xStart, h * (thisLine.kateLineLayout()->viewLineCount())));
3010 KTextEditor::Cursor newCursor(m_cursor.line(), thisLine.endCol() + ((width() - thisLine.xOffset() - (thisLine.width()- m_startX)) / renderer()->spaceWidth()) - 1);
3173 Kate::TextCursor startCursor(doc()->buffer(), targetCursor, KTextEditor::MovingCursor::MoveOnInsert);
3178 Kate::TextCursor endCursor1(doc()->buffer(), startCursor, KTextEditor::MovingCursor::MoveOnInsert);
3228 if (m_lineScroll->minimum() != m_lineScroll->maximum() && e->orientation() != Qt::Horizontal) {
3347 if (tagFrom && (editTagLineStart <= int(m_view->textFolding().visibleLineToLine(startLine()))))
3350 tagLines (editTagLineStart, tagFrom ? qMax(doc()->lastLine() + 1, editTagLineEnd) : editTagLineEnd, true);
3373 || (editOldSelection.isValid() && !editOldSelection.isEmpty() && !(editTagLineStart > editOldSelection.end().line() && editTagLineEnd < editOldSelection.start().line())))
3408 KTextEditor::Cursor KateViewInternal::toRealCursor( const KTextEditor::Cursor & virtualCursor ) const
3410 return KTextEditor::Cursor(m_view->textFolding().visibleLineToLine(virtualCursor.line()), virtualCursor.column());
3413 KTextEditor::Cursor KateViewInternal::toVirtualCursor( const KTextEditor::Cursor & realCursor ) const
3422 return KTextEditor::Cursor(m_view->textFolding().lineToVisibleLine(realCursor.line()), realCursor.column());
3446 bool KateViewInternal::rangeAffectsView(const KTextEditor::Range& range, bool realCursors) const
3512 //kDebug( 13030 ) << "Event: cursor" << m_cursor << "commit" << e->commitString() << "preedit" << e->preeditString() << "replacement start" << e->replacementStart() << "length" << e->replacementLength();
3515 m_imPreeditRange = doc()->newMovingRange (KTextEditor::Range(m_cursor, m_cursor), KTextEditor::MovingRange::ExpandLeft | KTextEditor::MovingRange::ExpandRight);
3529 KTextEditor::Cursor start(m_imPreeditRange->start().line(), m_imPreeditRange->start().column() + e->replacementStart());
3589 KTextEditor::Range fr(m_imPreeditRange->start().line(), m_imPreeditRange->start().column() + a.start, m_imPreeditRange->start().line(), m_imPreeditRange->start().column() + a.start + a.length);
void editEnd(int editTagLineStart, int editTagLineEnd, bool tagFrom)
Definition: kateviewinternal.cpp:3325
void horizontalScrollPositionChanged(KTextEditor::View *view)
void cursorPrevChar(bool sel=false)
Definition: kateviewinternal.cpp:1061
friend friend Cursor & operator-=(Cursor &c1, const Cursor &c2)
Definition: kateviinputmodemanager.h:50
Cursor & start()
int cursorToX(const KateTextLayout &range, int col, bool returnPastLine=false) const
Returns the x position of cursor col on the line range.
Definition: katerenderer.cpp:1048
virtual void resizeEvent(QResizeEvent *)
Definition: kateviewinternal.cpp:2965
bool showWholeBracketExpression() const
Definition: kateconfig.cpp:2602
bool atStartOfDocument() const
virtual void dragEnterEvent(QDragEnterEvent *)
Definition: kateviewinternal.cpp:3097
void ignoreModifiedOnDiskOnce()
Definition: katedocument.cpp:4697
static Cursor invalid()
Definition: katerenderer.h:71
KateTextLayout viewLine(int viewLine) const
Definition: katelinelayout.cpp:177
const QColor & highlightedBracketColor() const
Definition: kateconfig.cpp:2275
KateViewInternal(KateView *view)
Definition: kateviewinternal.cpp:61
virtual KTextEditor::MovingRange * newMovingRange(const KTextEditor::Range &range, KTextEditor::MovingRange::InsertBehaviors insertBehaviors=KTextEditor::MovingRange::DoNotExpand, KTextEditor::MovingRange::EmptyBehavior emptyBehavior=KTextEditor::MovingRange::AllowEmpty)
Create a new moving range for this document.
Definition: katedocument.cpp:4742
void verticalScrollPositionChanged(KTextEditor::View *view, const KTextEditor::Cursor &newPos)
virtual int column() const =0
virtual void focusInEvent(QFocusEvent *)
Definition: kateviewinternal.cpp:3060
bool tagRange(const KTextEditor::Range &range, bool realCursors)
Definition: kateviewinternal.cpp:2051
virtual void mouseDoubleClickEvent(QMouseEvent *)
Definition: kateviewinternal.cpp:2586
virtual bool isValid() const
int column() const
Retrieve the column on which this cursor is situated.
Definition: katetextcursor.h:141
void setCaretOverrideColor(const QColor &color)
Set a brush with which to override drawing of the caret.
Definition: katerenderer.cpp:1083
virtual KTextEditor::View * activeView() const
Definition: katedocument.h:156
Definition: kateconfig.h:196
int timeout
virtual void keyPressEvent(QKeyEvent *)
Definition: kateviewinternal.cpp:2232
void bottomOfView(bool sel=false)
Definition: kateviewinternal.cpp:1473
virtual void dropEvent(QDropEvent *)
Definition: kateviewinternal.cpp:3129
void editSetCursor(const KTextEditor::Cursor &cursor)
Definition: kateviewinternal.cpp:3379
int visibleLineToLine(int visibleLine) const
Convert a visible line number to a line number in the text buffer.
Definition: katetextfolding.cpp:422
virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const
IM input stuff.
Definition: kateviewinternal.cpp:3460
void pageUp(bool sel=false, bool half=false)
Definition: kateviewinternal.cpp:1513
QPoint cursorToCoordinate(const KTextEditor::Cursor &cursor, bool realCursor=true, bool includeBorder=true) const
Definition: kateviewinternal.cpp:712
Definition: kateviinputmodemanager.h:54
virtual void mouseReleaseEvent(QMouseEvent *)
Definition: kateviewinternal.cpp:2681
KateTextLayout textLayout(const KTextEditor::Cursor &realCursor)
Returns the layout describing the text line which is occupied by realCursor.
Definition: katelayoutcache.cpp:337
void increaseFontSizes()
Change to a different font (soon to be font set?)
Definition: katerenderer.cpp:140
const Range toRange() const
virtual void hideEvent(QHideEvent *e)
Definition: kateviewinternal.cpp:2876
virtual void focusOutEvent(QFocusEvent *)
Definition: kateviewinternal.cpp:3073
void resetHadNavigation()
Definition: katecompletionwidget.cpp:969
static bool canDecode(const QMimeData *mimeData)
Definition: kateviewinternal.h:73
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
#define k_funcinfo
void indent(KTextEditor::Range range, int change)
Definition: katedocument.cpp:2898
void needTextHint(const KTextEditor::Cursor &position, QString &text)
void backspace(KateView *view, const KTextEditor::Cursor &)
Definition: katedocument.cpp:2725
int endCol(bool indicateEOL=false) const
Return the end column of this text line.
Definition: katetextlayout.cpp:140
KTextEditor::Cursor xToCursor(const KateTextLayout &range, int x, bool returnPastLine=false) const
Returns the real cursor which is occupied by the specified x value, or that closest to it...
Definition: katerenderer.cpp:1071
bool cursorSelected(const KTextEditor::Cursor &cursor)
Definition: kateview.cpp:2058
KSharedConfigPtr config()
void setPosition(const TextCursor &position)
Fast way to set the current cursor position to position.
Definition: katetextcursor.cpp:64
virtual void setAttributeOnlyForViews(bool onlyForViews)=0
bool tagLines(int start, int end, bool realLines=false)
Definition: kateviewinternal.cpp:1965
void setShowTrailingSpaces(bool showSpaces)
Set whether a mark should be painted for trailing spaces.
Definition: katerenderer.cpp:110
int columnWidth() const
void setColumn(int column)
KateTextLayout yToKateTextLayout(int y) const
Definition: kateviewinternal.cpp:306
void setAcceptDirtyLayouts(bool accept)
Definition: katelayoutcache.cpp:561
virtual const KTextEditor::Range & selectionRange() const
Definition: kateview.cpp:2760
KIconLoader::Group & operator++(KIconLoader::Group &group)
void cursorToMatchingBracket(bool sel=false)
Definition: kateviewinternal.cpp:1456
Handles all of the work of rendering the text (used for the views and printing)
Definition: katerenderer.h:50
void displayRangeChanged(KateView *view)
KateCompletionWidget * completionWidget() const
Definition: kateview.cpp:2321
virtual bool insertText(const KTextEditor::Cursor &position, const QString &s, bool block=false)
Definition: katedocument.cpp:530
void setShowTabs(bool showTabs)
Set whether a mark should be painted to help identifying tabs.
Definition: katerenderer.cpp:105
bool toggleExpanded(bool forceExpand=false, bool forceUnExpand=false)
Returns whether the current item was expanded/unexpanded.
Definition: katecompletionwidget.cpp:981
void cursorNextChar(bool sel=false)
Definition: kateviewinternal.cpp:1069
virtual void mousePressEvent(QMouseEvent *)
Definition: kateviewinternal.cpp:2462
void newBracketMark(const KTextEditor::Cursor &start, KTextEditor::Range &bm, int maxLines=-1)
Definition: katedocument.cpp:3572
virtual bool isValid() const
int viewLine() const
Return the index of this visual line inside the document line (KateLineLayout).
Definition: katetextlayout.cpp:109
virtual bool setSelection(const KTextEditor::Range &selection)
Definition: kateview.cpp:1931
KSharedPtr< Attribute > Ptr
Definition: kateviewinternal.h:72
virtual void mouseMoveEvent(QMouseEvent *)
Definition: kateviewinternal.cpp:2752
KateLineLayoutPtr line(int realLine, int virtualLine=-1)
Returns the KateLineLayout for the specified line.
Definition: katelayoutcache.cpp:280
Definition: kateviewinternal.h:57
virtual void keyReleaseEvent(QKeyEvent *)
Definition: kateviewinternal.cpp:2402
static Range invalid()
KTextEditor::Range foldingRange(qint64 id) const
Returns the folding range associated with id.
Definition: katetextfolding.cpp:159
bool isReadWrite() const
int line() const
Retrieve the line on which this cursor is situated.
Definition: katetextcursor.cpp:132
bool isEmpty() const
void setCaretStyle(KateRenderer::caretStyles style, bool repaint=false)
Set the caret's style.
Definition: kateviewinternal.cpp:1804
KateLineLayoutPtr kateLineLayout() const
Definition: katetextlayout.cpp:122
virtual void setAttribute(Attribute::Ptr attribute)=0
friend friend Cursor & operator+=(Cursor &c1, const Cursor &c2)
bool boundaryAtCursor(const Cursor &cursor) const
Definition: katerenderer.h:70
virtual void paintEvent(QPaintEvent *e)
Definition: kateviewinternal.cpp:2883
void updateRangesIn(KTextEditor::Attribute::ActivationType activationType)
check if ranges changed for mouse in and caret in
Definition: kateview.cpp:3107
virtual void setRange(const KTextEditor::Range &range)=0
This class handles Kate's caching of layouting information (in KateLineLayout and KateTextLayout)...
Definition: katelayoutcache.h:77
void cursorPositionChanged(KTextEditor::View *view, const KTextEditor::Cursor &newPosition)
KateTextLayout & viewLine(int viewLine)
Returns the layout of the corresponding line in the view.
Definition: katelayoutcache.cpp:358
bool typeChars(KateView *type, const QString &realChars)
Type chars in a view.
Definition: katedocument.cpp:2594
Definition: kateview.h:78
const Cursor toCursor() const
int lineToVisibleLine(int line) const
Convert a text buffer line to a visible line number.
Definition: katetextfolding.cpp:366
bool onSingleLine() const
Definition: katedocument.h:74
virtual void setView(View *view)=0
void dropEventPass(QDropEvent *)
Definition: kateviewinternal.h:74
void del(KateView *view, const KTextEditor::Cursor &)
Definition: katedocument.cpp:2805
void pageDown(bool sel=false, bool half=false)
Definition: kateviewinternal.cpp:1555
bool editWrapLine(int line, int col, bool newLine=true, bool *newLineAdded=0)
Wrap line.
Definition: katedocument.cpp:1083
bool isLineVisible(int line, qint64 *foldedRangeId=0) const
Query if a given line is visible.
Definition: katetextfolding.cpp:281
virtual void wheelEvent(QWheelEvent *e)
Definition: kateviewinternal.cpp:3214
void contextMenuEvent(QContextMenuEvent *e)
Definition: kateviewinternal.cpp:2433
virtual int line() const
bool isCompletionActive() const
Definition: katecompletionwidget.cpp:746
virtual void dragMoveEvent(QDragMoveEvent *)
Definition: kateviewinternal.cpp:3119
virtual const MovingCursor & start() const =0
This class represents one visible line of text; with dynamic wrapping, many KateTextLayouts can be ne...
Definition: katetextlayout.h:38
virtual int line() const =0
bool handleKeypress(const QKeyEvent *e)
feed key the given key press to the command parser
Definition: kateviinputmodemanager.cpp:112
virtual void setLine(int line)
void prepareForDynWrapChange()
Definition: kateviewinternal.cpp:241
void updateViModeBarCmd()
Update vi mode statusbar with the (partial) vi command being typed.
Definition: kateview.cpp:1555
void relayoutLines(int startRealLine, int endRealLine)
Definition: katelayoutcache.cpp:548
virtual void setPosition(const Cursor &position)
void selectionChanged(KTextEditor::View *view)
void setCaretStyle(KateRenderer::caretStyles style)
Set the style of caret to be painted.
Definition: katerenderer.cpp:100
Cursor & end()
void setUseMouseForMisspelledRange(bool b)
This method has to be called before the menu is shown in response to a context menu event...
Definition: spellingmenu.cpp:161
Definition: katehighlight.h:119
bool hadNavigation() const
Definition: katecompletionwidget.cpp:965
QSharedPointer< TextLineData > TextLine
The normal world only accesses the text lines with shared pointers.
Definition: katetextline.h:443
void paintTextLine(QPainter &paint, KateLineLayoutPtr range, int xStart, int xEnd, const KTextEditor::Cursor *cursor=0L)
This is the ultimate function to perform painting of a text line.
Definition: katerenderer.cpp:506
void ensureLineIsVisible(int line)
Ensure that a given line will be visible.
Definition: katetextfolding.cpp:313
virtual void setZDepth(qreal zDepth)=0
CopyJob * copy(const KUrl &src, const KUrl &dest, JobFlags flags=DefaultFlags)
void installEventFilter(QWidget *filter)
int numberOfLines() const
const QColor & backgroundColor() const
Definition: kateconfig.cpp:2178
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
int displayViewLine(const KTextEditor::Cursor &virtualCursor, bool limitToVisible=false)
Definition: katelayoutcache.cpp:404
bool move(int chars, WrapBehavior wrapBehavior=Wrap)
void insertTab(KateView *view, const KTextEditor::Cursor &)
Definition: katedocument.cpp:2913
void enableTextHints(int timeout)
Definition: kateviewinternal.cpp:3293
bool contains(const Range &range) const
virtual const MovingCursor & end() const =0
bool tagLine(const KTextEditor::Cursor &virtualCursor)
Definition: kateviewinternal.cpp:1949
const QFontMetricsF & fontMetrics() const
Definition: kateconfig.cpp:2135
bool isOverwriteMode() const
Return values for "save" related commands.
Definition: kateview.cpp:1199
virtual bool eventFilter(QObject *obj, QEvent *e)
Definition: kateviewinternal.cpp:2110
void editStart()
Enclose editor actions with editStart() and editEnd() to group them.
Definition: katedocument.cpp:776
ViMode getCurrentViMode() const
Definition: kateviinputmodemanager.cpp:449
int viewCacheLineCount() const
Definition: katelayoutcache.cpp:364
bool isEmpty() const
Cursor()
void setLine(int line)
bool isInWord(QChar c, int attrib=0) const
Definition: katehighlight.cpp:1084
void setDrawCaret(bool drawCaret)
Set whether the caret (text cursor) will be drawn.
Definition: katerenderer.cpp:95
void updateViewCache(const KTextEditor::Cursor &startPos, int newViewLineCount=-1, int viewLinesScrolled=0)
Definition: katelayoutcache.cpp:159
static int dndEventDelay()
virtual void setColumn(int column)
int column() const
QPoint cursorCoordinates(bool includeBorder=true) const
Definition: kateviewinternal.cpp:737
int m_column
virtual bool removeText(const KTextEditor::Range &range, bool block=false)
Definition: katedocument.cpp:633
KTextEditor::Cursor coordinatesToCursor(const QPoint &coord, bool includeBorder=true) const
Definition: kateviewinternal.cpp:2736
KTextEditor::Cursor findMatchingBracket()
Definition: kateviewinternal.cpp:742
indents in leading space, otherwise inserts tab
Definition: kateconfig.h:197
virtual void inputMethodEvent(QInputMethodEvent *e)
Definition: kateviewinternal.cpp:3505
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:53 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 22:31:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.