Qt GUI initial import

This commit is contained in:
Michael Mandl 2015-10-24 14:44:33 +02:00
parent 4eb232b1e9
commit c9fb9b9fa8
6 changed files with 121 additions and 0 deletions

3
.gitignore vendored
View file

@ -229,3 +229,6 @@ $RECYCLE.BIN/
# Windows shortcuts
*.lnk
# Qt Creator files
build-*/

20
gui/NeuroUI/NeuroUI.pro Normal file
View file

@ -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

11
gui/NeuroUI/main.cpp Normal file
View file

@ -0,0 +1,11 @@
#include "neuroui.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
NeuroUI w;
w.show();
return a.exec();
}

14
gui/NeuroUI/neuroui.cpp Normal file
View file

@ -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;
}

22
gui/NeuroUI/neuroui.h Normal file
View file

@ -0,0 +1,22 @@
#ifndef NEUROUI_H
#define NEUROUI_H
#include <QMainWindow>
namespace Ui {
class NeuroUI;
}
class NeuroUI : public QMainWindow
{
Q_OBJECT
public:
explicit NeuroUI(QWidget *parent = 0);
~NeuroUI();
private:
Ui::NeuroUI *ui;
};
#endif // NEUROUI_H

51
gui/NeuroUI/neuroui.ui Normal file
View file

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>NeuroUI</class>
<widget class="QMainWindow" name="NeuroUI">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>400</width>
<height>300</height>
</rect>
</property>
<property name="windowTitle">
<string>NeuroUI</string>
</property>
<widget class="QWidget" name="centralWidget">
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<widget class="QListView" name="logView"/>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="runButton">
<property name="text">
<string>Run</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>