KateCmdShellCompletion Class Reference
#include <katecmd.h>
Inheritance diagram for KateCmdShellCompletion:

Public Member Functions | |
TQString | makeCompletion (const TQString &text) |
![]() | |
virtual TQString | makeCompletion (const TQString &string) |
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 |
virtual void | postProcessMatch (TQString *match) const |
virtual void | postProcessMatches (TQStringList *matches) const |
virtual void | postProcessMatches (TDECompletionMatches *matches) const |
Additional Inherited Members | |
![]() | |
enum | CompOrder |
![]() | |
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 () |
![]() | |
void | match (const TQString &item) |
void | matches (const TQStringList &matchlist) |
void | multipleMatches () |
![]() | |
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.
Constructor & Destructor Documentation
◆ KateCmdShellCompletion()
KateCmdShellCompletion::KateCmdShellCompletion | ( | ) |
Definition at line 125 of file katecmd.cpp.
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.
◆ postProcessMatch()
|
protectedvirtual |
Reimplemented from TDECompletion.
Definition at line 145 of file katecmd.cpp.
◆ postProcessMatches() [1/2]
|
protectedvirtual |
Reimplemented from TDECompletion.
Definition at line 161 of file katecmd.cpp.
◆ postProcessMatches() [2/2]
|
protectedvirtual |
Reimplemented from TDECompletion.
Definition at line 153 of file katecmd.cpp.
The documentation for this class was generated from the following files: