• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

Kate

KateCmdShellCompletion Class Reference

A KCompletion object that completes last ?unquoted? word in the string passed. More...

#include <katecmd.h>

Inheritance diagram for KateCmdShellCompletion:

Inheritance graph
[legend]

List of all members.


Public Member Functions

 KateCmdShellCompletion ()
QString makeCompletion (const QString &text)

Protected Member Functions

void postProcessMatch (QString *match) const
void postProcessMatches (KCompletionMatches *matches) const
void postProcessMatches (QStringList *matches) const

Detailed Description

A KCompletion object that completes last ?unquoted? word in the string passed.

Do not mistake "shell" for anything related to quoting, this simply mimics shell tab completion by completing the last word in the provided text.

Definition at line 60 of file katecmd.h.


Constructor & Destructor Documentation

KateCmdShellCompletion::KateCmdShellCompletion (  ) 

Definition at line 129 of file katecmd.cpp.


Member Function Documentation

QString KateCmdShellCompletion::makeCompletion ( const QString &  text  ) 

Finds completions to the given text.

The first match is returned and emitted in the signal match().

Parameters:
text the text to complete
Returns:
the first match, or QString() if not found

Definition at line 138 of file katecmd.cpp.

void KateCmdShellCompletion::postProcessMatch ( QString *  match  )  const [protected]

Definition at line 149 of file katecmd.cpp.

void KateCmdShellCompletion::postProcessMatches ( KCompletionMatches *  matches  )  const [protected]

Definition at line 165 of file katecmd.cpp.

void KateCmdShellCompletion::postProcessMatches ( QStringList *  matches  )  const [protected]

Definition at line 157 of file katecmd.cpp.


The documentation for this class was generated from the following files:
  • katecmd.h
  • katecmd.cpp

Kate

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal