• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • interfaces/tdetexteditor
 

interfaces/tdetexteditor

  • interfaces
  • tdetexteditor
codecompletioninterface.h
1/* This file is part of the KDE libraries
2 Copyright (C) 2001 Joseph Wenninger <jowenn@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 __tdetexteditor_codecompletioninterface_h__
20#define __tdetexteditor_codecompletioninterface_h__
21
22#include <tqstring.h>
23#include <tqstringlist.h>
24
25#include <tdelibs_export.h>
26
27namespace KTextEditor
28{
29
42class KTEXTEDITOR_EXPORT CompletionEntry
43{
44 public:
45 TQString type;
46 TQString text;
47 TQString prefix;
48 TQString postfix;
49 TQString comment;
50
51 TQString userdata;
52
53 bool operator==( const CompletionEntry &c ) const {
54 return ( c.type == type &&
55 c.text == text &&
56 c.postfix == postfix &&
57 c.prefix == prefix &&
58 c.comment == comment &&
59 c.userdata == userdata);
60 }
61};
62
86class KTEXTEDITOR_EXPORT CodeCompletionInterface
87{
88 friend class PrivateCodeCompletionInterface;
89
90 public:
91 CodeCompletionInterface();
92 virtual ~CodeCompletionInterface();
93
94 unsigned int codeCompletionInterfaceNumber () const;
95
96 protected:
97 void setCodeCompletionInterfaceDCOPSuffix (const TQCString &suffix);
98
99
100 public:
101 //
102 // slots !!!
103 //
107 virtual void showArgHint (TQStringList functionList, const TQString& strWrapping, const TQString& strDelimiter) = 0;
108
115 virtual void showCompletionBox (TQValueList<CompletionEntry> complList,int offset=0, bool casesensitive=true)=0;
116
117 //
118 // signals !!!
119 //
120 public:
121
122
133 virtual void completionAborted()=0;
134
146 virtual void completionDone()=0;
147
162 virtual void completionDone(CompletionEntry)=0;
163
174 virtual void argHintHidden()=0;
175
189 virtual void filterInsertString(CompletionEntry*,TQString*)=0;
190
191
192 private:
193 class PrivateCodeCompletionInterface *d;
194 static unsigned int globalCodeCompletionInterfaceNumber;
195 unsigned int myCodeCompletionInterfaceNumber;
196};
197
198KTEXTEDITOR_EXPORT CodeCompletionInterface *codeCompletionInterface (class View *view);
199
200}
201
202#endif
KTextEditor::CodeCompletionInterface
This is an interface for the KTextEditor::View class.
Definition: codecompletioninterface.h:87
KTextEditor::CodeCompletionInterface::completionDone
virtual void completionDone(CompletionEntry)=0
This signal is the same as completionDone(), but additionally it carries the information which comple...
KTextEditor::CodeCompletionInterface::argHintHidden
virtual void argHintHidden()=0
This signal is emitted when the argument hint disappears.
KTextEditor::CodeCompletionInterface::showArgHint
virtual void showArgHint(TQStringList functionList, const TQString &strWrapping, const TQString &strDelimiter)=0
This shows an argument hint.
KTextEditor::CodeCompletionInterface::filterInsertString
virtual void filterInsertString(CompletionEntry *, TQString *)=0
This signal is emitted just before a completion takes place.
KTextEditor::CodeCompletionInterface::showCompletionBox
virtual void showCompletionBox(TQValueList< CompletionEntry > complList, int offset=0, bool casesensitive=true)=0
This shows a completion list.
KTextEditor::CodeCompletionInterface::completionAborted
virtual void completionAborted()=0
This signal is emitted when the completion list disappears and no completion has been done.
KTextEditor::CodeCompletionInterface::completionDone
virtual void completionDone()=0
This signal is emitted when the completion list disappears and a completion has been inserted into te...
KTextEditor::CompletionEntry
An item for the completion popup.
Definition: codecompletioninterface.h:43
KTextEditor::View
The View class represents a single view of a Document .
Definition: view.h:33
KTextEditor
KTextEditor is KDE's standard text editing KPart interface.
Definition: blockselectiondcopinterface.h:10

interfaces/tdetexteditor

Skip menu "interfaces/tdetexteditor"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

interfaces/tdetexteditor

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