diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-14 18:53:32 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-06-14 20:04:22 +0200 |
commit | 4e82ed46d209d05508c7af24cfe135c78ee353db (patch) | |
tree | 8af990b5b75b5cb1f443a3ef1fc4be67f28e9556 /gui/mainwindow.h | |
parent | 9c0640240fdb2df2b1a39602e0750fdfd4fb541e (diff) | |
download | nextpnr-4e82ed46d209d05508c7af24cfe135c78ee353db.tar.gz nextpnr-4e82ed46d209d05508c7af24cfe135c78ee353db.tar.bz2 nextpnr-4e82ed46d209d05508c7af24cfe135c78ee353db.zip |
Split to classes
Diffstat (limited to 'gui/mainwindow.h')
-rw-r--r-- | gui/mainwindow.h | 33 |
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
|