Kate
kateview.cpp
Go to the documentation of this file.
135 , m_selection (m_doc->buffer(), KTextEditor::Range::invalid(), Kate::TextRange::ExpandLeft, Kate::TextRange::AllowEmpty)
153 connect(this, SIGNAL(delayedUpdateOfView()), this, SLOT(slotDelayedUpdateOfView()), Qt::QueuedConnection);
165 KTextEditor::ViewBarContainer *viewBarContainer=qobject_cast<KTextEditor::ViewBarContainer*>( KateGlobal::self()->container() );
166 QWidget *bottomBarParent=viewBarContainer?viewBarContainer->getViewBarParent(this,KTextEditor::ViewBarContainer::BottomBar):0;
167 QWidget *topBarParent=viewBarContainer?viewBarContainer->getViewBarParent(this,KTextEditor::ViewBarContainer::TopBar):0;
169 m_bottomViewBar=new KateViewBar (bottomBarParent!=0,KTextEditor::ViewBarContainer::BottomBar,bottomBarParent?bottomBarParent:this,this);
170 m_topViewBar=new KateViewBar (topBarParent!=0,KTextEditor::ViewBarContainer::TopBar,topBarParent?topBarParent:this,this);
224 m_vBox->addSpacing (style()->pixelMetric(QStyle::PM_ScrollView_ScrollBarSpacing, &option, this));
243 viewBarContainer->addViewBarToLayout(this,m_bottomViewBar,KTextEditor::ViewBarContainer::BottomBar);
292 connect(this, SIGNAL(displayRangeChanged(KateView*)), m_topMessageWidget, SLOT(startAutoHideTimer()));
293 connect(this, SIGNAL(displayRangeChanged(KateView*)), m_bottomMessageWidget, SLOT(startAutoHideTimer()));
296 connect(this, SIGNAL(cursorPositionChanged(KTextEditor::View*, const KTextEditor::Cursor&)), m_topMessageWidget, SLOT(startAutoHideTimer()));
297 connect(this, SIGNAL(cursorPositionChanged(KTextEditor::View*, const KTextEditor::Cursor&)), m_bottomMessageWidget, SLOT(startAutoHideTimer()));
313 KTextEditor::ViewBarContainer *viewBarContainer=qobject_cast<KTextEditor::ViewBarContainer*>( KateGlobal::self()->container() );
345 connect( m_doc, SIGNAL(annotationModelChanged(KTextEditor::AnnotationModel*,KTextEditor::AnnotationModel*)),
346 m_viewInternal->m_leftBorder, SLOT(annotationModelChanged(KTextEditor::AnnotationModel*,KTextEditor::AnnotationModel*)) );
369 a->setWhatsThis(i18n( "Use this command to copy the currently selected text to the system clipboard."));
371 m_pasteMenu = ac->addAction("edit_paste_menu", new KatePasteMenu (i18n("Clipboard &History"), this));
372 connect (KateGlobal::self(), SIGNAL(clipboardHistoryChanged()), this, SLOT(slotClipboardHistoryChanged()));
391 a->setWhatsThis(i18n("Use this command to wrap all lines of the current document which are longer than the width of the"
392 " current view, to fit into this view.<br /><br /> This is a static word wrap, meaning it is not updated"
398 a->setWhatsThis(i18n("Use this to clean the indentation of a selected block of text (only tabs/only spaces).<br /><br />"
399 "You can configure whether tabs should be honored and used or replaced with spaces, in the configuration dialog."));
404 a->setWhatsThis(i18n("Use this to align the current line or block of text to its proper indent level."));
410 a->setWhatsThis(i18n("This command comments out the current line or a selected block of text.<br /><br />"
411 "The characters for single/multiple line comments are defined within the language's highlighting."));
417 a->setWhatsThis(i18n("This command removes comments from the current line or a selected block of text.<br /><br />"
418 "The characters for single/multiple line comments are defined within the language's highlighting."));
459 a->setWhatsThis(i18n("Manually invoke command completion, usually by using a shortcut bound to this action."));
495 a->setWhatsThis(i18n("This command opens a dialog and lets you choose a line that you want the cursor to move to."));
514 ftm->setWhatsThis(i18n("Here you can choose which mode should be used for the current document. This will influence the highlighting and folding being used, for example."));
519 menu->setWhatsThis(i18n("Here you can choose how the current document should be highlighted."));
527 KateViewIndentationAction *indentMenu = new KateViewIndentationAction(m_doc, i18n("&Indentation"), this);
534 a->setWhatsThis(i18n("If you have selected something within the current document, this will no longer be selected."));
553 a->setWhatsThis(i18n("This command allows switching between the normal (line based) selection mode and the block selection mode."));
559 a->setWhatsThis(i18n("Choose whether you want the text you type to be inserted or to overwrite existing text."));
566 a->setWhatsThis(i18n("If this option is checked, the text lines will be wrapped at the view border on the screen."));
579 m_setDynWrapIndicators->setEnabled(m_toggleDynWrap->isChecked()); // only synced on real change, later
581 a = toggleAction = m_toggleFoldingMarkers = new KToggleAction(i18n("Show Folding &Markers"), this);
584 a->setWhatsThis(i18n("You can choose if the codefolding marks should be shown, if codefolding is possible."));
590 a->setWhatsThis(i18n("Show/hide the icon border.<br /><br />The icon border shows bookmark symbols, for instance."));
599 a = m_toggleScrollBarMarks = toggleAction = new KToggleAction(i18n("Show Scroll&bar Marks"), this);
601 a->setWhatsThis(i18n("Show/hide the marks on the vertical scrollbar.<br /><br />The marks show bookmarks, for instance."));
604 a = m_toggleScrollBarMiniMap = toggleAction = new KToggleAction(i18n("Show Scrollbar Mini-Map"), this);
606 a->setWhatsThis(i18n("Show/hide the mini-map on the vertical scrollbar.<br /><br />The mini-map shows an overview of the whole document."));
609 // a = m_toggleScrollBarMiniMapAll = toggleAction = new KToggleAction(i18n("Show the whole document in the Mini-Map"), this);
611 // a->setWhatsThis(i18n("Display the whole document in the mini-map.<br /><br />With this option set the whole document will be visible in the mini-map."));
613 // connect(m_toggleScrollBarMiniMap, SIGNAL(triggered(bool)), m_toggleScrollBarMiniMapAll, SLOT(setEnabled(bool)));
615 a = toggleAction = m_toggleWWMarker = new KToggleAction(i18n("Show Static &Word Wrap Marker"), this);
648 a->setWhatsThis(i18n("Enable/disable adding of byte order markers for UTF-8/UTF-16 encoded files while saving"));
651 KateViewEncodingAction *encodingAction = new KateViewEncodingAction(m_doc, this, i18n("E&ncoding"), this);
655 a->setWhatsThis(i18n("Look up the first occurrence of a piece of text or regular expression."));
679 a->setWhatsThis(i18n("Look up a piece of text or regular expression and replace the result with some given text."));
685 connect(m_toggleOnTheFlySpellCheck, SIGNAL(triggered(bool)), SLOT(toggleOnTheFlySpellCheck(bool)));
696 a->setWhatsThis(i18n("Remove all the separate dictionary ranges that were set for spell checking."));
718 connect (this, SIGNAL(selectionChanged(KTextEditor::View*)), this, SLOT(slotSelectionChanged()));
998 a->setWhatsThis(i18n("Insert newline including leading characters of the current line which are not letters or numbers."));
1010 "You can configure whether tabs should be honored and used or replaced with spaces, in the configuration dialog."));
1117 QVector<QPair<qint64, Kate::TextFolding::FoldingRangeFlags> > startingRanges = textFolding().foldingRangesStartingOnLine (startLine);
1122 textFolding().newFoldingRange (doc()->buffer().computeFoldingRangeForStartLine (startLine), Kate::TextFolding::Folded);
1132 QVector<QPair<qint64, Kate::TextFolding::FoldingRangeFlags> > startingRanges = textFolding().foldingRangesStartingOnLine (startLine);
1232 m_pasteMenu->setEnabled (m_doc->isReadWrite() && !KateGlobal::self()->clipboardHistory().isEmpty());
1261 m_pasteMenu->setEnabled (m_doc->isReadWrite() && !KateGlobal::self()->clipboardHistory().isEmpty());
1293 bool KateView::setCursorPositionInternal( const KTextEditor::Cursor& position, uint tabwidth, bool calledExternally )
1312 m_viewInternal->updateCursor( KTextEditor::Cursor(position.line(), x), false, true, calledExternally );
1360 setCursorPositionInternal(KTextEditor::Cursor(config.readEntry("CursorLine",0), config.readEntry("CursorColumn",0)));
2060 int selectionColumn = qMin(m_doc->toVirtualColumn(selection.start()), m_doc->toVirtualColumn(selection.end()));
2062 newSelection.start().setColumn(m_doc->fromVirtualColumn(newSelection.start().line(), selectionColumn));
2063 newSelection.end().setColumn(m_doc->fromVirtualColumn(newSelection.end().line(), selectionColumn));
2104 && (lineEndPos.line() > m_selection.start().line() || (lineEndPos.line() == m_selection.start().line() && (m_selection.start().column() < lineEndPos.column() || lineEndPos.column() == -1)))
2105 && (lineEndPos.line() < m_selection.end().line() || (lineEndPos.line() == m_selection.end().line() && (lineEndPos.column() <= m_selection.end().column() && lineEndPos.column() != -1)));
2127 } else if (blockSelection() && (oldSelection.start().column() != m_selection.start().column() || oldSelection.end().column() != m_selection.end().column())) {
2167 while (start > 0 && m_doc->highlight()->isInWord(textLine->at(start - 1), textLine->attribute(start - 1))) start--;
2168 while (end < len && m_doc->highlight()->isInWord(textLine->at(end), textLine->attribute(start - 1))) end++;
2240 // when leaving block selection mode, if cursor is at an invalid position or past the end of the
2270 void KateView::slotTextInserted ( KTextEditor::View *view, const KTextEditor::Cursor &position, const QString &text)
2302 KateTemplateScript* kateTemplateScript = KateGlobal::self()->scriptManager()->templateScript(templateScript);
2307 new KateTemplateHandler(this, c, templateString, initialValues, m_doc->undoManager(), kateTemplateScript);
2354 void KateView::startCompletion( const KTextEditor::Range & word, KTextEditor::CodeCompletionModel * model )
2389 void KateView::sendCompletionExecuted(const KTextEditor::Cursor& position, KTextEditor::CodeCompletionModel* model, const QModelIndex& index)
2406 m_doc->paste( this, textToPaste ? *textToPaste : QApplication::clipboard()->text(QClipboard::Clipboard) );
3111 kDebug() << "trigger attribute changed from" << startLine << "to" << endLine << "rangeWithAttribute" << rangeWithAttribute;
3150 kDebug() << "delayed attribute changed from" << m_lineToUpdateMin << "to" << m_lineToUpdateMax;
3175 QSet<Kate::TextRange *> &oldSet = (activationType == KTextEditor::Attribute::ActivateMouseIn) ? m_rangesMouseIn : m_rangesCaretIn;
3178 KTextEditor::Cursor currentCursor = (activationType == KTextEditor::Attribute::ActivateMouseIn) ? m_viewInternal->getMouse() : m_viewInternal->getCursor ();
3189 QList<Kate::TextRange *> rangesForCurrentCursor = m_doc->buffer().rangesForLine (currentCursor.line(), this, false);
3194 if ((!range->attribute() || !range->attribute()->dynamicAttribute (activationType)) && !range->feedback())
3199 ? (currentCursor < range->start().toCursor ()) : (currentCursor <= range->start().toCursor ()))
3238 if (range->toRange().isValid() && range->attribute() && range->attribute()->dynamicAttribute (activationType))
3265 m_notificationLayout->insertWidget(0, m_floatTopMessageWidget, 0, Qt::AlignTop | Qt::AlignRight);
3266 connect(this, SIGNAL(displayRangeChanged(KateView*)), m_floatTopMessageWidget, SLOT(startAutoHideTimer()));
3267 connect(this, SIGNAL(cursorPositionChanged(KTextEditor::View*, const KTextEditor::Cursor&)), m_floatTopMessageWidget, SLOT(startAutoHideTimer()));
3273 m_notificationLayout->addWidget(m_floatBottomMessageWidget, 0, Qt::AlignBottom | Qt::AlignRight);
3274 connect(this, SIGNAL(displayRangeChanged(KateView*)), m_floatBottomMessageWidget, SLOT(startAutoHideTimer()));
3275 connect(this, SIGNAL(cursorPositionChanged(KTextEditor::View*, const KTextEditor::Cursor&)), m_floatBottomMessageWidget, SLOT(startAutoHideTimer()));
void editEnd(int editTagLineStart, int editTagLineEnd, bool tagFrom)
Definition: kateviewinternal.cpp:3391
void align(KateView *view, const KTextEditor::Range &range)
Definition: katedocument.cpp:2909
bool canConvert(Type t) const
void cursorPrevChar(bool sel=false)
Definition: kateviewinternal.cpp:1092
void updateViModeBarMode()
Update vi mode statusbar according to the current mode.
Definition: kateview.cpp:1568
const QString getVerbatimKeys() const
Definition: kateviinputmodemanager.cpp:566
void writeConfig(KConfig *config=0)
Write editor configuration to given config object.
Definition: kateglobal.cpp:277
void clear()
void viEnterNormalMode()
set normal mode to be the active vi mode and perform the needed setup work
Definition: kateviinputmodemanager.cpp:484
bool tagLines(int start, int end, bool realLines=false)
Definition: kateview.cpp:1888
QMenu * defaultContextMenu(QMenu *menu=0L) const
Definition: kateview.cpp:2874
void setReplacementPattern(const QString &replacementPattern)
Set the current replacement pattern.
Definition: katesearchbar.cpp:225
KTextEditor::MovingRangeFeedback * feedback() const
Gets the active MovingRangeFeedback for this range.
Definition: katetextrange.h:195
QString & append(QChar ch)
void setShortcutContext(Qt::ShortcutContext context)
const QColor & selectionColor() const
Definition: kateconfig.cpp:2348
QScriptValue i18n(QScriptContext *context, QScriptEngine *engine)
i18n("text", arguments [optional])
Definition: katescripthelpers.cpp:186
void setContentsMargins(int left, int top, int right, int bottom)
void addBarWidget(KateViewBarWidget *newBarWidget)
Adds a widget to this viewbar.
Definition: kateviewhelpers.cpp:2478
void setSearchPattern(const QString &searchPattern)
Set the current search pattern.
Definition: katesearchbar.cpp:951
void sendCompletionExecuted(const KTextEditor::Cursor &position, KTextEditor::CodeCompletionModel *model, const QModelIndex &index)
Definition: kateview.cpp:2389
const KTextEditor::MovingCursor & start() const
Retrieve start cursor of this range, read-only.
Definition: katetextrange.h:119
const QMimeData * mimeData() const
bool tagRange(const KTextEditor::Range &range, bool realCursors)
Definition: kateviewinternal.cpp:2106
const QColor & replaceHighlightColor() const
Definition: kateconfig.cpp:2708
int column() const
Retrieve the column on which this cursor is situated.
Definition: katetextcursor.h:141
void setAnnotationBorderOn(bool enable)
Definition: kateviewhelpers.cpp:1303
void setFoldingColor(const QColor &col)
Definition: kateconfig.cpp:2537
virtual void startCompletion(const KTextEditor::Range &word, KTextEditor::CodeCompletionModel *model)
Definition: kateview.cpp:2354
QScriptValue i18nc(QScriptContext *context, QScriptEngine *engine)
i18nc("context", "text", arguments [optional])
Definition: katescripthelpers.cpp:210
bool rangePointerValid(TextRange *range) const
Check if the given range pointer is still valid.
Definition: katetextbuffer.h:429
void configDialog(QWidget *parent)
Shows a config dialog for the part, changes will be applied to the editor, but not saved anywhere aut...
Definition: kateglobal.cpp:306
void bottomOfView(bool sel=false)
Definition: kateviewinternal.cpp:1504
void setCaretStyle(KateRenderer::caretStyles style, bool repaint=false)
Set the caret's style.
Definition: kateview.cpp:2413
QVariant data() const
void setText(const QString &text, bool selected=true)
Definition: kateviewhelpers.cpp:839
void setScrollBarMiniMapAll(bool on)
Definition: kateconfig.cpp:1539
QString getCommentStart(int attrib=0) const
Definition: katehighlight.cpp:1157
void editSetCursor(const KTextEditor::Cursor &cursor)
Definition: kateviewinternal.cpp:3445
void createActions(KActionCollection *ac)
Definition: spellingmenu.cpp:95
Definition: katemodemenu.h:33
virtual bool isAutomaticInvocationEnabled() const
Definition: kateview.cpp:2379
void onTheFlySpellCheckingEnabled(bool enable)
Definition: katedocument.cpp:5148
void pageUp(bool sel=false, bool half=false)
Definition: kateviewinternal.cpp:1544
Definition: katesearchbar.h:47
QPoint cursorToCoordinate(const KTextEditor::Cursor &cursor, bool realCursor=true, bool includeBorder=true) const
Definition: kateviewinternal.cpp:739
Inserts a template and offers advanced snippet features, like navigation and mirroring.
Definition: katetemplatehandler.h:73
virtual bool mouseTrackingEnabled() const
Definition: kateview.cpp:2329
virtual bool documentReload()
Reloads the current document from disk if possible.
Definition: katedocument.cpp:3806
void updateMenu(KateDocument *doc)
Definition: katehighlightmenu.cpp:66
Definition: katesearchbar.h:73
void showViModeEmulatedCommandBar()
Definition: kateview.cpp:1560
void readSessionConfig(const KConfigGroup &)
Definition: kateview.cpp:1357
T value() const
void copyToClipboard(const QString &text)
Copy text to clipboard an remember it in the history.
Definition: kateglobal.cpp:550
bool tagLine(const KTextEditor::Cursor &virtualCursor)
Definition: kateview.cpp:1878
Definition: katedialogs.h:115
void slotClipboardHistoryChanged()
Definition: kateview.cpp:1259
void setSelectionColor(const QColor &col)
Definition: kateconfig.cpp:2356
const_iterator insert(const T &value)
void toggleOnTheFlySpellCheck(bool b)
Definition: kateview.cpp:3091
void setFrameStyle(int style)
void addSpacing(int size)
bool setCursorPosition(KTextEditor::Cursor position)
Definition: kateview.cpp:2418
KTextEditor::AnnotationModel * annotationModel() const
Definition: kateview.cpp:3068
void bomSetByUser()
Set that the BOM marker is forced via the tool menu.
Definition: katedocument.cpp:1536
void removeView(KTextEditor::View *view)
Definition: katepartpluginmanager.cpp:136
Definition: spellcheckdialog.h:49
Kate::TextLine plainKateTextLine(uint i)
Definition: katedocument.cpp:4712
void indent(KTextEditor::Range range, int change)
Definition: katedocument.cpp:2899
bool tagRange(const KTextEditor::Range &range, bool realLines=false)
Definition: kateview.cpp:1883
Definition: katebookmarks.h:34
virtual void registerCompletionModel(KTextEditor::CodeCompletionModel *model)
Definition: kateview.cpp:2369
int fromVirtualColumn(int line, int column) const
Definition: katedocument.cpp:2580
void update()
const QStringList & clipboardHistory() const
Clipboard history, filled with text we ever copied to clipboard via copyToClipboard.
Definition: kateglobal.h:430
void showDialog(KateView *view)
Show the snippet dialog, used by most simple apps using just KatePart.
Definition: katesnippetglobal.cpp:61
KateViInputModeManager * getViInputModeManager()
Definition: kateview.cpp:1587
void comment(KateView *view, uint line, uint column, int change)
Definition: katedocument.cpp:3302
int size() const
bool cursorSelected(const KTextEditor::Cursor &cursor)
Definition: kateview.cpp:2083
bool unfoldRange(qint64 id, bool remove=false)
Unfold the given range.
Definition: katetextfolding.cpp:191
bool tagLines(int start, int end, bool realLines=false)
Definition: kateviewinternal.cpp:2020
const QColor & lineNumberColor() const
Definition: kateconfig.cpp:2582
void createActions(KActionCollection *)
Definition: spellcheckdialog.cpp:62
Definition: kateschema.h:80
void unregisterCompletionModel(KTextEditor::CodeCompletionModel *model)
Definition: katecompletionwidget.cpp:1220
void setScrollBarMiniMapWidth(int width)
Definition: kateview.cpp:1466
Definition: katehighlightmenu.h:30
void initFrom(const QWidget *widget)
virtual const KTextEditor::Range & selectionRange() const
Definition: kateview.cpp:2815
void cursorToMatchingBracket(bool sel=false)
Definition: kateviewinternal.cpp:1487
Definition: katedocument.h:734
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
void setIconBorderOn(bool enable)
Definition: kateviewhelpers.cpp:1291
bool isRightToLeft() const
void setFoldingMarkersOn(bool enable)
Definition: kateviewhelpers.cpp:1377
void setConfigValue(const QString &key, const QVariant &value)
Definition: kateview.cpp:2958
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
QString number(int n, int base)
void registerView(KateView *view)
register view at the factory this allows us to loop over all views for example on config changes ...
Definition: kateglobal.cpp:488
void append(const T &value)
QVector< QPair< qint64, FoldingRangeFlags > > foldingRangesStartingOnLine(int line) const
Queries which folding ranges start at the given line and returns the id + flags for all of them...
Definition: katetextfolding.cpp:476
This is the code completion's main widget, and also contains the core interface logic.
Definition: katecompletionwidget.h:55
uint toUInt(bool *ok) const
void cursorNextChar(bool sel=false)
Definition: kateviewinternal.cpp:1100
void setLayout(QLayout *layout)
void installEventFilter(QObject *filterObj)
int toInt(bool *ok) const
virtual bool setSelection(const KTextEditor::Range &selection)
Definition: kateview.cpp:1956
QClipboard * clipboard()
void transform(KateView *view, const KTextEditor::Cursor &, TextTransform)
Handling uppercase, lowercase and capitalize for the view.
Definition: katedocument.cpp:3384
void uppercase()
Uppercases selected text, or an alphabetic character next to the cursor.
Definition: kateview.cpp:2538
void configChanged()
void editEnd(int editTagLineStart, int editTagLineEnd, bool tagFrom)
Definition: kateview.cpp:1866
void setFocus()
KateSnippetGlobal * snippetGlobal()
global instance of the snippet handling lazy constructed on first use to allow it to use the session ...
Definition: kateglobal.cpp:253
bool scrollBarMiniMapAll()
Definition: kateviewinternal.h:73
void setDynWrapIndicators(int state)
Definition: kateviewhelpers.cpp:1364
virtual void unregisterCompletionModel(KTextEditor::CodeCompletionModel *model)
Definition: kateview.cpp:2374
QPoint cursorToCoordinate(const KTextEditor::Cursor &cursor) const
Definition: kateview.cpp:2433
bool viInputModeStealKeys() const
Definition: kateconfig.cpp:1824
void postMessage(KTextEditor::Message *message, QList< QSharedPointer< QAction > > actions)
Used by Document::postMessage().
Definition: kateview.cpp:3254
void setView(KTextEditor::View *view)
Sets the currently active view for this range.
Definition: katetextrange.cpp:243
bool isEmpty() const
objectName
Definition: kateviewinternal.h:58
bool isEmpty() const
void setViRelLineNumbersOn(bool enable)
Definition: kateviewhelpers.cpp:1341
This class implements a message widget based on KMessageWidget.
Definition: katemessagewidget.h:42
int line() const
Retrieve the line on which this cursor is situated.
Definition: katetextcursor.cpp:132
const KTextEditor::Range toRange() const
Convert this clever range into a dumb one.
Definition: katetextrange.h:143
virtual bool insertTemplateTextImplementation(const KTextEditor::Cursor &, const QString &templateString, const QMap< QString, QString > &initialValues)
Definition: kateview.cpp:2275
void setLineNumberColor(const QColor &col)
Definition: kateconfig.cpp:2590
void completionExecuted(KTextEditor::View *view, const KTextEditor::Cursor &position, KTextEditor::CodeCompletionModel *model, const QModelIndex &)
Definition: spellingmenu.h:40
void registerCompletionModel(KTextEditor::CodeCompletionModel *model)
Definition: katecompletionwidget.cpp:1203
void setCaretStyle(KateRenderer::caretStyles style, bool repaint=false)
Set the caret's style.
Definition: kateviewinternal.cpp:1835
void writeSessionConfig(KConfigGroup &config)
Definition: kateviinputmodemanager.cpp:624
void setBackgroundColor(const QColor &col)
Definition: kateconfig.cpp:2335
void setReplacementPattern(const QString &replacementPattern)
Set the current replacement pattern.
Definition: kateview.cpp:2481
void hide()
void updateRangesIn(KTextEditor::Attribute::ActivationType activationType)
check if ranges changed for mouse in and caret in
Definition: kateview.cpp:3169
QString replacementPattern() const
Definition: katesearchbar.cpp:236
void setMargin(int margin)
void setScrollBarMiniMapAll(bool enable)
Definition: kateview.cpp:1456
void delayedUpdateOfView()
Delayed update for view after text ranges changed.
Definition: katesearchbar.h:72
Definition: katedocument.h:734
static KatePartPluginManager * self()
Definition: katepartpluginmanager.cpp:70
void dropEventPass(QDropEvent *)
void annotationModelChanged(KTextEditor::AnnotationModel *oldmodel, KTextEditor::AnnotationModel *newmodel)
Definition: kateviewhelpers.cpp:2232
Definition: kateview.h:77
void setLineNumbersOn(bool enable)
Definition: kateviewhelpers.cpp:1328
void unfoldLine(int startLine)
Try to unfold all foldings starting at the given line.
Definition: kateview.cpp:1125
void accept()
void slotTextInserted(KTextEditor::View *view, const KTextEditor::Cursor &position, const QString &text)
Definition: kateview.cpp:2270
void setSearchPattern(const QString &searchPattern)
Set the current search pattern.
Definition: kateview.cpp:2476
virtual bool setMouseTrackingEnabled(bool enable)
Definition: kateview.cpp:2335
Definition: katedocument.h:74
void setAutomaticCompletionInvocation(bool on)
Definition: kateconfig.cpp:1889
This action provides a list of available indenters and gets plugged into the KateView's KActionCollec...
Definition: kateautoindent.h:235
bool isAnnotationBorderVisible() const
Definition: kateview.cpp:3078
void readSessionConfig(const KConfigGroup &config)
Definition: kateviinputmodemanager.cpp:588
void userInvokedCompletion()
Definition: katecompletionwidget.cpp:1322
void pageDown(bool sel=false, bool half=false)
Definition: kateviewinternal.cpp:1586
Tools > Scripts menu This menu is filled with the command line scripts exported via the scripting sup...
Definition: katescriptaction.h:55
static void nextMatchForSelection(KateView *view, SearchDirection searchDirection)
Definition: katesearchbar.cpp:1237
Definition: kateviewhelpers.h:414
bool contains(const T &value) const
bool isLineVisible(int line, qint64 *foldedRangeId=0) const
Query if a given line is visible.
Definition: katetextfolding.cpp:281
void capitalize()
Capitalizes the selection (makes each word start with an uppercase) or the word under the cursor...
Definition: kateview.cpp:2561
void repaint()
void setSearchHighlightColor(const QColor &col)
Definition: kateconfig.cpp:2695
Definition: katedialogs.h:135
KTextEditor::Cursor cursorPositionVirtual() const
Definition: kateview.cpp:2428
void postMessage(KTextEditor::Message *message, QList< QSharedPointer< QAction > > actions)
Post a new incoming message.
Definition: katemessagewidget.cpp:186
void setInsertBehaviors(InsertBehaviors insertBehaviors)
Set insert behaviors.
Definition: katetextrange.cpp:68
bool isCompletionActive() const
Definition: katecompletionwidget.cpp:748
void setAnnotationModel(KTextEditor::AnnotationModel *model)
Definition: kateview.cpp:3061
QList< TextRange * > rangesForLine(int line, KTextEditor::View *view, bool rangesWithAttributeOnly) const
Return the ranges which affect the given line.
Definition: katetextbuffer.cpp:872
const KTextEditor::MovingCursor & end() const
Retrieve end cursor of this range, read-only.
Definition: katetextrange.h:131
void addView(KTextEditor::View *view)
Definition: katepartpluginmanager.cpp:124
bool remove(const T &value)
bool automaticCompletionInvocation() const
Definition: kateconfig.cpp:1881
Definition: katewordcompletion.h:85
void tagSelection(const KTextEditor::Range &oldSelection)
Definition: kateview.cpp:2118
void prepareForDynWrapChange()
Definition: kateviewinternal.cpp:247
void updateViModeBarCmd()
Update vi mode statusbar with the (partial) vi command being typed.
Definition: kateview.cpp:1575
void showBarWidget(KateViewBarWidget *barWidget)
Shows barWidget that was previously added with addBarWidget.
Definition: kateviewhelpers.cpp:2542
void setAnnotationBorderVisible(bool visible)
Definition: kateview.cpp:3073
QString getCommentSingleLineStart(int attrib=0) const
Definition: katehighlight.cpp:1167
KateViEmulatedCommandBar * viModeEmulatedCommandBar()
Definition: kateview.cpp:3051
KToggleAction * m_toggleOnTheFlySpellCheck
Definition: kateview.h:761
KateViInputModeManager * resetViInputModeManager()
Replace ViInputModeManager by new one.
Definition: kateview.cpp:1592
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
void startCompletion(KTextEditor::CodeCompletionModel::InvocationType invocationType, const QList< KTextEditor::CodeCompletionModel * > &models=QList< KTextEditor::CodeCompletionModel * >())
Definition: katecompletionwidget.cpp:286
void notifyAboutRangeChange(int startLine, int endLine, bool rangeWithAttribute)
Attribute of a range changed or range with attribute changed in given line range. ...
Definition: kateview.cpp:3107
void setRange(const KTextEditor::Range &range)
Set the range of this range.
Definition: katetextrange.cpp:122
const QColor & searchHighlightColor() const
Definition: kateconfig.cpp:2687
bool isRecordingMacro()
Definition: kateviinputmodemanager.cpp:341
bool isOnTheFlySpellCheckingEnabled() const
Definition: katedocument.cpp:5167
static QString modeToString(ViMode mode)
convert mode to string representation for user
Definition: kateviinputmodemanager.cpp:886
void setZDepth(qreal zDepth)
Set the current Z-depth of this range.
Definition: katetextrange.cpp:306
Definition: kateviewhelpers.h:482
int length() const
const QColor & backgroundColor() const
Definition: kateconfig.cpp:2327
virtual QString text(const KTextEditor::Range &range, bool blockwise=false) const
Definition: katedocument.cpp:337
bool toBool() const
bool setCursorPositionVisual(const KTextEditor::Cursor &position)
Definition: kateview.cpp:2448
qint64 newFoldingRange(const KTextEditor::Range &range, FoldingRangeFlags flags=FoldingRangeFlags())
Create a new folding range.
Definition: katetextfolding.cpp:99
int virtualCursorColumn() const
Return the virtual cursor column, each tab is expanded into the document's tabWidth characters...
Definition: kateview.cpp:1944
void setIconBarColor(const QColor &col)
Definition: kateconfig.cpp:2516
int toVirtualColumn(int line, int column) const
Definition: katedocument.cpp:2565
void insertWidget(int index, QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void createSnippet(KateView *view)
Create snippet for given view, e.g.
Definition: katesnippetglobal.cpp:132
void enableTextHints(int timeout)
Definition: kateviewinternal.cpp:3359
Definition: katedocument.h:734
void editSetCursor(const KTextEditor::Cursor &cursor)
Definition: kateview.cpp:1871
Definition: kateconfig.h:381
void setScrollBarMiniMapWidth(int width)
Definition: kateconfig.cpp:1560
bool tagLine(const KTextEditor::Cursor &virtualCursor)
Definition: kateviewinternal.cpp:2004
bool isOverwriteMode() const
Return values for "save" related commands.
Definition: kateview.cpp:1214
void reflectOnTheFlySpellCheckStatus(bool enabled)
Definition: kateview.cpp:3096
KTextEditor::Cursor coordinatesToCursor(const QPoint &coord) const
Definition: kateview.cpp:2438
KTextEditor::Attribute::Ptr attribute() const
Gets the active Attribute for this range.
Definition: katetextrange.h:173
Definition: kateviewhelpers.h:250
void setReplaceHighlightColor(const QColor &col)
Definition: kateconfig.cpp:2716
bool lineEndSelected(const KTextEditor::Cursor &lineEndPos)
Definition: kateview.cpp:2101
void editStart()
Enclose editor actions with editStart() and editEnd() to group them.
Definition: katedocument.cpp:776
Type type() const
void removeView(KTextEditor::View *)
removes the view from the list of views.
Definition: katedocument.cpp:2541
QPoint cursorPositionCoordinates() const
Definition: kateview.cpp:2443
Definition: kateviewhelpers.h:325
int size() const
Definition: katetemplatescript.h:28
void importFoldingRanges(const QVariantList &folds)
Import the folding ranges given as a QVariantList like read from configs.
Definition: katetextfolding.cpp:905
bool isInWord(QChar c, int attrib=0) const
Definition: katehighlight.cpp:1122
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QVariantList exportFoldingRanges() const
Return the current known folding ranges a QVariantList to store in configs.
Definition: katetextfolding.cpp:874
bool setCursorPositionInternal(const KTextEditor::Cursor &position, uint tabwidth=1, bool calledExternally=false)
Definition: kateview.cpp:1293
QPoint cursorCoordinates(bool includeBorder=true) const
Definition: kateviewinternal.cpp:767
void lowercase()
Lowercases selected text, or an alphabetic character next to the cursor.
Definition: kateview.cpp:2556
int findModifiedLine(int startLine, bool down)
Definition: katedocument.cpp:5517
void completionAborted(KTextEditor::View *view)
A KateViewBarWidget that attempts to emulate some of the features of Vim's own command bar...
Definition: kateviemulatedcommandbar.h:40
virtual bool removeText(const KTextEditor::Range &range, bool block=false)
Definition: katedocument.cpp:633
void setEnabled(bool)
void setSpacing(int spacing)
void setDynWordWrapIndicators(int mode)
Definition: kateconfig.cpp:1434
KTextEditor::Cursor coordinatesToCursor(const QPoint &coord, bool includeBorder=true) const
Definition: kateviewinternal.cpp:2791
void addLayout(QLayout *layout, int stretch)
KateTemplateScript * templateScript(KTextEditor::TemplateScript *templateScript)
Definition: katescriptmanager.cpp:410
virtual void setAutomaticInvocationEnabled(bool enabled=true)
Definition: kateview.cpp:2384
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 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:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.