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

interfaces

  • interfaces
  • ktexteditor
markinterfaceextension.h
1 /* This file is part of the KDE project
2  Copyright (C) 2002 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 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 __ktexteditor_markinterface_extension_h__
21 #define __ktexteditor_markinterface_extension_h__
22 
23 #include <tqptrlist.h>
24 #include <tqpixmap.h>
25 #include <tqstring.h>
26 #include "markinterface.h"
27 
28 class TQCString;
29 
30 namespace KTextEditor
31 {
32 
33 
39 class KTEXTEDITOR_EXPORT MarkInterfaceExtension
40 {
41  friend class PrivateMarkInterfaceExtension;
42 
43  public:
44  MarkInterfaceExtension ();
45  virtual ~MarkInterfaceExtension ();
46 
47  unsigned int markInterfaceExtensionNumber () const;
48 
49  protected:
50  void setMarkInterfaceExtensionDCOPSuffix (const TQCString &suffix);
51 
52  public:
53  virtual void setPixmap(MarkInterface::MarkTypes, const TQPixmap &)=0;
54  virtual void setDescription(MarkInterface::MarkTypes, const TQString &)=0;
55  virtual void setMarksUserChangable(uint markMask)=0;
56 
57  enum MarkChangeAction {
58  MarkAdded=0,
59  MarkRemoved=1
60  };
61  //
62  // slots !!!
63  //
64  public:
65 
66  //
67  // signals !!!
68  //
69  public:
70  virtual void markChanged (KTextEditor::Mark mark,
71  KTextEditor::MarkInterfaceExtension::MarkChangeAction action) = 0;
72 
73  private:
74  class PrivateMarkInterfaceExtension *d;
75  static unsigned int globalMarkInterfaceExtensionNumber;
76  unsigned int myMarkInterfaceExtensionNumber;
77 };
78 
79 KTEXTEDITOR_EXPORT MarkInterfaceExtension *markInterfaceExtension (class Document *doc);
80 
81 }
82 
83 #endif
KTextEditor::MarkInterfaceExtension
This is an interface for custom extensions of the MarkInterface.
Definition: markinterfaceextension.h:39
KTextEditor::Document
The main class representing a text document.
Definition: document.h:31
KTextEditor
KTextEditor is KDE's standard text editing KPart interface.
Definition: blockselectiondcopinterface.h:9
KTextEditor::MarkInterface::MarkTypes
MarkTypes
Pre-defined mark types.
Definition: markinterface.h:103

interfaces

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

interfaces

Skip menu "interfaces"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for interfaces by doxygen 1.8.8
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |