- rename to Red Pand C++

This commit is contained in:
Roy Qu 2021-12-30 19:25:47 +08:00
parent e4f205cdb4
commit 02cba8e03c
16 changed files with 356 additions and 234 deletions

View File

@ -1,4 +1,4 @@
Version 0.12.5 For Dev-C++ 7 Beta
Red Panda C++ Version 0.12.5
- fix: compile error in linux
- fix: can't receive gdb async output for commands
- fix: can't reformat code
@ -9,6 +9,7 @@ Version 0.12.5 For Dev-C++ 7 Beta
- enhancement: console pauser for linux
- enhancement: redirect input to program in linux
- enhancement: detach pausing console window
- rename to Red Pand C++
Version 0.12.4 For Dev-C++ 7 Beta
- change: add copyright infos to each source file

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -125,7 +125,7 @@ void ProjectCompiler::newMakeFile(QFile& file)
void ProjectCompiler::writeMakeHeader(QFile &file)
{
writeln(file,"# Project: " + mProject->name());
writeln(file,QString("# Makefile created by Red Panda Dev-C++ ") + DEVCPP_VERSION);
writeln(file,QString("# Makefile created by Red Panda C++ ") + DEVCPP_VERSION);
writeln(file);
if (mOnlyCheckSyntax) {
writeln(file,"# This Makefile is written for syntax check!");

View File

@ -681,7 +681,7 @@ void MainWindow::setActiveBreakpoint(QString FileName, int Line, bool setFocus)
void MainWindow::updateAppTitle()
{
QString appName=tr("Red Panda Dev-C++");
QString appName=tr("Red Panda C++");
Editor *e = mEditorList->getEditor();
QCoreApplication *app = QApplication::instance();
if (e && !e->inProject()) {
@ -4941,7 +4941,7 @@ void MainWindow::on_actionNew_Project_triggered()
this,
tr("Save new project as"),
location,
tr("Red panda Dev-C++ project file (*.dev)"));
tr("Red Panda C++ project file (*.dev)"));
if (!saveName.isEmpty()) {
s = saveName;
}

View File

@ -711,7 +711,7 @@ void Project::saveOptions()
ini.SetValue("Project","FileName", toByteArray(extractRelativePath(directory(), mFilename)));
ini.SetValue("Project","Name", toByteArray(mName));
ini.SetLongValue("Project","Type", static_cast<int>(mOptions.type));
ini.SetLongValue("Project","Ver", 3); // Is 3 as of Red Panda Dev-C++ 7.0
ini.SetLongValue("Project","Ver", 3); // Is 3 as of Red Panda C++.0
ini.SetValue("Project","ObjFiles", toByteArray(mOptions.objFiles.join(";")));
ini.SetValue("Project","Includes", toByteArray(mOptions.includes.join(";")));
ini.SetValue("Project","Libs", toByteArray(mOptions.libs.join(";")));
@ -916,7 +916,7 @@ void Project::buildPrivateResource(bool forceSave)
return;
QStringList contents;
contents.append("/* THIS FILE WILL BE OVERWRITTEN BY DEV-C++ */");
contents.append("/* THIS FILE WILL BE OVERWRITTEN BY Red Panda C++ */");
contents.append("/* DO NOT EDIT! */");
contents.append("");
@ -1096,7 +1096,7 @@ void Project::buildPrivateResource(bool forceSave)
contents.clear();
QString def = extractFileName(rcFile);
def.replace(".","_");
contents.append("/* THIS FILE WILL BE OVERWRITTEN BY DEV-C++ */");
contents.append("/* THIS FILE WILL BE OVERWRITTEN BY Red Panda C++ */");
contents.append("/* DO NOT EDIT ! */");
contents.append("");
contents.append("#ifndef " + def);
@ -1352,7 +1352,7 @@ void Project::loadOptions(SimpleIni& ini)
mOptions.version = 2;
QMessageBox::information(pMainWindow,
tr("Settings need update"),
tr("The compiler settings format of Dev-C++ has changed.")
tr("The compiler settings format of Red Panda C++ has changed.")
+"<BR /><BR />"
+tr("Please update your settings at Project >> Project Options >> Compiler and save your project."),
QMessageBox::Ok);
@ -1432,7 +1432,7 @@ void Project::loadOptions(SimpleIni& ini)
mOptions.versionInfo.companyName = fromByteArray(ini.GetValue("VersionInfo", "CompanyName", ""));
mOptions.versionInfo.fileVersion = fromByteArray(ini.GetValue("VersionInfo", "FileVersion", "0.1"));
mOptions.versionInfo.fileDescription = fromByteArray(ini.GetValue("VersionInfo", "FileDescription",
toByteArray(tr("Developed using the Red Panda Dev-C++ IDE"))));
toByteArray(tr("Developed using the Red Panda C++ IDE"))));
mOptions.versionInfo.internalName = fromByteArray(ini.GetValue("VersionInfo", "InternalName", ""));
mOptions.versionInfo.legalCopyright = fromByteArray(ini.GetValue("VersionInfo", "LegalCopyright", ""));
mOptions.versionInfo.legalTrademarks = fromByteArray(ini.GetValue("VersionInfo", "LegalTrademarks", ""));

View File

@ -26,7 +26,7 @@ ProjectVersionInfo::ProjectVersionInfo()
charsetID = 0x04E4; // Windows multilingual
companyName = "";
fileVersion = "";
fileDescription = "Developed using the Red Panda Dev-C++ IDE";
fileDescription = "Developed using the Red Panda C++ IDE";
internalName = "";
legalCopyright = "";
legalTrademarks = "";

View File

@ -34,7 +34,7 @@ EnvironmentFileAssociationWidget::EnvironmentFileAssociationWidget(const QString
mModel.addItem("C/C++ Header File","h",3);
mModel.addItem("C++ Header File","hpp",4);
mModel.addItem("C++ Header File","hxx",4);
mModel.addItem("Dev-C++ Project File","dev",5);
mModel.addItem("Red Panda C++ Project File","dev",5);
ui->lstFileTypes->setModel(&mModel);
connect(&mModel, &FileAssociationModel::associationChanged,
[this](){

View File

@ -33,7 +33,7 @@
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Just check or uncheck for which file types Dev-C++ wil be registered as the default application to open them ... </string>
<string>Just check or uncheck for which file types Red Panda C++ wil be registered as the default application to open them ... </string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>

View File

@ -621,7 +621,7 @@ void resetCppParser(std::shared_ptr<CppParser> parser)
for (QString define:compilerSet->defines()) {
parser->addHardDefineByLine(define); // predefined constants from -dM -E
}
// add a dev-cpp's own macro
// add a Red Pand C++ 's own macro
parser->addHardDefineByLine("#define EGE_FOR_AUTO_CODE_COMPLETETION_ONLY");
// add C/C++ default macro
parser->addHardDefineByLine("#define __FILE__ 1");

View File

@ -46,7 +46,7 @@ enum class FileType{
CHeader, // c header (.h)
CppHeader, // c++ header (.hpp)
WindowsResourceSource, // resource source (.res)
Project, //Red Panda Dev-C++ Project (.dev)
Project, //Red Panda C++ Project (.dev)
Other // any others
};

View File

@ -28,18 +28,18 @@ AboutDialog::AboutDialog(QWidget *parent) :
ui->lblTitle->setText(ui->lblTitle->text() + tr("Version: ") + DEVCPP_VERSION);
#ifdef __GNUC__
ui->lblContent->setText(ui->lblContent->text()
.arg(qVersion())
.arg(QString("GCC %1.%2")
.arg(__GNUC__)
.arg(__GNUC_MINOR__)
,__DATE__, __TIME__));
ui->lblQt->setText(ui->lblQt->text()
.arg(qVersion())
.arg(QString("GCC %1.%2")
.arg(__GNUC__)
.arg(__GNUC_MINOR__)));
#else
ui->lblContent->setText(ui->lblContent->text()
.arg(qVersion())
.arg("Non-GCC Compiler"
,__DATE__, __TIME__));
ui->lblQt->setText(ui->lblQt->text()
.arg(qVersion())
.arg(tr("Non-GCC Compiler"));
#endif
ui->lblCompileTime->setText(ui->lblCompileTime->text()
.arg(__DATE__, __TIME__));
}
AboutDialog::~AboutDialog()

View File

@ -17,7 +17,7 @@
<item>
<widget class="QLabel" name="lblTitle">
<property name="text">
<string>&lt;h1&gt;Red-Panda Dev-Cpp 7&lt;/h1&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;h1 style=&quot; margin-top:18px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:xx-large; font-weight:600;&quot;&gt;Red Panda C++&lt;/span&gt;&lt;/h1&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
@ -25,29 +25,82 @@
</widget>
</item>
<item>
<widget class="QLabel" name="lblContent">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
<widget class="QLabel" name="lblQt">
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Microsoft YaHei UI'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Based on Qt %1 (%2)&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Build time: %3 %4&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Copyright (C) 2021-2022 royqh1979@gmail.com&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Old Delphi Version:&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Copyright (c) 2004 Bloodshed Software&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Copyright (c) 2011-2015 orwell devcpp &lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Copyright (c) 2020-2021 royqh1979@gmail.com&lt;/p&gt;
&lt;p style=&quot; margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Homepage: &lt;a href=&quot;https://sourceforge.net/projects/dev-cpp-2020/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#007af4;&quot;&gt;https://sourceforge.net/projects/dev-cpp-2020/&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>Based on Qt %1 (%2)</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</widget>
</item>
<item>
<widget class="QLabel" name="lblCompileTime">
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Build time: %1 %2</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Copyright(C) 2021-2022 瞿华(royqh1979@gmail.com)</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2">
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Homepage: &lt;a href=&quot;Homepage: https://sourceforge.net/projects/dev-cpp-2020/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0000ff;&quot;&gt;https://sourceforge.net/projects/dev-cpp-2020/&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_3">
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Red Panda Dev-C++:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_4">
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Copyright (c) 2004 Bloodshed Software
Copyright (c) 2011-2015 orwell devcpp
Copyright (c) 2020-2021 royqh1979@gmail.com</string>
</property>
</widget>
</item>

View File

@ -50,7 +50,7 @@
<item row="0" column="0" colspan="3">
<widget class="QLabel" name="label">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Red Panda Dev-C++'s Makefile has two important targets:&lt;/p&gt;&lt;p&gt;- all (which builds the executable)&lt;/p&gt;&lt;p&gt;- clean (which cleans up object files)&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&amp;quot;all&amp;quot; depends on 2 targets: all-before and all-after. All-before&lt;/p&gt;&lt;p&gt;gets called before the compilation process, and all-after gets&lt;/p&gt;&lt;p&gt;called after the compilation process.&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&amp;quot;clean&amp;quot; depends on the target clean-custom, which gets called&lt;/p&gt;&lt;p&gt;before the cleaning process.&lt;br/&gt;&lt;/p&gt;&lt;p&gt;You can change the Makefile's behavior by defining the targets&lt;/p&gt;&lt;p&gt;that &amp;quot;all&amp;quot; and &amp;quot;clean&amp;quot; depend on.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Red Panda C++'s Makefile has two important targets:&lt;/p&gt;&lt;p&gt;- all (which builds the executable)&lt;/p&gt;&lt;p&gt;- clean (which cleans up object files)&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&amp;quot;all&amp;quot; depends on 2 targets: all-before and all-after. All-before&lt;/p&gt;&lt;p&gt;gets called before the compilation process, and all-after gets&lt;/p&gt;&lt;p&gt;called after the compilation process.&lt;/p&gt;&lt;p&gt;&lt;br/&gt;&amp;quot;clean&amp;quot; depends on the target clean-custom, which gets called&lt;/p&gt;&lt;p&gt;before the cleaning process.&lt;br/&gt;&lt;/p&gt;&lt;p&gt;You can change the Makefile's behavior by defining the targets&lt;/p&gt;&lt;p&gt;that &amp;quot;all&amp;quot; and &amp;quot;clean&amp;quot; depend on.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>

View File

@ -1,5 +1,5 @@
/*
* This file is part of Red Panda Dev-C++ 7
* This file is part of Red Panda C++
* Copyright (C) 2020-2022 Roy Qu (royqh1979@gmail.com)
*
* This program is free software: you can redistribute it and/or modify
@ -135,7 +135,7 @@ int main(int argc, char** argv) {
if(argc < 3) {
printf("\n--------------------------------");
printf("\nUsage: ConsolePauser.exe <0|1> <filename> <parameters>\n");
printf("\n 1 means the STDIN is redirected by Dev-CPP;0 means not\n");
printf("\n 1 means the STDIN is redirected by Red Panda C++; 0 means not\n");
PauseExit(EXIT_SUCCESS,false);
}

View File

@ -1,5 +1,5 @@
/*
* This file is part of Red Panda Dev-C++ 7
* This file is part of Red Panda C++
* Copyright (C) 2020-2022 Roy Qu (royqh1979@gmail.com)
*
* This program is free software: you can redistribute it and/or modify
@ -148,7 +148,7 @@ int main(int argc, char** argv) {
if(argc < 3) {
printf("\n--------------------------------");
printf("\nUsage: ConsolePauser.exe <0|1> <filename> <parameters>\n");
printf("\n 1 means the STDIN is redirected by Dev-CPP;0 means not\n");
printf("\n 1 means the STDIN is redirected by Red Panda C++; 0 means not\n");
PauseExit(EXIT_SUCCESS,false);
}