summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2015-06-17 15:33:10 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2015-06-17 15:35:36 +0900
commit8b9c0d28fe084e8c7912a55f29052052edcfdd6e (patch)
tree9b199d1df7b3705bf6dc15594347c0267f3511fe /src
parenta02c867020f0f7f4d399c1d2849ac990614036f8 (diff)
downloadtdevelop-8b9c0d28fe084e8c7912a55f29052052edcfdd6e.tar.gz
tdevelop-8b9c0d28fe084e8c7912a55f29052052edcfdd6e.zip
Revert to .kdevelop files with <kdevelop> entity name for project files.
This resolves bug 2308. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit e044c5463329652f28565dfc7de24ef8b0edaa6f)
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
-rw-r--r--src/projectmanager.cpp16
-rw-r--r--src/simplemainwindow.cpp2
3 files changed, 10 insertions, 10 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 6f27e415..65177e53 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -126,7 +126,7 @@ int main(int argc, char *argv[])
} else if( args->count() > 0 ){
KURL url = args->url( 0 );
TQString ext = TQFileInfo( url.fileName() ).extension();
- if( ext == "tdevelop" ){
+ if( ext == "kdevelop" ){
ProjectManager::getInstance()->loadProject( url );
openProject = true;
}
diff --git a/src/projectmanager.cpp b/src/projectmanager.cpp
index 77c84658..19a88d78 100644
--- a/src/projectmanager.cpp
+++ b/src/projectmanager.cpp
@@ -55,7 +55,7 @@ class TQDomDocument;
TQString ProjectInfo::sessionFile() const
{
TQString sf = m_projectURL.path(-1);
- sf.truncate(sf.length() - 8); // without ".tdevelop"
+ sf.truncate(sf.length() - 8); // without ".kdevelop"
sf += "kdevses"; // suffix for a TDevelop session file
return sf;
}
@@ -130,7 +130,7 @@ void ProjectManager::slotOpenProject()
TQString defaultProjectsDir = config->readPathEntry("DefaultProjectsDir", TQDir::homeDirPath()+"/");
KURL url = KFileDialog::getOpenURL(defaultProjectsDir,
- i18n("*.tdevelop|KDevelop 3 Project Files\n"
+ i18n("*.kdevelop|KDevelop 3 Project Files\n"
"*.kdevprj|KDevelop 2 Project Files"),
TopLevel::getInstance()->main(), i18n("Open Project") );
@@ -379,7 +379,7 @@ bool ProjectManager::loadProjectFile()
TDEIO::NetAccess::removeTempFile(path);
return false;
}
- if (m_info->m_document.documentElement().nodeName() != "tdevelop")
+ if (m_info->m_document.documentElement().nodeName() != "kdevelop")
{
KMessageBox::sorry(TopLevel::getInstance()->main(),
i18n("This is not a valid project file."));
@@ -411,7 +411,7 @@ bool ProjectManager::saveProjectFile()
API::getInstance()->projectDom()->save(stream, 2);
fout.close();
} else {
- KTempFile fout(TQString::fromLatin1("tdevelop3"));
+ KTempFile fout(TQString::fromLatin1("kdevelop3"));
fout.setAutoDelete(true);
if (fout.status() != 0) {
KMessageBox::sorry(TopLevel::getInstance()->main(), i18n("Could not write the project file."));
@@ -457,7 +457,7 @@ void ProjectManager::getGeneralInfo()
if( m_info->m_projectName.isEmpty() )
{
m_info->m_projectName = m_info->m_projectURL.filename();
- m_info->m_projectName = m_info->m_projectName.left(m_info->m_projectName.length()-TQString(".tdevelop").length());
+ m_info->m_projectName = m_info->m_projectName.left(m_info->m_projectName.length()-TQString(".kdevelop").length());
TQDomElement prjname = m_info->m_document.createElement("projectname");
prjname.appendChild( m_info->m_document.createTextNode( m_info->m_projectName) );
generalEl.appendChild( prjname );
@@ -618,9 +618,9 @@ bool ProjectManager::loadKDevelop2Project( const KURL & url )
return false;
}
- TQString cmd = TDEGlobal::dirs()->findExe( "kdevprj2tdevelop" );
+ TQString cmd = TDEGlobal::dirs()->findExe( "kdevprj2kdevelop" );
if (cmd.isEmpty()) {
- KMessageBox::sorry(0, i18n("You do not have 'kdevprj2tdevelop' installed."));
+ KMessageBox::sorry(0, i18n("You do not have 'kdevprj2kdevelop' installed."));
return false;
}
@@ -631,7 +631,7 @@ bool ProjectManager::loadKDevelop2Project( const KURL & url )
proc << "perl" << cmd << KShellProcess::quote( url.path() );
proc.start( TDEProcess::Block );
- TQString projectFile = fileInfo.dirPath( true ) + "/" + fileInfo.baseName() + ".tdevelop";
+ TQString projectFile = fileInfo.dirPath( true ) + "/" + fileInfo.baseName() + ".kdevelop";
return loadProject( KURL(projectFile) );
}
diff --git a/src/simplemainwindow.cpp b/src/simplemainwindow.cpp
index b3e02591..f6083feb 100644
--- a/src/simplemainwindow.cpp
+++ b/src/simplemainwindow.cpp
@@ -999,7 +999,7 @@ void SimpleMainWindow::setCaption(const TQString &caption)
{
TQString projectname = project->projectName();
- TQString suffix(".tdevelop");
+ TQString suffix(".kdevelop");
if (projectname.endsWith(suffix))
projectname.truncate(projectname.length() - suffix.length());