• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdeio
 

tdeio/tdeio

  • tdeio
  • tdeio
kshellcompletion.h
1/* This file is part of the KDE libraries
2 Copyright (C) 2000 David Smith <dsmith@algonet.se>
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 as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KSHELLCOMPLETION_H
21#define KSHELLCOMPLETION_H
22
23#include <tqstring.h>
24#include <tqstringlist.h>
25
26#include "kurlcompletion.h"
27
28class KShellCompletionPrivate;
29
40class TDEIO_EXPORT KShellCompletion : public KURLCompletion
41{
42 TQ_OBJECT
43
44public:
48 KShellCompletion();
49
56 TQString makeCompletion(const TQString &text);
57
58protected:
59 // Called by TDECompletion
60 void postProcessMatch( TQString *match ) const;
61 void postProcessMatches( TQStringList *matches ) const;
62 void postProcessMatches( TDECompletionMatches *matches ) const;
63
64private:
65 // Find the part of text that should be completed
66 void splitText(const TQString &text, TQString &text_start, TQString &text_compl) const;
67 // Insert quotes and neseccary escapes
68 bool quoteText(TQString *text, bool force, bool skip_last) const;
69 TQString unquote(const TQString &text) const;
70
71 TQString m_text_start; // part of the text that was not completed
72 TQString m_text_compl; // part of the text that was completed (unchanged)
73
74 TQChar m_word_break_char;
75 TQChar m_quote_char1;
76 TQChar m_quote_char2;
77 TQChar m_escape_char;
78
79protected:
80 virtual void virtual_hook( int id, void* data );
81private:
82 KShellCompletionPrivate *d;
83};
84
85#endif // KSHELLCOMPLETION_H
KShellCompletion
This class does shell-like completion of file names.
Definition: kshellcompletion.h:41
KURLCompletion
This class does completion of URLs including user directories (~user) and environment variables.
Definition: kurlcompletion.h:42
KURLCompletion::makeCompletion
virtual TQString makeCompletion(const TQString &text)
Finds completions to the given text.
Definition: kurlcompletion.cpp:573

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • 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 tdeio/tdeio by doxygen 1.9.4
This website is maintained by Timothy Pearson.