meshgen
changeset 0:795217e82f3d
starting the mesh generation GUI project
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 30 Aug 2015 05:54:32 +0300 |
parents | |
children | 7dac9d1bcae4 |
files | meshgen.pro src/main.cc src/mainwindow.cc src/mainwindow.h ui/mainwindow.ui |
diffstat | 5 files changed, 366 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/meshgen.pro Sun Aug 30 05:54:32 2015 +0300 1.3 @@ -0,0 +1,24 @@ 1.4 +#------------------------------------------------- 1.5 +# 1.6 +# Project created by QtCreator 2015-08-30T05:26:30 1.7 +# 1.8 +#------------------------------------------------- 1.9 + 1.10 +QT += core gui 1.11 + 1.12 +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 1.13 + 1.14 +TARGET = meshgen 1.15 +TEMPLATE = app 1.16 + 1.17 + 1.18 +SOURCES += src/main.cc\ 1.19 + src/mainwindow.cc 1.20 + 1.21 +HEADERS += src/mainwindow.h 1.22 + 1.23 +FORMS += ui/mainwindow.ui 1.24 + 1.25 +CONFIG += mobility 1.26 +MOBILITY = 1.27 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/src/main.cc Sun Aug 30 05:54:32 2015 +0300 2.3 @@ -0,0 +1,11 @@ 2.4 +#include "mainwindow.h" 2.5 +#include <QApplication> 2.6 + 2.7 +int main(int argc, char *argv[]) 2.8 +{ 2.9 + QApplication a(argc, argv); 2.10 + MainWindow w; 2.11 + w.show(); 2.12 + 2.13 + return a.exec(); 2.14 +}
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/src/mainwindow.cc Sun Aug 30 05:54:32 2015 +0300 3.3 @@ -0,0 +1,14 @@ 3.4 +#include "mainwindow.h" 3.5 +#include "ui_mainwindow.h" 3.6 + 3.7 +MainWindow::MainWindow(QWidget *parent) : 3.8 + QMainWindow(parent), 3.9 + ui(new Ui::MainWindow) 3.10 +{ 3.11 + ui->setupUi(this); 3.12 +} 3.13 + 3.14 +MainWindow::~MainWindow() 3.15 +{ 3.16 + delete ui; 3.17 +}
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/src/mainwindow.h Sun Aug 30 05:54:32 2015 +0300 4.3 @@ -0,0 +1,22 @@ 4.4 +#ifndef MAINWINDOW_H 4.5 +#define MAINWINDOW_H 4.6 + 4.7 +#include <QMainWindow> 4.8 + 4.9 +namespace Ui { 4.10 +class MainWindow; 4.11 +} 4.12 + 4.13 +class MainWindow : public QMainWindow 4.14 +{ 4.15 + Q_OBJECT 4.16 + 4.17 +public: 4.18 + explicit MainWindow(QWidget *parent = 0); 4.19 + ~MainWindow(); 4.20 + 4.21 +private: 4.22 + Ui::MainWindow *ui; 4.23 +}; 4.24 + 4.25 +#endif // MAINWINDOW_H
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/ui/mainwindow.ui Sun Aug 30 05:54:32 2015 +0300 5.3 @@ -0,0 +1,295 @@ 5.4 +<?xml version="1.0" encoding="UTF-8"?> 5.5 +<ui version="4.0"> 5.6 + <class>MainWindow</class> 5.7 + <widget class="QMainWindow" name="MainWindow"> 5.8 + <property name="geometry"> 5.9 + <rect> 5.10 + <x>0</x> 5.11 + <y>0</y> 5.12 + <width>800</width> 5.13 + <height>480</height> 5.14 + </rect> 5.15 + </property> 5.16 + <property name="windowTitle"> 5.17 + <string>MainWindow</string> 5.18 + </property> 5.19 + <widget class="QWidget" name="centralWidget"> 5.20 + <layout class="QHBoxLayout" name="horizontalLayout"> 5.21 + <item> 5.22 + <widget class="QTabWidget" name="tabWidget"> 5.23 + <property name="currentIndex"> 5.24 + <number>1</number> 5.25 + </property> 5.26 + <widget class="QWidget" name="tab_create"> 5.27 + <attribute name="title"> 5.28 + <string>Tab 1</string> 5.29 + </attribute> 5.30 + <widget class="QPushButton" name="bn_add_sphere"> 5.31 + <property name="geometry"> 5.32 + <rect> 5.33 + <x>10</x> 5.34 + <y>10</y> 5.35 + <width>115</width> 5.36 + <height>32</height> 5.37 + </rect> 5.38 + </property> 5.39 + <property name="text"> 5.40 + <string>Sphere</string> 5.41 + </property> 5.42 + </widget> 5.43 + <widget class="QPushButton" name="bn_add_box"> 5.44 + <property name="geometry"> 5.45 + <rect> 5.46 + <x>10</x> 5.47 + <y>40</y> 5.48 + <width>115</width> 5.49 + <height>32</height> 5.50 + </rect> 5.51 + </property> 5.52 + <property name="text"> 5.53 + <string>Box</string> 5.54 + </property> 5.55 + </widget> 5.56 + <widget class="QPushButton" name="bn_add_capsule"> 5.57 + <property name="geometry"> 5.58 + <rect> 5.59 + <x>180</x> 5.60 + <y>70</y> 5.61 + <width>115</width> 5.62 + <height>32</height> 5.63 + </rect> 5.64 + </property> 5.65 + <property name="text"> 5.66 + <string>Capsule</string> 5.67 + </property> 5.68 + </widget> 5.69 + <widget class="QPushButton" name="bn_add_rbox"> 5.70 + <property name="geometry"> 5.71 + <rect> 5.72 + <x>180</x> 5.73 + <y>40</y> 5.74 + <width>115</width> 5.75 + <height>32</height> 5.76 + </rect> 5.77 + </property> 5.78 + <property name="text"> 5.79 + <string>Rounded Box</string> 5.80 + </property> 5.81 + </widget> 5.82 + <widget class="QPushButton" name="bn_add_cylinder"> 5.83 + <property name="geometry"> 5.84 + <rect> 5.85 + <x>10</x> 5.86 + <y>70</y> 5.87 + <width>115</width> 5.88 + <height>32</height> 5.89 + </rect> 5.90 + </property> 5.91 + <property name="text"> 5.92 + <string>Cylinder</string> 5.93 + </property> 5.94 + </widget> 5.95 + <widget class="QPushButton" name="bn_add_cone"> 5.96 + <property name="geometry"> 5.97 + <rect> 5.98 + <x>10</x> 5.99 + <y>100</y> 5.100 + <width>115</width> 5.101 + <height>32</height> 5.102 + </rect> 5.103 + </property> 5.104 + <property name="text"> 5.105 + <string>Cone</string> 5.106 + </property> 5.107 + </widget> 5.108 + <widget class="QPushButton" name="bn_add_revol"> 5.109 + <property name="geometry"> 5.110 + <rect> 5.111 + <x>180</x> 5.112 + <y>10</y> 5.113 + <width>115</width> 5.114 + <height>32</height> 5.115 + </rect> 5.116 + </property> 5.117 + <property name="text"> 5.118 + <string>Revolution</string> 5.119 + </property> 5.120 + </widget> 5.121 + <widget class="QPushButton" name="bn_add_heightfield"> 5.122 + <property name="geometry"> 5.123 + <rect> 5.124 + <x>180</x> 5.125 + <y>130</y> 5.126 + <width>115</width> 5.127 + <height>32</height> 5.128 + </rect> 5.129 + </property> 5.130 + <property name="text"> 5.131 + <string>Heightfield</string> 5.132 + </property> 5.133 + </widget> 5.134 + <widget class="QPushButton" name="bn_add_sweep"> 5.135 + <property name="geometry"> 5.136 + <rect> 5.137 + <x>180</x> 5.138 + <y>100</y> 5.139 + <width>115</width> 5.140 + <height>32</height> 5.141 + </rect> 5.142 + </property> 5.143 + <property name="text"> 5.144 + <string>Sweep</string> 5.145 + </property> 5.146 + </widget> 5.147 + <widget class="QPushButton" name="bn_add_plane"> 5.148 + <property name="geometry"> 5.149 + <rect> 5.150 + <x>20</x> 5.151 + <y>130</y> 5.152 + <width>115</width> 5.153 + <height>32</height> 5.154 + </rect> 5.155 + </property> 5.156 + <property name="text"> 5.157 + <string>Inf. Plane</string> 5.158 + </property> 5.159 + </widget> 5.160 + <widget class="QScrollArea" name="area_add_prop"> 5.161 + <property name="geometry"> 5.162 + <rect> 5.163 + <x>10</x> 5.164 + <y>180</y> 5.165 + <width>351</width> 5.166 + <height>251</height> 5.167 + </rect> 5.168 + </property> 5.169 + <property name="widgetResizable"> 5.170 + <bool>true</bool> 5.171 + </property> 5.172 + <widget class="QWidget" name="addprop_null"> 5.173 + <property name="enabled"> 5.174 + <bool>true</bool> 5.175 + </property> 5.176 + <property name="geometry"> 5.177 + <rect> 5.178 + <x>0</x> 5.179 + <y>0</y> 5.180 + <width>349</width> 5.181 + <height>249</height> 5.182 + </rect> 5.183 + </property> 5.184 + </widget> 5.185 + </widget> 5.186 + </widget> 5.187 + <widget class="QWidget" name="tab_2"> 5.188 + <attribute name="title"> 5.189 + <string>Tab 2</string> 5.190 + </attribute> 5.191 + <widget class="QScrollArea" name="area_mod_prop"> 5.192 + <property name="geometry"> 5.193 + <rect> 5.194 + <x>10</x> 5.195 + <y>180</y> 5.196 + <width>351</width> 5.197 + <height>241</height> 5.198 + </rect> 5.199 + </property> 5.200 + <property name="widgetResizable"> 5.201 + <bool>true</bool> 5.202 + </property> 5.203 + <widget class="QWidget" name="addprop_null_2"> 5.204 + <property name="enabled"> 5.205 + <bool>true</bool> 5.206 + </property> 5.207 + <property name="geometry"> 5.208 + <rect> 5.209 + <x>0</x> 5.210 + <y>0</y> 5.211 + <width>349</width> 5.212 + <height>239</height> 5.213 + </rect> 5.214 + </property> 5.215 + </widget> 5.216 + </widget> 5.217 + <widget class="QListWidget" name="listWidget"> 5.218 + <property name="geometry"> 5.219 + <rect> 5.220 + <x>10</x> 5.221 + <y>0</y> 5.222 + <width>211</width> 5.223 + <height>171</height> 5.224 + </rect> 5.225 + </property> 5.226 + </widget> 5.227 + <widget class="QPushButton" name="bn_prim_dup"> 5.228 + <property name="geometry"> 5.229 + <rect> 5.230 + <x>240</x> 5.231 + <y>50</y> 5.232 + <width>115</width> 5.233 + <height>32</height> 5.234 + </rect> 5.235 + </property> 5.236 + <property name="text"> 5.237 + <string>Duplicate</string> 5.238 + </property> 5.239 + </widget> 5.240 + <widget class="QPushButton" name="bn_prim_del"> 5.241 + <property name="geometry"> 5.242 + <rect> 5.243 + <x>240</x> 5.244 + <y>90</y> 5.245 + <width>115</width> 5.246 + <height>32</height> 5.247 + </rect> 5.248 + </property> 5.249 + <property name="text"> 5.250 + <string>Delete</string> 5.251 + </property> 5.252 + </widget> 5.253 + <widget class="QPushButton" name="bn_prim_hide"> 5.254 + <property name="geometry"> 5.255 + <rect> 5.256 + <x>240</x> 5.257 + <y>10</y> 5.258 + <width>115</width> 5.259 + <height>32</height> 5.260 + </rect> 5.261 + </property> 5.262 + <property name="text"> 5.263 + <string>Hide</string> 5.264 + </property> 5.265 + </widget> 5.266 + </widget> 5.267 + </widget> 5.268 + </item> 5.269 + <item> 5.270 + <widget class="GLView" name="glview"> 5.271 + <property name="sizePolicy"> 5.272 + <sizepolicy hsizetype="Expanding" vsizetype="Expanding"> 5.273 + <horstretch>0</horstretch> 5.274 + <verstretch>0</verstretch> 5.275 + </sizepolicy> 5.276 + </property> 5.277 + <property name="minimumSize"> 5.278 + <size> 5.279 + <width>320</width> 5.280 + <height>240</height> 5.281 + </size> 5.282 + </property> 5.283 + </widget> 5.284 + </item> 5.285 + </layout> 5.286 + </widget> 5.287 + </widget> 5.288 + <layoutdefault spacing="6" margin="11"/> 5.289 + <customwidgets> 5.290 + <customwidget> 5.291 + <class>GLView</class> 5.292 + <extends>QOpenGLWidget</extends> 5.293 + <header>glview.h</header> 5.294 + </customwidget> 5.295 + </customwidgets> 5.296 + <resources/> 5.297 + <connections/> 5.298 +</ui>