diff --git a/RedPandaIDE/RedPandaIDE.pro b/RedPandaIDE/RedPandaIDE.pro
index 963c5daf..b3f21bac 100644
--- a/RedPandaIDE/RedPandaIDE.pro
+++ b/RedPandaIDE/RedPandaIDE.pro
@@ -61,7 +61,8 @@ SOURCES += \
widgets/consolewidget.cpp \
widgets/issuestable.cpp \
widgets/qconsole.cpp \
- widgets/qpatchedcombobox.cpp
+ widgets/qpatchedcombobox.cpp \
+ widgets/searchdialog.cpp
HEADERS += \
HighlighterManager.h \
@@ -117,7 +118,8 @@ HEADERS += \
widgets/consolewidget.h \
widgets/issuestable.h \
widgets/qconsole.h \
- widgets/qpatchedcombobox.h
+ widgets/qpatchedcombobox.h \
+ widgets/searchdialog.h
FORMS += \
settingsdialog/debuggeneralwidget.ui \
@@ -133,7 +135,8 @@ FORMS += \
settingsdialog/editorsyntaxcheckwidget.ui \
settingsdialog/environmentappearencewidget.ui \
settingsdialog/executorgeneralwidget.ui \
- settingsdialog/settingsdialog.ui
+ settingsdialog/settingsdialog.ui \
+ widgets/searchdialog.ui
TRANSLATIONS += \
RedPandaIDE_zh_CN.ts
diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp
index 7ce3dc5e..441f64a4 100644
--- a/RedPandaIDE/mainwindow.cpp
+++ b/RedPandaIDE/mainwindow.cpp
@@ -1479,15 +1479,15 @@ void MainWindow::on_actionView_CPU_Window_triggered()
mCPUDialog->show();
}
-void MainWindow::on_txtEvaludate_returnPressed()
-{
- QString s=ui->txtEvaludate->text().trimmed();
- if (!s.isEmpty()) {
- mDebugger->sendCommand("print",s,false);
- }
-}
-
void MainWindow::on_actionExit_triggered()
{
close();
}
+
+void MainWindow::on_cbEvaluate_textActivated(const QString &arg1)
+{
+ QString s=arg1.trimmed();
+ if (!s.isEmpty()) {
+ mDebugger->sendCommand("print",s,false);
+ }
+}
diff --git a/RedPandaIDE/mainwindow.h b/RedPandaIDE/mainwindow.h
index 8312eeb4..fa6ec72c 100644
--- a/RedPandaIDE/mainwindow.h
+++ b/RedPandaIDE/mainwindow.h
@@ -164,10 +164,10 @@ private slots:
void on_actionView_CPU_Window_triggered();
- void on_txtEvaludate_returnPressed();
-
void on_actionExit_triggered();
+ void on_cbEvaluate_textActivated(const QString &arg1);
+
public slots:
void onCompileLog(const QString& msg);
void onCompileIssue(PCompileIssue issue);
diff --git a/RedPandaIDE/mainwindow.ui b/RedPandaIDE/mainwindow.ui
index d1763c35..4a8b242e 100644
--- a/RedPandaIDE/mainwindow.ui
+++ b/RedPandaIDE/mainwindow.ui
@@ -393,7 +393,20 @@
-
-
+
+
+
+ 0
+ 0
+
+
+
+ true
+
+
+ QComboBox::InsertAtTop
+
+
@@ -553,7 +566,7 @@
0
0
946
- 25
+ 26