Changeset 270:1d28c6212e4b
- Timestamp:
- 07/02/12 17:18:15 (12 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TODO
r259 r270 1 - Manual: 2 - Preferences/Sounds picture: update with the approach callout 3 enabling option and also update its description 4 - Describe the callouts editor 5 -
src/mlx/config.py
r266 r270 639 639 self._pilotHotkey.set(self._get(config, "sounds", 640 640 "pilotHotkey", "C0")) 641 self._enableApproachCall Outs = \642 self._getBoolean(config, "sounds", "enableApproachCall Outs", False)641 self._enableApproachCallouts = \ 642 self._getBoolean(config, "sounds", "enableApproachCallouts", False) 643 643 self._speedbrakeAtTD = self._getBoolean(config, "sounds", 644 644 "speedbrakeAtTD", True) … … 713 713 "yes" if self._pilotControlsSounds else "no") 714 714 config.set("sounds", "pilotHotkey", str(self._pilotHotkey)) 715 #config.set("sounds", "approachCallOuts",716 # "yes" if self._approachCallOuts else "no")715 config.set("sounds", "enableApproachCallouts", 716 "yes" if self._enableApproachCallouts else "no") 717 717 config.set("sounds", "speedbrakeAtTD", 718 718 "yes" if self._speedbrakeAtTD else "no") -
src/mlx/gui/prefs.py
r249 r270 253 253 self._pilotControlsSounds.set_active(config.pilotControlsSounds) 254 254 self._pilotHotkey.set(config.pilotHotkey) 255 #self._approachCallOuts.set_active(config.approachCallOuts)255 self._enableApproachCallouts.set_active(config.enableApproachCallouts) 256 256 self._speedbrakeAtTD.set_active(config.speedbrakeAtTD) 257 257 … … 298 298 config.pilotControlsSounds = self._pilotControlsSounds.get_active() 299 299 config.pilotHotkey = self._pilotHotkey.get() 300 #config.approachCallOuts = self._approachCallOuts.get_active()300 config.enableApproachCallouts = self._enableApproachCallouts.get_active() 301 301 config.speedbrakeAtTD = self._speedbrakeAtTD.get_active() 302 302 … … 661 661 backgroundBox.pack_start(self._pilotHotkey, False, False, 4) 662 662 663 # self._approachCallOuts = gtk.CheckButton(xstr("prefs_sounds_approachCallOuts"))664 # self._approachCallOuts.set_use_underline(True)665 # self._approachCallOuts.set_tooltip_text(xstr("prefs_sounds_approachCallOuts_tooltip"))666 # backgroundBox.pack_start(self._approachCallOuts, False, False, 4)663 self._enableApproachCallouts = gtk.CheckButton(xstr("prefs_sounds_approachCallouts")) 664 self._enableApproachCallouts.set_use_underline(True) 665 self._enableApproachCallouts.set_tooltip_text(xstr("prefs_sounds_approachCallouts_tooltip")) 666 backgroundBox.pack_start(self._enableApproachCallouts, False, False, 4) 667 667 668 668 self._speedbrakeAtTD = gtk.CheckButton(xstr("prefs_sounds_speedbrakeAtTD")) … … 711 711 self._pilotControlsSounds.set_sensitive(active) 712 712 self._pilotControlsSoundsToggled(self._pilotControlsSounds) 713 #self._approachCallOuts.set_sensitive(active)713 self._enableApproachCallouts.set_sensitive(active) 714 714 self._speedbrakeAtTD.set_sensitive(active) 715 715 -
src/mlx/i18n.py
r269 r270 806 806 "If checked, the Shift key should be pressed together with the " 807 807 "main key.") 808 self.add("prefs_sounds_approachCall Outs",809 "Enable app roach callouts")810 self.add("prefs_sounds_approachCall Outs_tooltip",808 self.add("prefs_sounds_approachCallouts", 809 "Enable app_roach callouts") 810 self.add("prefs_sounds_approachCallouts_tooltip", 811 811 "If checked, the approach callouts will be played at " 812 812 "certain altitudes.") … … 1682 1682 "Ha kijelölöd, a Shift billentyűt is le kell nyomni a " 1683 1683 "főbillentyűvel együtt.") 1684 self.add("prefs_sounds_approachCall Outs",1685 "Megközelítési bemondások engedélyezése")1686 self.add("prefs_sounds_approachCall Outs_tooltip",1684 self.add("prefs_sounds_approachCallouts", 1685 "Megközelítési _bemondások engedélyezése") 1686 self.add("prefs_sounds_approachCallouts_tooltip", 1687 1687 "Ha kijelölöd, megközelítés közben egyes magasságok " 1688 1688 "elérésekor a program lejátssza a megadott fájlokat.")
Note:
See TracChangeset
for help on using the changeset viewer.