- enhancement: When creating project, warn user if the project folder is not empty.

This commit is contained in:
Roy Qu 2023-10-08 19:58:04 +08:00
parent 24d84b9f5e
commit 6016065b58
10 changed files with 224 additions and 155 deletions

View File

@ -35,8 +35,8 @@ author: С
### Sea Lite
author:
author: PerryDing
### Ochre_Butter
author:
author: PerryDing

View File

@ -9,6 +9,8 @@ Red Panda C++ Version 2.25
- change: Use freetype as the fontengine in windows ( from cyano.CN )
- fix: Custom compile options is not used when retrieve macros defined by the compiler.
- fix: Processing for #if/#elif/#else is not correct.
- Change: Empty project template won't auto create main.c/main.cpp
- enhancement: When creating project, warn user if the project folder is not empty.
Red Panda C++ Version 2.24

View File

@ -7036,7 +7036,20 @@ void MainWindow::on_actionNew_Project_triggered()
// if cbDefault.Checked then
// devData.DefCpp := rbCpp.Checked;
QDir projectDir = QDir(location);
if (!projectDir.isEmpty()) {
if (QMessageBox::question(
nullptr,
tr("Folder Not Empty"),
tr("The project folder is not empty, existing files may be overwritten.")
+ "<br/><br/>"
+tr("Do you want to proceed?"),
QMessageBox::Yes | QMessageBox::No,
QMessageBox::No
) == QMessageBox::No) {
return;
}
}
s = includeTrailingPathDelimiter(location)
+ dialog.getProjectName() + "." + DEV_PROJECT_EXT;
@ -7060,6 +7073,7 @@ void MainWindow::on_actionNew_Project_triggered()
tr("New project fail"),
tr("Can't assign project template"),
QMessageBox::Ok);
return;
}
mProject->saveAll();
updateProjectView();

View File

@ -92,13 +92,13 @@ std::shared_ptr<Project> Project::create(
ini.SetValue("Project","filename", toByteArray(extractRelativePath(project->directory(),
project->mFilename)));
ini.SetValue("Project","name", toByteArray(project->mName));
ini.SaveFile(project->mFilename.toLocal8Bit());
project->mParser->setEnabled(false);
if (!project->assignTemplate(pTemplate,useCpp))
return std::shared_ptr<Project>();
resetCppParser(project->mParser, project->mOptions.compilerSet);
project->mModified = true;
ini.SaveFile(project->mFilename.toLocal8Bit());
return project;
}
@ -934,8 +934,9 @@ void Project::setCompilerSet(int compilerSetIndex)
bool Project::assignTemplate(const std::shared_ptr<ProjectTemplate> aTemplate, bool useCpp)
{
if (!aTemplate) {
return true;
return false;
}
mModel.beginUpdate();
mRootNode = makeProjectNode();
rebuildNodes();
@ -974,10 +975,12 @@ bool Project::assignTemplate(const std::shared_ptr<ProjectTemplate> aTemplate, b
PProjectUnit unit;
if (!templateUnit->Target.isEmpty())
target = templateUnit->Target;
unit = newUnit(mRootNode, target);
if (templateUnit->overwrite || !fileExists(unit->fileName()) ) {
QFile::copy(
cleanPath(dir.absoluteFilePath(templateUnit->Source)),
includeTrailingPathDelimiter(this->directory())+target);
unit = newUnit(mRootNode, target);
}
FileType fileType=getFileType(unit->fileName());
if ( fileType==FileType::GAS
@ -1006,6 +1009,7 @@ bool Project::assignTemplate(const std::shared_ptr<ProjectTemplate> aTemplate, b
this,
true);
if (templateUnit->overwrite || !fileExists(unit->fileName()) ) {
QString s2 = cleanPath(dir.absoluteFilePath(s));
if (fileExists(s2) && !s.isEmpty()) {
try {
@ -1020,6 +1024,7 @@ bool Project::assignTemplate(const std::shared_ptr<ProjectTemplate> aTemplate, b
editor->insertString(s,false);
}
editor->save(true,false);
}
editor->activate();
}
}

View File

@ -57,7 +57,7 @@ PTemplateUnit ProjectTemplate::unit(int index)
if (unit->CppName.isEmpty())
unit->CppName = unit->CName;
unit->Target = fromByteArray(mIni->GetValue(toByteArray(section), "Target", ""));
unit->overwrite = mIni->GetBoolValue(toByteArray(section), "Overwrite", true);
return unit;
}

View File

@ -28,6 +28,7 @@ struct TemplateUnit {
QString CppText;
QString Source;
QString Target;
bool overwrite;
};
using PTemplateUnit = std::shared_ptr<TemplateUnit>;

View File

@ -8,10 +8,6 @@ Description[zh_CN]=一个空项目
Category=Basic
Category[zh_CN]=基础
[Unit0]
CName=main.c
CppName=main.cpp
[Project]
UnitCount=1
Type=1

View File

@ -5375,6 +5375,18 @@
<source>Ignore spaces</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Folder Not Empty</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The project folder is not empty, existing files may be overwritten.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Do you want to proceed?</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MemoryModel</name>

View File

@ -4453,7 +4453,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.cpp" line="5843"/>
<location filename="../mainwindow.cpp" line="5847"/>
<location filename="../mainwindow.cpp" line="5850"/>
<location filename="../mainwindow.cpp" line="8067"/>
<location filename="../mainwindow.cpp" line="8081"/>
<source>Issues</source>
<translation></translation>
</message>
@ -4886,7 +4886,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.ui" line="793"/>
<location filename="../mainwindow.ui" line="796"/>
<location filename="../mainwindow.cpp" line="2634"/>
<location filename="../mainwindow.cpp" line="8498"/>
<location filename="../mainwindow.cpp" line="8512"/>
<source>New Problem Set</source>
<translation></translation>
</message>
@ -4908,7 +4908,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.ui" line="823"/>
<location filename="../mainwindow.ui" line="826"/>
<location filename="../mainwindow.cpp" line="2648"/>
<location filename="../mainwindow.cpp" line="8559"/>
<location filename="../mainwindow.cpp" line="8573"/>
<source>Save Problem Set</source>
<translation></translation>
</message>
@ -4916,7 +4916,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.ui" line="833"/>
<location filename="../mainwindow.ui" line="836"/>
<location filename="../mainwindow.cpp" line="2655"/>
<location filename="../mainwindow.cpp" line="8595"/>
<location filename="../mainwindow.cpp" line="8609"/>
<source>Load Problem Set</source>
<translation></translation>
</message>
@ -5047,14 +5047,14 @@ Are you really want to continue?</oldsource>
<message>
<location filename="../mainwindow.ui" line="843"/>
<location filename="../mainwindow.cpp" line="2661"/>
<location filename="../mainwindow.cpp" line="9756"/>
<location filename="../mainwindow.cpp" line="9770"/>
<source>Import FPS Problem Set</source>
<translation>FPS试题集</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="850"/>
<location filename="../mainwindow.cpp" line="2667"/>
<location filename="../mainwindow.cpp" line="9787"/>
<location filename="../mainwindow.cpp" line="9801"/>
<source>Export FPS Problem Set</source>
<translation>FPS试题集</translation>
</message>
@ -5710,7 +5710,7 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.ui" line="2486"/>
<location filename="../mainwindow.cpp" line="8009"/>
<location filename="../mainwindow.cpp" line="8023"/>
<source>Rename Symbol</source>
<translation></translation>
</message>
@ -5731,13 +5731,13 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.ui" line="2502"/>
<location filename="../mainwindow.cpp" line="8264"/>
<location filename="../mainwindow.cpp" line="8278"/>
<source>Export As RTF</source>
<translation>RTF</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="2507"/>
<location filename="../mainwindow.cpp" line="8286"/>
<location filename="../mainwindow.cpp" line="8300"/>
<source>Export As HTML</source>
<translation>HTML</translation>
</message>
@ -6295,22 +6295,22 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9655"/>
<location filename="../mainwindow.cpp" line="9669"/>
<source>Go to Line</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9655"/>
<location filename="../mainwindow.cpp" line="9669"/>
<source>Line</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9677"/>
<location filename="../mainwindow.cpp" line="9691"/>
<source>Template Exists</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9678"/>
<location filename="../mainwindow.cpp" line="9692"/>
<source>Template %1 already exists. Do you want to overwrite?</source>
<translation>%1</translation>
</message>
@ -6336,7 +6336,7 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.cpp" line="343"/>
<location filename="../mainwindow.cpp" line="8507"/>
<location filename="../mainwindow.cpp" line="8521"/>
<source>Problem Set %1</source>
<translation>%1</translation>
</message>
@ -6406,15 +6406,15 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.cpp" line="4632"/>
<location filename="../mainwindow.cpp" line="8356"/>
<location filename="../mainwindow.cpp" line="8398"/>
<location filename="../mainwindow.cpp" line="8370"/>
<location filename="../mainwindow.cpp" line="8412"/>
<source>Bookmark Description</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4633"/>
<location filename="../mainwindow.cpp" line="8357"/>
<location filename="../mainwindow.cpp" line="8399"/>
<location filename="../mainwindow.cpp" line="8371"/>
<location filename="../mainwindow.cpp" line="8413"/>
<source>Description:</source>
<translation></translation>
</message>
@ -6636,7 +6636,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.cpp" line="4506"/>
<location filename="../mainwindow.cpp" line="4513"/>
<location filename="../mainwindow.cpp" line="4519"/>
<location filename="../mainwindow.cpp" line="7560"/>
<location filename="../mainwindow.cpp" line="7574"/>
<source>Delete</source>
<translation></translation>
</message>
@ -6731,12 +6731,27 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9885"/>
<location filename="../mainwindow.cpp" line="7043"/>
<source>Folder Not Empty</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7044"/>
<source>The project folder is not empty, existing files may be overwritten.</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7046"/>
<source>Do you want to proceed?</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9899"/>
<source>Watchpoint variable name</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9886"/>
<location filename="../mainwindow.cpp" line="9900"/>
<source>Stop execution when the following variable is modified (it must be visible from the currect scope):</source>
<translation>访</translation>
</message>
@ -6745,17 +6760,17 @@ Are you really want to continue?</oldsource>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9758"/>
<location filename="../mainwindow.cpp" line="9772"/>
<source>FPS Problem Set Files (*.fps;*.xml)</source>
<translation>FPS试题集文件(*.fps;*.xml)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9789"/>
<location filename="../mainwindow.cpp" line="9803"/>
<source>FPS Problem Set Files (*.fps)</source>
<translation>FPS试题集文件(*.fps)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9794"/>
<location filename="../mainwindow.cpp" line="9808"/>
<source>Export Error</source>
<translation></translation>
</message>
@ -6817,7 +6832,7 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.cpp" line="5272"/>
<location filename="../mainwindow.cpp" line="8501"/>
<location filename="../mainwindow.cpp" line="8515"/>
<source>Do you want to save it?</source>
<translation></translation>
</message>
@ -6829,15 +6844,15 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.cpp" line="5479"/>
<location filename="../mainwindow.cpp" line="9833"/>
<location filename="../mainwindow.cpp" line="9900"/>
<location filename="../mainwindow.cpp" line="9847"/>
<location filename="../mainwindow.cpp" line="9914"/>
<source>New Project File?</source>
<translation>?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="5480"/>
<location filename="../mainwindow.cpp" line="9834"/>
<location filename="../mainwindow.cpp" line="9901"/>
<location filename="../mainwindow.cpp" line="9848"/>
<location filename="../mainwindow.cpp" line="9915"/>
<source>Do you want to add the new file to the project?</source>
<translation>?</translation>
</message>
@ -6846,7 +6861,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.cpp" line="5577"/>
<location filename="../mainwindow.cpp" line="5588"/>
<location filename="../mainwindow.cpp" line="5598"/>
<location filename="../mainwindow.cpp" line="8584"/>
<location filename="../mainwindow.cpp" line="8598"/>
<source>Save Error</source>
<translation></translation>
</message>
@ -6930,33 +6945,33 @@ Are you really want to continue?</oldsource>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7046"/>
<location filename="../mainwindow.cpp" line="7059"/>
<source>Save new project as</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7561"/>
<location filename="../mainwindow.cpp" line="7575"/>
<source>Folder %1 is not empty.</source>
<translation>%1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7562"/>
<location filename="../mainwindow.cpp" line="7576"/>
<source>Do you really want to delete it?</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8421"/>
<location filename="../mainwindow.cpp" line="8435"/>
<source>Change working folder</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8422"/>
<location filename="../mainwindow.cpp" line="8436"/>
<source>File &apos;%1&apos; is not in the current working folder.</source>
<oldsource>File &apos;%1&apos; is not in the current working folder</oldsource>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8425"/>
<location filename="../mainwindow.cpp" line="8439"/>
<source>Do you want to change working folder to &apos;%1&apos;?</source>
<translation>&apos;%1&apos;?</translation>
</message>
@ -6965,28 +6980,28 @@ Are you really want to continue?</oldsource>
<translation type="vanished">...</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9177"/>
<location filename="../mainwindow.cpp" line="9191"/>
<source>Can&apos;t Commit</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9178"/>
<location filename="../mainwindow.cpp" line="9192"/>
<source>Git needs user info to commit.</source>
<translation>Git需要用信息进行提交</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9446"/>
<location filename="../mainwindow.cpp" line="9460"/>
<source>Choose Input Data File</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9448"/>
<location filename="../mainwindow.cpp" line="9503"/>
<location filename="../mainwindow.cpp" line="9462"/>
<location filename="../mainwindow.cpp" line="9517"/>
<source>All files (*.*)</source>
<translation> (*.*)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9501"/>
<location filename="../mainwindow.cpp" line="9515"/>
<source>Choose Expected Output Data File</source>
<oldsource>Choose Expected Input Data File</oldsource>
<translation></translation>
@ -6998,59 +7013,59 @@ Are you really want to continue?</oldsource>
<message>
<location filename="../mainwindow.ui" line="2556"/>
<location filename="../mainwindow.ui" line="2559"/>
<location filename="../mainwindow.cpp" line="8477"/>
<location filename="../mainwindow.cpp" line="8491"/>
<source>Choose Working Folder</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8946"/>
<location filename="../mainwindow.cpp" line="8995"/>
<location filename="../mainwindow.cpp" line="8960"/>
<location filename="../mainwindow.cpp" line="9009"/>
<source>Header Exists</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8947"/>
<location filename="../mainwindow.cpp" line="8996"/>
<location filename="../mainwindow.cpp" line="8961"/>
<location filename="../mainwindow.cpp" line="9010"/>
<source>Header file &quot;%1&quot; already exists!</source>
<translation>&quot;%1&quot;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9001"/>
<location filename="../mainwindow.cpp" line="9015"/>
<source>Source Exists</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9002"/>
<location filename="../mainwindow.cpp" line="9016"/>
<source>Source file &quot;%1&quot; already exists!</source>
<translation>&quot;%1&quot;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9156"/>
<location filename="../mainwindow.cpp" line="9170"/>
<source>Can&apos;t commit!</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9157"/>
<location filename="../mainwindow.cpp" line="9171"/>
<source>The following files are in conflicting:</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9162"/>
<location filename="../mainwindow.cpp" line="9176"/>
<source>Commit Message</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9162"/>
<location filename="../mainwindow.cpp" line="9176"/>
<source>Commit Message:</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9165"/>
<location filename="../mainwindow.cpp" line="9179"/>
<source>Commit Failed</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="9166"/>
<location filename="../mainwindow.cpp" line="9180"/>
<source>Commit message shouldn&apos;t be empty!</source>
<translation></translation>
</message>
@ -7059,22 +7074,22 @@ Are you really want to continue?</oldsource>
<translation type="vanished">Dev-C++ (*.dev)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7060"/>
<location filename="../mainwindow.cpp" line="7073"/>
<source>New project fail</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7061"/>
<location filename="../mainwindow.cpp" line="7074"/>
<source>Can&apos;t assign project template</source>
<translation>使</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7166"/>
<location filename="../mainwindow.cpp" line="7180"/>
<source>Remove file</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7167"/>
<location filename="../mainwindow.cpp" line="7181"/>
<source>Remove the file from disk?</source>
<translation></translation>
</message>
@ -7083,27 +7098,27 @@ Are you really want to continue?</oldsource>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7480"/>
<location filename="../mainwindow.cpp" line="7494"/>
<source>New Project File Name</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7481"/>
<location filename="../mainwindow.cpp" line="7495"/>
<source>File Name:</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7489"/>
<location filename="../mainwindow.cpp" line="7503"/>
<source>File Already Exists!</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7490"/>
<location filename="../mainwindow.cpp" line="7504"/>
<source>File &apos;%1&apos; already exists!</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7118"/>
<location filename="../mainwindow.cpp" line="7132"/>
<source>Add to project</source>
<translation></translation>
</message>
@ -7169,78 +7184,78 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7048"/>
<location filename="../mainwindow.cpp" line="7061"/>
<source>Red Panda C++ project file (*.dev)</source>
<translation>C++(*.dev)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7982"/>
<location filename="../mainwindow.cpp" line="7996"/>
<source>Rename Error</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="7983"/>
<location filename="../mainwindow.cpp" line="7997"/>
<source>Symbol &apos;%1&apos; is defined in system header.</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8010"/>
<location filename="../mainwindow.cpp" line="8024"/>
<source>New Name</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8169"/>
<location filename="../mainwindow.cpp" line="8192"/>
<location filename="../mainwindow.cpp" line="8203"/>
<location filename="../mainwindow.cpp" line="8224"/>
<location filename="../mainwindow.cpp" line="8183"/>
<location filename="../mainwindow.cpp" line="8206"/>
<location filename="../mainwindow.cpp" line="8217"/>
<location filename="../mainwindow.cpp" line="8238"/>
<source>Replace Error</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8170"/>
<location filename="../mainwindow.cpp" line="8184"/>
<source>Can&apos;t open file &apos;%1&apos; for replace!</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8204"/>
<location filename="../mainwindow.cpp" line="8218"/>
<source>Contents has changed since last search!</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8266"/>
<location filename="../mainwindow.cpp" line="8280"/>
<source>Rich Text Format Files (*.rtf)</source>
<translation>RTF格式文件 (*.rtf)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8288"/>
<location filename="../mainwindow.cpp" line="8302"/>
<source>HTML Files (*.html)</source>
<translation>HTML文件 (*.html)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8499"/>
<location filename="../mainwindow.cpp" line="8513"/>
<source>The current problem set is not empty.</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8518"/>
<location filename="../mainwindow.cpp" line="8532"/>
<source>Problem %1</source>
<translation>%1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8566"/>
<location filename="../mainwindow.cpp" line="8597"/>
<location filename="../mainwindow.cpp" line="8580"/>
<location filename="../mainwindow.cpp" line="8611"/>
<source>Problem Set Files (*.pbs)</source>
<translation> (*.pbs)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8611"/>
<location filename="../mainwindow.cpp" line="9766"/>
<location filename="../mainwindow.cpp" line="8625"/>
<location filename="../mainwindow.cpp" line="9780"/>
<source>Load Error</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="4314"/>
<location filename="../mainwindow.cpp" line="8625"/>
<location filename="../mainwindow.cpp" line="8639"/>
<source>Problem Case %1</source>
<translation>%1</translation>
</message>
@ -7258,7 +7273,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.cpp" line="5522"/>
<location filename="../mainwindow.cpp" line="6239"/>
<location filename="../mainwindow.cpp" line="6251"/>
<location filename="../mainwindow.cpp" line="9586"/>
<location filename="../mainwindow.cpp" line="9600"/>
<source>Error</source>
<translation></translation>
</message>
@ -7332,7 +7347,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.cpp" line="3567"/>
<location filename="../mainwindow.cpp" line="6268"/>
<location filename="../mainwindow.cpp" line="6282"/>
<location filename="../mainwindow.cpp" line="9569"/>
<location filename="../mainwindow.cpp" line="9583"/>
<source>Confirm Convertion</source>
<translation></translation>
</message>
@ -7362,7 +7377,7 @@ Are you really want to continue?</oldsource>
<location filename="../mainwindow.cpp" line="3568"/>
<location filename="../mainwindow.cpp" line="6269"/>
<location filename="../mainwindow.cpp" line="6283"/>
<location filename="../mainwindow.cpp" line="9570"/>
<location filename="../mainwindow.cpp" line="9584"/>
<source>The editing file will be saved using %1 encoding. &lt;br /&gt;This operation can&apos;t be reverted. &lt;br /&gt;Are you sure to continue?</source>
<translation>使%1&lt;br /&gt;&lt;br /&gt;</translation>
</message>
@ -7835,105 +7850,117 @@ Are you really want to continue?</oldsource>
<translation type="vanished">&apos;%1&apos;.</translation>
</message>
<message>
<location filename="../project.cpp" line="1015"/>
<source>Folder Not Empty</source>
<translation type="vanished"></translation>
</message>
<message>
<source>The project folder is not empty, existing files may be overwritten.</source>
<translation type="vanished"></translation>
</message>
<message>
<source>Do you want to proceed?</source>
<translation type="vanished"></translation>
</message>
<message>
<location filename="../project.cpp" line="1019"/>
<source>Error Load File</source>
<translation></translation>
</message>
<message>
<location filename="../project.cpp" line="1039"/>
<location filename="../project.cpp" line="1138"/>
<location filename="../project.cpp" line="1044"/>
<location filename="../project.cpp" line="1143"/>
<source>Error</source>
<translation></translation>
</message>
<message>
<location filename="../project.cpp" line="1040"/>
<location filename="../project.cpp" line="1045"/>
<source>Can&apos;t create folder %1 </source>
<translation>%1</translation>
</message>
<message>
<location filename="../project.cpp" line="1109"/>
<location filename="../project.cpp" line="1114"/>
<source>Warning</source>
<translation></translation>
</message>
<message>
<location filename="../project.cpp" line="1110"/>
<location filename="../project.cpp" line="1139"/>
<location filename="../project.cpp" line="1115"/>
<location filename="../project.cpp" line="1144"/>
<source>Can&apos;t save file %1</source>
<translation>%1</translation>
</message>
<message>
<location filename="../project.cpp" line="1284"/>
<location filename="../project.cpp" line="1289"/>
<source>File Exists</source>
<translation></translation>
</message>
<message>
<location filename="../project.cpp" line="1285"/>
<location filename="../project.cpp" line="1290"/>
<source>File &apos;%1&apos; is already in the project</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../project.cpp" line="1666"/>
<location filename="../project.cpp" line="1671"/>
<source>Project Updated</source>
<translation></translation>
</message>
<message>
<location filename="../project.cpp" line="1667"/>
<location filename="../project.cpp" line="1672"/>
<source>Your project was succesfully updated to a newer file format!</source>
<translation></translation>
</message>
<message>
<location filename="../project.cpp" line="1669"/>
<location filename="../project.cpp" line="1674"/>
<source>If something has gone wrong, we kept a backup-file: &apos;%1&apos;...</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../project.cpp" line="1740"/>
<location filename="../project.cpp" line="1745"/>
<source>Headers</source>
<translation></translation>
</message>
<message>
<location filename="../project.cpp" line="1748"/>
<location filename="../project.cpp" line="1753"/>
<source>Sources</source>
<translation></translation>
</message>
<message>
<location filename="../project.cpp" line="1756"/>
<location filename="../project.cpp" line="1761"/>
<source>Others</source>
<translation></translation>
</message>
<message>
<location filename="../project.cpp" line="1974"/>
<location filename="../project.cpp" line="1979"/>
<source>Settings need update</source>
<translation></translation>
</message>
<message>
<location filename="../project.cpp" line="1975"/>
<location filename="../project.cpp" line="1980"/>
<source>The compiler settings format of Red Panda C++ has changed.</source>
<oldsource>The compiler settings format of Dev-C++ has changed.</oldsource>
<translation>C++</translation>
</message>
<message>
<location filename="../project.cpp" line="1977"/>
<location filename="../project.cpp" line="1982"/>
<source>Please update your settings at Project &gt;&gt; Project Options &gt;&gt; Compiler and save your project.</source>
<translation> &gt;&gt; &gt;&gt; </translation>
</message>
<message>
<location filename="../project.cpp" line="2054"/>
<location filename="../project.cpp" line="2059"/>
<source>Compiler not found</source>
<translation></translation>
</message>
<message>
<location filename="../project.cpp" line="2055"/>
<location filename="../project.cpp" line="2060"/>
<source>The compiler set you have selected for this project, no longer exists.</source>
<translation></translation>
</message>
<message>
<location filename="../project.cpp" line="2057"/>
<location filename="../project.cpp" line="2062"/>
<source>It will be substituted by the global compiler set.</source>
<translation></translation>
</message>
<message>
<location filename="../project.cpp" line="2151"/>
<location filename="../project.cpp" line="2156"/>
<source>Developed using the Red Panda C++ IDE</source>
<oldsource>Developed using the Red Panda Dev-C++ IDE</oldsource>
<translation>使C++</translation>
@ -8485,32 +8512,32 @@ Are you really want to continue?</oldsource>
<context>
<name>ProjectModel</name>
<message>
<location filename="../project.cpp" line="2738"/>
<location filename="../project.cpp" line="2743"/>
<source>File exists</source>
<translation></translation>
</message>
<message>
<location filename="../project.cpp" line="2739"/>
<location filename="../project.cpp" line="2744"/>
<source>File &apos;%1&apos; already exists. Delete it now?</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../project.cpp" line="2757"/>
<location filename="../project.cpp" line="2762"/>
<source>Remove failed</source>
<translation></translation>
</message>
<message>
<location filename="../project.cpp" line="2758"/>
<location filename="../project.cpp" line="2763"/>
<source>Failed to remove file &apos;%1&apos;</source>
<translation>&apos;%1&apos;</translation>
</message>
<message>
<location filename="../project.cpp" line="2775"/>
<location filename="../project.cpp" line="2780"/>
<source>Rename failed</source>
<translation></translation>
</message>
<message>
<location filename="../project.cpp" line="2776"/>
<location filename="../project.cpp" line="2781"/>
<source>Failed to rename file &apos;%1&apos; to &apos;%2&apos;</source>
<translation>&apos;%1&apos;&apos;%2&apos;</translation>
</message>
@ -8967,7 +8994,7 @@ Are you really want to continue?</oldsource>
<translation>(-g3)</translation>
</message>
<message>
<location filename="../settings.cpp" line="3229"/>
<location filename="../settings.cpp" line="3232"/>
<source>Would you like Red Panda C++ to search for compilers in PATH?</source>
<translation>C++PATH路径中寻找gcc编译器吗</translation>
</message>
@ -9178,7 +9205,7 @@ Are you really want to continue?</oldsource>
<translation type="vanished">(-S)</translation>
</message>
<message>
<location filename="../settings.cpp" line="3231"/>
<location filename="../settings.cpp" line="3234"/>
<source>Confirm</source>
<translation></translation>
</message>
@ -9199,13 +9226,13 @@ Are you really want to continue?</oldsource>
<translation type="vanished">&lt;br /&gt;&lt;br /&gt;</translation>
</message>
<message>
<location filename="../settings.cpp" line="3221"/>
<location filename="../settings.cpp" line="3227"/>
<location filename="../settings.cpp" line="3224"/>
<location filename="../settings.cpp" line="3230"/>
<source>Compiler set not configuared.</source>
<translation></translation>
</message>
<message>
<location filename="../settings.cpp" line="3223"/>
<location filename="../settings.cpp" line="3226"/>
<source>Would you like Red Panda C++ to search for compilers in the following locations: &lt;BR /&gt;&apos;%1&apos;&lt;BR /&gt;&apos;%2&apos;? </source>
<translation>C++&lt;br /&gt;%1&lt;br /&gt;%2</translation>
</message>
@ -9574,7 +9601,7 @@ Are you really want to continue?</oldsource>
<location filename="../autolinkmanager.cpp" line="54"/>
<location filename="../autolinkmanager.cpp" line="70"/>
<location filename="../autolinkmanager.cpp" line="89"/>
<location filename="../settings.cpp" line="3833"/>
<location filename="../settings.cpp" line="3841"/>
<location filename="../widgets/ojproblemsetmodel.cpp" line="168"/>
<location filename="../widgets/ojproblemsetmodel.cpp" line="229"/>
<source>Can&apos;t open file &apos;%1&apos; for read.</source>
@ -10588,12 +10615,12 @@ Are you really want to continue?</oldsource>
<context>
<name>Settings</name>
<message>
<location filename="../settings.cpp" line="3820"/>
<location filename="../settings.cpp" line="3828"/>
<source>Error</source>
<translation></translation>
</message>
<message>
<location filename="../settings.cpp" line="3821"/>
<location filename="../settings.cpp" line="3829"/>
<source>Can&apos;t find terminal program!</source>
<translation></translation>
</message>
@ -10792,8 +10819,8 @@ Are you really want to continue?</oldsource>
<message>
<location filename="../mainwindow.cpp" line="2281"/>
<location filename="../mainwindow.cpp" line="2396"/>
<location filename="../mainwindow.cpp" line="9596"/>
<location filename="../mainwindow.cpp" line="9601"/>
<location filename="../mainwindow.cpp" line="9610"/>
<location filename="../mainwindow.cpp" line="9615"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="172"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="268"/>
<source>Compiler Set</source>
@ -10801,7 +10828,7 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.cpp" line="2397"/>
<location filename="../mainwindow.cpp" line="9597"/>
<location filename="../mainwindow.cpp" line="9611"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="172"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="175"/>
<source>Compiler</source>
@ -10813,7 +10840,7 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8488"/>
<location filename="../mainwindow.cpp" line="8502"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="178"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="219"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="225"/>
@ -10889,15 +10916,15 @@ Are you really want to continue?</oldsource>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8489"/>
<location filename="../mainwindow.cpp" line="8893"/>
<location filename="../mainwindow.cpp" line="8503"/>
<location filename="../mainwindow.cpp" line="8907"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="219"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="222"/>
<source>Program Runner</source>
<translation></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="8892"/>
<location filename="../mainwindow.cpp" line="8906"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="222"/>
<source>Problem Set</source>
<translation></translation>
@ -10957,7 +10984,7 @@ Are you really want to continue?</oldsource>
</message>
<message>
<location filename="../mainwindow.cpp" line="2282"/>
<location filename="../mainwindow.cpp" line="9602"/>
<location filename="../mainwindow.cpp" line="9616"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="262"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="265"/>
<location filename="../settingsdialog/settingsdialog.cpp" line="268"/>

View File

@ -5096,6 +5096,18 @@
<source>Ignore spaces</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Folder Not Empty</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>The project folder is not empty, existing files may be overwritten.</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Do you want to proceed?</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>MemoryModel</name>