diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-31 13:29:56 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-31 13:29:56 -0600 |
commit | 82fc754f7c4e43eace608a45c22e74e532bd33f1 (patch) | |
tree | 7e1217a13d974e19f4e03cd914de2a217e832f21 /parts | |
parent | 8d6fecdf83984625b9bc6d010a6a00ee670af344 (diff) | |
download | tdevelop-82fc754f7c4e43eace608a45c22e74e532bd33f1.tar.gz tdevelop-82fc754f7c4e43eace608a45c22e74e532bd33f1.zip |
Rename KStandard for enhanced compatibility with KDE4
Diffstat (limited to 'parts')
-rw-r--r-- | parts/abbrev/abbrevpart.cpp | 8 | ||||
-rw-r--r-- | parts/appwizard/appwizarddlg.cpp | 6 | ||||
-rw-r--r-- | parts/appwizard/appwizardfactory.cpp | 8 | ||||
-rw-r--r-- | parts/appwizard/importdlg.cpp | 2 | ||||
-rw-r--r-- | parts/valgrind/valgrind_dialog.cpp | 6 |
5 files changed, 15 insertions, 15 deletions
diff --git a/parts/abbrev/abbrevpart.cpp b/parts/abbrev/abbrevpart.cpp index 86dfe96f..ccfe6be6 100644 --- a/parts/abbrev/abbrevpart.cpp +++ b/parts/abbrev/abbrevpart.cpp @@ -53,11 +53,11 @@ public: virtual TDEInstance *createInstance() { TDEInstance *instance = KDevGenericFactory<AbbrevPart>::createInstance(); - KStandardDirs *dirs = instance->dirs(); + TDEStandardDirs *dirs = instance->dirs(); dirs->addResourceType( "codetemplates", - KStandardDirs::kde_default( "data" ) + "kdevabbrev/templates/" ); + TDEStandardDirs::kde_default( "data" ) + "kdevabbrev/templates/" ); dirs->addResourceType( "sources", - KStandardDirs::kde_default( "data" ) + "kdevabbrev/sources" ); + TDEStandardDirs::kde_default( "data" ) + "kdevabbrev/sources" ); return instance; } @@ -152,7 +152,7 @@ void AbbrevPart::setAutoWordCompletionEnabled( bool enabled ) } void AbbrevPart::load() { - KStandardDirs *dirs = AbbrevFactory::instance()->dirs(); + TDEStandardDirs *dirs = AbbrevFactory::instance()->dirs(); TQString localTemplatesFile = locateLocal("codetemplates", "templates", AbbrevFactory::instance()); TQStringList files; if (TQFileInfo(localTemplatesFile).exists()) diff --git a/parts/appwizard/appwizarddlg.cpp b/parts/appwizard/appwizarddlg.cpp index 176bf9cc..9dcb06f0 100644 --- a/parts/appwizard/appwizarddlg.cpp +++ b/parts/appwizard/appwizarddlg.cpp @@ -124,7 +124,7 @@ AppWizardDialog::AppWizardDialog(AppWizardPart *part, TQWidget *parent, const ch config->setGroup("General Options"); TQString defaultProjectsDir = config->readPathEntry("DefaultProjectsDir", TQDir::homeDirPath()+"/"); - KStandardDirs *dirs = AppWizardFactory::instance()->dirs(); + TDEStandardDirs *dirs = AppWizardFactory::instance()->dirs(); TQStringList m_templateNames = dirs->findAllResources("apptemplates", TQString(), false, true); kdDebug(9010) << "Templates: " << endl; @@ -1281,8 +1281,8 @@ TQDict<KDevLicense> AppWizardDialog::licenses() void AppWizardDialog::loadLicenses() { // kdDebug(9010) << "======================== Entering loadLicenses" << endl; - KStandardDirs* dirs = TDEGlobal::dirs(); - dirs->addResourceType( "licenses", KStandardDirs::kde_default( "data" ) + "tdevelop/licenses/" ); + TDEStandardDirs* dirs = TDEGlobal::dirs(); + dirs->addResourceType( "licenses", TDEStandardDirs::kde_default( "data" ) + "tdevelop/licenses/" ); TQStringList licNames = dirs->findAllResources( "licenses", TQString(), false, true ); TQStringList::Iterator it; diff --git a/parts/appwizard/appwizardfactory.cpp b/parts/appwizard/appwizardfactory.cpp index f60a23dc..d0f543c0 100644 --- a/parts/appwizard/appwizardfactory.cpp +++ b/parts/appwizard/appwizardfactory.cpp @@ -26,10 +26,10 @@ AppWizardFactory::AppWizardFactory() TDEInstance *AppWizardFactory::createInstance() { TDEInstance *instance = KDevGenericFactory<AppWizardPart>::createInstance(); - KStandardDirs *dirs = instance->dirs(); - dirs->addResourceType("apptemplates", KStandardDirs::kde_default("data") + "kdevappwizard/templates/"); - dirs->addResourceType("appimports", KStandardDirs::kde_default("data") + "kdevappwizard/imports/"); - dirs->addResourceType("appimportfiles", KStandardDirs::kde_default("data") + "kdevappwizard/importfiles/"); + TDEStandardDirs *dirs = instance->dirs(); + dirs->addResourceType("apptemplates", TDEStandardDirs::kde_default("data") + "kdevappwizard/templates/"); + dirs->addResourceType("appimports", TDEStandardDirs::kde_default("data") + "kdevappwizard/imports/"); + dirs->addResourceType("appimportfiles", TDEStandardDirs::kde_default("data") + "kdevappwizard/importfiles/"); return instance; } diff --git a/parts/appwizard/importdlg.cpp b/parts/appwizard/importdlg.cpp index c66cb6fa..b7680c16 100644 --- a/parts/appwizard/importdlg.cpp +++ b/parts/appwizard/importdlg.cpp @@ -61,7 +61,7 @@ ImportDialog::ImportDialog(AppWizardPart *part, TQWidget *parent, const char *na TQToolTip::add( urlinput_edit->button(), i18n("Choose directory to import") ); urlinput_edit->setMode(KFile::Directory|KFile::ExistingOnly|KFile::LocalOnly); - KStandardDirs *dirs = AppWizardFactory::instance()->dirs(); + TDEStandardDirs *dirs = AppWizardFactory::instance()->dirs(); importNames = dirs->findAllResources("appimports", TQString(), false, true); importNames.sort(); diff --git a/parts/valgrind/valgrind_dialog.cpp b/parts/valgrind/valgrind_dialog.cpp index 3e936c18..6e0690b7 100644 --- a/parts/valgrind/valgrind_dialog.cpp +++ b/parts/valgrind/valgrind_dialog.cpp @@ -74,7 +74,7 @@ void ValgrindDialog::setValExecutable( const TQString& ve ) { TQString vUrl = ve; if ( vUrl.isEmpty() ) { - vUrl = KStandardDirs::findExe( "valgrind" ); + vUrl = TDEStandardDirs::findExe( "valgrind" ); } if ( vUrl.isEmpty() ) { KMessageBox::sorry( this, i18n( "Could not find valgrind in your $PATH. Please make " @@ -134,7 +134,7 @@ void ValgrindDialog::setCtExecutable( const TQString& ce ) { TQString vUrl = ce; if ( vUrl.isEmpty() ) { - vUrl = KStandardDirs::findExe( "valgrind" ); + vUrl = TDEStandardDirs::findExe( "valgrind" ); } if ( vUrl.isEmpty() ) { KMessageBox::sorry( this, i18n( "Could not find valgrind in your $PATH. Please make " @@ -179,7 +179,7 @@ void ValgrindDialog::setKcExecutable( const TQString& ke ) { TQString vUrl = ke; if ( vUrl.isEmpty() ) { - vUrl = KStandardDirs::findExe( "tdecachegrind" ); + vUrl = TDEStandardDirs::findExe( "tdecachegrind" ); } if ( vUrl.isEmpty() ) { KMessageBox::sorry( this, i18n( "Could not find tdecachegrind in your $PATH. Please make " |