aboutsummaryrefslogtreecommitdiffstats
path: root/gui/pythontab.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-20 12:58:08 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-20 12:58:08 +0200
commit37f7802c6cfb9d9612e595c9914704c5403db9df (patch)
tree491fcb456e88524adec3eda9be1b918080d2c834 /gui/pythontab.h
parent7c3593ea5acef05546be8835e25cf5e4b18549ee (diff)
parent6d2f058f678761e90fc451af48f4e0ed0f504603 (diff)
downloadnextpnr-37f7802c6cfb9d9612e595c9914704c5403db9df.tar.gz
nextpnr-37f7802c6cfb9d9612e595c9914704c5403db9df.tar.bz2
nextpnr-37f7802c6cfb9d9612e595c9914704c5403db9df.zip
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr
Diffstat (limited to 'gui/pythontab.h')
-rw-r--r--gui/pythontab.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/pythontab.h b/gui/pythontab.h
index 3876b3df..5aed8b0b 100644
--- a/gui/pythontab.h
+++ b/gui/pythontab.h
@@ -2,6 +2,7 @@
#define PYTHONTAB_H
#include <QLineEdit>
+#include <QMenu>
#include <QPlainTextEdit>
#include "emb.h"
#include "line_editor.h"
@@ -22,10 +23,13 @@ class PythonTab : public QWidget
int executePython(std::string &command);
private Q_SLOTS:
void editLineReturnPressed(QString text);
+ void showContextMenu(const QPoint &pt);
+ void clearBuffer();
private:
QPlainTextEdit *plainTextEdit;
LineEditor *lineEdit;
+ QMenu *contextMenu;
emb::stdout_write_type write;
};