From 9cf92379d5fcf0076c25dae0935daab446c992cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 30 Aug 2017 21:37:53 +0200 Subject: Initial commit Adding work done so far. --- qtmips_gui/main.cpp | 11 +++++++++++ qtmips_gui/mainwindow.cpp | 14 ++++++++++++++ qtmips_gui/mainwindow.h | 22 ++++++++++++++++++++++ qtmips_gui/mainwindow.ui | 24 ++++++++++++++++++++++++ qtmips_gui/qtmips_gui.pro | 23 +++++++++++++++++++++++ 5 files changed, 94 insertions(+) create mode 100644 qtmips_gui/main.cpp create mode 100644 qtmips_gui/mainwindow.cpp create mode 100644 qtmips_gui/mainwindow.h create mode 100644 qtmips_gui/mainwindow.ui create mode 100644 qtmips_gui/qtmips_gui.pro (limited to 'qtmips_gui') diff --git a/qtmips_gui/main.cpp b/qtmips_gui/main.cpp new file mode 100644 index 0000000..b48f94e --- /dev/null +++ b/qtmips_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/qtmips_gui/mainwindow.cpp b/qtmips_gui/mainwindow.cpp new file mode 100644 index 0000000..49d64fc --- /dev/null +++ b/qtmips_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/qtmips_gui/mainwindow.h b/qtmips_gui/mainwindow.h new file mode 100644 index 0000000..a3948a9 --- /dev/null +++ b/qtmips_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/qtmips_gui/mainwindow.ui b/qtmips_gui/mainwindow.ui new file mode 100644 index 0000000..6050363 --- /dev/null +++ b/qtmips_gui/mainwindow.ui @@ -0,0 +1,24 @@ + + MainWindow + + + + 0 + 0 + 400 + 300 + + + + MainWindow + + + + + + + + + + + diff --git a/qtmips_gui/qtmips_gui.pro b/qtmips_gui/qtmips_gui.pro new file mode 100644 index 0000000..7dfb53c --- /dev/null +++ b/qtmips_gui/qtmips_gui.pro @@ -0,0 +1,23 @@ +QT += core gui widgets + +TARGET = qtmips_gui +CONFIG += c++11 + +TEMPLATE = app + +LIBS += -L$$OUT_PWD/../qtmips_machine/ -lqtmips_machine +INCLUDEPATH += $$PWD/../qtmips_machine +DEPENDPATH += $$PWD/../qtmips_machine +QMAKE_CXXFLAGS += -std=c++0x + +DEFINES += QT_DEPRECATED_WARNINGS + +SOURCES += \ + main.cpp \ + mainwindow.cpp + +HEADERS += \ + mainwindow.h + +FORMS += \ + mainwindow.ui -- cgit v1.2.3