diff options
author | Darrell Anderson <[email protected]> | 2014-02-06 17:50:29 -0600 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2014-02-06 17:50:29 -0600 |
commit | cf14b1bd7803760ea4657269aeb424869e0058c6 (patch) | |
tree | 083f9fdcac07a38d4bf733c601f24f52e6a8e925 /kcontrol/ioslaveinfo | |
parent | 66e86452a4f46f029820115fe6e55761a8d13187 (diff) | |
download | tdebase-cf14b1bd7803760ea4657269aeb424869e0058c6.tar.gz tdebase-cf14b1bd7803760ea4657269aeb424869e0058c6.zip |
Reorganize tdeioslave help handbooks, fix related protocol files and issues, update and add handbooks.
Diffstat (limited to 'kcontrol/ioslaveinfo')
-rw-r--r-- | kcontrol/ioslaveinfo/kcmioslaveinfo.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/kcontrol/ioslaveinfo/kcmioslaveinfo.cpp b/kcontrol/ioslaveinfo/kcmioslaveinfo.cpp index b64d5a4d2..e1cdc10d2 100644 --- a/kcontrol/ioslaveinfo/kcmioslaveinfo.cpp +++ b/kcontrol/ioslaveinfo/kcmioslaveinfo.cpp @@ -118,7 +118,7 @@ void KCMIOSlaveInfo::slotResult(TDEIO::Job *) void KCMIOSlaveInfo::showInfo(const TQString& protocol) { - TQString file = TQString("tdeioslave/%1.docbook").arg( protocol ); + TQString file = TQString("tdeioslave/%1/index.docbook").arg( protocol ); file = TDEGlobal::locale()->langLookup( file ); if (m_tfj) { @@ -129,12 +129,23 @@ void KCMIOSlaveInfo::showInfo(const TQString& protocol) if (!file.isEmpty()) { helpData.truncate( 0 ); - m_tfj = TDEIO::get( KURL( TQString("help:/tdeioslave/%1.html").arg( protocol ) ), true, false ); + m_tfj = TDEIO::get( KURL( TQString("help:/tdeioslave/%1/index.html").arg( protocol ) ), true, false ); connect( m_tfj, TQT_SIGNAL( data( TDEIO::Job *, const TQByteArray &) ), TQT_SLOT( slaveHelp( TDEIO::Job *, const TQByteArray &) ) ); connect( m_tfj, TQT_SIGNAL( result( TDEIO::Job * ) ), TQT_SLOT( slotResult( TDEIO::Job * ) ) ); return; } - m_info->setText(i18n("Some info about protocol %1:/ ...").arg(protocol)); + else if (file.isEmpty()) + { + helpData.truncate( 0 ); + m_tfj = TDEIO::get( KURL( TQString("help:/khelpcenter/helpnotfound/index.html").arg( protocol ) ), true, false ); + connect( m_tfj, TQT_SIGNAL( data( TDEIO::Job *, const TQByteArray &) ), TQT_SLOT( slaveHelp( TDEIO::Job *, const TQByteArray &) ) ); + connect( m_tfj, TQT_SIGNAL( result( TDEIO::Job * ) ), TQT_SLOT( slotResult( TDEIO::Job * ) ) ); + return; + } + else + { + m_info->setText(i18n("There is no documentation available for %1:/ ...").arg(protocol)); + } } void KCMIOSlaveInfo::showInfo(TQListBoxItem *item) |