From e0e09155d7cd421f12482ed34c6dba9df081d724 Mon Sep 17 00:00:00 2001 From: royqh1979 Date: Wed, 15 Sep 2021 08:02:08 +0800 Subject: [PATCH] work save --- RedPandaIDE/RedPandaIDE.pro | 3 + .../settingsdialog/projectcompilerwidget.cpp | 14 ++++ .../settingsdialog/projectcompilerwidget.h | 22 ++++++ .../settingsdialog/projectcompilerwidget.ui | 68 +++++++++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 RedPandaIDE/settingsdialog/projectcompilerwidget.cpp create mode 100644 RedPandaIDE/settingsdialog/projectcompilerwidget.h create mode 100644 RedPandaIDE/settingsdialog/projectcompilerwidget.ui diff --git a/RedPandaIDE/RedPandaIDE.pro b/RedPandaIDE/RedPandaIDE.pro index 6e5a4656..2f3b3e63 100644 --- a/RedPandaIDE/RedPandaIDE.pro +++ b/RedPandaIDE/RedPandaIDE.pro @@ -43,6 +43,7 @@ SOURCES += \ settingsdialog/editorcodecompletionwidget.cpp \ settingsdialog/editormiscwidget.cpp \ settingsdialog/formattergeneralwidget.cpp \ + settingsdialog/projectcompilerwidget.cpp \ settingsdialog/projectfileswidget.cpp \ settingsdialog/projectgeneralwidget.cpp \ widgets/classbrowser.cpp \ @@ -127,6 +128,7 @@ HEADERS += \ settingsdialog/editorcodecompletionwidget.h \ settingsdialog/editormiscwidget.h \ settingsdialog/formattergeneralwidget.h \ + settingsdialog/projectcompilerwidget.h \ settingsdialog/projectfileswidget.h \ settingsdialog/projectgeneralwidget.h \ widgets/classbrowser.h \ @@ -187,6 +189,7 @@ FORMS += \ settingsdialog/editorcodecompletionwidget.ui \ settingsdialog/editormiscwidget.ui \ settingsdialog/formattergeneralwidget.ui \ + settingsdialog/projectcompilerwidget.ui \ settingsdialog/projectfileswidget.ui \ settingsdialog/projectgeneralwidget.ui \ widgets/cpudialog.ui \ diff --git a/RedPandaIDE/settingsdialog/projectcompilerwidget.cpp b/RedPandaIDE/settingsdialog/projectcompilerwidget.cpp new file mode 100644 index 00000000..da541ac2 --- /dev/null +++ b/RedPandaIDE/settingsdialog/projectcompilerwidget.cpp @@ -0,0 +1,14 @@ +#include "projectcompilerwidget.h" +#include "ui_projectcompilerwidget.h" + +ProjectCompilerWidget::ProjectCompilerWidget(QWidget *parent) : + QWidget(parent), + ui(new Ui::ProjectCompilerWidget) +{ + ui->setupUi(this); +} + +ProjectCompilerWidget::~ProjectCompilerWidget() +{ + delete ui; +} diff --git a/RedPandaIDE/settingsdialog/projectcompilerwidget.h b/RedPandaIDE/settingsdialog/projectcompilerwidget.h new file mode 100644 index 00000000..c3ac3ffa --- /dev/null +++ b/RedPandaIDE/settingsdialog/projectcompilerwidget.h @@ -0,0 +1,22 @@ +#ifndef PROJECTCOMPILERWIDGET_H +#define PROJECTCOMPILERWIDGET_H + +#include + +namespace Ui { +class ProjectCompilerWidget; +} + +class ProjectCompilerWidget : public QWidget +{ + Q_OBJECT + +public: + explicit ProjectCompilerWidget(QWidget *parent = nullptr); + ~ProjectCompilerWidget(); + +private: + Ui::ProjectCompilerWidget *ui; +}; + +#endif // PROJECTCOMPILERWIDGET_H diff --git a/RedPandaIDE/settingsdialog/projectcompilerwidget.ui b/RedPandaIDE/settingsdialog/projectcompilerwidget.ui new file mode 100644 index 00000000..24de2a0e --- /dev/null +++ b/RedPandaIDE/settingsdialog/projectcompilerwidget.ui @@ -0,0 +1,68 @@ + + + ProjectCompilerWidget + + + + 0 + 0 + 784 + 599 + + + + Form + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + Base compiler set: + + + + + + + + + + + Tab 1 + + + + + Tab 2 + + + + + + + + Customize (apply to this project only): + + + + + + + +