#include <kshellcompletion.h>
Inheritance diagram for KShellCompletion:

Public Methods | |
| KShellCompletion () | |
| QString | makeCompletion (const QString &) |
Protected Methods | |
| void | postProcessMatch (QString *match) const |
| void | postProcessMatches (QStringList *matches) const |
| void | postProcessMatches (KCompletionMatches *matches) const |
| virtual void | virtual_hook (int id, void *data) |
This class does shell-like completion of file names. A string passed to makeCompletion() will be interpreted as a shell command line. Completion will be done on the last argument on the line. Returned matches consist of the first arguments (uncompleted) plus the completed last argument.
Definition at line 41 of file kshellcompletion.h.
|
|
Constructs a KShellCompletion object. |
|
|
Finds completions to the given text. The first match is returned and emitted in the signal match() Reimplemented from KURLCompletion. |
|
|
This method is called after a completion is found and before the matching string is emitted. You can override this method to modify the string that will be emitted. This is necessary e.g. in KURLCompletion(), where files with spaces in their names are shown escaped ("filename\ with\ spaces"), but stored unescaped inside KCompletion. Never delete that pointer! Default implementation does nothing.
Reimplemented from KURLCompletion. |
|
|
This method is called before a list of all available completions is emitted via matches. You can override this method to modify the found items before match() or matches() are emitted. Never delete that pointer! Default implementation does nothing.
Reimplemented from KURLCompletion. |
|
|
This method is called before a list of all available completions is emitted via matches. You can override this method to modify the found items before match() or matches are emitted. Never delete that pointer! Default implementation does nothing.
Reimplemented from KURLCompletion. |
1.2.18