Sun, 03 Jul 2022 13:44:11 +0300
Extract the triangulation and triangle merging code into a new source file and clean it up somewhat
275 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | <ui version="4.0"> | |
3 | <class>About</class> | |
4 | <widget class="QDialog" name="About"> | |
5 | <property name="geometry"> | |
6 | <rect> | |
7 | <x>0</x> | |
8 | <y>0</y> | |
279
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
9 | <width>930</width> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
10 | <height>436</height> |
275 | 11 | </rect> |
12 | </property> | |
13 | <property name="windowTitle"> | |
14 | <string>Dialog</string> | |
15 | </property> | |
16 | <layout class="QVBoxLayout" name="verticalLayout"> | |
17 | <item> | |
279
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
18 | <widget class="QTabWidget" name="tabWidget"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
19 | <property name="tabPosition"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
20 | <enum>QTabWidget::South</enum> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
21 | </property> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
22 | <property name="currentIndex"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
23 | <number>0</number> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
24 | </property> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
25 | <widget class="QWidget" name="tab"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
26 | <attribute name="title"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
27 | <string>Version and build information</string> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
28 | </attribute> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
29 | <layout class="QVBoxLayout" name="verticalLayout_3"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
30 | <item> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
31 | <widget class="QTextBrowser" name="versionBrowser"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
32 | <property name="html"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
33 | <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> |
275 | 34 | <html><head><meta name="qrichtext" content="1" /><style type="text/css"> |
35 | p, li { white-space: pre-wrap; } | |
36 | </style></head><body style=" font-family:'EPSONEXT 丸ã´ã·ãã¯ä½ï¼'; font-size:11pt; font-weight:400; font-style:normal;"> | |
279
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
37 | <h1 style=" margin-top:18px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><img src=":/icons/appicon.png" height="64" /><span style=" font-size:xx-large; font-weight:600;"> %APPNAME% %VERSION%</span></h1> |
294
70b69a15c736
Reformat about.ui a bit
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
293
diff
changeset
|
38 | <hr /> |
70b69a15c736
Reformat about.ui a bit
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
293
diff
changeset
|
39 | <h2 style=" margin-top:16px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:x-large; font-weight:600;">Library information</span></h2> |
279
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
40 | <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt version: %QTVERSION%</p> |
294
70b69a15c736
Reformat about.ui a bit
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
293
diff
changeset
|
41 | <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">%GLMVERSIONSTRING%</p> |
293
9f85a54ead29
Add OpenGL information to about page
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
292
diff
changeset
|
42 | <hr /> |
9f85a54ead29
Add OpenGL information to about page
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
292
diff
changeset
|
43 | <h2 style=" margin-top:16px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:x-large; font-weight:600;">Build time information</span></h2> |
9f85a54ead29
Add OpenGL information to about page
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
292
diff
changeset
|
44 | <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The following information was gathered during the build of this program.</p> |
281
afed72b544f0
- Add CMake build type to about page and window title
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
279
diff
changeset
|
45 | <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Build type: %BUILDTYPE%</p> |
279
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
46 | <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Compiler: %COMPILER_ID% %COMPILER_VERSION%</p> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
47 | <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Compiler system: %COMPILER_SYSTEM% (%COMPILER_CPU%)</p> |
293
9f85a54ead29
Add OpenGL information to about page
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
292
diff
changeset
|
48 | <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Compiler flags: %COMPILER_FLAGS%</p> |
9f85a54ead29
Add OpenGL information to about page
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
292
diff
changeset
|
49 | <hr /> |
9f85a54ead29
Add OpenGL information to about page
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
292
diff
changeset
|
50 | <h2 style=" margin-top:16px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:x-large; font-weight:600;">OpenGL information</span></h2> |
9f85a54ead29
Add OpenGL information to about page
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
292
diff
changeset
|
51 | <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">OpenGL version: %GL_VERSION%</p> |
9f85a54ead29
Add OpenGL information to about page
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
292
diff
changeset
|
52 | <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">OpenGL Extensions: %GL_EXTENSIONS%</p></body></html></string> |
279
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
53 | </property> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
54 | </widget> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
55 | </item> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
56 | </layout> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
57 | </widget> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
58 | <widget class="QWidget" name="tab_2"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
59 | <attribute name="title"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
60 | <string>Copyright</string> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
61 | </attribute> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
62 | <layout class="QVBoxLayout" name="verticalLayout_2"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
63 | <item> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
64 | <widget class="QTextBrowser" name="copyrightBrowser"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
65 | <property name="html"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
66 | <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
67 | <html><head><meta name="qrichtext" content="1" /><style type="text/css"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
68 | p, li { white-space: pre-wrap; } |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
69 | </style></head><body style=" font-family:'EPSONEXT 丸ã´ã·ãã¯ä½ï¼'; font-size:11pt; font-weight:400; font-style:normal;"> |
275 | 70 | <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">%COPYRIGHT%</p> |
71 | <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p> | |
72 | <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p> | |
73 | <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">You should have received a copy of the GNU General Public License along with this program. If not, see &lt;<a href="http://www.gnu.org/licenses/"><span style=" text-decoration: underline; color:#0000ff;">http://www.gnu.org/licenses/</span></a>&gt;. </p> | |
74 | <hr /> | |
75 | <h2 style=" margin-top:16px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:x-large; font-weight:600;">Third party licenses</span></h2> | |
277
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
76 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">The following third party code and resources are used in this application: </p> |
275 | 77 | <hr /> |
277
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
78 | <table border="0" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;" cellspacing="2" cellpadding="0"><thead> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
79 | <tr> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
80 | <td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
81 | <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Third party code/resource</span></p></td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
82 | <td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
83 | <p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">License</span></p></td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
84 | <td></td></tr></thead> |
275 | 85 | <tr> |
86 | <td> | |
87 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</p></td> | |
88 | <td> | |
277
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
89 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">GNU Lesser GPL</p></td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
90 | <td></td></tr> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
91 | <tr> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
92 | <td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
93 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">OpenGL Mathematics (GLM) by G-Truc Creation</p></td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
94 | <td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
95 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Happy Bunny License</p></td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
96 | <td></td></tr> |
275 | 97 | <tr> |
98 | <td> | |
99 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Mapbox earcut.hpp</p></td> | |
100 | <td> | |
277
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
101 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">ISC</p></td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
102 | <td></td></tr> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
103 | <tr> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
104 | <td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
105 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Ionicons by Ionic</p></td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
106 | <td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
107 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">MIT</p></td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
108 | <td></td></tr></table></body></html></string> |
279
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
109 | </property> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
110 | </widget> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
111 | </item> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
112 | </layout> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
113 | </widget> |
275 | 114 | </widget> |
115 | </item> | |
116 | <item> | |
117 | <widget class="QDialogButtonBox" name="buttonBox"> | |
118 | <property name="orientation"> | |
119 | <enum>Qt::Horizontal</enum> | |
120 | </property> | |
121 | <property name="standardButtons"> | |
122 | <set>QDialogButtonBox::Close</set> | |
123 | </property> | |
124 | </widget> | |
125 | </item> | |
126 | </layout> | |
127 | </widget> | |
128 | <resources/> | |
129 | <connections> | |
130 | <connection> | |
131 | <sender>buttonBox</sender> | |
132 | <signal>accepted()</signal> | |
133 | <receiver>About</receiver> | |
134 | <slot>accept()</slot> | |
135 | <hints> | |
136 | <hint type="sourcelabel"> | |
137 | <x>248</x> | |
138 | <y>254</y> | |
139 | </hint> | |
140 | <hint type="destinationlabel"> | |
141 | <x>157</x> | |
142 | <y>274</y> | |
143 | </hint> | |
144 | </hints> | |
145 | </connection> | |
146 | <connection> | |
147 | <sender>buttonBox</sender> | |
148 | <signal>rejected()</signal> | |
149 | <receiver>About</receiver> | |
150 | <slot>reject()</slot> | |
151 | <hints> | |
152 | <hint type="sourcelabel"> | |
153 | <x>316</x> | |
154 | <y>260</y> | |
155 | </hint> | |
156 | <hint type="destinationlabel"> | |
157 | <x>286</x> | |
158 | <y>274</y> | |
159 | </hint> | |
160 | </hints> | |
161 | </connection> | |
162 | </connections> | |
163 | </ui> |