From 0233db9fabd0d26e5de2f83fef87df43b8d046ad Mon Sep 17 00:00:00 2001 From: Utat Uav Date: Tue, 13 Jan 2015 17:28:58 -0500 Subject: [PATCH] Removed GitHub for windows because it's dumb. Some other stuff also happened but I'm not really sure what --- gui/gui.pro | 20 ++++++++++++++++++++ gui/main.cpp | 11 +++++++++++ gui/mainwindow.cpp | 14 ++++++++++++++ gui/mainwindow.h | 22 ++++++++++++++++++++++ gui/mainwindow.ui | 24 ++++++++++++++++++++++++ 5 files changed, 91 insertions(+) create mode 100644 gui/gui.pro create mode 100644 gui/main.cpp create mode 100644 gui/mainwindow.cpp create mode 100644 gui/mainwindow.h create mode 100644 gui/mainwindow.ui diff --git a/gui/gui.pro b/gui/gui.pro new file mode 100644 index 0000000..2098a55 --- /dev/null +++ b/gui/gui.pro @@ -0,0 +1,20 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2015-01-13T17:26:00 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = gui +TEMPLATE = app + + +SOURCES += main.cpp\ + mainwindow.cpp + +HEADERS += mainwindow.h + +FORMS += mainwindow.ui diff --git a/gui/main.cpp b/gui/main.cpp new file mode 100644 index 0000000..aab39bb --- /dev/null +++ b/gui/main.cpp @@ -0,0 +1,11 @@ +#include "mainwindow.h" +#include + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + MainWindow w; + w.show(); + + return a.exec(); +} diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp new file mode 100644 index 0000000..12d07c0 --- /dev/null +++ b/gui/mainwindow.cpp @@ -0,0 +1,14 @@ +#include "mainwindow.h" +#include "ui_mainwindow.h" + +MainWindow::MainWindow(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::MainWindow) +{ + ui->setupUi(this); +} + +MainWindow::~MainWindow() +{ + delete ui; +} diff --git a/gui/mainwindow.h b/gui/mainwindow.h new file mode 100644 index 0000000..29bb970 --- /dev/null +++ b/gui/mainwindow.h @@ -0,0 +1,22 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include + +namespace Ui { +class MainWindow; +} + +class MainWindow : public QMainWindow +{ + Q_OBJECT + +public: + explicit MainWindow(QWidget *parent = 0); + ~MainWindow(); + +private: + Ui::MainWindow *ui; +}; + +#endif // MAINWINDOW_H diff --git a/gui/mainwindow.ui b/gui/mainwindow.ui new file mode 100644 index 0000000..7de574d --- /dev/null +++ b/gui/mainwindow.ui @@ -0,0 +1,24 @@ + + MainWindow + + + + 0 + 0 + 400 + 300 + + + + MainWindow + + + + + + + + + + +