summaryrefslogtreecommitdiffstats
path: root/kbabel/kbabel/kbabelview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/kbabel/kbabelview.cpp')
-rw-r--r--kbabel/kbabel/kbabelview.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/kbabel/kbabel/kbabelview.cpp b/kbabel/kbabel/kbabelview.cpp
index 37b9d3d6..1b8795e2 100644
--- a/kbabel/kbabel/kbabelview.cpp
+++ b/kbabel/kbabel/kbabelview.cpp
@@ -135,7 +135,7 @@ KBabelView::KBabelView(KBCatalog* catalog,KBabelMW *parent, Project::Ptr project
_config = KSharedConfig::openConfig ("kbabelrc");
- KConfigGroupSaver gs(_config,"Editor");
+ TDEConfigGroupSaver gs(_config,"Editor");
bool buildLeds=! KBabelSettings::ledInStatusbar();
_fuzzyLed=0;
@@ -679,7 +679,7 @@ void KBabelView::update(EditCommand* cmd, bool undo)
-void KBabelView::readSettings(KConfig* config)
+void KBabelView::readSettings(TDEConfig* config)
{
if(KBabelSettings::autoUnsetFuzzy())
@@ -690,7 +690,7 @@ void KBabelView::readSettings(KConfig* config)
setupAutoCheckTools();
- KConfigGroupSaver saver(config,"Editor");
+ TDEConfigGroupSaver saver(config,"Editor");
_diffEnabled = config->readBoolEntry("AutoDiff", false);
emit signalDiffEnabled(_diffEnabled);
@@ -799,7 +799,7 @@ void KBabelView::readProject(Project::Ptr project)
void KBabelView::saveSettings()
{
- KConfigGroupSaver saver(_config,"Editor");
+ TDEConfigGroupSaver saver(_config,"Editor");
_config->writeEntry("AutoDiff",_diffEnabled);
@@ -955,15 +955,15 @@ void KBabelView::setRMBSearchMenu(TQPopupMenu* popup)
}
-void KBabelView::saveView(KConfig *)
+void KBabelView::saveView(TDEConfig *)
{
}
-void KBabelView::restoreView(KConfig *)
+void KBabelView::restoreView(TDEConfig *)
{
}
-void KBabelView::saveSession(KConfig* config)
+void KBabelView::saveSession(TDEConfig* config)
{
TQString focus;
int line=0,col=0;
@@ -994,7 +994,7 @@ void KBabelView::saveSession(KConfig* config)
if( _spellcheckSettings.valid )
{
- KConfigGroupSaver (config, "Spellcheck");
+ TDEConfigGroupSaver (config, "Spellcheck");
config->writeEntry("NoRootAffix",_spellcheckSettings.noRootAffix);
config->writeEntry("RunTogether",_spellcheckSettings.runTogether);
config->writeEntry("SpellEncoding",_spellcheckSettings.spellEncoding);
@@ -1007,7 +1007,7 @@ void KBabelView::saveSession(KConfig* config)
saveView(config);
}
-void KBabelView::restoreSession(KConfig* config)
+void KBabelView::restoreSession(TDEConfig* config)
{
TQString url=config->readPathEntry("URL");
@@ -1106,7 +1106,7 @@ void KBabelView::open()
void KBabelView::open(const KURL& _url, const TQString & package, bool checkIfModified, bool newView)
{
#if KDE_IS_VERSION( 3, 5, 0)
- KURL url = KIO::NetAccess::mostLocalURL(_url,this);
+ KURL url = TDEIO::NetAccess::mostLocalURL(_url,this);
#else
KURL url = _url;
#endif
@@ -1446,7 +1446,7 @@ bool KBabelView::saveFileAs(KURL url, bool syntaxCheck)
newName=true;
}
- if (KIO::NetAccess::exists(url, false, this))
+ if (TDEIO::NetAccess::exists(url, false, this))
{
if(KMessageBox::warningContinueCancel(this,TQString("<qt>%1</qt>").arg(i18n("The file %1 already exists. "
"Do you want to overwrite it?").arg(url.prettyURL())),i18n("Warning"),i18n("&Overwrite"))==KMessageBox::Cancel)
@@ -1515,7 +1515,7 @@ bool KBabelView::saveFileAs(KURL url, bool syntaxCheck)
return false;
}
- if (KIO::NetAccess::exists(url, false, this))
+ if (TDEIO::NetAccess::exists(url, false, this))
{
if(KMessageBox::warningContinueCancel(this,i18n("The file %1 already exists.\n"
"Do you want to overwrite it?").arg(url.prettyURL()),i18n("Warning"),i18n("&Overwrite"))==KMessageBox::Continue)
@@ -1584,7 +1584,7 @@ bool KBabelView::saveFileSpecial()
KBabel::Project::Ptr project = KBabel::ProjectManager::open (tmpname);
project->setSettings( _catalog->saveSettings() );
- KConfigDialog *_prefDialog = new KConfigDialog(this, "project dialog", project->settings(),
+ TDEConfigDialog *_prefDialog = new TDEConfigDialog(this, "project dialog", project->settings(),
KDialogBase::IconList, KDialogBase::Cancel|KDialogBase::Ok|KDialogBase::Help);
_prefDialog->setCaption( i18n("Special Save Settings") );
@@ -2700,8 +2700,8 @@ void KBabelView::findInFile(TQCString fileSource, FindOptions options)
_showTryLaterBox=true;
// delete dontDisplayAgain from configuration
- KConfig* config = TDEGlobal::config();
- KConfigGroupSaver saver(config,"Notification Messages");
+ TDEConfig* config = TDEGlobal::config();
+ TDEConfigGroupSaver saver(config,"Notification Messages");
config->writeEntry("waitForNextFile",true);
// set that there can be more files
@@ -2729,8 +2729,8 @@ void KBabelView::replaceInFile(TQCString fileSource, KBabel::ReplaceOptions opti
_showTryLaterBox=true;
// delete dontDisplayAgain from configuration
- KConfig* config = TDEGlobal::config();
- KConfigGroupSaver saver(config,"Notification Messages");
+ TDEConfig* config = TDEGlobal::config();
+ TDEConfigGroupSaver saver(config,"Notification Messages");
config->writeEntry("waitForNextFile",true);
// set that there can be more files
@@ -3494,7 +3494,7 @@ void KBabelView::processUriDrop(KURL::List& uriList, const TQPoint& pos)
KURL first(uriList.first());
KURL second(uriList.last());
- if( KIO::NetAccess::exists(first, true, this) )
+ if( TDEIO::NetAccess::exists(first, true, this) )
{
open(first);
}