- rename to Red Pand C++
This commit is contained in:
parent
e4f205cdb4
commit
02cba8e03c
3
NEWS.md
3
NEWS.md
|
@ -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
|
@ -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!");
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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", ""));
|
||||
|
|
|
@ -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 = "";
|
||||
|
|
|
@ -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](){
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="lblTitle">
|
||||
<property name="text">
|
||||
<string><h1>Red-Panda Dev-Cpp 7</h1></string>
|
||||
<string><html><head/><body><h1 style=" margin-top:18px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:xx-large; font-weight:600;">Red Panda C++</span></h1></body></html></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><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
|
||||
<html><head><meta name="qrichtext" content="1" /><meta charset="utf-8" /><style type="text/css">
|
||||
p, li { white-space: pre-wrap; }
|
||||
</style></head><body style=" font-family:'Microsoft YaHei UI'; font-size:9pt; font-weight:400; font-style:normal;">
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Based on Qt %1 (%2)</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Build time: %3 %4</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Copyright (C) 2021-2022 royqh1979@gmail.com</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Old Delphi Version:</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Copyright (c) 2004 Bloodshed Software</p>
|
||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Copyright (c) 2011-2015 orwell devcpp </p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Copyright (c) 2020-2021 royqh1979@gmail.com</p>
|
||||
<p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Homepage: <a href="https://sourceforge.net/projects/dev-cpp-2020/"><span style=" text-decoration: underline; color:#007af4;">https://sourceforge.net/projects/dev-cpp-2020/</span></a></p></body></html></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><html><head/><body><p>Homepage: <a href="Homepage: https://sourceforge.net/projects/dev-cpp-2020/"><span style=" text-decoration: underline; color:#0000ff;">https://sourceforge.net/projects/dev-cpp-2020/</span></a></p></body></html></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>
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
<item row="0" column="0" colspan="3">
|
||||
<widget class="QLabel" name="label">
|
||||
<property name="text">
|
||||
<string><html><head/><body><p>Red Panda Dev-C++'s Makefile has two important targets:</p><p>- all (which builds the executable)</p><p>- clean (which cleans up object files)</p><p><br/>&quot;all&quot; depends on 2 targets: all-before and all-after. All-before</p><p>gets called before the compilation process, and all-after gets</p><p>called after the compilation process.</p><p><br/>&quot;clean&quot; depends on the target clean-custom, which gets called</p><p>before the cleaning process.<br/></p><p>You can change the Makefile's behavior by defining the targets</p><p>that &quot;all&quot; and &quot;clean&quot; depend on.</p></body></html></string>
|
||||
<string><html><head/><body><p>Red Panda C++'s Makefile has two important targets:</p><p>- all (which builds the executable)</p><p>- clean (which cleans up object files)</p><p><br/>&quot;all&quot; depends on 2 targets: all-before and all-after. All-before</p><p>gets called before the compilation process, and all-after gets</p><p>called after the compilation process.</p><p><br/>&quot;clean&quot; depends on the target clean-custom, which gets called</p><p>before the cleaning process.<br/></p><p>You can change the Makefile's behavior by defining the targets</p><p>that &quot;all&quot; and &quot;clean&quot; depend on.</p></body></html></string>
|
||||
</property>
|
||||
<property name="textFormat">
|
||||
<enum>Qt::RichText</enum>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue