diff --git a/NEWS.md b/NEWS.md index 011136b5..e6c971ab 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,8 @@ Red Panda C++ Version 1.5 - enhancement: add/new/remove/rename project files won't rebuild project tree - fix: gliches in UI's left panel in some OS - fix: correctly restore project layout when reopen it + - change: clear tools output panel when start to compile + - change: don't show syntax check messages in the tools output panel Red Panda C++ Version 1.4 diff --git a/RedPandaIDE/compiler/compiler.cpp b/RedPandaIDE/compiler/compiler.cpp index ce485c3f..6f02c465 100644 --- a/RedPandaIDE/compiler/compiler.cpp +++ b/RedPandaIDE/compiler/compiler.cpp @@ -207,7 +207,7 @@ void Compiler::processOutput(QString &line) if(mLastIssue && line.startsWith(referencePrefix)) { line.remove(0,referencePrefix.length()); mLastIssue->filename = getFileNameFromOutputLine(line); - qDebug()<line = getLineNumberFromOutputLine(line); emit compileIssue(mLastIssue); mLastIssue.reset(); @@ -352,7 +352,7 @@ QString Compiler::getCharsetArgument(const QByteArray& encoding,FileType fileTyp } else { execEncodingName = compilerSetExecCharset; } - qDebug()< project, bool rebu connect(mCompiler, &Compiler::compileIssue, this, &CompilerManager::onCompileIssue); connect(mCompiler, &Compiler::compileStarted, pMainWindow, &MainWindow::onCompileStarted); + connect(mCompiler, &Compiler::compileStarted, pMainWindow, &MainWindow::clearToolsOutput); connect(mCompiler, &Compiler::compileOutput, pMainWindow, &MainWindow::logToolsOutput); connect(mCompiler, &Compiler::compileIssue, pMainWindow, &MainWindow::onCompileIssue); @@ -149,6 +151,7 @@ void CompilerManager::cleanProject(std::shared_ptr project) connect(mCompiler, &Compiler::compileIssue, this, &CompilerManager::onCompileIssue); connect(mCompiler, &Compiler::compileStarted, pMainWindow, &MainWindow::onCompileStarted); + connect(mCompiler, &Compiler::compileStarted, pMainWindow, &MainWindow::clearToolsOutput); connect(mCompiler, &Compiler::compileOutput, pMainWindow, &MainWindow::logToolsOutput); connect(mCompiler, &Compiler::compileIssue, pMainWindow, &MainWindow::onCompileIssue); @@ -199,7 +202,7 @@ void CompilerManager::checkSyntax(const QString &filename, const QByteArray& enc connect(mBackgroundSyntaxChecker, &Compiler::compileIssue, this, &CompilerManager::onSyntaxCheckIssue); connect(mBackgroundSyntaxChecker, &Compiler::compileStarted, pMainWindow, &MainWindow::onCompileStarted); connect(mBackgroundSyntaxChecker, &Compiler::compileFinished, this, &CompilerManager::onSyntaxCheckFinished); - connect(mBackgroundSyntaxChecker, &Compiler::compileOutput, pMainWindow, &MainWindow::logToolsOutput); + //connect(mBackgroundSyntaxChecker, &Compiler::compileOutput, pMainWindow, &MainWindow::logToolsOutput); connect(mBackgroundSyntaxChecker, &Compiler::compileIssue, pMainWindow, &MainWindow::onCompileIssue); connect(mBackgroundSyntaxChecker, &Compiler::compileErrorOccured, pMainWindow, &MainWindow::onCompileErrorOccured); mBackgroundSyntaxChecker->start(); diff --git a/RedPandaIDE/mainwindow.ui b/RedPandaIDE/mainwindow.ui index 62977126..469397b8 100644 --- a/RedPandaIDE/mainwindow.ui +++ b/RedPandaIDE/mainwindow.ui @@ -895,7 +895,7 @@ QTabWidget::South - 6 + 1