KateCmdShellCompletion Class Reference
#include <katecmd.h>
Inheritance diagram for KateCmdShellCompletion:
Public Member Functions | |
TQString | makeCompletion (const TQString &text) |
Public Member Functions inherited from TDECompletion | |
TQStringList | substringCompletion (const TQString &string) const |
TQString | previousMatch () |
TQString | nextMatch () |
virtual const TQString & | lastMatch () const |
TQStringList | items () const |
bool | isEmpty () const |
virtual void | setCompletionMode (TDEGlobalSettings::Completion mode) |
TDEGlobalSettings::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) |
TDECompletionMatches | allWeightedMatches () |
TDECompletionMatches | 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 (TDECompletionMatches *matches) const |
Additional Inherited Members | |
Public Types inherited from TDECompletion | |
enum | CompOrder |
Public Slots inherited from TDECompletion | |
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 TDECompletion | |
void | match (const TQString &item) |
void | matches (const TQStringList &matchlist) |
void | multipleMatches () |
Public Attributes inherited from TDECompletion | |
Sorted | |
Insertion | |
Weighted | |
Detailed Description
A TDECompletion 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.
Member Function Documentation
◆ makeCompletion()
|
virtual |
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 TQString::null if not found
Reimplemented from TDECompletion.
Definition at line 134 of file katecmd.cpp.
The documentation for this class was generated from the following files: