# HG changeset patch # User John Tsiombikas # Date 1440903272 -10800 # Node ID 795217e82f3d846fa0eabd43a2f397ca7b537d69 starting the mesh generation GUI project diff -r 000000000000 -r 795217e82f3d meshgen.pro --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/meshgen.pro Sun Aug 30 05:54:32 2015 +0300 @@ -0,0 +1,24 @@ +#------------------------------------------------- +# +# Project created by QtCreator 2015-08-30T05:26:30 +# +#------------------------------------------------- + +QT += core gui + +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets + +TARGET = meshgen +TEMPLATE = app + + +SOURCES += src/main.cc\ + src/mainwindow.cc + +HEADERS += src/mainwindow.h + +FORMS += ui/mainwindow.ui + +CONFIG += mobility +MOBILITY = + diff -r 000000000000 -r 795217e82f3d src/main.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main.cc Sun Aug 30 05:54:32 2015 +0300 @@ -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 -r 000000000000 -r 795217e82f3d src/mainwindow.cc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/mainwindow.cc Sun Aug 30 05:54:32 2015 +0300 @@ -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 -r 000000000000 -r 795217e82f3d src/mainwindow.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/mainwindow.h Sun Aug 30 05:54:32 2015 +0300 @@ -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 -r 000000000000 -r 795217e82f3d ui/mainwindow.ui --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ui/mainwindow.ui Sun Aug 30 05:54:32 2015 +0300 @@ -0,0 +1,295 @@ + + + MainWindow + + + + 0 + 0 + 800 + 480 + + + + MainWindow + + + + + + + 1 + + + + Tab 1 + + + + + 10 + 10 + 115 + 32 + + + + Sphere + + + + + + 10 + 40 + 115 + 32 + + + + Box + + + + + + 180 + 70 + 115 + 32 + + + + Capsule + + + + + + 180 + 40 + 115 + 32 + + + + Rounded Box + + + + + + 10 + 70 + 115 + 32 + + + + Cylinder + + + + + + 10 + 100 + 115 + 32 + + + + Cone + + + + + + 180 + 10 + 115 + 32 + + + + Revolution + + + + + + 180 + 130 + 115 + 32 + + + + Heightfield + + + + + + 180 + 100 + 115 + 32 + + + + Sweep + + + + + + 20 + 130 + 115 + 32 + + + + Inf. Plane + + + + + + 10 + 180 + 351 + 251 + + + + true + + + + true + + + + 0 + 0 + 349 + 249 + + + + + + + + Tab 2 + + + + + 10 + 180 + 351 + 241 + + + + true + + + + true + + + + 0 + 0 + 349 + 239 + + + + + + + + 10 + 0 + 211 + 171 + + + + + + + 240 + 50 + 115 + 32 + + + + Duplicate + + + + + + 240 + 90 + 115 + 32 + + + + Delete + + + + + + 240 + 10 + 115 + 32 + + + + Hide + + + + + + + + + + 0 + 0 + + + + + 320 + 240 + + + + + + + + + + + GLView + QOpenGLWidget +
glview.h
+
+
+ + +