summaryrefslogtreecommitdiffstats
path: root/kbabel/catalogmanager/catalogmanagerview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:37:49 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:37:49 -0600
commitf8069e2ea048f2657cc417d83820576ec55c181b (patch)
treecbc5bf540866934a91e0f33b260fc7a25e191fad /kbabel/catalogmanager/catalogmanagerview.cpp
parente6aaa3624cc6179b82a9bfff1760e742a669064c (diff)
downloadtdesdk-f8069e2ea048f2657cc417d83820576ec55c181b.tar.gz
tdesdk-f8069e2ea048f2657cc417d83820576ec55c181b.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kbabel/catalogmanager/catalogmanagerview.cpp')
-rw-r--r--kbabel/catalogmanager/catalogmanagerview.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kbabel/catalogmanager/catalogmanagerview.cpp b/kbabel/catalogmanager/catalogmanagerview.cpp
index 1be2cba8..c2fffb9e 100644
--- a/kbabel/catalogmanager/catalogmanagerview.cpp
+++ b/kbabel/catalogmanager/catalogmanagerview.cpp
@@ -221,7 +221,7 @@ CatalogManagerView::CatalogManagerView(KBabel::Project::Ptr project, TQWidget* p
connect( svnhandler, TQT_SIGNAL( signalFilesCommitted( const TQStringList& ) ),
this, TQT_SLOT( updateFiles( const TQStringList& ) ) );
- KConfig *config = TDEGlobal::config();
+ TDEConfig *config = TDEGlobal::config();
restoreView(config);
_dictBox->readSettings(_project->config());
@@ -252,18 +252,18 @@ CatalogManagerView::~CatalogManagerView()
}
-void CatalogManagerView::saveView( KConfig *config) const
+void CatalogManagerView::saveView( TDEConfig *config) const
{
saveMarker(config);
- KConfigGroupSaver( config, "CatalogManager" );
+ TDEConfigGroupSaver( config, "CatalogManager" );
config->writeEntry( "ValidateMarkAsFuzzy", _markAsFuzzy );
config->writeEntry( "ValidateIgnoreFuzzy", _ignoreFuzzy );
}
-void CatalogManagerView::restoreView( KConfig *config)
+void CatalogManagerView::restoreView( TDEConfig *config)
{
readMarker(config);
@@ -439,9 +439,9 @@ void CatalogManagerView::loadMarks()
TQString filename;
#if KDE_IS_VERSION( 3, 2, 90 )
- if (!KIO::NetAccess::download( url, filename, this ) )
+ if (!TDEIO::NetAccess::download( url, filename, this ) )
#else
- if( !KIO::NetAccess::download( url, filename ) )
+ if( !TDEIO::NetAccess::download( url, filename ) )
#endif
{
KMessageBox::error(this,i18n(
@@ -483,7 +483,7 @@ void CatalogManagerView::loadMarks()
"Error while trying to open file:\n %1").arg(url.prettyURL()));
}
- KIO::NetAccess::removeTempFile( filename );
+ TDEIO::NetAccess::removeTempFile( filename );
// test validity of list items
TQStringList testedList;
@@ -514,7 +514,7 @@ void CatalogManagerView::saveMarks()
if( url2.isEmpty() ) return;
// ### FIXME: why is the file dialog not doing this?
- if ( KIO::NetAccess::exists( url2, false, this ) )
+ if ( TDEIO::NetAccess::exists( url2, false, this ) )
{
if(KMessageBox::warningContinueCancel(this,TQString("<qt>%1</qt>").arg(i18n("The file %1 already exists. "
"Do you want to overwrite it?").arg(url2.prettyURL())),i18n("Warning"),i18n("&Overwrite"))==KMessageBox::Cancel)
@@ -525,7 +525,7 @@ void CatalogManagerView::saveMarks()
#if KDE_IS_VERSION( 3, 4, 92 )
// Support for partially remote KIO slave like media:
- const KURL url ( KIO::NetAccess::mostLocalURL( url2, this ) );
+ const KURL url ( TDEIO::NetAccess::mostLocalURL( url2, this ) );
#else
const KURL url ( url2 );
#endif
@@ -573,7 +573,7 @@ void CatalogManagerView::saveMarks()
else if ( !localFile )
{
tempFile->close();
- if( !KIO::NetAccess::upload( tempFile->name(), url, this ) )
+ if( !TDEIO::NetAccess::upload( tempFile->name(), url, this ) )
{
// ### KDE4 FIXME: strip the final \n of the message
KMessageBox::error(this,
@@ -2552,16 +2552,16 @@ void CatalogManagerView::contentsMouseMoveEvent(TQMouseEvent* event)
}
}
-void CatalogManagerView::readMarker( KConfig* config)
+void CatalogManagerView::readMarker( TDEConfig* config)
{
- KConfigGroupSaver cs(config,"CatalogManager");
+ TDEConfigGroupSaver cs(config,"CatalogManager");
_markerList = config->readListEntry("Marker");
}
-void CatalogManagerView::saveMarker( KConfig* config) const
+void CatalogManagerView::saveMarker( TDEConfig* config) const
{
- KConfigGroupSaver cs(config,"CatalogManager");
+ TDEConfigGroupSaver cs(config,"CatalogManager");
config->writeEntry("Marker",_markerList);
config->sync();