From 4e82ed46d209d05508c7af24cfe135c78ee353db Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 14 Jun 2018 18:53:32 +0200 Subject: Split to classes --- gui/mainwindow.h | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) (limited to 'gui/mainwindow.h') 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 #include #include #include @@ -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 -- cgit v1.2.3