Debian Codegraph @

gui/dialogs/about.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!--
3 This file is part of FlightGear, the free flight simulator
4 http://www.flightgear.org/
5
6 Copyright (C) 2009 Torsten Dreyer, Torsten (at) t3r _dot_ de
7
8 This program is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License as
10 published by the Free Software Foundation; either version 2 of the
11 License, or (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 General Public License for more details.
17 -->
18
19 <PropertyList>
20 <name>about</name>
21 <modal>false</modal>
22 <layout>vbox</layout>
23 <resizable>false</resizable>
24 <default-padding>3</default-padding>
25
26 <group>
27 <layout>hbox</layout>
28 <default-padding>1</default-padding>
29
30 <text>
31 <label>About FlightGear</label>
32 </text>
33
34 <empty>
35 <stretch>true</stretch>
36 </empty>
37
38 <button>
39 <legend>X</legend>
40 <key>Esc</key>
41 <pref-width>20</pref-width>
42 <pref-height>20</pref-height>
43 <binding>
44 <command>dialog-close</command>
45 </binding>
46 </button>
47 </group>
48
49 <hrule/>
50
51 <group>
52 <layout>vbox</layout>
53 <default-padding>5</default-padding>
54
55 <group>
56 <layout>hbox</layout>
57
58 <empty>
59 <stretch>true</stretch>
60 </empty>
61
62 <text>
63 <label>FlightGear Flight Simulator VX.X.X</label>
64 </text>
65
66 <empty>
67 <stretch>true</stretch>
68 </empty>
69 </group>
70
71 <text>
72 <label>(c) 1996-2026, the FlightGear Contributors</label>
73 </text>
74
75 <group>
76 <layout>vbox</layout>
77 <border>10</border>
78 <halign>center</halign>
79 <default-padding>2</default-padding>
80
81 <text>
82 <halign>left</halign>
83 <label>FlightGear is free and open source software, licensed</label>
84 </text>
85
86 <text>
87 <halign>left</halign>
88 <label>under the GNU General Public License Version 2.</label>
89 </text>
90
91 <text>
92 <halign>left</halign>
93 <label>Get new versions, add-ons, forum, wiki and more</label>
94 </text>
95
96 <text>
97 <halign>left</halign>
98 <label>from our web-site for free. Have a nice flight!</label>
99 </text>
100
101 </group>
102
103 <group>
104 <layout>hbox</layout>
105 <halign>fill</halign>
106
107 <empty><stretch>true</stretch></empty>
108
109 <button>
110 <legend>Website</legend>
111 <equal>true</equal>
112 <binding>
113 <command>open-browser</command>
114 <path>https://www.flightgear.org/</path>
115 </binding>
116 </button>
117
118 <button>
119 <legend>Donate</legend>
120 <equal>true</equal>
121 <binding>
122 <command>open-browser</command>
123 <path>https://www.flightgear.org/donate</path>
124 </binding>
125 </button>
126
127 <empty><stretch>true</stretch></empty>
128
129 </group>
130
131 <empty>
132 <stretch>true</stretch>
133 </empty>
134
135 <hrule/>
136
137
138 <text>
139 <halign>center</halign>
140 <label>Version Information</label>
141 </text>
142
143 <group>
144 <layout>vbox</layout>
145 <border>10</border>
146 <halign>center</halign>
147 <default-padding>2</default-padding>
148
149 <text>
150 <halign>left</halign>
151 <label>MMMMMMMMMM</label>
152 <format>FlightGear Version: %s</format>
153 <property>/sim/version/flightgear</property>
154 </text>
155
156 <text>
157 <halign>left</halign>
158 <label>MMMMMMMMMM</label>
159 <format>SimGear Version: %s</format>
160 <property>/sim/version/simgear</property>
161 </text>
162
163 <text>
164 <halign>left</halign>
165 <label>MMMMMMMMMMMMMMMMMM</label>
166 <format>OpenSceneGraph Version: %s</format>
167 <property>/sim/version/openscenegraph</property>
168 </text>
169
170 <text>
171 <halign>left</halign>
172 <label>MMMMMMMMMMMMMMMMMM</label>
173 <format>Build Id: %s</format>
174 <property>/sim/version/build-id</property>
175 </text>
176
177 <text>
178 <halign>left</halign>
179 <label>MMMMMM</label>
180 <format>Build Number: %d</format>
181 <property>/sim/version/build-number</property>
182 </text>
183
184 <text>
185 <halign>left</halign>
186 <label>MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM</label>
187 <format>Revision: %s</format>
188 <property>/sim/version/revision</property>
189 </text>
190 </group>
191
192 <empty>
193 <stretch>true</stretch>
194 </empty>
195
196 <hrule/>
197
198 <text>
199 <halign>center</halign>
200 <label>Graphics/OpenGL Information</label>
201 </text>
202
203 <group>
204 <layout>vbox</layout>
205 <border>10</border>
206 <halign>center</halign>
207 <default-padding>2</default-padding>
208
209
210 <text>
211 <halign>left</halign>
212 <label>MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM</label>
213 <format>OpenGL Vendor: %s</format>
214 <property>/sim/rendering/gl-vendor</property>
215 </text>
216
217 <text>
218 <halign>left</halign>
219 <label>MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM</label>
220 <format>OpenGL Renderer: %s</format>
221 <property>/sim/rendering/gl-renderer</property>
222 </text>
223
224 <text>
225 <halign>left</halign>
226 <label>MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM</label>
227 <format>OpenGL Version: %s</format>
228 <property>/sim/rendering/gl-version</property>
229 </text>
230
231 <text>
232 <halign>left</halign>
233 <label>MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM</label>
234 <format>GLSL Version: %s</format>
235 <property>/sim/rendering/gl-shading-language-version</property>
236 </text>
237
238 <text>
239 <halign>left</halign>
240 <label>MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM</label>
241 <format>Max Texture Size: %s</format>
242 <property>/sim/rendering/max-texture-size</property>
243 </text>
244
245 <text>
246 <halign>left</halign>
247 <label>MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM</label>
248 <format>Depth Buffer Bits: %s</format>
249 <property>/sim/rendering/depth-buffer-bits</property>
250 </text>
251 </group>
252 </group>
253
254 <hrule/>
255
256
257 <text>
258 <halign>center</halign>
259 <label>Crash reporting</label>
260 </text>
261
262 <text>
263 <halign>left</halign>
264 <label>MMMMMMMMMMMMMMMMMMMM</label>
265 <format>Anonymous user ID: %s</format>
266 <property>/sim/crashreport/sentry-user-id</property>
267 </text>
268 <hrule/>
269
270 <group>
271 <layout>hbox</layout>
272 <halign>fill</halign>
273
274 <empty><stretch>true</stretch></empty>
275
276 <button>
277 <legend>Close</legend>
278 <equal>true</equal>
279 <default>true</default>
280 <key>Esc</key>
281 <binding>
282 <command>dialog-close</command>
283 </binding>
284 </button>
285
286 <button>
287 <legend>Take Screenshot</legend>
288 <equal>true</equal>
289 <default>false</default>
290 <binding>
291 <command>nasal</command>
292 <script>fgcommand("screen-capture");</script>
293 </binding>
294 </button>
295
296 <button>
297 <legend>Copy to Clipboard</legend>
298 <equal>true</equal>
299 <default>false</default>
300 <binding>
301 <command>nasal</command>
302 <script><![CDATA[
303 var properties = [
304 "/sim/version/flightgear",
305 "/sim/version/simgear",
306 "/sim/version/openscenegraph",
307 "/sim/version/build-id",
308 "/sim/version/build-number",
309 "/sim/version/build-type",
310 "/sim/version/revision",
311 "/sim/rendering/gl-vendor",
312 "/sim/rendering/gl-renderer",
313 "/sim/rendering/gl-version",
314 "/sim/rendering/gl-shading-language-version",
315 "/sim/rendering/max-texture-size",
316 "/sim/rendering/depth-buffer-bits",
317 ];
318 var data = "";
319 clipboard.setText(data);
320 foreach(var p; properties) {
321 var value = getprop(p);
322 if (value == nil) value = "";
323 data ~= sprintf("%s: %s\n", p, value);
324 }
325 clipboard.setText(data);
326 gui.popupTip("Copied version information to clipboard!");
327 ]]></script>
328 </binding>
329 </button>
330
331
332 <empty><stretch>true</stretch></empty>
333
334 </group>
335
336 <nasal>
337 <open><![CDATA[
338 # Replace version in Nasal, as using the <format> code upsets layout
339 var ver = cmdarg().getNode("group[1]/group/text/label");
340 ver.setValue("FlightGear Flight Simulator V" ~ getprop("/sim/version/flightgear"));
341 ]]></open>
342
343 <close><![CDATA[
344 ]]></close>
345 </nasal>
346 </PropertyList>