From 8bf51c9315814422f20c9bc7e48783f156a1d0fa Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Mon, 9 Dec 2013 13:25:05 +0100 Subject: [PATCH 1/2] added QtProject files. Testing the capabilities of QtDesigner for our purposes. Maybe it is better to design the GUI directly via PyQt/PySide instead of utilizing the QtDesigner and translate the *.ui file to *.py scripts. From 32a1c8bcd3ee25c117125a0acf0bd4fb78a53b5a Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Mon, 9 Dec 2013 13:34:01 +0100 Subject: [PATCH 2/2] commit master --- pylot/ui/PyLoT_main/PyLoT_main.pro | 20 ++++++++++ pylot/ui/PyLoT_main/main.cpp | 11 ++++++ pylot/ui/PyLoT_main/qt_pylot.cpp | 14 +++++++ pylot/ui/PyLoT_main/qt_pylot.h | 22 +++++++++++ pylot/ui/PyLoT_main/qt_pylot.ui | 62 ++++++++++++++++++++++++++++++ 5 files changed, 129 insertions(+) create mode 100644 pylot/ui/PyLoT_main/PyLoT_main.pro create mode 100644 pylot/ui/PyLoT_main/main.cpp create mode 100644 pylot/ui/PyLoT_main/qt_pylot.cpp create mode 100644 pylot/ui/PyLoT_main/qt_pylot.h create mode 100644 pylot/ui/PyLoT_main/qt_pylot.ui diff --git a/pylot/ui/PyLoT_main/PyLoT_main.pro b/pylot/ui/PyLoT_main/PyLoT_main.pro new file mode 100644 index 00000000..e119b23a --- /dev/null +++ b/pylot/ui/PyLoT_main/PyLoT_main.pro @@ -0,0 +1,20 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2013-12-09T13:16:21 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = PyLoT_main +TEMPLATE = app + + +SOURCES += main.cpp\ + qt_pylot.cpp + +HEADERS += qt_pylot.h + +FORMS += qt_pylot.ui diff --git a/pylot/ui/PyLoT_main/main.cpp b/pylot/ui/PyLoT_main/main.cpp new file mode 100644 index 00000000..49f1e337 --- /dev/null +++ b/pylot/ui/PyLoT_main/main.cpp @@ -0,0 +1,11 @@ +#include "qt_pylot.h" +#include + +int main(int argc, char *argv[]) +{ + QApplication a(argc, argv); + Qt_PyLoT w; + w.show(); + + return a.exec(); +} diff --git a/pylot/ui/PyLoT_main/qt_pylot.cpp b/pylot/ui/PyLoT_main/qt_pylot.cpp new file mode 100644 index 00000000..967482a0 --- /dev/null +++ b/pylot/ui/PyLoT_main/qt_pylot.cpp @@ -0,0 +1,14 @@ +#include "qt_pylot.h" +#include "ui_qt_pylot.h" + +Qt_PyLoT::Qt_PyLoT(QWidget *parent) : + QMainWindow(parent), + ui(new Ui::Qt_PyLoT) +{ + ui->setupUi(this); +} + +Qt_PyLoT::~Qt_PyLoT() +{ + delete ui; +} diff --git a/pylot/ui/PyLoT_main/qt_pylot.h b/pylot/ui/PyLoT_main/qt_pylot.h new file mode 100644 index 00000000..5384d4ac --- /dev/null +++ b/pylot/ui/PyLoT_main/qt_pylot.h @@ -0,0 +1,22 @@ +#ifndef QT_PYLOT_H +#define QT_PYLOT_H + +#include + +namespace Ui { +class Qt_PyLoT; +} + +class Qt_PyLoT : public QMainWindow +{ + Q_OBJECT + +public: + explicit Qt_PyLoT(QWidget *parent = 0); + ~Qt_PyLoT(); + +private: + Ui::Qt_PyLoT *ui; +}; + +#endif // QT_PYLOT_H diff --git a/pylot/ui/PyLoT_main/qt_pylot.ui b/pylot/ui/PyLoT_main/qt_pylot.ui new file mode 100644 index 00000000..0b0b0da2 --- /dev/null +++ b/pylot/ui/PyLoT_main/qt_pylot.ui @@ -0,0 +1,62 @@ + + + Qt_PyLoT + + + + 0 + 0 + 1024 + 768 + + + + Qt_PyLoT + + + + + + 170 + 30 + 841 + 641 + + + + QFrame::StyledPanel + + + QFrame::Raised + + + + + + + 0 + 0 + 1024 + 22 + + + + + + TopToolBarArea + + + false + + + + + + File + + + + + + +