aboutsummaryrefslogtreecommitdiffstats
path: root/gui/mainwindow.h
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-06-14 18:53:32 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-06-14 20:04:22 +0200
commit4e82ed46d209d05508c7af24cfe135c78ee353db (patch)
tree8af990b5b75b5cb1f443a3ef1fc4be67f28e9556 /gui/mainwindow.h
parent9c0640240fdb2df2b1a39602e0750fdfd4fb541e (diff)
downloadnextpnr-4e82ed46d209d05508c7af24cfe135c78ee353db.tar.gz
nextpnr-4e82ed46d209d05508c7af24cfe135c78ee353db.tar.bz2
nextpnr-4e82ed46d209d05508c7af24cfe135c78ee353db.zip
Split to classes
Diffstat (limited to 'gui/mainwindow.h')
-rw-r--r--gui/mainwindow.h33
1 files changed, 2 insertions, 31 deletions
diff --git a/gui/mainwindow.h b/gui/mainwindow.h
index 5464a6dd..f0818be4 100644
--- a/gui/mainwindow.h
+++ b/gui/mainwindow.h
@@ -6,8 +6,9 @@
#include "qtpropertymanager.h"
#include "qttreepropertybrowser.h"
#include "qtvariantproperty.h"
+#include "pythontab.h"
+#include "infotab.h"
-#include <QLineEdit>
#include <QMainWindow>
#include <QPlainTextEdit>
#include <QTabWidget>
@@ -19,36 +20,6 @@ namespace Ui {
class MainWindow;
}
-class PythonTab : public QWidget
-{
- Q_OBJECT
-
- public:
- explicit PythonTab(QWidget *parent = 0);
-
- private:
- int executePython(std::string command);
- private Q_SLOTS:
- void editLineReturnPressed();
-
- private:
- QPlainTextEdit *plainTextEdit;
- QLineEdit *lineEdit;
- emb::stdout_write_type write;
-};
-
-class InfoTab : public QWidget
-{
- Q_OBJECT
-
- public:
- explicit InfoTab(QWidget *parent = 0);
- void info(std::string str);
-
- private:
- QPlainTextEdit *plainTextEdit;
-};
-
class MainWindow : public QMainWindow
{
Q_OBJECT