• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KTextEditor

codecompletioninterface.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2005-2006 Hamish Rodda <rodda@kde.org>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License version 2 as published by the Free Software Foundation.
00007 
00008    This library is distributed in the hope that it will be useful,
00009    but WITHOUT ANY WARRANTY; without even the implied warranty of
00010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011    Library General Public License for more details.
00012 
00013    You should have received a copy of the GNU Library General Public License
00014    along with this library; see the file COPYING.LIB.  If not, write to
00015    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00016    Boston, MA 02110-1301, USA.
00017 */
00018 
00019 #ifndef KDELIBS_KTEXTEDITOR_CODECOMPLETIONINTERFACE_H
00020 #define KDELIBS_KTEXTEDITOR_CODECOMPLETIONINTERFACE_H
00021 
00022 #include <ktexteditor/ktexteditor_export.h>
00023 #include <QtCore/QObject>
00024 #include <ktexteditor/range.h>
00025 
00026 namespace KTextEditor {
00027 
00028 class CodeCompletionModel;
00029 
00092 class KTEXTEDITOR_EXPORT CodeCompletionInterface
00093 {
00094   public:
00095     virtual ~CodeCompletionInterface();
00096 
00100     virtual bool isCompletionActive() const = 0;
00101 
00105     virtual void startCompletion(const Range& word, CodeCompletionModel* model) = 0;
00106 
00113     virtual void abortCompletion() = 0;
00114 
00119     virtual void forceCompletion() = 0;
00120 
00126     virtual void registerCompletionModel(CodeCompletionModel* model) = 0;
00127 
00133     virtual void unregisterCompletionModel(CodeCompletionModel* model) = 0;
00134 
00138     virtual bool isAutomaticInvocationEnabled() const = 0;
00139 
00143     virtual void setAutomaticInvocationEnabled(bool enabled = true) = 0;
00144 
00145   //signals:
00146     //void completionExecuted(KTextEditor::View* view, const KTextEditor::Cursor& position, KTextEditor::CodeCompletionModel* model, int row);
00147     //void completionAborted(KTextEditor::View* view);
00148 };
00149 
00150 }
00151 
00152 Q_DECLARE_INTERFACE(KTextEditor::CodeCompletionInterface, "org.kde.KTextEditor.CodeCompletionInterface")
00153 
00154 #endif // KDELIBS_KTEXTEDITOR_CODECOMPLETIONINTERFACE_H

KTextEditor

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal