• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

  • Kate
  • CommandExtension
Public Member Functions | List of all members
Kate::CommandExtension Class Reference

#include <document.h>

Inheritance diagram for Kate::CommandExtension:
KateCommands::CoreCommands

Public Member Functions

virtual void flagCompletions (TQStringList &)
 
virtual TDECompletion * completionObject (const TQString &cmdname, Kate::View *)
 
virtual bool wantsToProcessText (const TQString &cmdname)
 
virtual void processText (Kate::View *view, const TQString &text)
 

Detailed Description

Extension to the Command interface, allowing to interact with commands during typing.

This allows for completion and for example the isearch plugin. If you develop a command that wants to complete or process text as thu user types the arguments, or that has flags, you can have your command inherit this class.

Definition at line 129 of file document.h.

Constructor & Destructor Documentation

◆ CommandExtension()

Kate::CommandExtension::CommandExtension ( )
inline

Definition at line 132 of file document.h.

◆ ~CommandExtension()

virtual Kate::CommandExtension::~CommandExtension ( )
inlinevirtual

Definition at line 133 of file document.h.

Member Function Documentation

◆ completionObject()

virtual TDECompletion * Kate::CommandExtension::completionObject ( const TQString &  cmdname,
Kate::View *   
)
inlinevirtual
Returns
a TDECompletion object that will substitute the command line default one while typing the first argument to the command. The text will be added to the command seperated by one space character.

Implement this method if your command can provide a completion object.

Parameters
cmdnameThe command name associated with this request.

Reimplemented in KateCommands::CoreCommands.

Definition at line 157 of file document.h.

◆ flagCompletions()

virtual void Kate::CommandExtension::flagCompletions ( TQStringList &  )
inlinevirtual

Fill in a list of flags to complete from.

Each flag is a single letter, any following text in the string is taken to be a description of the flag's meaning, and showed to the user as a hint. Implement this method if your command has flags.

This method is called each time the flag string in the typed command is changed, so that the available flags can be adjusted. When completions are displayed, existing flags are left out.

Definition at line 146 of file document.h.

◆ processText()

virtual void Kate::CommandExtension::processText ( Kate::View *  view,
const TQString &  text 
)
inlinevirtual

This is called by the commandline each time the argument text for the command changes, if wantsToProcessText() returns true.

Parameters
viewThe current view
textThe current command text typed by the user.

Definition at line 177 of file document.h.

◆ wantsToProcessText()

virtual bool Kate::CommandExtension::wantsToProcessText ( const TQString &  cmdname)
inlinevirtual
Returns
whether this command wants to process text interactively given the cmdname. If true, the command's processText() method is called when the text in the command line is changed.

Reimplement this to return true, if your commands wants to process the text as typed.

Parameters
cmdnamethe command name associated with this query.

Definition at line 169 of file document.h.


The documentation for this class was generated from the following file:
  • document.h

kate

Skip menu "kate"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kate

Skip menu "kate"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kate by doxygen 1.9.4
This website is maintained by Timothy Pearson.