|
|
@ -120,7 +120,7 @@ void KJumpingCube::saveGame(bool saveAs) |
|
|
|
url.setFileName( url.filename()+".kjc" ); |
|
|
|
} |
|
|
|
|
|
|
|
if(KIO::NetAccess::exists(url,false,this)) |
|
|
|
if(TDEIO::NetAccess::exists(url,false,this)) |
|
|
|
{ |
|
|
|
TQString mes=i18n("The file %1 exists.\n" |
|
|
|
"Do you want to overwrite it?").arg(url.url()); |
|
|
@ -144,7 +144,7 @@ void KJumpingCube::saveGame(bool saveAs) |
|
|
|
view->saveGame(&config); |
|
|
|
config.sync(); |
|
|
|
|
|
|
|
if(KIO::NetAccess::upload( tempFile.name(),gameURL,this )) |
|
|
|
if(TDEIO::NetAccess::upload( tempFile.name(),gameURL,this )) |
|
|
|
{ |
|
|
|
TQString s=i18n("game saved as %1"); |
|
|
|
s=s.arg(gameURL.url()); |
|
|
@ -166,7 +166,7 @@ void KJumpingCube::openGame() |
|
|
|
url = KFileDialog::getOpenURL( gameURL.url(), "*.kjc", this, 0 ); |
|
|
|
if( url.isEmpty() ) |
|
|
|
return; |
|
|
|
if(!KIO::NetAccess::exists(url,true,this)) |
|
|
|
if(!TDEIO::NetAccess::exists(url,true,this)) |
|
|
|
{ |
|
|
|
TQString mes=i18n("The file %1 does not exist!").arg(url.url()); |
|
|
|
KMessageBox::sorry(this,mes); |
|
|
@ -176,7 +176,7 @@ void KJumpingCube::openGame() |
|
|
|
while(!fileOk); |
|
|
|
|
|
|
|
TQString tempFile; |
|
|
|
if( KIO::NetAccess::download( url, tempFile, this ) ) |
|
|
|
if( TDEIO::NetAccess::download( url, tempFile, this ) ) |
|
|
|
{ |
|
|
|
KSimpleConfig config(tempFile,true); |
|
|
|
config.setGroup("KJumpingCube"); |
|
|
@ -194,7 +194,7 @@ void KJumpingCube::openGame() |
|
|
|
|
|
|
|
undoAction->setEnabled(false); |
|
|
|
|
|
|
|
KIO::NetAccess::removeTempFile( tempFile ); |
|
|
|
TDEIO::NetAccess::removeTempFile( tempFile ); |
|
|
|
} |
|
|
|
else |
|
|
|
KMessageBox::sorry(this,i18n("There was an error loading file\n%1").arg( url.url() )); |
|
|
@ -265,10 +265,10 @@ void KJumpingCube::enableStop_Thinking(){ |
|
|
|
* Show Configure dialog. |
|
|
|
*/ |
|
|
|
void KJumpingCube::showOptions(){ |
|
|
|
if(KConfigDialog::showDialog("settings")) |
|
|
|
if(TDEConfigDialog::showDialog("settings")) |
|
|
|
return; |
|
|
|
|
|
|
|
KConfigDialog *dialog = new KConfigDialog(this, "settings", Prefs::self(), KDialogBase::Swallow); |
|
|
|
TDEConfigDialog *dialog = new TDEConfigDialog(this, "settings", Prefs::self(), KDialogBase::Swallow); |
|
|
|
dialog->addPage(new Settings(0, "General"), i18n("General"), "package_settings"); |
|
|
|
connect(dialog, TQT_SIGNAL(settingsChanged()), view, TQT_SLOT(loadSettings())); |
|
|
|
dialog->show(); |
|
|
|