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

KTextEditor

  • sources
  • kde-4.12
  • kdelibs
  • interfaces
  • ktexteditor
annotationinterface.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  * Copyright 2008 Andreas Pakulat <apaku@gmx.de>
3  * Copyright 2008 Dominik Haumann <dhaumann kde org>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA
19  */
20 
21 #ifndef KDELIBS_KTEXTEDITOR_ANNOTATIONINTERFACE_H
22 #define KDELIBS_KTEXTEDITOR_ANNOTATIONINTERFACE_H
23 
24 #include <ktexteditor/ktexteditor_export.h>
25 
26 #include <QtCore/QObject>
27 
28 class QMenu;
29 
30 namespace KTextEditor
31 {
32 
33 class View;
34 
53 class KTEXTEDITOR_EXPORT AnnotationModel : public QObject
54 {
55  Q_OBJECT
56  public:
57 
58  virtual ~AnnotationModel() {}
59 
76  virtual QVariant data( int line, Qt::ItemDataRole role ) const = 0;
77 
78  Q_SIGNALS:
89  void reset();
90 
98  void lineChanged( int line );
99 };
100 
101 
150 class KTEXTEDITOR_EXPORT AnnotationInterface
151 {
152  public:
153  virtual ~AnnotationInterface() {}
154 
161  virtual void setAnnotationModel( AnnotationModel* model ) = 0;
162 
168  virtual AnnotationModel* annotationModel() const = 0;
169 
170 };
171 
172 
210 class KTEXTEDITOR_EXPORT AnnotationViewInterface : public AnnotationInterface
211 {
212  public:
213  virtual ~AnnotationViewInterface() {}
214 
221  virtual void setAnnotationBorderVisible( bool visible ) = 0;
222 
226  virtual bool isAnnotationBorderVisible() const = 0;
227 
228  //
229  // SIGNALS!!!
230  //
231  public:
243  virtual void annotationContextMenuAboutToShow( KTextEditor::View* view, QMenu* menu, int line ) = 0;
244 
253  virtual void annotationActivated( KTextEditor::View* view, int line ) = 0;
254 
261  virtual void annotationBorderVisibilityChanged( KTextEditor::View* view, bool visible ) = 0;
262 
263 };
264 
265 }
266 
267 Q_DECLARE_INTERFACE(KTextEditor::AnnotationInterface, "org.kde.KTextEditor.AnnotationInterface")
268 Q_DECLARE_INTERFACE(KTextEditor::AnnotationViewInterface, "org.kde.KTextEditor.AnnotationViewInterface")
269 
270 #endif
271 
272 // kate: space-indent on; indent-width 2; replace-tabs on;
QVariant
KTextEditor::AnnotationModel::~AnnotationModel
virtual ~AnnotationModel()
Definition: annotationinterface.h:58
QObject
KTextEditor::AnnotationViewInterface::~AnnotationViewInterface
virtual ~AnnotationViewInterface()
Definition: annotationinterface.h:213
ktexteditor_export.h
KTextEditor::AnnotationModel
An model for providing line annotation information.
Definition: annotationinterface.h:53
KTextEditor::AnnotationInterface::~AnnotationInterface
virtual ~AnnotationInterface()
Definition: annotationinterface.h:153
QMenu
KTextEditor::AnnotationViewInterface
Annotation interface for the View.
Definition: annotationinterface.h:210
reset
KGuiItem reset()
KTextEditor::View
A text widget with KXMLGUIClient that represents a Document.
Definition: view.h:145
KTextEditor::AnnotationInterface
A Document extension interface for handling Annotations.
Definition: annotationinterface.h:150
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:52:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KTextEditor

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal