Changeset 513:0884206a9344
- Timestamp:
- 05/29/13 18:00:50 (12 years ago)
- Branch:
- xplane
- Parents:
-
509:77b730a1b092 (diff), 512:46bd71540346 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - Phase:
- public
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
MLXMANIFEST
r510 r513 7 7 library/fnmatch.pyc 3414 4d50000f78e903598af06ef1c5cfb3ef 8 8 library/libexpat-1.dll 143096 701659d3689bf4a8265b669b7d774255 9 library/gtk/_gtk.pyc 549 375cff8defe663bc7e8a404bafdbf3199 library/gtk/_gtk.pyc 549 0d0a77cca8e542a13b7f8ed84ae3a547 10 10 library/encodings/cp858.pyc 7591 02054a0b8e91b9758826eb70cddf096f 11 11 library/mlx/pirep.pyc 4623 2a008f269c900fb604b94b4e427f61b5 … … 13 13 library/encodings/unicode_internal.pyc 2022 1e902113491e0c334b44deb0c8940e01 14 14 library/libpango-1.0-0.dll 333729 5a14efd93ee27cfe960220fe4a904911 15 library/mlx/gui/gui.pyc 5 0869 73790abccc30d5cbea66bd380134622115 library/mlx/gui/gui.pyc 51077 c54af5d2051a31bc3c46a7d690cd1552 16 16 library/stat.pyc 2503 d3b6dc7a54e705219f04d0be75a212de 17 17 library/posixpath.pyc 10734 d694316c239784c444b252c801c97efa … … 22 22 doc/manual/hu/bugreport.png 12385 c71c7db56f19870ae5d6bb7f533d3679 23 23 library/share/locale/hu/LC_MESSAGES/gtk20.mo 58794 6ee4491ae7bc9d3dfb778578eb29a0b3 24 library/gobject/_gobject.pyc 573 15a834f99f84e8c25ded4c9b4f444d5625 locale/en/LC_MESSAGES/mlx.mo 61 484 921f96175cd9e4afd7c6b2317bc90cc024 library/gobject/_gobject.pyc 573 92d29c5d8b466d18acef25eaa9cba97f 25 locale/en/LC_MESSAGES/mlx.mo 61639 aa73425f6f3c43fa83be90b9909f369e 26 26 library/encodings/utf_7.pyc 1747 2beeb059236527197d6c640396476ce8 27 27 doc/manual/hu/pirepViewer.png 26835 267e4325e550ed14ed22f86a2c7e8e9d … … 63 63 library/encodings/utf_8.pyc 1806 4b8dee0284ea2f55c4142fcde7463524 64 64 library/unicodedata.pyd 688128 c856c31a03dc892e4f2aee93d0bfee44 65 locale/hu/LC_MESSAGES/mlx.mo 66 076 971aaf421fda1cb5174dbf68b87aa8a765 locale/hu/LC_MESSAGES/mlx.mo 66240 db0a23e9f1d4657562180946ae340f22 66 66 library/encodings/mac_roman.pyc 2716 4b4745eccfcb77860b70b374ac07fbcc 67 67 library/copy_reg.pyc 4893 7a58bc441232056d1c123cd3375b3774 … … 76 76 library/_hashlib.pyd 287232 a1a18de0644f481749fcbcf26005eeaf 77 77 doc/manual/en/monitorWindow.png 20886 42e08d10c758e21209c4c021f391dee7 78 library/_hashlib.pyc 549 3e6c18da5d87853e1652c77d4f40cf4e78 library/_hashlib.pyc 549 ec9a5e38a98eaf491bd44048fe3f8d16 79 79 library/libpng14-14.dll 230529 f3a15497e25baaa721f96638d7a4d2f8 80 80 library/copy.pyc 11674 30d1745c5e38ab170f8a0486fbebf305 … … 90 90 library/traceback.pyc 11223 50ace5c2c6c040a923082442da94cd78 91 91 library/_weakrefset.pyc 9290 a56e87c491c0511cd329a3c8c4cd9563 92 library/mlx/flight.pyc 17 303 96ca499dc0257e7051e5895ca5a7a26592 library/mlx/flight.pyc 17473 8b37fd80c11c3a89738f5e4e1cda5578 93 93 library/urllib2.pyc 43566 7eb57ea0dcd1086d1d9073a5cefb0903 94 94 doc/manual/en/flightSelection.png 29847 7817c8f5ed8d7fe64cf72d0addaf3e4a … … 117 117 library/encodings/mac_latin2.pyc 4717 564dbaf5c296a147203eb821dc2466ba 118 118 library/encodings/utf_16_be.pyc 1854 84a1d1465453727af051eaeeb853782f 119 library/mlx/fsuipc.pyc 72 548 b2c4676aa9976a2f425ab624682e39aa119 library/mlx/fsuipc.pyc 72456 eafa9e3e0e9bdff01306dfb2863de12b 120 120 library/xml/sax/__init__.pyc 3579 c78222ad1fd4f3dbdea06666fe74e84e 121 121 doc/manual/en/connect.png 27436 5406dfe5408569cb95499c057bf0185b … … 135 135 sounds/767taxi.mp3 160496 4cb43cda6e1214fbe15328a716827345 136 136 doc/manual/en/prefsAdvanced.png 16169 64c14e0842c413cac98b92926279f3e0 137 library/cairo/_cairo.pyc 561 70beff493bb08d983e44f832660acb73138 library/win32file.pyc 552 39519cf7cf18c04fc7b8b8010490f7dd137 library/cairo/_cairo.pyc 561 6ac388cead1acc49e51e05d06033ad23 138 library/win32file.pyc 552 e12cc4667c80e4f5fb88cf46ec92d734 139 139 library/encodings/cp865.pyc 7868 7d40a7ba053ac23339218be8799e5397 140 140 library/lib/gtk-2.0/2.10.0/engines/libwimp.dll 97984 a5bbbe46e1363aba9020a76f2d58e9d6 … … 145 145 library/share/locale/hu/LC_MESSAGES/gtk20-properties.mo 167125 cd1b1b3693c1e3c74bfcea20be640cc6 146 146 conn_red.png 914 860388cb7c3b26b2f348fdbee40780ce 147 library/bz2.pyc 534 4a83ab9de101cd0ce5b9b866f5661e85147 library/bz2.pyc 534 5595f0a4a8ffd0b63f7542fddc918028 148 148 library/xml/sax/expatreader.pyc 13563 4f64c0efb2f1f8dbba84cdb5c6036f2d 149 149 library/email/utils.pyc 8840 a7be428df6fddee6121cfce55382d1f8 … … 161 161 library/mlx/gui/statusbar.pyc 4812 87773f7d0bd28ed6250acf1972110ca8 162 162 library/warnings.pyc 12666 9788b5f45765e8204e04c820f2711094 163 mlxupdate.exe 1 9456 e9a978949f7755311ad9e0db55f1e63c164 library/mlx/const.pyc 67 07 9375ae285d18c54e13107e5775868192163 mlxupdate.exe 18944 b8bf9f3d22348aa1f78727f81d967f93 164 library/mlx/const.pyc 6710 2187949c18be095bada1927f3127d0cf 165 165 library/email/errors.pyc 3229 cdb78ab237e195ad69f059128bc03b1d 166 166 library/linecache.pyc 3091 666e6f81b0ea9a7637f8068493f738d5 … … 175 175 library/shlex.pyc 7282 cbe1a4823894c97c87d01f9d9faf5b8f 176 176 library/cairo/__init__.pyc 142 010dd7cc8485565d5782d60e92e4ba34 177 library/_ssl.pyc 537 2cb40e7a5123a20f42dca69bbda9b17c177 library/_ssl.pyc 537 d7b3b5f87a333acdf28a28f52c5c8ce7 178 178 library/encodings/iso8859_8.pyc 2717 f3ad6ce58cfac9e3ca86cf5c2fef092b 179 179 library/encodings/iso2022_jp_1.pyc 1699 faed9d5747e982cec9fa8b3ad8e1de26 … … 196 196 library/encodings/cp1252.pyc 2676 b4c43cc72650c911cf3654dbaf565df9 197 197 library/share/locale/hu/LC_MESSAGES/atk10.mo 8465 e3f3466da367215aad971d7b0394229d 198 library/unicodedata.pyc 558 b3e806269dfb39ac4ab81ba5049f2458199 library/select.pyc 543 0608a6239838009159f223f473ae2a6a198 library/unicodedata.pyc 558 9570da5a79cb8e2156f6577185461f85 199 library/select.pyc 543 ad5bc4844763975968138f81e1e9ac65 200 200 library/encodings/uu_codec.pyc 4646 5282a5fcb676851224d2924aa3e48a9e 201 201 library/ConfigParser.pyc 23857 1d17020dd0000ce0f73de812effa152f … … 217 217 library/mlx/singleton.pyc 9184 3b71000d428959ab355db2658cea9557 218 218 library/locale.pyc 48754 a51d20267132acc6bc66ac6252cf870f 219 library/xplra.pyc 32012 50a1d9f19c0cc88783d264909ad1c678 219 220 library/socket.pyc 15488 35f8eb455d6d8df8e19826d1dd7193f2 220 221 sounds/notify.wav 119384 108025b17f67e61946df5d7fbf713cdb … … 228 229 doc/manual/hu/flightInfoTab.png 28786 3e8af27775131f02696b0912ca441f36 229 230 library/encodings/utf_8_sig.pyc 4625 1b1405db186e5819fa271ff96c1ca2c5 230 library/pangocairo.pyc 555 5ef32a4f4e2c28fa162011c342e3b789231 library/pangocairo.pyc 555 33065d79493949ba073d7fc7b165004b 231 232 library/encodings/cp1255.pyc 2697 b265913c887f2e1c8736632b652c0093 232 233 library/encodings/zlib_codec.pyc 4308 319c9073aff840436a03cc1fa0b08fb5 … … 235 236 doc/manual/hu/connect.png 28822 929f3eb85ee3cad019e12017c923f664 236 237 library/encodings/palmos.pyc 2876 9284ad53dcfd82dfae0a79923b1cf91d 237 library/mlx/web.pyc 30343 d2e330da2cffcb9f4abc5f3b9941b2cb238 library/mlx/web.pyc 30343 0cab98a640fd3937828d24c2fe8ef0ef 238 239 library/mlx/gui/gates.pyc 5384 9f6acad03872832505e31406a1b6762b 239 240 library/email/feedparser.pyc 10682 4de6a63da8dc270c9881edb9c2f28508 … … 241 242 library/intl.dll 152489 eb2d4c4d4a527bc88a69a16cc99afcf5 242 243 library/encodings/mbcs.pyc 1883 2213911a7dd0deada6799b63e18b695b 243 library/pyuipc.pyc 543 bb664c97a351eb86af6fc2889e2cf07a244 library/pyuipc.pyc 543 c194030ac361f97edfcf756a91a949f1 244 245 sounds/TOC.mp3 273032 fae1be2ad25c8b54806bd1d759919705 245 246 library/encodings/iso8859_4.pyc 2678 16f2fe7994051752360c533c052b892b … … 265 266 doc/manual/hu/flightSelection.png 30815 e8bcdda6079c6b16ffa72ca62c21ca85 266 267 library/win32pipe.pyd 24064 de374eded459293b2a7eb8ed8fb38eaa 267 library/win32pipe.pyc 552 3525d9ce759fb173fb5949768955a43c268 library/win32pipe.pyc 552 79ce5d61fe62ec37a212e8a854f2807b 268 269 doc/manual/hu/cruise.png 27460 a2610173563e45baae1b0f9e63007ebd 269 270 doc/manual/hu/logTab.png 28706 f48004202310bd2a1cb2f873d8064e93 270 271 library/encodings/iso2022_jp_2004.pyc 1723 66376e788f3819e781897268c1100986 271 library/win32event.pyc 555 062a638079612d30bbf679ada15dd79b272 library/win32event.pyc 555 63b964537d2e2157645cab4a6b90e68d 272 273 library/encodings/cp866.pyc 8103 f36418dcf93b17b3ced63bd544f44159 273 library/gio/_gio.pyc 549 332e8e3dcee26679a37beb64db0bc90b274 library/gio/_gio.pyc 549 41b7fad0fabe6f41db16a6e05d415848 274 275 library/encodings/cp437.pyc 7874 63f1278c0a66129c6fb4f504d6b61b66 275 276 doc/manual/hu/helpTab.png 27961 8e7cc4aeb8d7f40fcf186c7caf53583b … … 294 295 library/mlx/gui/pirep.pyc 16749 7a295b28dbdad43b33c52d814be60792 295 296 library/mimetypes.pyc 17806 927ce6a7079707aaee925e855ed23454 296 library/_ctypes.pyc 546 e0cd0d88a4af0cd4307b0da1351b7c55297 library/_ctypes.pyc 546 d4c47f95473dc9d7b363d62b26db0a7e 297 298 sounds/F70taxi.mp3 154854 51332dc691d3519355f61ed06c959d8d 298 299 library/encodings/cp857.pyc 7611 1b46c8959ac097b73e1c680d464cdc32 … … 312 313 library/repr.pyc 5045 82f0d89c685c3dacd941e01e4b2f31ef 313 314 library/quopri.pyc 6352 87c42d94f753dd4c8a761cfa79453bb8 314 library/mlx/gui/monitor.pyc 12 021 71dd3fb4b634cb6ac20ee889ca3a09c0315 library/mlx/gui/monitor.pyc 12214 6814c319b26ad7213e0759cf909c788d 315 316 library/encodings/latin_1.pyc 2111 52427573ccbfd06220b67d5a9dd1376e 316 317 library/mlx/update.pyc 16952 b4c0e85d094410aa0b7075476962730d … … 321 322 doc/manual/en/gatesTab.png 29585 00ebc96a2b4a7473dbb6a3162a04192f 322 323 library/bdb.pyc 17708 9a8fdcaa65f595c842689247847879d9 323 library/mlx/gui/flight.pyc 11 1770 6991ddb672d43b8de56d6e8c30694ae7324 library/mlx/gui/flight.pyc 112899 536e12fba696bbc0781e2b5e73e8ea54 324 325 library/unittest/case.pyc 37758 1d2235e74c246b562c5c00ddf73c621a 325 326 library/subprocess.pyc 38648 c9f749db06dfc9fb32079de51d6efd01 … … 337 338 library/encodings/cp863.pyc 7868 fc7ff06dab536b93c68fcb8e7bac713f 338 339 library/xml/parsers/__init__.pyc 294 83f6a77ed8cd962b3c75c4779dc557ac 339 library/pyexpat.pyc 546 90f96a71a10eb1e06fe279e95e0dc139340 library/pyexpat.pyc 546 3868a2225d9e99907f2cd9d97ef9a300 340 341 doc/manual/hu/gateSelection.png 29237 bac37e7001261a40a84e4202247f6052 341 342 logo.png 69816 4a7517b22cfd75cc9c15e3fc1b7ebeec … … 363 364 library/_socket.pyd 38400 5d273be76603399e88cf57f2605004bf 364 365 sounds/ding.wav 80856 18e639792d3767436ac6955eb60e4f54 365 library/_socket.pyc 546 4f16cf07fdd8412d1ea8228238b1556c366 library/_socket.pyc 546 e4eede84eacb1ffb8a725cfda432fb76 366 367 library/encodings/hex_codec.pyc 3520 a8b8d5b7c8810379c7007bcbc253951c 367 library/mlx/checks.pyc 58 364 c7c535545956d5f434e36c67d398db5f368 library/mlx/checks.pyc 58567 d6c6eebab7a0a19c5f33007ce8b4c3e5 368 369 doc/manual/en/statusIcon2.png 5875 71fc121823dee0a4c00715fac1b5665c 369 library/mlx/sound.pyc 6326 19c542e4f40270f46e42ac087a3532b3370 library/mlx/sound.pyc 10001 78655c3a51de983d8e550934c05e1f30 370 371 doc/manual/en/pirepViewer.png 25098 7c545e70b995ac0f9fcae93fe5d0e899 371 372 library/encodings/aliases.pyc 8750 75c22196420d0157fec085d285947a71 372 library/glib/_glib.pyc 555 d24c8e5801a398eab8516b8707049127373 library/glib/_glib.pyc 555 465b8ddc57386c9f7ef448d9cb802abd 373 374 library/libpangowin32-1.0-0.dll 108945 d07f128828225b7cc38e9e590eb3ba8a 374 375 library/encodings/iso8859_10.pyc 2693 5e6cc8f721486ddbc1c99da285e13191 375 library/win32api.pyc 549 a5622f32da0646859ff8379bcc24a3b4376 library/win32api.pyc 549 efb111e7d3dae80fd15bf47d026e6114 376 377 library/gobject/constants.pyc 1957 2e9cdc605e7c449ef4fc23f56128acec 377 378 library/libgtk-win32-2.0-0.dll 4938115 cc6dca192aca6f91bd96a5b5f86e036d 378 379 doc/manual/hu/calloutsEditor.png 16026 fede870894a85e5d21ca16a026aa6a98 380 library/mlx/xplane.pyc 66878 9ee20e3efd68fd414ca3b4716c1f2985 379 381 library/ssl.pyc 13785 d90c880699ecbedb3182f556b9733868 380 382 library/tempfile.pyc 18526 e2cc2d63c29e15f20ee9325e790643a3 … … 419 421 library/libgthread-2.0-0.dll 44287 7ad6f303082b382bff7bafbab246c61f 420 422 library/glib._glib.pyd 58368 0de636503e43c4eb00e80927bc9bda97 421 library/mlx/config.pyc 29918 fca1bd8ff8948570ce4ff0a673cd99e3422 library/atk.pyc 534 58aa8ee24d8a61d0e2b15eb6b9200897423 library/mlx/config.pyc 30521 406992cc40c69fc2054e02d516088ba9 424 library/atk.pyc 534 7e987d4ee2de16ac0050d9e1944a860a 423 425 library/gio._gio.pyd 263168 acb8c95fdc391079bebdf7d8685b0dbc 424 426 library/encodings/cp861.pyc 7868 c97a8970ce4d9f40cbafbea6576fbdca … … 430 432 library/__future__.pyc 4177 43d264d951ac2085334c7b9dd4558595 431 433 library/logging/__init__.pyc 54813 7bcdf2e8da474f5e94d8e499f6fc3ed4 432 runmlx.exe 6 4000 7e0ddfc5d67212ce2da74aa6b1b5b08e434 runmlx.exe 63488 3060aa0ed73648edc26992e224568352 433 435 library/optparse.pyc 51253 39594a40bc1222173d57b7d5740e3d92 434 library/mlx/fs.pyc 11 756 a758a6bd0c7cc28dbc9e3c0a33fe18d1436 library/mlx/fs.pyc 11803 268cda55420c4ce0750029ea203155e6 435 437 doc/manual/en/takeoff.png 26128 63fb0227347eba88fe4f108d730dc8c0 436 438 library/unittest/result.pyc 7444 aefbb3cc79c0ff17787ce84faed7f5e8 … … 443 445 library/glib/option.pyc 11891 bd90183c75d8f473ecf653e3d63a27f9 444 446 library/StringIO.pyc 11100 f4eb4a2bb3d6fb0af925681c5375c673 445 library/pango.pyc 540 52e336c3a5a39745e9a075b943482f9c447 library/pango.pyc 540 1b3d8d42905b120b95525147e2fd4b0a 446 448 Microsoft.VC90.CRT/msvcp90.dll 568832 6de5c66e434a9c1729575763d891c6c2 447 449 library/sre_parse.pyc 18380 fe2376a101668be1124f9ee316662bab -
locale/en/mlx.po
r509 r513 795 795 msgstr "Der_ated thrust:" 796 796 797 msgid "takeoff_derate_boeing_tooltip" 798 msgstr "Enter the percentage of the takeoff power." 799 800 msgid "takeoff_derate_epr_tooltip" 801 msgstr "Enter the EPR value used for takeoff." 802 797 803 msgid "takeoff_derate_tupolev" 798 msgstr "N_ominal/takeoff:" 804 msgstr "Thrust setting:" 805 806 msgid "takeoff_derate_tupolev_nominal" 807 msgstr "_nominal" 808 809 msgid "takeoff_derate_tupolev_nominal_tooltip" 810 msgstr "Select this if the takeoff thrust setting is nominal." 811 812 msgid "takeoff_derate_tupolev_takeoff" 813 msgstr "_takeoff" 814 815 msgid "takeoff_derate_tupolev_takeoff_tooltip" 816 msgstr "Select this if the takeoff thrust setting is takeoff." 799 817 800 818 msgid "takeoff_derate_b462" 801 msgstr "Der_ate (yes/no):"802 803 msgid "takeoff_derate_ tooltip"804 msgstr " Enter the takeoff derate parameter."819 msgstr "Der_ate enabled" 820 821 msgid "takeoff_derate_b462_tooltip" 822 msgstr "Check this if derate is enabled for takeoff." 805 823 806 824 msgid "takeoff_antiice" -
locale/en/mlx.po
r512 r513 470 470 msgid "connect_gate" 471 471 msgstr "Gate:" 472 473 msgid "connect_sim" 474 msgstr "Simulator:" 475 476 msgid "connect_sim_msfs" 477 msgstr "_MS FS" 478 479 msgid "connect_sim_xplane" 480 msgstr "_X-Plane" 472 481 473 482 msgid "button_connect" -
locale/hu/mlx.po
r509 r513 791 791 792 792 msgid "takeoff_derate" 793 msgstr "Teljesítmény csökkentés:"793 msgstr "Teljesítmény:" 794 794 795 795 msgid "takeoff_derate_boeing" 796 msgstr "Csökkentett teljesítmény:" 796 msgstr "_Teljesítmény:" 797 798 msgid "takeoff_derate_boeing_tooltip" 799 msgstr "Írd be, hogy hány százalék a felszállási teljesítmény." 800 801 msgid "takeoff_derate_epr_tooltip" 802 msgstr "Írd be a felszálláskor használt EPR értéket." 797 803 798 804 msgid "takeoff_derate_tupolev" 799 msgstr "Névleges/felszállási:" 805 msgstr "Üzemmód:" 806 807 msgid "takeoff_derate_tupolev_nominal" 808 msgstr "n_ominális" 809 810 msgid "takeoff_derate_tupolev_nominal_tooltip" 811 msgstr "Ha a felszálláshoz használt üzemmód beállítása nominális, válaszd ezt." 812 813 msgid "takeoff_derate_tupolev_takeoff" 814 msgstr "f_elszállási" 815 816 msgid "takeoff_derate_tupolev_takeoff_tooltip" 817 msgstr "Ha a felszálláshoz használt üzemmód beállítása felszállási, válaszd ezt." 800 818 801 819 msgid "takeoff_derate_b462" 802 msgstr " Teljesítménycsökkentés (yes/no):"803 804 msgid "takeoff_derate_ tooltip"805 msgstr " Írd be a felszállási teljesítménycsökkentés értékét."820 msgstr "_Csökkentett teljesítmény" 821 822 msgid "takeoff_derate_b462_tooltip" 823 msgstr "Jelöld ezt be, ha a felszállás csökkentett teljesítménnyel történik." 806 824 807 825 msgid "takeoff_antiice" -
locale/hu/mlx.po
r512 r513 473 473 msgstr "Kapu:" 474 474 475 msgid "connect_sim" 476 msgstr "Szimulátor:" 477 478 msgid "connect_sim_msfs" 479 msgstr "_MS FS" 480 481 msgid "connect_sim_xplane" 482 msgstr "_X-Plane" 483 475 484 msgid "button_connect" 476 485 msgstr "K_apcsolódás" -
src/mlx/gui/flight.py
r503 r513 2141 2141 table.attach(self._v2Unit, 3, 4, 4, 5) 2142 2142 2143 self._ hasDerate = False2143 self._derateType = acft.DERATE_NONE 2144 2144 2145 2145 self._derateLabel = gtk.Label() … … 2149 2149 table.attach(self._derateLabel, 0, 1, 5, 6) 2150 2150 2151 self._derate = gtk.Entry() 2152 self._derate.set_width_chars(10) 2153 self._derate.set_tooltip_text(xstr("takeoff_derate_tooltip")) 2154 self._derate.set_alignment(1.0) 2155 self._derate.connect("changed", self._derateChanged) 2156 table.attach(self._derate, 1, 3, 5, 6) 2157 self._derateLabel.set_mnemonic_widget(self._derate) 2158 2159 self._derateUnit = gtk.Label("") 2160 self._derateUnit.set_use_markup(True) 2161 self._derateUnit.set_alignment(0.0, 0.5) 2162 table.attach(self._derateUnit, 3, 4, 5, 6) 2151 self._derate = gtk.Alignment() 2152 table.attach(self._derate, 2, 4, 5, 6) 2153 self._derateWidget = None 2154 self._derateEntry = None 2155 self._derateUnit = None 2156 self._derateButtons = None 2163 2157 2164 2158 self._antiIceOn = gtk.CheckButton(xstr("takeoff_antiice")) … … 2207 2201 def derate(self): 2208 2202 """Get the derate value, if any.""" 2209 if self._hasDerate: 2210 derate = self._derate.get_text() 2203 if self._derateWidget is None: 2204 return None 2205 if self._derateType==acft.DERATE_BOEING: 2206 derate = self._derateEntry.get_text() 2211 2207 return derate if derate else None 2208 elif self._derateType==acft.DERATE_EPR: 2209 derate = self._derateWidget.get_text() 2210 return derate if derate else None 2211 elif self._derateType==acft.DERATE_TUPOLEV: 2212 return acft.DERATE_TUPOLEV_NOMINAL \ 2213 if self._derateButtons[0].get_active() \ 2214 else acft.DERATE_TUPOLEV_TAKEOFF 2215 elif self._derateType==acft.DERATE_B462: 2216 return self._derateWidget.get_active() 2212 2217 else: 2213 2218 return None … … 2251 2256 self._v2.set_tooltip_markup(xstr("takeoff_v2_tooltip" + i18nSpeedUnit)) 2252 2257 2253 (derateLabel, derateUnit) = \ 2254 self._wizard.gui.flight.aircraft.derateLabels 2255 2256 self._hasDerate = derateLabel is not None 2257 2258 if self._hasDerate: 2259 self._derateLabel.set_markup(derateLabel) 2260 self._derateLabel.set_use_underline(True) 2261 self._derateUnit.set_markup("" if derateUnit is None 2262 else derateUnit) 2263 else: 2264 self._derateLabel.set_markup(xstr("takeoff_derate")) 2265 self._derateUnit.set_text("") 2266 2267 self._derate.set_text("") 2268 2269 self._derateLabel.set_sensitive(self._hasDerate) 2270 self._derate.set_sensitive(self._hasDerate) 2271 self._derateUnit.set_sensitive(self._hasDerate) 2258 self._derateType = self._wizard.gui.flight.aircraft.derateType 2259 2260 self._setupDerateWidget() 2272 2261 2273 2262 self._rto.set_active(False) … … 2307 2296 self.v1 <= self.vr and \ 2308 2297 self.vr <= self.v2 and \ 2309 (not self._hasDerate or self._derate.get_text()!="") 2298 (self._derateType==acft.DERATE_NONE or 2299 self.derate is not None) 2310 2300 self._button.set_sensitive(sensitive) 2311 2301 … … 2336 2326 aircraft = self._wizard.gui.flight.aircraft 2337 2327 aircraft.updateV1R2() 2338 if self. _hasDerate:2328 if self.derate is not None: 2339 2329 aircraft.updateDerate() 2340 2330 aircraft.updateTakeoffAntiIce() 2341 2331 self._wizard.nextPage() 2332 2333 def _setupDerateWidget(self): 2334 """Setup the derate widget.""" 2335 if self._derateWidget is not None: 2336 self._derate.remove(self._derateWidget) 2337 2338 if self._derateType==acft.DERATE_BOEING: 2339 self._derateLabel.set_text(xstr("takeoff_derate_boeing")) 2340 self._derateLabel.set_use_underline(True) 2341 self._derateLabel.set_sensitive(True) 2342 2343 self._derateEntry = gtk.Entry() 2344 self._derateEntry.set_width_chars(7) 2345 self._derateEntry.set_tooltip_text(xstr("takeoff_derate_boeing_tooltip")) 2346 self._derateEntry.set_alignment(1.0) 2347 self._derateEntry.connect("changed", self._derateChanged) 2348 self._derateLabel.set_mnemonic_widget(self._derateEntry) 2349 2350 self._derateUnit = gtk.Label("%") 2351 self._derateUnit.set_alignment(0.0, 0.5) 2352 2353 self._derateWidget = gtk.Table(3, 1) 2354 self._derateWidget.set_row_spacings(4) 2355 self._derateWidget.set_col_spacings(16) 2356 self._derateWidget.set_homogeneous(False) 2357 2358 self._derateWidget.attach(self._derateEntry, 0, 2, 0, 1) 2359 self._derateWidget.attach(self._derateUnit, 2, 3, 0, 1) 2360 2361 self._derate.add(self._derateWidget) 2362 elif self._derateType==acft.DERATE_EPR: 2363 self._derateLabel.set_text("_EPR:") 2364 self._derateLabel.set_use_underline(True) 2365 self._derateLabel.set_sensitive(True) 2366 2367 self._derateWidget = gtk.Entry() 2368 self._derateWidget.set_width_chars(7) 2369 self._derateWidget.set_tooltip_text(xstr("takeoff_derate_epr_tooltip")) 2370 self._derateWidget.set_alignment(1.0) 2371 self._derateWidget.connect("changed", self._derateChanged) 2372 self._derateLabel.set_mnemonic_widget(self._derateWidget) 2373 2374 self._derate.add(self._derateWidget) 2375 elif self._derateType==acft.DERATE_TUPOLEV: 2376 self._derateLabel.set_text(xstr("takeoff_derate_tupolev")) 2377 self._derateLabel.set_use_underline(True) 2378 self._derateLabel.set_sensitive(True) 2379 2380 if pygobject: 2381 nominal = gtk.RadioButton.\ 2382 new_with_label_from_widget(None, 2383 xstr("takeoff_derate_tupolev_nominal")) 2384 else: 2385 nominal = gtk.RadioButton(None, 2386 xstr("takeoff_derate_tupolev_nominal")) 2387 nominal.set_use_underline(True) 2388 nominal.set_tooltip_text(xstr("takeoff_derate_tupolev_nominal_tooltip")) 2389 nominal.connect("toggled", self._derateChanged) 2390 2391 if pygobject: 2392 takeoff = gtk.RadioButton.\ 2393 new_with_label_from_widget(nominal, 2394 xstr("takeoff_derate_tupolev_takeoff")) 2395 else: 2396 takeoff = gtk.RadioButton(nominal, 2397 xstr("takeoff_derate_tupolev_takeoff")) 2398 2399 takeoff.set_use_underline(True) 2400 takeoff.set_tooltip_text(xstr("takeoff_derate_tupolev_takeoff_tooltip")) 2401 takeoff.connect("toggled", self._derateChanged) 2402 2403 self._derateButtons = [nominal, takeoff] 2404 2405 self._derateWidget = gtk.HBox() 2406 self._derateWidget.pack_start(nominal, False, False, 4) 2407 self._derateWidget.pack_start(takeoff, False, False, 4) 2408 2409 self._derate.add(self._derateWidget) 2410 elif self._derateType==acft.DERATE_B462: 2411 self._derateLabel.set_text("") 2412 2413 self._derateWidget = gtk.CheckButton(xstr("takeoff_derate_b462")) 2414 self._derateWidget.set_tooltip_text(xstr("takeoff_derate_b462_tooltip")) 2415 self._derateWidget.set_use_underline(True) 2416 self._derate.add(self._derateWidget) 2417 else: 2418 self._derateWidget = None 2419 self._derateLabel.set_text("") 2420 self._derateLabel.set_sensitive(False) 2342 2421 2343 2422 #----------------------------------------------------------------------------- -
src/mlx/gui/flight.py
r512 r513 880 880 completedHelp = xstr("connect_chelp")) 881 881 882 self._selectSimulator = os.name=="nt" or "FORCE_SELECT_SIM" in os.environ 883 882 884 alignment = gtk.Alignment(xalign = 0.5, yalign = 0.5, 883 885 xscale = 0.0, yscale = 0.0) 884 886 885 table = gtk.Table( 5, 2)887 table = gtk.Table(7 if self._selectSimulator else 5, 2) 886 888 table.set_row_spacings(4) 887 889 table.set_col_spacings(16) … … 949 951 labelAlignment.add(self._departureGate) 950 952 table.attach(labelAlignment, 1, 2, 4, 5) 953 954 if self._selectSimulator: 955 labelAlignment = gtk.Alignment(xalign=1.0, xscale=0.0, yalign=0.5) 956 label = gtk.Label(xstr("connect_sim")) 957 labelAlignment.add(label) 958 table.attach(labelAlignment, 0, 1, 5, 7) 959 960 selectAlignment = gtk.Alignment(xalign=0.0, xscale=0.0, yalign=0.5) 961 962 selectBox = gtk.HBox() 963 if pygobject: 964 self._selectMSFS = \ 965 gtk.RadioButton.new_with_mnemonic_from_widget(None, 966 xstr("connect_sim_msfs")) 967 else: 968 self._selectMSFS = gtk.RadioButton(None, 969 xstr("connect_sim_msfs")) 970 971 selectBox.pack_start(self._selectMSFS, False, False, 0); 972 973 if pygobject: 974 self._selectXPlane = \ 975 gtk.RadioButton.new_with_mnemonic_from_widget(self._selectMSFS, 976 xstr("connect_sim_xplane")) 977 else: 978 self._selectXPlane = gtk.RadioButton(self._selectMSFS, 979 xstr("connect_sim_xplane")) 980 981 selectBox.pack_start(self._selectXPlane, False, False, 8); 982 983 selectAlignment.add(selectBox) 984 table.attach(selectAlignment, 1, 2, 5, 7) 985 951 986 952 987 self.addCancelFlightButton() … … 982 1017 self._departureGate.set_markup(gate) 983 1018 1019 if self._selectSimulator: 1020 config = self._wizard.gui.config 1021 self._selectMSFS.set_active(config.defaultMSFS) 1022 self._selectXPlane.set_active(not config.defaultMSFS) 1023 984 1024 def finalize(self): 985 1025 """Finalize the page.""" … … 996 1036 def _connectClicked(self, button): 997 1037 """Called when the Connect button is pressed.""" 998 self._wizard._connectSimulator() 1038 if self._selectSimulator: 1039 simulatorType = const.SIM_MSFS9 if self._selectMSFS.get_active() \ 1040 else const.SIM_XPLANE10 1041 else: 1042 simulatorType = const.SIM_MSFS9 if os.name=="nt" \ 1043 else const.SIM_XPLANE10 1044 1045 config = self._wizard.gui.config 1046 config.defaultMSFS = simulatorType == const.SIM_MSFS9 1047 config.save() 1048 1049 self._wizard._connectSimulator(simulatorType) 999 1050 1000 1051 def _forwardClicked(self, button): … … 3573 3624 self.gui.rtoToggled(indicated) 3574 3625 3575 def _connectSimulator(self ):3626 def _connectSimulator(self, simulatorType): 3576 3627 """Connect to the simulator.""" 3577 self.gui.connectSimulator(self._bookedFlight.aircraftType) 3628 self.gui.connectSimulator(self._bookedFlight.aircraftType, 3629 simulatorType) 3578 3630 3579 3631 def _arrivalMETARCallback(self, returned, result):
Note:
See TracChangeset
for help on using the changeset viewer.