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

kate

  • kate
  • part
katefactory.h
1 /* This file is part of the KDE libraries
2  Copyright (C) 2001-2004 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 __KATE_FACTORY_H__
20 #define __KATE_FACTORY_H__
21 
22 #include "katejscript.h"
23 #include <tdeparts/factory.h>
24 
25 #include <ktrader.h>
26 #include <kinstance.h>
27 #include <tdeaboutdata.h>
28 
29 // katepart version must be a string in double quotes, format: "x.x"
30 #define KATEPART_VERSION "2.5"
31 
32 class KateCmd;
33 class KateFileTypeManager;
34 class KateSchemaManager;
35 class KateDocumentConfig;
36 class KateViewConfig;
37 class KateRendererConfig;
38 class KateDocument;
39 class KateRenderer;
40 class KateView;
41 class KateJScript;
42 class KateJScriptManager;
43 class KateIndentScriptManagerAbstract;
44 class KDirWatch;
45 class KVMAllocator;
46 
47 namespace Kate {
48  class Command;
49 }
50 
51 
52 class KateFactory
53 {
54  private:
58  KateFactory ();
59 
60  public:
64  ~KateFactory ();
65 
70  static KateFactory *self ();
71 
82  KParts::Part *createPartObject ( TQWidget *parentWidget, const char *widgetName,
83  TQObject *parent, const char *name, const char *classname,
84  const TQStringList &args );
85 
90  inline TDEInstance *instance () { return &m_instance; };
91 
97  void registerDocument ( KateDocument *doc );
98 
103  void deregisterDocument ( KateDocument *doc );
104 
110  void registerView ( KateView *view );
111 
116  void deregisterView ( KateView *view );
117 
123  void registerRenderer ( KateRenderer *renderer );
124 
129  void deregisterRenderer ( KateRenderer *renderer );
130 
135  inline TQPtrList<KateDocument> *documents () { return &m_documents; };
136 
141  inline TQPtrList<KateView> *views () { return &m_views; };
142 
147  inline TQPtrList<KateRenderer> *renderers () { return &m_renderers; };
148 
153  inline const TDETrader::OfferList &plugins () { return m_plugins; };
154 
159  inline KDirWatch *dirWatch () { return m_dirWatch; };
160 
166  inline KateFileTypeManager *fileTypeManager () { return m_fileTypeManager; };
167 
172  inline KateSchemaManager *schemaManager () { return m_schemaManager; };
173 
178  inline KateDocumentConfig *documentConfig () { return m_documentConfig; }
179 
184  inline KateViewConfig *viewConfig () { return m_viewConfig; }
185 
190  inline KateRendererConfig *rendererConfig () { return m_rendererConfig; }
191 
196  inline KVMAllocator *vm () { return m_vm; }
197 
201  KateJScript *jscript ();
202 
206  KateJScriptManager *jscriptManager () { return m_jscriptManager; }
207 
208 
213  KateIndentScript indentScript (const TQString &scriptname);
214 
215  private:
219  static KateFactory *s_self;
220 
224  TDEAboutData m_aboutData;
225 
229  TDEInstance m_instance;
230 
234  TQPtrList<KateDocument> m_documents;
235 
239  TQPtrList<KateView> m_views;
240 
244  TQPtrList<KateRenderer> m_renderers;
245 
249  KDirWatch *m_dirWatch;
250 
254  KateFileTypeManager *m_fileTypeManager;
255 
259  KateSchemaManager *m_schemaManager;
260 
264  TDETrader::OfferList m_plugins;
265 
269  KateDocumentConfig *m_documentConfig;
270 
274  KateViewConfig *m_viewConfig;
275 
279  KateRendererConfig *m_rendererConfig;
280 
284  KVMAllocator *m_vm;
285 
289  TQValueList<Kate::Command *> m_cmds;
290 
294  KateJScript *m_jscript;
295 
296 
300  KateJScriptManager *m_jscriptManager;
301 
302 
306  TQPtrList<KateIndentScriptManagerAbstract> m_indentScriptManagers;
307 
308 };
309 
310 #endif
KParts::Part
KVMAllocator
KateJScript
Whole Kate Part scripting in one classs Allow subclassing to allow specialized scripting engine for i...
Definition: katejscript.h:53
KateRenderer
Handles all of the work of rendering the text (used for the views and printing)
Definition: katerenderer.h:43
TDEAboutData
TDEInstance
KNotifyClient::instance
TDEInstance * instance()
Kate
Kate namespace All classes in this namespace must stay BC during one major release series (e....
Definition: document.h:51

kate

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

kate

Skip menu "kate"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for kate by doxygen 1.9.1
This website is maintained by Timothy Pearson.