diff --git a/RedPandaIDE/RedPandaIDE.pro b/RedPandaIDE/RedPandaIDE.pro index 6be8b6be..9b3d7e45 100644 --- a/RedPandaIDE/RedPandaIDE.pro +++ b/RedPandaIDE/RedPandaIDE.pro @@ -5,6 +5,8 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++17 CONFIG += nokey +APP_DIR = RedPandaIDE + gcc { QMAKE_CXXFLAGS_RELEASE += -Werror=return-type QMAKE_CXXFLAGS_DEBUG += -Werror=return-type @@ -342,8 +344,8 @@ TRANSLATIONS += \ RedPandaIDE_zh_CN.ts # Default rules for deployment. -qnx: target.path = /tmp/$${TARGET}/bin -else: unix:!android: target.path = /opt/$${TARGET}/bin +qnx: target.path = /tmp/$${APP_DIR}/bin +else: unix:!android: target.path = /opt/$${APP_DIR}/bin !isEmpty(target.path): INSTALLS += target RESOURCES += \ diff --git a/Red_Panda_CPP.pro b/Red_Panda_CPP.pro index 029b91c0..a7a2aab7 100644 --- a/Red_Panda_CPP.pro +++ b/Red_Panda_CPP.pro @@ -1,7 +1,12 @@ TEMPLATE = subdirs SUBDIRS += \ -# ../QScintilla/src/qscintilla.pro \ RedPandaIDE \ consolepauser +APP_NAME = RedPandaIDE + +resources.path = /opt/$${APP_NAME} +resources.files += linux/* + +INSTALLS += resources diff --git a/consolepauser/consolepauser.pro b/consolepauser/consolepauser.pro index 686248f2..69f1dcbf 100644 --- a/consolepauser/consolepauser.pro +++ b/consolepauser/consolepauser.pro @@ -3,6 +3,8 @@ QT -= gui CONFIG += c++11 console CONFIG -= app_bundle +APP_DIR = RedPandaIDE + # You can make your code fail to compile if it uses deprecated APIs. # In order to do so, uncomment the following line. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 @@ -23,6 +25,6 @@ CONFIG += lrelease CONFIG += embed_translations # Default rules for deployment. -qnx: target.path = /tmp/$${TARGET}/bin -else: unix:!android: target.path = /opt/$${TARGET}/bin +qnx: target.path = /tmp/$${APP_DIR}/bin +else: unix:!android: target.path = /opt/$${APP_DIR}/bin !isEmpty(target.path): INSTALLS += target diff --git a/linux/redpandaide.desktop b/linux/redpandaide.desktop new file mode 100644 index 00000000..2d7136ee --- /dev/null +++ b/linux/redpandaide.desktop @@ -0,0 +1,15 @@ +[Desktop Entry] +Comment=A lightweighted QT-based C/C++ IDE +Comment[zh_CN]=基于QT的轻量级C/C++集成开发环境 +Exec=/opt/RedPandaIDE/bin/RedPandaIDE %F +GenericName=Red Panda Dev-C++ 7 +GenericName[zh_CN]=小熊猫Dev-C++ 7 +MimeType=application/pdf +Name=Red Panda Dev-C++ 7 +Name[zh_CN]=小熊猫Dev-C++ 7 +StartupNotify=false +Terminal=false +Type=Application +Categories=Development;Qt; +Icon=/opt/RedPandaIDE/redpandaide.png +Path=/opt/RedPandaIDE/bin diff --git a/linux/redpandaide.png b/linux/redpandaide.png new file mode 100644 index 00000000..d43de808 Binary files /dev/null and b/linux/redpandaide.png differ diff --git a/Templates/ConsoleToo.ico b/linux/templates/console.ico similarity index 100% rename from Templates/ConsoleToo.ico rename to linux/templates/console.ico diff --git a/linux/templates/consoleapp.template b/linux/templates/consoleapp.template new file mode 100644 index 00000000..a3df5442 --- /dev/null +++ b/linux/templates/consoleapp.template @@ -0,0 +1,16 @@ +[Template] +ver=1 +Name=Console Application +Icon=console.ico +Description=A console application +Category=Basic + +[Unit0] +CName=main.c +CppName=main.cpp +C=consoleapp_c.txt +Cpp=consoleapp_cpp.txt + +[Project] +UnitCount=1 +Type=1 diff --git a/linux/templates/consoleapp_c.txt b/linux/templates/consoleapp_c.txt new file mode 100644 index 00000000..57b5d270 --- /dev/null +++ b/linux/templates/consoleapp_c.txt @@ -0,0 +1,8 @@ +#include +#include + +/* run this program using the console pauser or add your own getch, system("pause") or input loop */ + +int main(int argc, char *argv[]) { + return 0; +} \ No newline at end of file diff --git a/linux/templates/consoleapp_cpp.txt b/linux/templates/consoleapp_cpp.txt new file mode 100644 index 00000000..fae6dd01 --- /dev/null +++ b/linux/templates/consoleapp_cpp.txt @@ -0,0 +1,7 @@ +#include + +/* run this program using the console pauser or add your own getch, system("pause") or input loop */ + +int main(int argc, char** argv) { + return 0; +} \ No newline at end of file diff --git a/Templates/Empty.ico b/linux/templates/empty.ico similarity index 100% rename from Templates/Empty.ico rename to linux/templates/empty.ico diff --git a/linux/templates/empty.template b/linux/templates/empty.template new file mode 100644 index 00000000..87926c60 --- /dev/null +++ b/linux/templates/empty.template @@ -0,0 +1,14 @@ +[Template] +ver=1 +Name=Empty Project +Icon=empty.ico +Description=An empty project +Category=Basic + +[Unit0] +CName= +CppName= + +[Project] +UnitCount=1 +Type=1 diff --git a/Templates/1-WinApp.template b/templates/1-WinApp.template similarity index 100% rename from Templates/1-WinApp.template rename to templates/1-WinApp.template diff --git a/Templates/2-ConsoleApp.template b/templates/2-ConsoleApp.template similarity index 100% rename from Templates/2-ConsoleApp.template rename to templates/2-ConsoleApp.template diff --git a/Templates/3-StaticLib.template b/templates/3-StaticLib.template similarity index 100% rename from Templates/3-StaticLib.template rename to templates/3-StaticLib.template diff --git a/Templates/4-DLL.template b/templates/4-DLL.template similarity index 100% rename from Templates/4-DLL.template rename to templates/4-DLL.template diff --git a/Templates/5-Empty.template b/templates/5-Empty.template similarity index 100% rename from Templates/5-Empty.template rename to templates/5-Empty.template diff --git a/Templates/CL_GLUT.ico b/templates/CL_GLUT.ico similarity index 100% rename from Templates/CL_GLUT.ico rename to templates/CL_GLUT.ico diff --git a/Templates/CL_GLUT.template b/templates/CL_GLUT.template similarity index 100% rename from Templates/CL_GLUT.template rename to templates/CL_GLUT.template diff --git a/Templates/CL_GLUT_cpp.txt b/templates/CL_GLUT_cpp.txt similarity index 100% rename from Templates/CL_GLUT_cpp.txt rename to templates/CL_GLUT_cpp.txt diff --git a/Templates/CL_Graphics.ico b/templates/CL_Graphics.ico similarity index 100% rename from Templates/CL_Graphics.ico rename to templates/CL_Graphics.ico diff --git a/Templates/CL_Graphics.template b/templates/CL_Graphics.template similarity index 100% rename from Templates/CL_Graphics.template rename to templates/CL_Graphics.template diff --git a/Templates/CL_Graphics_cpp.txt b/templates/CL_Graphics_cpp.txt similarity index 100% rename from Templates/CL_Graphics_cpp.txt rename to templates/CL_Graphics_cpp.txt diff --git a/Templates/CL_Turtle.ico b/templates/CL_Turtle.ico similarity index 100% rename from Templates/CL_Turtle.ico rename to templates/CL_Turtle.ico diff --git a/Templates/CL_Turtle.template b/templates/CL_Turtle.template similarity index 100% rename from Templates/CL_Turtle.template rename to templates/CL_Turtle.template diff --git a/Templates/CL_Turtle_cpp.txt b/templates/CL_Turtle_cpp.txt similarity index 100% rename from Templates/CL_Turtle_cpp.txt rename to templates/CL_Turtle_cpp.txt diff --git a/Templates/Communication.ico b/templates/Communication.ico similarity index 100% rename from Templates/Communication.ico rename to templates/Communication.ico diff --git a/Templates/ConsoleApp_c.txt b/templates/ConsoleApp_c.txt similarity index 100% rename from Templates/ConsoleApp_c.txt rename to templates/ConsoleApp_c.txt diff --git a/Templates/ConsoleApp_cpp.txt b/templates/ConsoleApp_cpp.txt similarity index 100% rename from Templates/ConsoleApp_cpp.txt rename to templates/ConsoleApp_cpp.txt diff --git a/templates/ConsoleToo.ico b/templates/ConsoleToo.ico new file mode 100644 index 00000000..4238e81f Binary files /dev/null and b/templates/ConsoleToo.ico differ diff --git a/Templates/DLL.ico b/templates/DLL.ico similarity index 100% rename from Templates/DLL.ico rename to templates/DLL.ico diff --git a/Templates/Dll_c.txt b/templates/Dll_c.txt similarity index 100% rename from Templates/Dll_c.txt rename to templates/Dll_c.txt diff --git a/Templates/Dll_cpp.txt b/templates/Dll_cpp.txt similarity index 100% rename from Templates/Dll_cpp.txt rename to templates/Dll_cpp.txt diff --git a/Templates/Dll_h.txt b/templates/Dll_h.txt similarity index 100% rename from Templates/Dll_h.txt rename to templates/Dll_h.txt diff --git a/Templates/Dll_hpp.txt b/templates/Dll_hpp.txt similarity index 100% rename from Templates/Dll_hpp.txt rename to templates/Dll_hpp.txt diff --git a/Templates/Editor.ico b/templates/Editor.ico similarity index 100% rename from Templates/Editor.ico rename to templates/Editor.ico diff --git a/templates/Empty.ico b/templates/Empty.ico new file mode 100644 index 00000000..b41b95cf Binary files /dev/null and b/templates/Empty.ico differ diff --git a/Templates/File Management.ico b/templates/File Management.ico similarity index 100% rename from Templates/File Management.ico rename to templates/File Management.ico diff --git a/Templates/FileEditor.template b/templates/FileEditor.template similarity index 100% rename from Templates/FileEditor.template rename to templates/FileEditor.template diff --git a/Templates/FileEditor_c.txt b/templates/FileEditor_c.txt similarity index 100% rename from Templates/FileEditor_c.txt rename to templates/FileEditor_c.txt diff --git a/Templates/FileEditor_h.txt b/templates/FileEditor_h.txt similarity index 100% rename from Templates/FileEditor_h.txt rename to templates/FileEditor_h.txt diff --git a/Templates/FileEditor_rc.txt b/templates/FileEditor_rc.txt similarity index 100% rename from Templates/FileEditor_rc.txt rename to templates/FileEditor_rc.txt diff --git a/Templates/GLFW.ico b/templates/GLFW.ico similarity index 100% rename from Templates/GLFW.ico rename to templates/GLFW.ico diff --git a/Templates/GLFW.template b/templates/GLFW.template similarity index 100% rename from Templates/GLFW.template rename to templates/GLFW.template diff --git a/Templates/GLFW_main.cpp.txt b/templates/GLFW_main.cpp.txt similarity index 100% rename from Templates/GLFW_main.cpp.txt rename to templates/GLFW_main.cpp.txt diff --git a/Templates/GLFW_shader.frag.txt b/templates/GLFW_shader.frag.txt similarity index 100% rename from Templates/GLFW_shader.frag.txt rename to templates/GLFW_shader.frag.txt diff --git a/Templates/GLFW_shader.h.txt b/templates/GLFW_shader.h.txt similarity index 100% rename from Templates/GLFW_shader.h.txt rename to templates/GLFW_shader.h.txt diff --git a/Templates/GLFW_shader.vs.txt b/templates/GLFW_shader.vs.txt similarity index 100% rename from Templates/GLFW_shader.vs.txt rename to templates/GLFW_shader.vs.txt diff --git a/Templates/Games.ico b/templates/Games.ico similarity index 100% rename from Templates/Games.ico rename to templates/Games.ico diff --git a/Templates/Hello.template b/templates/Hello.template similarity index 100% rename from Templates/Hello.template rename to templates/Hello.template diff --git a/Templates/HelloInput.template b/templates/HelloInput.template similarity index 100% rename from Templates/HelloInput.template rename to templates/HelloInput.template diff --git a/Templates/HelloInput_c.txt b/templates/HelloInput_c.txt similarity index 100% rename from Templates/HelloInput_c.txt rename to templates/HelloInput_c.txt diff --git a/Templates/HelloInput_cpp.txt b/templates/HelloInput_cpp.txt similarity index 100% rename from Templates/HelloInput_cpp.txt rename to templates/HelloInput_cpp.txt diff --git a/Templates/Hello_c.txt b/templates/Hello_c.txt similarity index 100% rename from Templates/Hello_c.txt rename to templates/Hello_c.txt diff --git a/Templates/Hello_cpp.txt b/templates/Hello_cpp.txt similarity index 100% rename from Templates/Hello_cpp.txt rename to templates/Hello_cpp.txt diff --git a/Templates/Jackpot.template b/templates/Jackpot.template similarity index 100% rename from Templates/Jackpot.template rename to templates/Jackpot.template diff --git a/Templates/Jackpot_cpp.txt b/templates/Jackpot_cpp.txt similarity index 100% rename from Templates/Jackpot_cpp.txt rename to templates/Jackpot_cpp.txt diff --git a/Templates/MDIEditor.template b/templates/MDIEditor.template similarity index 100% rename from Templates/MDIEditor.template rename to templates/MDIEditor.template diff --git a/Templates/MDIEditor_c.txt b/templates/MDIEditor_c.txt similarity index 100% rename from Templates/MDIEditor_c.txt rename to templates/MDIEditor_c.txt diff --git a/Templates/MDIEditor_h.txt b/templates/MDIEditor_h.txt similarity index 100% rename from Templates/MDIEditor_h.txt rename to templates/MDIEditor_h.txt diff --git a/Templates/MDIEditor_rc.txt b/templates/MDIEditor_rc.txt similarity index 100% rename from Templates/MDIEditor_rc.txt rename to templates/MDIEditor_rc.txt diff --git a/Templates/OpenGL.template b/templates/OpenGL.template similarity index 100% rename from Templates/OpenGL.template rename to templates/OpenGL.template diff --git a/Templates/OpenGL.txt b/templates/OpenGL.txt similarity index 100% rename from Templates/OpenGL.txt rename to templates/OpenGL.txt diff --git a/Templates/OpenMP.template b/templates/OpenMP.template similarity index 100% rename from Templates/OpenMP.template rename to templates/OpenMP.template diff --git a/Templates/OpenMP_c.txt b/templates/OpenMP_c.txt similarity index 100% rename from Templates/OpenMP_c.txt rename to templates/OpenMP_c.txt diff --git a/Templates/OpenMP_cpp.txt b/templates/OpenMP_cpp.txt similarity index 100% rename from Templates/OpenMP_cpp.txt rename to templates/OpenMP_cpp.txt diff --git a/Templates/Pizza.ico b/templates/Pizza.ico similarity index 100% rename from Templates/Pizza.ico rename to templates/Pizza.ico diff --git a/Templates/Single Dialog Application.ico b/templates/Single Dialog Application.ico similarity index 100% rename from Templates/Single Dialog Application.ico rename to templates/Single Dialog Application.ico diff --git a/Templates/Single Dialog Application.project.ico b/templates/Single Dialog Application.project.ico similarity index 100% rename from Templates/Single Dialog Application.project.ico rename to templates/Single Dialog Application.project.ico diff --git a/Templates/Single Dialog Application.template b/templates/Single Dialog Application.template similarity index 100% rename from Templates/Single Dialog Application.template rename to templates/Single Dialog Application.template diff --git a/Templates/Single_Dialog_Application_main.c.txt b/templates/Single_Dialog_Application_main.c.txt similarity index 100% rename from Templates/Single_Dialog_Application_main.c.txt rename to templates/Single_Dialog_Application_main.c.txt diff --git a/Templates/Single_Dialog_Application_resource.h.txt b/templates/Single_Dialog_Application_resource.h.txt similarity index 100% rename from Templates/Single_Dialog_Application_resource.h.txt rename to templates/Single_Dialog_Application_resource.h.txt diff --git a/Templates/Single_Dialog_Application_resource.rc.txt b/templates/Single_Dialog_Application_resource.rc.txt similarity index 100% rename from Templates/Single_Dialog_Application_resource.rc.txt rename to templates/Single_Dialog_Application_resource.rc.txt diff --git a/Templates/Software.ico b/templates/Software.ico similarity index 100% rename from Templates/Software.ico rename to templates/Software.ico diff --git a/Templates/StaticLib.ico b/templates/StaticLib.ico similarity index 100% rename from Templates/StaticLib.ico rename to templates/StaticLib.ico diff --git a/Templates/StdThread.template b/templates/StdThread.template similarity index 100% rename from Templates/StdThread.template rename to templates/StdThread.template diff --git a/Templates/StdThread_c.txt b/templates/StdThread_c.txt similarity index 100% rename from Templates/StdThread_c.txt rename to templates/StdThread_c.txt diff --git a/Templates/StdThread_cpp.txt b/templates/StdThread_cpp.txt similarity index 100% rename from Templates/StdThread_cpp.txt rename to templates/StdThread_cpp.txt diff --git a/Templates/WinAnim.template b/templates/WinAnim.template similarity index 100% rename from Templates/WinAnim.template rename to templates/WinAnim.template diff --git a/Templates/WinAnim_c.txt b/templates/WinAnim_c.txt similarity index 100% rename from Templates/WinAnim_c.txt rename to templates/WinAnim_c.txt diff --git a/Templates/WinAnim_rc.txt b/templates/WinAnim_rc.txt similarity index 100% rename from Templates/WinAnim_rc.txt rename to templates/WinAnim_rc.txt diff --git a/Templates/WinApp_c.txt b/templates/WinApp_c.txt similarity index 100% rename from Templates/WinApp_c.txt rename to templates/WinApp_c.txt diff --git a/Templates/Windows.ico b/templates/Windows.ico similarity index 100% rename from Templates/Windows.ico rename to templates/Windows.ico diff --git a/Templates/ball.bmp b/templates/ball.bmp similarity index 100% rename from Templates/ball.bmp rename to templates/ball.bmp diff --git a/Templates/ballmask.bmp b/templates/ballmask.bmp similarity index 100% rename from Templates/ballmask.bmp rename to templates/ballmask.bmp