diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-31 13:25:26 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-31 13:25:26 -0600 |
commit | 30c894d73ed8800b48fe4973d4907c36e44b1ce5 (patch) | |
tree | 7a222d577e61985ccb662cdc32e5b885d580f021 /konq-plugins/arkplugin | |
parent | 854cb5dd9c481a1351624fd095f4865d211ddb48 (diff) | |
download | tdeaddons-30c894d73ed8800b48fe4973d4907c36e44b1ce5.tar.gz tdeaddons-30c894d73ed8800b48fe4973d4907c36e44b1ce5.zip |
Rename KStandard for enhanced compatibility with KDE4
Diffstat (limited to 'konq-plugins/arkplugin')
-rw-r--r-- | konq-plugins/arkplugin/arkplugin.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/konq-plugins/arkplugin/arkplugin.cpp b/konq-plugins/arkplugin/arkplugin.cpp index 2bf0734..4bfc14b 100644 --- a/konq-plugins/arkplugin/arkplugin.cpp +++ b/konq-plugins/arkplugin/arkplugin.cpp @@ -46,7 +46,7 @@ ArkMenu::ArkMenu( KonqPopupMenu * popupmenu, const char *name, const TQStringLis m_compAsMapper( 0 ), m_addToMapper( 0 ), m_conf( 0 ) { if ( ( TQCString( kapp->name() ) == "kdesktop" && !kapp->authorize("editable_desktop_icons" ) ) - || ( KStandardDirs::findExe( "ark" ).isNull() ) ) + || ( TDEStandardDirs::findExe( "ark" ).isNull() ) ) return; m_conf = new TDEConfig( "arkrc" ); @@ -262,7 +262,7 @@ void ArkMenu::compMimeTypes() unsigned int itemCount = m_urlList.count(); bool havegz = false; - if ( !KStandardDirs::findExe( "gzip" ).isNull() && m_conf->readBoolEntry( "UseGz", true ) ) + if ( !TDEStandardDirs::findExe( "gzip" ).isNull() && m_conf->readBoolEntry( "UseGz", true ) ) { havegz = true; //.gz can only compress one file, not multiple @@ -270,7 +270,7 @@ void ArkMenu::compMimeTypes() } bool havebz2 = false; - if ( !KStandardDirs::findExe( "bzip2" ).isNull() && m_conf->readBoolEntry( "UseBzip2", true ) ) + if ( !TDEStandardDirs::findExe( "bzip2" ).isNull() && m_conf->readBoolEntry( "UseBzip2", true ) ) { havebz2 = true; //.bz2 can only compress one file, not multiple @@ -278,27 +278,27 @@ void ArkMenu::compMimeTypes() } bool havelzop = false; - if ( !KStandardDirs::findExe( "lzop" ).isNull() && m_conf->readBoolEntry( "UseLzop", false ) ) + if ( !TDEStandardDirs::findExe( "lzop" ).isNull() && m_conf->readBoolEntry( "UseLzop", false ) ) { havelzop = true; m_archiveMimeTypes << "application/x-lzop"; } bool havelzma = false; - if ( !KStandardDirs::findExe( "lzma" ).isNull() && m_conf->readBoolEntry( "UseLzma", true ) ) + if ( !TDEStandardDirs::findExe( "lzma" ).isNull() && m_conf->readBoolEntry( "UseLzma", true ) ) { havelzma = true; m_archiveMimeTypes << "application/x-lzma"; } bool havexz = false; - if ( !KStandardDirs::findExe( "xz" ).isNull() && m_conf->readBoolEntry( "UseXz", true ) ) + if ( !TDEStandardDirs::findExe( "xz" ).isNull() && m_conf->readBoolEntry( "UseXz", true ) ) { havexz = true; m_archiveMimeTypes << "application/x-xz"; } - if ( !KStandardDirs::findExe( "tar" ).isNull() && m_conf->readBoolEntry( "UseTar", true ) ) + if ( !TDEStandardDirs::findExe( "tar" ).isNull() && m_conf->readBoolEntry( "UseTar", true ) ) { m_archiveMimeTypes << "application/x-tar"; if ( havegz ) @@ -316,10 +316,10 @@ void ArkMenu::compMimeTypes() m_archiveMimeTypes << "application/x-txz"; } - if ( !KStandardDirs::findExe( "lha" ).isNull() && m_conf->readBoolEntry( "UseLha", false ) ) + if ( !TDEStandardDirs::findExe( "lha" ).isNull() && m_conf->readBoolEntry( "UseLha", false ) ) m_archiveMimeTypes << "application/x-lha"; - if ( !KStandardDirs::findExe( "zip" ).isNull() && m_conf->readBoolEntry( "UseZip", true ) ) + if ( !TDEStandardDirs::findExe( "zip" ).isNull() && m_conf->readBoolEntry( "UseZip", true ) ) { m_archiveMimeTypes << "application/x-zip"; @@ -327,26 +327,26 @@ void ArkMenu::compMimeTypes() m_archiveMimeTypes << "application/x-jar"; } - if ( !KStandardDirs::findExe( "rar" ).isNull() && m_conf->readBoolEntry( "UseRar", true ) ) + if ( !TDEStandardDirs::findExe( "rar" ).isNull() && m_conf->readBoolEntry( "UseRar", true ) ) m_archiveMimeTypes << "application/x-rar" << "application/x-rar-compressed"; - if ( !KStandardDirs::findExe( "7z" ).isNull() && m_conf->readBoolEntry( "Use7z", true ) ) + if ( !TDEStandardDirs::findExe( "7z" ).isNull() && m_conf->readBoolEntry( "Use7z", true ) ) m_archiveMimeTypes << "application/x-7z"; - else if ( !KStandardDirs::findExe( "7za" ).isNull() && m_conf->readBoolEntry( "Use7za", true ) ) + else if ( !TDEStandardDirs::findExe( "7za" ).isNull() && m_conf->readBoolEntry( "Use7za", true ) ) m_archiveMimeTypes << "application/x-7z"; - else if ( !KStandardDirs::findExe( "7zr" ).isNull() && m_conf->readBoolEntry( "Use7zr", true ) ) + else if ( !TDEStandardDirs::findExe( "7zr" ).isNull() && m_conf->readBoolEntry( "Use7zr", true ) ) m_archiveMimeTypes << "application/x-7z"; - if ( !KStandardDirs::findExe( "zoo" ).isNull() && m_conf->readBoolEntry( "UseZoo", false ) ) + if ( !TDEStandardDirs::findExe( "zoo" ).isNull() && m_conf->readBoolEntry( "UseZoo", false ) ) m_archiveMimeTypes << "application/x-zoo"; - if ( !KStandardDirs::findExe( "compress" ).isNull() && m_conf->readBoolEntry( "UseCompress", false ) ) + if ( !TDEStandardDirs::findExe( "compress" ).isNull() && m_conf->readBoolEntry( "UseCompress", false ) ) m_archiveMimeTypes << "application/x-compress"; - if ( !KStandardDirs::findExe( "bzip" ).isNull() && m_conf->readBoolEntry( "UseBzip", false ) ) + if ( !TDEStandardDirs::findExe( "bzip" ).isNull() && m_conf->readBoolEntry( "UseBzip", false ) ) m_archiveMimeTypes << "application/x-bzip"; - if ( !KStandardDirs::findExe( "ar" ).isNull() && m_conf->readBoolEntry( "UseAr", false ) ) + if ( !TDEStandardDirs::findExe( "ar" ).isNull() && m_conf->readBoolEntry( "UseAr", false ) ) m_archiveMimeTypes << "application/x-archive"; } @@ -354,7 +354,7 @@ void ArkMenu::compMimeTypes() void ArkMenu::extMimeTypes() { bool havegz = false; - if ( !KStandardDirs::findExe( "gunzip" ).isNull() ) + if ( !TDEStandardDirs::findExe( "gunzip" ).isNull() ) { havegz = true; m_extractMimeTypes << "application/x-gzip"; @@ -362,34 +362,34 @@ void ArkMenu::extMimeTypes() } bool havebz2 = false; - if ( !KStandardDirs::findExe( "bunzip2" ).isNull() ) + if ( !TDEStandardDirs::findExe( "bunzip2" ).isNull() ) { havebz2 = true; m_extractMimeTypes << "application/x-bzip2"; } bool havelzop = false; - if ( !KStandardDirs::findExe( "lzop" ).isNull() ) + if ( !TDEStandardDirs::findExe( "lzop" ).isNull() ) { havelzop = true; m_extractMimeTypes << "application/x-lzop"; } bool havelzma = false; - if ( !KStandardDirs::findExe( "lzma" ).isNull() ) + if ( !TDEStandardDirs::findExe( "lzma" ).isNull() ) { havelzma = true; m_archiveMimeTypes << "application/x-lzma"; } bool havexz = false; - if ( !KStandardDirs::findExe( "xz" ).isNull() ) + if ( !TDEStandardDirs::findExe( "xz" ).isNull() ) { havexz = true; m_archiveMimeTypes << "application/x-xz"; } - if ( !KStandardDirs::findExe( "tar" ).isNull() ) + if ( !TDEStandardDirs::findExe( "tar" ).isNull() ) { m_extractMimeTypes << "application/x-tar"; if ( havegz ) @@ -407,28 +407,28 @@ void ArkMenu::extMimeTypes() m_extractMimeTypes << "application/x-txz"; } - if ( !KStandardDirs::findExe( "lha" ).isNull() ) + if ( !TDEStandardDirs::findExe( "lha" ).isNull() ) m_extractMimeTypes << "application/x-lha"; - if ( !KStandardDirs::findExe( "zip" ).isNull() ) + if ( !TDEStandardDirs::findExe( "zip" ).isNull() ) m_extractMimeTypes << "application/x-zip" << "application/x-jar"; - if ( !KStandardDirs::findExe( "unrar" ).isNull() ) + if ( !TDEStandardDirs::findExe( "unrar" ).isNull() ) m_extractMimeTypes << "application/x-rar" << "application/x-rar-compressed"; - if ( !KStandardDirs::findExe( "7z" ).isNull() || !KStandardDirs::findExe( "7za" ).isNull() || !KStandardDirs::findExe( "7zr" ).isNull() ) + if ( !TDEStandardDirs::findExe( "7z" ).isNull() || !TDEStandardDirs::findExe( "7za" ).isNull() || !TDEStandardDirs::findExe( "7zr" ).isNull() ) m_extractMimeTypes << "application/x-7z"; - if ( !KStandardDirs::findExe( "zoo" ).isNull() ) + if ( !TDEStandardDirs::findExe( "zoo" ).isNull() ) m_extractMimeTypes << "application/x-zoo"; - if ( !KStandardDirs::findExe( "uncompress" ).isNull() ) + if ( !TDEStandardDirs::findExe( "uncompress" ).isNull() ) m_extractMimeTypes << "application/x-compress"; - if ( !KStandardDirs::findExe( "bunzip" ).isNull() ) + if ( !TDEStandardDirs::findExe( "bunzip" ).isNull() ) m_extractMimeTypes << "application/x-bzip"; - if ( !KStandardDirs::findExe( "ar" ).isNull() ) + if ( !TDEStandardDirs::findExe( "ar" ).isNull() ) m_extractMimeTypes << "application/x-archive"; } |