KTextEditor
commandinterface.h
Go to the documentation of this file.
virtual void processText(KTextEditor::View *view, const QString &text)=0
This is called by the command line each time the argument text for the command changed,...
virtual KCompletion * completionObject(KTextEditor::View *view, const QString &cmdname)=0
Return a KCompletion object that will substitute the command line default one while typing the first ...
virtual bool wantsToProcessText(const QString &cmdname)=0
Check, whether the command wants to process text interactively for the given command with name cmdnam...
virtual void flagCompletions(QStringList &list)=0
Fill in a list of flags to complete from.
Command extension interface for the Editor.
Definition: commandinterface.h:234
virtual QList< Command * > commands() const =0
Get a list of all registered commands.
virtual Command * queryCommand(const QString &cmd) const =0
Query for the command cmd.
virtual bool unregisterCommand(Command *cmd)=0
Unregister the command cmd.
virtual bool registerCommand(Command *cmd)=0
Register a the new command cmd.
virtual QStringList commandList() const =0
Get a list of available command line strings.
virtual bool help(KTextEditor::View *view, const QString &cmd, QString &msg)=0
Shows help for the given view and cmd string.
virtual const QStringList & cmds()=0
Return a list of strings a command may begin with.
virtual bool exec(KTextEditor::View *view, const QString &cmd, QString &msg)=0
Execute the command for the given view and cmd string.
Extension interface for a Command making the exec method take a line range.
Definition: commandinterface.h:307
virtual bool exec(KTextEditor::View *view, const QString &cmd, QString &msg, const KTextEditor::Range &range)=0
Execute the command for the given range on the given view and cmd string.
virtual bool supportsRange(const QString &cmd)=0
Find out if a given command can act on a range.
An object representing a section of text, from one Cursor to another.
Definition: range.h:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.