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

interfaces/tdetexteditor

  • interfaces
  • tdetexteditor
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 __tdetexteditor_markinterface_extension_h__
21 #define __tdetexteditor_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/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
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for interfaces/tdetexteditor by doxygen 1.8.8
This website is maintained by Timothy Pearson.