Tue, 28 Jun 2022 11:51:17 +0300
- Add CMake build type to about page and window title
- Use locale-dependant short date format in window title and long format in about page
- Move version definition into project() call
- Renamed the c++ macros to match CMake variable names
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> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
38 | <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> |
281
afed72b544f0
- Add CMake build type to about page and window title
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
279
diff
changeset
|
39 | <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
|
40 | <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
|
41 | <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> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
42 | <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></body></html></string> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
43 | </property> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
44 | </widget> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
45 | </item> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
46 | </layout> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
47 | </widget> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
48 | <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
|
49 | <attribute name="title"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
50 | <string>Copyright</string> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
51 | </attribute> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
52 | <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
|
53 | <item> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
54 | <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
|
55 | <property name="html"> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
56 | <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
|
57 | <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
|
58 | 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
|
59 | </style></head><body style=" font-family:'EPSONEXT 丸ã´ã·ãã¯ä½ï¼'; font-size:11pt; font-weight:400; font-style:normal;"> |
275 | 60 | <p style=" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">%COPYRIGHT%</p> |
61 | <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> | |
62 | <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> | |
63 | <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> | |
64 | <hr /> | |
65 | <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
|
66 | <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 | 67 | <hr /> |
277
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
68 | <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
|
69 | <tr> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
70 | <td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
71 | <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
|
72 | <td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
73 | <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
|
74 | <td></td></tr></thead> |
275 | 75 | <tr> |
76 | <td> | |
77 | <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Qt</p></td> | |
78 | <td> | |
277
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
79 | <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
|
80 | <td></td></tr> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
81 | <tr> |
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 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
|
84 | <td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
85 | <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
|
86 | <td></td></tr> |
275 | 87 | <tr> |
88 | <td> | |
89 | <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> | |
90 | <td> | |
277
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
91 | <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
|
92 | <td></td></tr> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
93 | <tr> |
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;">Ionicons by Ionic</p></td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
96 | <td> |
3406191af523
Add missing third party acknowledgements
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
275
diff
changeset
|
97 | <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
|
98 | <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
|
99 | </property> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
100 | </widget> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
101 | </item> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
102 | </layout> |
cd70c845563a
Add build system information to the about dialog
Teemu Piippo <teemu.s.piippo@gmail.com>
parents:
277
diff
changeset
|
103 | </widget> |
275 | 104 | </widget> |
105 | </item> | |
106 | <item> | |
107 | <widget class="QDialogButtonBox" name="buttonBox"> | |
108 | <property name="orientation"> | |
109 | <enum>Qt::Horizontal</enum> | |
110 | </property> | |
111 | <property name="standardButtons"> | |
112 | <set>QDialogButtonBox::Close</set> | |
113 | </property> | |
114 | </widget> | |
115 | </item> | |
116 | </layout> | |
117 | </widget> | |
118 | <resources/> | |
119 | <connections> | |
120 | <connection> | |
121 | <sender>buttonBox</sender> | |
122 | <signal>accepted()</signal> | |
123 | <receiver>About</receiver> | |
124 | <slot>accept()</slot> | |
125 | <hints> | |
126 | <hint type="sourcelabel"> | |
127 | <x>248</x> | |
128 | <y>254</y> | |
129 | </hint> | |
130 | <hint type="destinationlabel"> | |
131 | <x>157</x> | |
132 | <y>274</y> | |
133 | </hint> | |
134 | </hints> | |
135 | </connection> | |
136 | <connection> | |
137 | <sender>buttonBox</sender> | |
138 | <signal>rejected()</signal> | |
139 | <receiver>About</receiver> | |
140 | <slot>reject()</slot> | |
141 | <hints> | |
142 | <hint type="sourcelabel"> | |
143 | <x>316</x> | |
144 | <y>260</y> | |
145 | </hint> | |
146 | <hint type="destinationlabel"> | |
147 | <x>286</x> | |
148 | <y>274</y> | |
149 | </hint> | |
150 | </hints> | |
151 | </connection> | |
152 | </connections> | |
153 | </ui> |