24#include <kcompletion.h>
27#include <tqstringlist.h>
29class KATEPARTINTERFACES_EXPORT KateCmd
37 static KateCmd *self ();
39 bool registerCommand (Kate::Command *cmd);
40 bool unregisterCommand (Kate::Command *cmd);
41 Kate::Command *queryCommand (
const TQString &cmd);
44 void appendHistory(
const TQString &cmd );
45 const TQString fromHistory( uint i )
const;
46 uint historyLength()
const {
return m_history.count(); }
49 static KateCmd *s_self;
50 TQDict<Kate::Command> m_dict;
52 TQStringList m_history;
61class KATEPARTINTERFACES_EXPORT KateCmdShellCompletion :
public TDECompletion
64 KateCmdShellCompletion();
76 void postProcessMatch( TQString *
match )
const;
77 void postProcessMatches( TQStringList *
matches )
const;
87 void splitText(
const TQString &text, TQString &text_start, TQString &text_compl )
const;
89 TQChar m_word_break_char;
94 TQString m_text_start;
95 TQString m_text_compl;
TQString makeCompletion(const TQString &text)
Finds completions to the given text.
void match(const TQString &item)
void matches(const TQStringList &matchlist)