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

kate

Public Member Functions | Protected Member Functions | List of all members
KateCmdShellCompletion Class Reference

#include <katecmd.h>

Inheritance diagram for KateCmdShellCompletion:
KCompletion

Public Member Functions

TQString makeCompletion (const TQString &text)
- Public Member Functions inherited from KCompletion
TQStringList substringCompletion (const TQString &string) const
TQString previousMatch ()
TQString nextMatch ()
virtual const TQString & lastMatch () const
TQStringList items () const
bool isEmpty () const
virtual void setCompletionMode (KGlobalSettings::Completion mode)
KGlobalSettings::Completion completionMode () const
virtual void setOrder (CompOrder order)
CompOrder order () const
virtual void setIgnoreCase (bool ignoreCase)
bool ignoreCase () const
TQStringList allMatches ()
TQStringList allMatches (const TQString &string)
KCompletionMatches allWeightedMatches ()
KCompletionMatches allWeightedMatches (const TQString &string)
virtual void setEnableSounds (bool enable)
bool isSoundsEnabled () const
bool hasMultipleMatches () const
void enableSounds ()
void disableSounds ()

Protected Member Functions

void postProcessMatch (TQString *match) const
void postProcessMatches (TQStringList *matches) const
void postProcessMatches (KCompletionMatches *matches) const
- Protected Member Functions inherited from KCompletion
virtual void virtual_hook (int id, void *data)

Additional Inherited Members

- Public Types inherited from KCompletion
enum  CompOrder
- Public Slots inherited from KCompletion
void slotMakeCompletion (const TQString &string)
void slotPreviousMatch ()
void slotNextMatch ()
void insertItems (const TQStringList &items)
virtual void setItems (const TQStringList &list)
void addItem (const TQString &item)
void addItem (const TQString &item, uint weight)
void removeItem (const TQString &item)
virtual void clear ()
- Signals inherited from KCompletion
void match (const TQString &item)
void matches (const TQStringList &matchlist)
void multipleMatches ()
- Public Attributes inherited from KCompletion
 Sorted
 Insertion
 Weighted
- Properties inherited from KCompletion
CompOrder order
bool ignoreCase
TQStringList items

Detailed Description

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

Dont 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 61 of file katecmd.h.

Member Function Documentation

TQString KateCmdShellCompletion::makeCompletion ( const TQString &  text)
virtual

Finds completions to the given text.

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

Parameters
textthe text to complete
Returns
the first match, or TQString::null if not found

Reimplemented from KCompletion.

Definition at line 134 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

kate

Skip menu "kate"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kate by doxygen 1.8.1.2
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |