if(KIO::NetAccess::exists(saveURL,true,kapp->mainWidget()))// check for writing possibility
{
intr=KMessageBox::warningContinueCancel(m_ki->tqparentWidget(),i18n("A file with the name \"%1\" exists already. Do you want to overwrite it ?").tqarg(saveURL.fileName()),i18n("Overwrite File ?"),KGuiItem(i18n("&Overwrite")),TQString());
intr=KMessageBox::warningContinueCancel(m_ki->parentWidget(),i18n("A file with the name \"%1\" exists already. Do you want to overwrite it ?").tqarg(saveURL.fileName()),i18n("Overwrite File ?"),KGuiItem(i18n("&Overwrite")),TQString());
KMessageBox::error(m_ki->tqparentWidget(),i18n("The current document is not associated to a project. Please activate a document that is associated to the project you want to build the tree for, then choose Refresh Project Tree again."),i18n("Could Not Refresh Project Tree"));
KMessageBox::error(m_ki->parentWidget(),i18n("The current document is not associated to a project. Please activate a document that is associated to the project you want to build the tree for, then choose Refresh Project Tree again."),i18n("Could Not Refresh Project Tree"));
KMessageBox::error(m_ki->tqparentWidget(),i18n("This file is the project file, it holds all the information about your project. Therefore it is not allowed to remove this file from its project."),i18n("Cannot Remove File From Project"));
KMessageBox::error(m_ki->parentWidget(),i18n("This file is the project file, it holds all the information about your project. Therefore it is not allowed to remove this file from its project."),i18n("Cannot Remove File From Project"));
//oops, doc aptqparently was open while the project settings wants it closed, don't trash it the doc, update openstate instead
//oops, doc apparently was open while the project settings wants it closed, don't trash it the doc, update openstate instead
if((!item->isOpen())&&(view!=0L))
item->setOpenState(true);
}
@ -1294,7 +1294,7 @@ KileProject* Manager::projectOpen(const KURL & url, int step, int max, bool open
{
m_kpd->cancel();
KMessageBox::information(m_ki->tqparentWidget(),i18n("The project you tried to open is already opened. If you wanted to reload the project, close the project before you re-open it."),i18n("Project Already Open"));
KMessageBox::information(m_ki->parentWidget(),i18n("The project you tried to open is already opened. If you wanted to reload the project, close the project before you re-open it."),i18n("Project Already Open"));
return0L;
}
@ -1303,7 +1303,7 @@ KileProject* Manager::projectOpen(const KURL & url, int step, int max, bool open
{
m_kpd->cancel();
if(KMessageBox::warningYesNo(m_ki->tqparentWidget(),i18n("The project file for this project does not exists or is not readable. Remove this project from the recent projects list?"),i18n("Could Not Load Project File"))==KMessageBox::Yes)
if(KMessageBox::warningYesNo(m_ki->parentWidget(),i18n("The project file for this project does not exists or is not readable. Remove this project from the recent projects list?"),i18n("Could Not Load Project File"))==KMessageBox::Yes)
KMessageBox::error(m_ki->tqparentWidget(),i18n("The current document is not associated to a project. Please activate a document that is associated to the project you want to save, then choose Save Project again."),i18n("Could Determine Active Project"));
KMessageBox::error(m_ki->parentWidget(),i18n("The current document is not associated to a project. Please activate a document that is associated to the project you want to save, then choose Save Project again."),i18n("Could Determine Active Project"));
KMessageBox::error(m_ki->tqparentWidget(),i18n("There are no projects opened. Please open the project you want to add files to, then choose Add Files again."),i18n("Could Not Determine Active Project"));
KMessageBox::error(m_ki->parentWidget(),i18n("There are no projects opened. Please open the project you want to add files to, then choose Add Files again."),i18n("Could Not Determine Active Project"));
KMessageBox::error(m_ki->tqparentWidget(),i18n("The current document is not associated to a project. Please activate a document that is associated to the project you want to modify, then choose Project Options again."),i18n("Could Not Determine Active Project"));
KMessageBox::error(m_ki->parentWidget(),i18n("The current document is not associated to a project. Please activate a document that is associated to the project you want to modify, then choose Project Options again."),i18n("Could Not Determine Active Project"));
KMessageBox::error(m_ki->tqparentWidget(),i18n("The current document is not associated to a project. Please activate a document that is associated to the project you want to close, then choose Close Project again."),i18n("Could Not Close Project"));
KMessageBox::error(m_ki->parentWidget(),i18n("The current document is not associated to a project. Please activate a document that is associated to the project you want to close, then choose Close Project again."),i18n("Could Not Close Project"));