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

kate

  • kate
  • interfaces
plugin.h
1/* This file is part of the KDE project
2 Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
3 Copyright (C) 2002 Joseph Wenninger <jowenn@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License version 2 as published by the Free Software Foundation.
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 _KATE_PLUGIN_INCLUDE_
21#define _KATE_PLUGIN_INCLUDE_
22
23#include <tqwidget.h>
24#include <tqpixmap.h>
25#include <kicontheme.h>
26
27#include <kurl.h>
28
29namespace Kate
30{
31
32class Application;
33class MainWindow;
34
35class TDE_EXPORT Plugin : public TQObject
36{
37 friend class PrivatePlugin;
38
39 TQ_OBJECT
40
41 public:
42 Plugin (Application *application = 0, const char *name = 0 );
43 virtual ~Plugin ();
44
45 unsigned int pluginNumber () const;
46
47 Application *application() const;
48
49 private:
50 class PrivatePlugin *d;
51 static unsigned int globalPluginNumber;
52 unsigned int myPluginNumber;
53};
54
55TDE_EXPORT Plugin *createPlugin ( const char* libname, Application *application = 0, const char *name = 0,const TQStringList &args = TQStringList() );
56
57/*
58 * view plugin class
59 * this plugin will be bound to a tdetexteditor::view
60 */
61class TDE_EXPORT PluginViewInterface
62{
63 friend class PrivatePluginViewInterface;
64
65 public:
66 PluginViewInterface ();
67 virtual ~PluginViewInterface ();
68
69 unsigned int pluginViewInterfaceNumber () const;
70
71 /*
72 * will be called from the part to bound the plugin to a view
73 */
74 virtual void addView (MainWindow *) = 0;
75 virtual void removeView (MainWindow *) = 0;
76
77 private:
78 class PrivatePluginViewInterface *d;
79 static unsigned int globalPluginViewInterfaceNumber;
80 unsigned int myPluginViewInterfaceNumber;
81};
82
83TDE_EXPORT PluginViewInterface *pluginViewInterface (Plugin *plugin);
84
85}
86
87#endif
Kate
Namespace collecting as much of the internal Kate classes as we can manage.
Definition: kateapp.h:32
Kate::application
Application * application()
Returns the application object.
Definition: application.cpp:91

kate

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

kate

Skip menu "kate"
  • kate
  • libkonq
  • twin
  •   lib
Generated for kate by doxygen 1.9.4
This website is maintained by Timothy Pearson.