Kate
kateviewinternal.cpp
Go to the documentation of this file.
72 , m_bm(doc()->newMovingRange(KTextEditor::Range::invalid(), KTextEditor::MovingRange::DoNotExpand))
73 , m_bmStart(doc()->newMovingRange(KTextEditor::Range::invalid(), KTextEditor::MovingRange::DoNotExpand))
74 , m_bmEnd(doc()->newMovingRange(KTextEditor::Range::invalid(), KTextEditor::MovingRange::DoNotExpand))
177 connect( &m_view->textFolding(), SIGNAL(foldingRangesChanged()), SLOT(slotRegionVisibilityChanged()));
298 return KTextEditor::Cursor(m_view->textFolding().visibleLines() - 1, doc()->lineLength(m_view->textFolding().visibleLineToLine(m_view->textFolding().visibleLines() - 1)));
301 return KTextEditor::Cursor(thisLine.virtualLine(), thisLine.wrap() ? thisLine.endCol() - 1 : thisLine.endCol());
418 KTextEditor::Cursor end(m_view->textFolding().visibleLines() - 1, doc()->lineLength(m_view->textFolding().visibleLineToLine(m_view->textFolding().visibleLines() - 1)));
471 KTextEditor::Cursor end(m_view->textFolding().visibleLines() - 1, doc()->lineLength(m_view->textFolding().visibleLineToLine(m_view->textFolding().visibleLines() - 1)));
577 KateViewConfig::ScrollbarMode show_scrollbars = static_cast<KateViewConfig::ScrollbarMode>(view()->config()->showScrollbars());
627 void KateViewInternal::makeVisible (const KTextEditor::Cursor& c, int endCol, bool force, bool center, bool calledExternally)
629 //kDebug(13030) << "MakeVisible start " << startPos() << " end " << endPos() << " -> request: " << c;// , new start [" << scroll.line << "," << scroll.col << "] lines " << (linesDisplayed() - 1) << " height " << height();
739 QPoint KateViewInternal::cursorToCoordinate( const KTextEditor::Cursor & cursor, bool realCursor, bool includeBorder ) const
913 bool atEdge() const { return atEdge( KateViewInternal::left ) || atEdge( KateViewInternal::right ); }
964 maxColumn = thisLine->length() + ((m_vi->width() - thisLine->widthOfLastLine()) / m_vi->renderer()->spaceWidth()) - 1;
1279 return cache()->textLayout(m_view->textFolding().visibleLineToLine(m_displayCursor.line() - 1), -1);
1288 return cache()->textLayout(m_view->textFolding().visibleLineToLine(m_displayCursor.line() + 1), currentViewLine);
1302 KTextEditor::Cursor KateViewInternal::viewLineOffset(const KTextEditor::Cursor& virtualCursor, int offset, bool keepX)
1305 KTextEditor::Cursor ret(qMin((int)m_view->textFolding().visibleLines() - 1, virtualCursor.line() + offset), 0);
1322 realCursor.setLine(m_view->textFolding().visibleLineToLine(m_view->textFolding().lineToVisibleLine(virtualCursor.line())));
1348 Q_ASSERT(thisLine.virtualLine() == (int) m_view->textFolding().lineToVisibleLine(virtualCursor.line()));
1403 return KTextEditor::Cursor(m_view->textFolding().visibleLines() - 1, doc()->lineLength(m_view->textFolding().visibleLineToLine (m_view->textFolding().visibleLines() - 1)));
1440 if (m_displayCursor.line() == 0 && (!m_view->dynWordWrap() || cache()->viewLine(m_cursor) == 0))
1467 if ((m_displayCursor.line() >= m_view->textFolding().visibleLines() - 1) && (!m_view->dynWordWrap() || cache()->viewLine(m_cursor) == cache()->lastViewLine(m_cursor.line())))
1642 maxLen = qMax(maxLen, cache()->line(m_view->textFolding().visibleLineToLine(virtualLine))->width());
1650 return !m_view->dynWordWrap() && m_columnScroll->isEnabled() && (m_columnScroll->maximum() > 0);
1657 newCursor = renderer()->xToCursor(cache()->textLayout(newCursor), m_preservedX, !m_view->wrapCursor());
1667 newCursor = renderer()->xToCursor(cache()->textLayout(newCursor), m_preservedX, !m_view->wrapCursor());
1851 disconnect(m_view, SIGNAL(selectionChanged(KTextEditor::View*)), this, SLOT(viewSelectionChanged()));
1853 connect(m_view, SIGNAL(selectionChanged(KTextEditor::View*)), this, SLOT(viewSelectionChanged()));
1872 void KateViewInternal::updateCursor( const KTextEditor::Cursor& newCursor, bool force, bool center, bool calledExternally )
1905 // It's efficient enough to just tag them both without checking to see if they're on the same view line
1924 m_preservedX = renderer()->cursorToX(cache()->textLayout(m_cursor), m_cursor, !m_view->wrapCursor());
1926 //kDebug(13030) << "m_preservedX: " << m_preservedX << " (was "<< oldmaxx << "), m_cursorX: " << m_cursorX;
1927 //kDebug(13030) << "Cursor now located at real " << cursor.line << "," << cursor.col << ", virtual " << m_displayCursor.line << ", " << m_displayCursor.col << "; Top is " << startLine() << ", " << startPos().col;
1938 KTextEditor::Attribute::Ptr bracketFill = KTextEditor::Attribute::Ptr(new KTextEditor::Attribute());
1950 KTextEditor::Attribute::Ptr expressionFill = KTextEditor::Attribute::Ptr(new KTextEditor::Attribute());
1977 m_bmStart->setRange (KTextEditor::Range (m_bm->start(), KTextEditor::Cursor (m_bm->start().line(), m_bm->start().column() + 1)));
1978 m_bmEnd->setRange (KTextEditor::Range (m_bm->end(), KTextEditor::Cursor (m_bm->end().line(), m_bm->end().column() + 1)));
1984 const KTextEditor::Cursor flashPos = (m_cursor == m_bmStart->start() || m_cursor == m_bmStart->end()) ? m_bmEnd->start() : m_bm->start();
2025 bool KateViewInternal::tagLines(KTextEditor::Cursor start, KTextEditor::Cursor end, bool realCursors)
2045 // less optimal but still adequate approximation (potential overestimation but minimal performance difference)
2061 if ((line.virtualLine() > start.line() || (line.virtualLine() == start.line() && line.endCol() >= start.column() && start.column() != -1)) &&
2062 (line.virtualLine() < end.line() || (line.virtualLine() == end.line() && (line.startCol() <= end.column() || end.column() == -1)))) {
2087 ((line.virtualLine() > start.line() || (line.virtualLine() == start.line() && line.endCol() >= start.column() && start.column() != -1)) &&
2088 (line.virtualLine() < end.line() || (line.virtualLine() == end.line() && (line.startCol() <= end.column() || end.column() == -1)))))
2091 m_leftBorder->update (0, z * renderer()->lineHeight(), m_leftBorder->width(), m_leftBorder->height());
2097 leftBorder->update (0, z * doc()->viewFont.fontHeight, leftBorder->width(), doc()->viewFont.fontHeight);
2127 void KateViewInternal::placeCursor( const QPoint& p, bool keepSelection, bool updateSelection )
2160 return m_view->cursorSelected(renderer()->xToCursor(thisLine, startX() + p.x(), !m_view->wrapCursor()));
2169 // the second condition is to make sure a scroll on the vertical bar doesn't cause a horizontal scroll ;)
2225 if (m_view->viInputMode() && m_view->viInputModeStealKeys() && ( m_view->getCurrentViMode() != InsertMode ||
2330 && !m_view->viInputMode() /* Vi input mode needs to handle completion keypresses itself for e.g. mappings */)
2368 if ((key == Qt::Key_Return) || (key == Qt::Key_Enter) || (key == Qt::SHIFT + Qt::Key_Return) || (key == Qt::SHIFT + Qt::Key_Enter))
2422 doc()->indent( m_view->selection() ? m_view->selectionRange() : KTextEditor::Range(m_cursor.line(), 0, m_cursor.line(), 0), 1 );
2431 doc()->indent( m_view->selection() ? m_view->selectionRange() : KTextEditor::Range(m_cursor.line(), 0, m_cursor.line(), 0), -1 );
2438 if ( !(e->modifiers() & Qt::ControlModifier) && !e->text().isEmpty() && doc()->typeChars ( m_view, e->text() ) )
2447 if( (e->modifiers() & altGR) == altGR && !e->text().isEmpty() && doc()->typeChars ( m_view, e->text() ) )
2459 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())) ) {
2511 m_view->spellingMenu()->setUseMouseForMisspelledRange((e->reason() == QContextMenuEvent::Mouse));
2582 QStyle::RequestSoftwareInputPanel behavior = QStyle::RequestSoftwareInputPanel( style()->styleHint( QStyle::SH_RequestSoftwareInputPanel ) );
2785 // fix bug 194452, scrolling keeps going if you scroll via mouse drag and press and other mouse
2791 KTextEditor::Cursor KateViewInternal::coordinatesToCursor(const QPoint& _coord, bool includeBorder) const
2999 //kDebug (13030) << "paint text: line: " << thisLine.line() << " viewLine " << thisLine.viewLine() << " x: " << unionRect.x() << " y: " << sy
3006 //paint.setClipRect(QRect(xStart, 0, xEnd - xStart, h * (thisLine.kateLineLayout()->viewLineCount())));
3074 KTextEditor::Cursor newCursor(m_cursor.line(), thisLine.endCol() + ((width() - thisLine.xOffset() - (thisLine.width()- m_startX)) / renderer()->spaceWidth()) - 1);
3239 Kate::TextCursor startCursor(doc()->buffer(), targetCursor, KTextEditor::MovingCursor::MoveOnInsert);
3244 Kate::TextCursor endCursor1(doc()->buffer(), startCursor, KTextEditor::MovingCursor::MoveOnInsert);
3294 if (m_lineScroll->minimum() != m_lineScroll->maximum() && e->orientation() != Qt::Horizontal) {
3413 if (tagFrom && (editTagLineStart <= int(m_view->textFolding().visibleLineToLine(startLine()))))
3416 tagLines (editTagLineStart, tagFrom ? qMax(doc()->lastLine() + 1, editTagLineEnd) : editTagLineEnd, true);
3439 || (editOldSelection.isValid() && !editOldSelection.isEmpty() && !(editTagLineStart > editOldSelection.end().line() && editTagLineEnd < editOldSelection.start().line())))
3474 KTextEditor::Cursor KateViewInternal::toRealCursor( const KTextEditor::Cursor & virtualCursor ) const
3476 return KTextEditor::Cursor(m_view->textFolding().visibleLineToLine(virtualCursor.line()), virtualCursor.column());
3479 KTextEditor::Cursor KateViewInternal::toVirtualCursor( const KTextEditor::Cursor & realCursor ) const
3488 return KTextEditor::Cursor(m_view->textFolding().lineToVisibleLine(realCursor.line()), realCursor.column());
3512 bool KateViewInternal::rangeAffectsView(const KTextEditor::Range& range, bool realCursors) const
3578 //kDebug( 13030 ) << "Event: cursor" << m_cursor << "commit" << e->commitString() << "preedit" << e->preeditString() << "replacement start" << e->replacementStart() << "length" << e->replacementLength();
3581 m_imPreeditRange = doc()->newMovingRange (KTextEditor::Range(m_cursor, m_cursor), KTextEditor::MovingRange::ExpandLeft | KTextEditor::MovingRange::ExpandRight);
3595 KTextEditor::Cursor start(m_imPreeditRange->start().line(), m_imPreeditRange->start().column() + e->replacementStart());
3655 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);
3702 void KateViewInternal::flashChar(const KTextEditor::Cursor & pos, KTextEditor::Attribute::Ptr attribute)
void editEnd(int editTagLineStart, int editTagLineEnd, bool tagFrom)
Definition: kateviewinternal.cpp:3391
QLayout * layout() const
const QString & preeditString() const
void cursorPrevChar(bool sel=false)
Definition: kateviewinternal.cpp:1092
void clear()
Definition: kateviinputmodemanager.h:50
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:3029
bool showWholeBracketExpression() const
Definition: kateconfig.cpp:2751
QWidget * source() const
Qt::KeyboardModifiers modifiers() const
bool isValid() const
virtual void dragEnterEvent(QDragEnterEvent *)
Definition: kateviewinternal.cpp:3163
void ignoreModifiedOnDiskOnce()
Definition: katedocument.cpp:4696
virtual QSize sizeHint() const
Type type() const
int doubleClickInterval()
Definition: katerenderer.h:71
int & rx()
const QColor & highlightedBracketColor() const
Definition: kateconfig.cpp:2424
KateViewInternal(KateView *view)
Definition: kateviewinternal.cpp:63
int width() const
int replacementStart() const
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:4741
void setCursor(const QCursor &)
virtual void focusInEvent(QFocusEvent *)
Definition: kateviewinternal.cpp:3126
const QMimeData * mimeData() const
void fillRect(const QRectF &rectangle, const QBrush &brush)
bool tagRange(const KTextEditor::Range &range, bool realCursors)
Definition: kateviewinternal.cpp:2106
virtual void mouseDoubleClickEvent(QMouseEvent *)
Definition: kateviewinternal.cpp:2641
void push_back(const T &value)
void setRange(int min, int max)
Definition: kateconfig.h:447
int column() const
Retrieve the column on which this cursor is situated.
Definition: katetextcursor.h:141
void updateMicroFocus()
void setCaretOverrideColor(const QColor &color)
Set a brush with which to override drawing of the caret.
Definition: katerenderer.cpp:1083
const QRegion & region() const
virtual KTextEditor::View * activeView() const
Definition: katedocument.h:156
Definition: kateconfig.h:196
virtual void keyPressEvent(QKeyEvent *)
Definition: kateviewinternal.cpp:2287
void bottomOfView(bool sel=false)
Definition: kateviewinternal.cpp:1504
int count() const
virtual void dropEvent(QDropEvent *)
Definition: kateviewinternal.cpp:3195
QStyle * style() const
void editSetCursor(const KTextEditor::Cursor &cursor)
Definition: kateviewinternal.cpp:3445
int x() const
int y() const
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:3526
void pageUp(bool sel=false, bool half=false)
Definition: kateviewinternal.cpp:1544
void removeFactory(InterfaceFactory factory)
QPoint cursorToCoordinate(const KTextEditor::Cursor &cursor, bool realCursor=true, bool includeBorder=true) const
Definition: kateviewinternal.cpp:739
Definition: kateviinputmodemanager.h:54
const QPoint & pos() const
int y() const
virtual void mouseReleaseEvent(QMouseEvent *)
Definition: kateviewinternal.cpp:2736
bool isVisible() const
QPoint mapToGlobal(const QPoint &pos) const
KateTextLayout textLayout(const KTextEditor::Cursor &realCursor)
Returns the layout describing the text line which is occupied by realCursor.
Definition: katelayoutcache.cpp:337
void save()
void setAttribute(Qt::WidgetAttribute attribute, bool on)
int msecsTo(const QTime &t) const
void increaseFontSizes()
Change to a different font (soon to be font set?)
Definition: katerenderer.cpp:140
int height() const
int x() const
int y() const
void setPageStep(int)
virtual void hideEvent(QHideEvent *e)
Definition: kateviewinternal.cpp:2937
bool hasFocus() const
This class is used to flash text in the text view.
Definition: katetextanimation.h:41
Qt::MouseButtons buttons() const
bool hasText() const
bool isAutoRepeat() const
virtual void focusOutEvent(QFocusEvent *)
Definition: kateviewinternal.cpp:3139
void resetHadNavigation()
Definition: katecompletionwidget.cpp:971
QObject * child() const
Definition: kateviewinternal.h:74
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
bool animateBracketMatching() const
Definition: kateconfig.cpp:2772
virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const
void showText(const QPoint &pos, const QString &text, QWidget *w)
void indent(KTextEditor::Range range, int change)
Definition: katedocument.cpp:2899
void needTextHint(const KTextEditor::Cursor &position, QString &text)
void backspace(KateView *view, const KTextEditor::Cursor &)
Definition: katedocument.cpp:2726
qreal width(const QString &text) const
void update()
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
int x() const
int y() const
bool cursorSelected(const KTextEditor::Cursor &cursor)
Definition: kateview.cpp:2083
const QRect & geometry() const
void setPosition(const TextCursor &position)
Fast way to set the current cursor position to position.
Definition: katetextcursor.cpp:64
bool tagLines(int start, int end, bool realLines=false)
Definition: kateviewinternal.cpp:2020
void setShowTrailingSpaces(bool showSpaces)
Set whether a mark should be painted for trailing spaces.
Definition: katerenderer.cpp:110
KateTextLayout yToKateTextLayout(int y) const
Definition: kateviewinternal.cpp:312
int replacementLength() const
void setAcceptDirtyLayouts(bool accept)
Definition: katelayoutcache.cpp:565
width
virtual const KTextEditor::Range & selectionRange() const
Definition: kateview.cpp:2815
QSize size() const
const QRect & rect() const
void cursorToMatchingBracket(bool sel=false)
Definition: kateviewinternal.cpp:1487
void setMinimumSize(const QSize &)
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:2346
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:983
bool isEnabled() const
virtual void showEvent(QShowEvent *event)
const QPoint & globalPos() const
bool isAccepted() const
void ignore()
void cursorNextChar(bool sel=false)
Definition: kateviewinternal.cpp:1100
virtual void mousePressEvent(QMouseEvent *)
Definition: kateviewinternal.cpp:2517
void newBracketMark(const KTextEditor::Cursor &start, KTextEditor::Range &bm, int maxLines=-1)
Definition: katedocument.cpp:3573
void updateAccessibility(QObject *object, int child, Event reason)
bool isVisible()
void installEventFilter(QObject *filterObj)
void flashChar(const KTextEditor::Cursor &pos, KTextEditor::Attribute::Ptr attribute)
Definition: kateviewinternal.cpp:3702
int viewLine() const
Return the index of this visual line inside the document line (KateLineLayout).
Definition: katetextlayout.cpp:109
int x() const
virtual bool setSelection(const KTextEditor::Range &selection)
Definition: kateview.cpp:1956
QClipboard * clipboard()
Qt::Orientation orientation() const
bool added() const
Definition: kateviewinternal.h:73
const QSize & oldSize() const
Qt::MouseButton button() const
virtual void mouseMoveEvent(QMouseEvent *)
Definition: kateviewinternal.cpp:2813
KateLineLayoutPtr line(int realLine, int virtualLine=-1)
Returns the KateLineLayout for the specified line.
Definition: katelayoutcache.cpp:280
Definition: kateviewinternal.h:58
virtual void keyReleaseEvent(QKeyEvent *)
Definition: kateviewinternal.cpp:2457
bool isEmpty() const
bool sendEvent(QObject *receiver, QEvent *event)
KTextEditor::Range foldingRange(qint64 id) const
Returns the folding range associated with id.
Definition: katetextfolding.cpp:159
QString text() const
qreal cursorToX(int *cursorPos, Edge edge) const
int line() const
Retrieve the line on which this cursor is situated.
Definition: katetextcursor.cpp:132
QPoint pos() const
void setText(const QString &text)
void setDropAction(Qt::DropAction action)
void setCaretStyle(KateRenderer::caretStyles style, bool repaint=false)
Set the caret's style.
Definition: kateviewinternal.cpp:1835
virtual bool eventFilter(QObject *watched, QEvent *event)
KateLineLayoutPtr kateLineLayout() const
Definition: katetextlayout.cpp:122
bool contains(const QPoint &point, bool proper) const
void hide()
minimum
Definition: katerenderer.h:70
virtual void paintEvent(QPaintEvent *e)
Definition: kateviewinternal.cpp:2944
void updateRangesIn(KTextEditor::Attribute::ActivationType activationType)
check if ranges changed for mouse in and caret in
Definition: kateview.cpp:3169
void setSizePolicy(QSizePolicy)
This class handles Kate's caching of layouting information (in KateLineLayout and KateTextLayout)...
Definition: katelayoutcache.h:77
QRect rect() const
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:2595
Definition: kateview.h:77
void setAcceptDrops(bool on)
static bool isInWord(const KTextEditor::View *view, const KTextEditor::Cursor &position, QChar c)
Definition: katekeywordcompletion.cpp:118
Qt::KeyboardModifiers modifiers() const
bool contains(const QPoint &p) const
bool removed() const
int lineToVisibleLine(int line) const
Convert a text buffer line to a visible line number.
Definition: katetextfolding.cpp:366
int key() const
void accept()
bool blockSignals(bool block)
int manhattanLength() const
virtual KTextEditor::Attribute::Ptr attributeAt(const KTextEditor::Cursor &position)
Definition: katedocument.cpp:5395
Definition: katedocument.h:74
void setFixedSize(const QSize &s)
void dropEventPass(QDropEvent *)
Definition: kateviewinternal.h:75
void setValue(int)
void del(KateView *view, const KTextEditor::Cursor &)
Definition: katedocument.cpp:2806
void pageDown(bool sel=false, bool half=false)
Definition: kateviewinternal.cpp:1586
void stop()
void hideText()
const QList< Attribute > & attributes() const
bool editWrapLine(int line, int col, bool newLine=true, bool *newLineAdded=0)
Wrap line.
Definition: katedocument.cpp:1083
int delta() const
bool isLineVisible(int line, qint64 *foldedRangeId=0) const
Query if a given line is visible.
Definition: katetextfolding.cpp:281
void setRenderHints(QFlags< QPainter::RenderHint > hints, bool on)
void restore()
QTime currentTime()
QString text(Mode mode) const
virtual void wheelEvent(QWheelEvent *e)
Definition: kateviewinternal.cpp:3280
void contextMenuEvent(QContextMenuEvent *e)
Definition: kateviewinternal.cpp:2488
bool isCompletionActive() const
Definition: katecompletionwidget.cpp:748
virtual void dragMoveEvent(QDragMoveEvent *)
Definition: kateviewinternal.cpp:3185
This class represents one visible line of text; with dynamic wrapping, many KateTextLayouts can be ne...
Definition: katetextlayout.h:38
bool handleKeypress(const QKeyEvent *e)
feed key the given key press to the command parser
Definition: kateviinputmodemanager.cpp:113
int width() const
QFontMetrics fontMetrics() const
QPoint pos()
void prepareForDynWrapChange()
Definition: kateviewinternal.cpp:247
void updateViModeBarCmd()
Update vi mode statusbar with the (partial) vi command being typed.
Definition: kateview.cpp:1575
void setSingleStep(int)
void relayoutLines(int startRealLine, int endRealLine)
Definition: katelayoutcache.cpp:552
void setCaretStyle(KateRenderer::caretStyles style)
Set the style of caret to be painted.
Definition: katerenderer.cpp:100
QWidget * parentWidget() const
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
QPoint mapFromGlobal(const QPoint &pos) const
bool hadNavigation() const
Definition: katecompletionwidget.cpp:967
QWidget(QWidget *parent, QFlags< Qt::WindowType > f)
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
Definition: kateconfig.h:448
int height() const
int wheelScrollLines()
int length() const
const QColor & backgroundColor() const
Definition: kateconfig.cpp:2327
void translate(const QPointF &offset)
void setMouseTracking(bool enable)
int displayViewLine(const KTextEditor::Cursor &virtualCursor, bool limitToVisible=false)
Definition: katelayoutcache.cpp:405
Qt::DropAction dropAction() const
bool isEmpty() const
void start(int msec)
void setTracking(bool enable)
void insertTab(KateView *view, const KTextEditor::Cursor &)
Definition: katedocument.cpp:2914
void setText(const QString &text, Mode mode)
void enableTextHints(int timeout)
Definition: kateviewinternal.cpp:3359
void show()
void scroll(int dx, int dy)
bool tagLine(const KTextEditor::Cursor &virtualCursor)
Definition: kateviewinternal.cpp:2004
const QFontMetricsF & fontMetrics() const
Definition: kateconfig.cpp:2284
const QPoint & pos() const
bool isOverwriteMode() const
Return values for "save" related commands.
Definition: kateview.cpp:1214
void setDisabled(bool disable)
virtual bool eventFilter(QObject *obj, QEvent *e)
Definition: kateviewinternal.cpp:2165
void editStart()
Enclose editor actions with editStart() and editEnd() to group them.
Definition: katedocument.cpp:776
ViMode getCurrentViMode() const
Definition: kateviinputmodemanager.cpp:451
void postEvent(QObject *receiver, QEvent *event)
bool isActive() const
maximum
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int viewCacheLineCount() const
Definition: katelayoutcache.cpp:364
QObject * parent() const
bool isInWord(QChar c, int attrib=0) const
Definition: katehighlight.cpp:1122
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
void installFactory(InterfaceFactory factory)
void updateViRelLineNumbers()
Definition: kateviewhelpers.cpp:1356
virtual bool event(QEvent *event)
const QString & commitString() const
QPoint cursorCoordinates(bool includeBorder=true) const
Definition: kateviewinternal.cpp:767
virtual bool removeText(const KTextEditor::Range &range, bool block=false)
Definition: katedocument.cpp:633
void removeEventFilter(QObject *obj)
int height() const
KTextEditor::Cursor coordinatesToCursor(const QPoint &coord, bool includeBorder=true) const
Definition: kateviewinternal.cpp:2791
bool isValid() const
Qt::KeyboardModifiers keyboardModifiers() const
singleShot
KTextEditor::Cursor findMatchingBracket()
Definition: kateviewinternal.cpp:772
indents in leading space, otherwise inserts tab
Definition: kateconfig.h:197
virtual void inputMethodEvent(QInputMethodEvent *e)
Definition: kateviewinternal.cpp:3571
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.