|
|
@ -90,7 +90,7 @@ extern "C"
|
|
|
|
|
|
|
|
|
|
|
|
KatePluginFactory::KatePluginFactory()
|
|
|
|
KatePluginFactory::KatePluginFactory()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
s_instance = new KInstance( "kate" );
|
|
|
|
s_instance = new TDEInstance( "kate" );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KatePluginFactory::~KatePluginFactory()
|
|
|
|
KatePluginFactory::~KatePluginFactory()
|
|
|
@ -103,7 +103,7 @@ TQObject* KatePluginFactory::createObject( TQObject* parent, const char* name, c
|
|
|
|
return new KateFileTemplates( parent, name );
|
|
|
|
return new KateFileTemplates( parent, name );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
KInstance* KatePluginFactory::s_instance = 0L;
|
|
|
|
TDEInstance* KatePluginFactory::s_instance = 0L;
|
|
|
|
//END
|
|
|
|
//END
|
|
|
|
|
|
|
|
|
|
|
|
//BEGIN TemplateInfo
|
|
|
|
//BEGIN TemplateInfo
|
|
|
@ -127,7 +127,7 @@ class TemplateInfo
|
|
|
|
//BEGIN KateFileTemplates
|
|
|
|
//BEGIN KateFileTemplates
|
|
|
|
KateFileTemplates::KateFileTemplates( TQObject* parent, const char* name )
|
|
|
|
KateFileTemplates::KateFileTemplates( TQObject* parent, const char* name )
|
|
|
|
: Kate::Plugin ( (Kate::Application*)parent, name ),
|
|
|
|
: Kate::Plugin ( (Kate::Application*)parent, name ),
|
|
|
|
m_actionCollection( new KActionCollection( this, "template_actions", new KInstance("kate") ) )
|
|
|
|
m_actionCollection( new KActionCollection( this, "template_actions", new TDEInstance("kate") ) )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// create actions, so that they are shared.
|
|
|
|
// create actions, so that they are shared.
|
|
|
|
// We plug them into each view's menus, and update them centrally, so that
|
|
|
|
// We plug them into each view's menus, and update them centrally, so that
|
|
|
@ -256,7 +256,7 @@ void KateFileTemplates::addView(Kate::MainWindow *win)
|
|
|
|
view->actionCollection(), "file_new_fromtemplate" );
|
|
|
|
view->actionCollection(), "file_new_fromtemplate" );
|
|
|
|
refreshMenu( view );
|
|
|
|
refreshMenu( view );
|
|
|
|
|
|
|
|
|
|
|
|
view->setInstance (new KInstance("kate"));
|
|
|
|
view->setInstance (new TDEInstance("kate"));
|
|
|
|
view->setXMLFile("plugins/katefiletemplates/ui.rc");
|
|
|
|
view->setXMLFile("plugins/katefiletemplates/ui.rc");
|
|
|
|
win->guiFactory()->addClient (view);
|
|
|
|
win->guiFactory()->addClient (view);
|
|
|
|
view->win = win;
|
|
|
|
view->win = win;
|
|
|
|