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

kate

  • kate
  • interfaces
katecmd.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2001, 2003 Christoph Cullmann <cullmann@kde.org>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #ifndef _KATE_CMD_H
20 #define _KATE_CMD_H
21 
22 #include "document.h"
23 
24 #include <kcompletion.h>
25 
26 #include <tqdict.h>
27 #include <tqstringlist.h>
28 
29 class KATEPARTINTERFACES_EXPORT KateCmd
30 {
31  private:
32  KateCmd ();
33 
34  public:
35  ~KateCmd ();
36 
37  static KateCmd *self ();
38 
39  bool registerCommand (Kate::Command *cmd);
40  bool unregisterCommand (Kate::Command *cmd);
41  Kate::Command *queryCommand (const TQString &cmd);
42 
43  TQStringList cmds ();
44  void appendHistory( const TQString &cmd );
45  const TQString fromHistory( uint i ) const;
46  uint historyLength() const { return m_history.count(); }
47 
48  private:
49  static KateCmd *s_self;
50  TQDict<Kate::Command> m_dict;
51  TQStringList m_cmds;
52  TQStringList m_history;
53 };
54 
61 class KATEPARTINTERFACES_EXPORT KateCmdShellCompletion : public TDECompletion
62 {
63  public:
64  KateCmdShellCompletion();
65 
72  TQString makeCompletion(const TQString &text);
73 
74  protected:
75  // Called by TDECompletion
76  void postProcessMatch( TQString *match ) const;
77  void postProcessMatches( TQStringList *matches ) const;
78  void postProcessMatches( TDECompletionMatches *matches ) const;
79 
80  private:
87  void splitText( const TQString &text, TQString &text_start, TQString &text_compl ) const;
88 
89  TQChar m_word_break_char;
90  TQChar m_quote_char1;
91  TQChar m_quote_char2;
92  TQChar m_escape_char;
93 
94  TQString m_text_start;
95  TQString m_text_compl;
96 
97 };
98 
99 #endif
KateCmdShellCompletion
A TDECompletion object that completes last ?unquoted? word in the string passed.
Definition: katecmd.h:62
Kate::Command
Kate Commands.
Definition: document.h:97
TDECompletionMatches
TDECompletion

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
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kate by doxygen 1.9.1
This website is maintained by Timothy Pearson.