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

interfaces

  • interfaces
  • tdetexteditor
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 __tdetexteditor_configinterfaceextension_h__
20 #define __tdetexteditor_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 = TDEIcon::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
KTextEditor::ConfigInterfaceExtension
This is an interface to extend the configuration of the Document, Plugin and PluginViewInterface clas...
Definition: configinterfaceextension.h:67
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::Plugin
Basic KTextEditor plugin class.
Definition: plugin.h:36
TDEIcon::SizeSmall

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
  •   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 by doxygen 1.8.8
This website is maintained by Timothy Pearson.