diff options
Diffstat (limited to 'kate/filetemplates')
-rw-r--r-- | kate/filetemplates/plugin/filetemplates.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kate/filetemplates/plugin/filetemplates.cpp b/kate/filetemplates/plugin/filetemplates.cpp index b065113..ec68f6e 100644 --- a/kate/filetemplates/plugin/filetemplates.cpp +++ b/kate/filetemplates/plugin/filetemplates.cpp @@ -83,7 +83,7 @@ extern "C" { void* init_katefiletemplates() { - KGlobal::locale()->insertCatalogue("katefiletemplates"); + TDEGlobal::locale()->insertCatalogue("katefiletemplates"); return new KatePluginFactory; } } @@ -144,7 +144,7 @@ KateFileTemplates::KateFileTemplates( TQObject* parent, const char* name ) // template menu m_dw = new KDirWatch( this, "template_dirwatch" ); - TQStringList dirs = KGlobal::dirs()->findDirs("data", "kate/plugins/katefiletemplates/templates"); + TQStringList dirs = TDEGlobal::dirs()->findDirs("data", "kate/plugins/katefiletemplates/templates"); for ( TQStringList::Iterator it = dirs.begin(); it != dirs.end(); ++it ) { m_dw->addDir( *it, true ); @@ -171,7 +171,7 @@ void KateFileTemplates::updateTemplateDirs(const TQString &d) { kdDebug()<<"updateTemplateDirs called with arg "<<d<<endl; - TQStringList templates = KGlobal::dirs()->findAllResources( + TQStringList templates = TDEGlobal::dirs()->findAllResources( "data","kate/plugins/katefiletemplates/templates/*.katetemplate", false,true); @@ -913,7 +913,7 @@ void KateTemplateWizard::accept() if ( ! suggestion.endsWith(".katetemplate") ) suggestion.append(".katetemplate"); - TQString dir = KGlobal::dirs()->saveLocation( "data", "kate/plugins/katefiletemplates/templates/", true ); + TQString dir = TDEGlobal::dirs()->saveLocation( "data", "kate/plugins/katefiletemplates/templates/", true ); templateUrl = dir + suggestion; @@ -1089,7 +1089,7 @@ class KFTNewStuff : public KNewStuff { bool createUploadFile( const TQString &/*filename*/ ) { return false; } TQString downloadDestination( KNS::Entry *entry ) { - TQString dir = KGlobal::dirs()->saveLocation( "data", "kate/plugins/katefiletemplates/templates/", true ); + TQString dir = TDEGlobal::dirs()->saveLocation( "data", "kate/plugins/katefiletemplates/templates/", true ); return dir.append( entry->payload().filename() ); } @@ -1190,7 +1190,7 @@ void KateTemplateManager::slotRemoveTemplate() // list of removed templates KConfig *config = kapp->config(); TQString fname = item->templateinfo->filename.section( '/', -1 ); - TQStringList templates = KGlobal::dirs()->findAllResources( + TQStringList templates = TDEGlobal::dirs()->findAllResources( "data", fname.prepend( "kate/plugins/katefiletemplates/templates/" ), false,true); int failed = 0; |