You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.1 KiB
52 lines
1.1 KiB
%{H_TEMPLATE}
|
|
|
|
#ifndef _PLUGIN_%{APPNAMEUC}_H_
|
|
#define _PLUGIN_%{APPNAMEUC}_H_
|
|
|
|
#include <kate/application.h>
|
|
#include <kate/documentmanager.h>
|
|
#include <kate/document.h>
|
|
#include <kate/mainwindow.h>
|
|
#include <kate/plugin.h>
|
|
#include <kate/view.h>
|
|
#include <kate/viewmanager.h>
|
|
|
|
#include <klibloader.h>
|
|
#include <tdelocale.h>
|
|
|
|
class KatePluginFactory : public KLibFactory
|
|
{
|
|
TQ_OBJECT
|
|
|
|
|
|
public:
|
|
KatePluginFactory();
|
|
virtual ~KatePluginFactory();
|
|
|
|
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0, const char* name = "TQObject", const TQStringList &args = TQStringList() );
|
|
|
|
private:
|
|
static TDEInstance* s_instance;
|
|
};
|
|
|
|
class KatePlugin%{APPNAME} : public Kate::Plugin, Kate::PluginViewInterface
|
|
{
|
|
TQ_OBJECT
|
|
|
|
|
|
public:
|
|
KatePlugin%{APPNAME}( TQObject* parent = 0, const char* name = 0 );
|
|
virtual ~KatePlugin%{APPNAME}();
|
|
|
|
void addView (Kate::MainWindow *win);
|
|
void removeView (Kate::MainWindow *win);
|
|
|
|
public slots:
|
|
void slotInsertHello();
|
|
|
|
private:
|
|
TQPtrList<class PluginView> m_views;
|
|
};
|
|
|
|
#endif // _PLUGIN_%{APPNAMEUC}_H_
|