From c9fb9b9fa8996c73d2126affb295d4ba761cf916 Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Sat, 24 Oct 2015 14:44:33 +0200 Subject: [PATCH] Qt GUI initial import --- .gitignore | 3 +++ gui/NeuroUI/NeuroUI.pro | 20 ++++++++++++++++ gui/NeuroUI/main.cpp | 11 +++++++++ gui/NeuroUI/neuroui.cpp | 14 +++++++++++ gui/NeuroUI/neuroui.h | 22 ++++++++++++++++++ gui/NeuroUI/neuroui.ui | 51 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 121 insertions(+) create mode 100644 gui/NeuroUI/NeuroUI.pro create mode 100644 gui/NeuroUI/main.cpp create mode 100644 gui/NeuroUI/neuroui.cpp create mode 100644 gui/NeuroUI/neuroui.h create mode 100644 gui/NeuroUI/neuroui.ui diff --git a/.gitignore b/.gitignore index 78b49ee..cf0c7cf 100644 --- a/.gitignore +++ b/.gitignore @@ -229,3 +229,6 @@ $RECYCLE.BIN/ # Windows shortcuts *.lnk + +# Qt Creator files +build-*/ \ No newline at end of file diff --git a/gui/NeuroUI/NeuroUI.pro b/gui/NeuroUI/NeuroUI.pro new file mode 100644 index 0000000..2d4de34 --- /dev/null +++ b/gui/NeuroUI/NeuroUI.pro @@ -0,0 +1,20 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2015-10-24T14:16:18 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = NeuroUI +TEMPLATE = app + + +SOURCES += main.cpp\ + neuroui.cpp + +HEADERS += neuroui.h + +FORMS += neuroui.ui diff --git a/gui/NeuroUI/main.cpp b/gui/NeuroUI/main.cpp new file mode 100644 index 0000000..2d6a7f0 --- /dev/null +++ b/gui/NeuroUI/main.cpp @@ -0,0 +1,11 @@ +#include "neuroui.h" +#include + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + NeuroUI w; + w.show(); + + return a.exec(); +} diff --git a/gui/NeuroUI/neuroui.cpp b/gui/NeuroUI/neuroui.cpp new file mode 100644 index 0000000..b2ebfab --- /dev/null +++ b/gui/NeuroUI/neuroui.cpp @@ -0,0 +1,14 @@ +#include "neuroui.h" +#include "ui_neuroui.h" + +NeuroUI::NeuroUI(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::NeuroUI) +{ + ui->setupUi(this); +} + +NeuroUI::~NeuroUI() +{ + delete ui; +} diff --git a/gui/NeuroUI/neuroui.h b/gui/NeuroUI/neuroui.h new file mode 100644 index 0000000..65d4cd8 --- /dev/null +++ b/gui/NeuroUI/neuroui.h @@ -0,0 +1,22 @@ +#ifndef NEUROUI_H +#define NEUROUI_H + +#include + +namespace Ui { +class NeuroUI; +} + +class NeuroUI : public QMainWindow +{ + Q_OBJECT + +public: + explicit NeuroUI(QWidget *parent = 0); + ~NeuroUI(); + +private: + Ui::NeuroUI *ui; +}; + +#endif // NEUROUI_H diff --git a/gui/NeuroUI/neuroui.ui b/gui/NeuroUI/neuroui.ui new file mode 100644 index 0000000..4f32e25 --- /dev/null +++ b/gui/NeuroUI/neuroui.ui @@ -0,0 +1,51 @@ + + + NeuroUI + + + + 0 + 0 + 400 + 300 + + + + NeuroUI + + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Run + + + + + + + + + + + +