From a94645001404afb88660c70d0c30f90e449920fe Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Wed, 13 Mar 2024 19:19:10 +0800 Subject: [PATCH] code clean up --- RedPandaIDE/RedPandaIDE.pro | 2 -- RedPandaIDE/debugger/debugger.cpp | 2 +- RedPandaIDE/widgets/consolewidget.cpp | 22 ----------------- RedPandaIDE/widgets/consolewidget.h | 35 --------------------------- 4 files changed, 1 insertion(+), 60 deletions(-) delete mode 100644 RedPandaIDE/widgets/consolewidget.cpp delete mode 100644 RedPandaIDE/widgets/consolewidget.h diff --git a/RedPandaIDE/RedPandaIDE.pro b/RedPandaIDE/RedPandaIDE.pro index 7bf1a546..fe4f69af 100644 --- a/RedPandaIDE/RedPandaIDE.pro +++ b/RedPandaIDE/RedPandaIDE.pro @@ -208,7 +208,6 @@ SOURCES += \ utils/parsearg.cpp \ widgets/coloredit.cpp \ widgets/compileargumentswidget.cpp \ - widgets/consolewidget.cpp \ widgets/customdisablediconengine.cpp \ widgets/customfilesystemmodel.cpp \ widgets/custommakefileinfodialog.cpp \ @@ -342,7 +341,6 @@ HEADERS += \ common.h \ widgets/coloredit.h \ widgets/compileargumentswidget.h \ - widgets/consolewidget.h \ widgets/customdisablediconengine.h \ widgets/customfilesystemmodel.h \ widgets/custommakefileinfodialog.h \ diff --git a/RedPandaIDE/debugger/debugger.cpp b/RedPandaIDE/debugger/debugger.cpp index fa4a26e9..ec5bc59f 100644 --- a/RedPandaIDE/debugger/debugger.cpp +++ b/RedPandaIDE/debugger/debugger.cpp @@ -997,7 +997,7 @@ void Debugger::syncFinishedParsing() for (const QString& line:mClient->fullOutput()) { pMainWindow->addDebugOutput(line); } - pMainWindow->addDebugOutput("(gdb)"); + //pMainWindow->addDebugOutput("(gdb)"); } else { // if (mClient->currentCmd() && mClient->currentCmd()->command == "disas") { diff --git a/RedPandaIDE/widgets/consolewidget.cpp b/RedPandaIDE/widgets/consolewidget.cpp deleted file mode 100644 index e2c3f0fe..00000000 --- a/RedPandaIDE/widgets/consolewidget.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright (C) 2020-2022 Roy Qu (royqh1979@gmail.com) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -#include "consolewidget.h" - -ConsoleWidget::ConsoleWidget(QWidget *parent):QTextEdit(parent) -{ - -} diff --git a/RedPandaIDE/widgets/consolewidget.h b/RedPandaIDE/widgets/consolewidget.h deleted file mode 100644 index 0983e4d6..00000000 --- a/RedPandaIDE/widgets/consolewidget.h +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2020-2022 Roy Qu (royqh1979@gmail.com) - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -#ifndef CONSOLEWIDGET_H -#define CONSOLEWIDGET_H - -#include - -class ConsoleWidget : public QTextEdit -{ - Q_OBJECT -public: - explicit ConsoleWidget(QWidget* parent = nullptr); -private: - QString mCurrentCommand; - QStringList mCommandHistory; - int mHistoryIndex; - int mHistorySize; - QString mPrompt; -}; - -#endif // CONSOLEWIDGET_H