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

interfaces/ktexteditor

  • interfaces
  • ktexteditor
configinterfaceextension.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2001 Christoph Cullmann <cullmann@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 __ktexteditor_configinterfaceextension_h__
20 #define __ktexteditor_configinterfaceextension_h__
21 
22 #include <tqwidget.h>
23 #include <tqpixmap.h>
24 #include <kicontheme.h>
25 
26 namespace KTextEditor
27 {
28 
29 class KTEXTEDITOR_EXPORT ConfigPage : public TQWidget
30 {
31  Q_OBJECT
32 
33  public:
34  ConfigPage ( TQWidget *parent=0, const char *name=0 );
35  virtual ~ConfigPage ();
36 
37  //
38  // slots !!!
39  //
40  public:
44  virtual void apply () = 0;
45 
49  virtual void reset () = 0;
50 
54  virtual void defaults () = 0;
55 
56  signals:
60  void changed();
61 };
62 
67 class KTEXTEDITOR_EXPORT ConfigInterfaceExtension
68 {
69  friend class PrivateConfigInterfaceExtension;
70 
71  public:
72  ConfigInterfaceExtension();
73  virtual ~ConfigInterfaceExtension();
74 
75  unsigned int configInterfaceExtensionNumber () const;
76 
77  protected:
78  void setConfigInterfaceExtensionDCOPSuffix (const TQCString &suffix);
79 
80  //
81  // slots !!!
82  //
83  public:
87  virtual uint configPages () const = 0;
88 
94  virtual ConfigPage *configPage (uint number = 0, TQWidget *parent = 0, const char *name=0 ) = 0;
95 
96  virtual TQString configPageName (uint number = 0) const = 0;
97  virtual TQString configPageFullName (uint number = 0) const = 0;
98  virtual TQPixmap configPagePixmap (uint number = 0, int size = KIcon::SizeSmall) const = 0;
99 
100 
101  private:
102  class PrivateConfigInterfaceExtension *d;
103  static unsigned int globalConfigInterfaceExtensionNumber;
104  unsigned int myConfigInterfaceExtensionNumber;
105 };
106 
107 class Document;
108 class Plugin;
109 class ViewPlugin;
110 
111 KTEXTEDITOR_EXPORT ConfigInterfaceExtension *configInterfaceExtension (Document *doc);
112 KTEXTEDITOR_EXPORT ConfigInterfaceExtension *configInterfaceExtension (Plugin *plugin);
113 
114 }
115 
116 #endif

interfaces/ktexteditor

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

interfaces/ktexteditor

Skip menu "interfaces/ktexteditor"
  • 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/ktexteditor by doxygen 1.8.3.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |