Ignore:
Timestamp:
04/30/12 08:43:22 (13 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added option to take the flare time from the simulator

Location:
src/mlx/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/gui.py

    r130 r131  
    673673
    674674        self._flight = flight.Flight(self._logger, self)
     675        self._flight.flareTimeFromFS = self.config.flareTimeFromFS
    675676        self._flight.aircraftType = aircraftType
    676677        self._flight.aircraft = acft.Aircraft.create(self._flight)
  • src/mlx/gui/prefs.py

    r124 r131  
    6161        """Setup the dialog from the given configuration."""
    6262        self._setLanguage(config.language)
     63        self._flareTimeFromFS.set_active(config.flareTimeFromFS)
    6364
    6465        self._togglingAutoUpdate = True
     
    7374        """Setup the given config from the settings in the dialog."""
    7475        config.language = self._getLanguage()
     76        config.flareTimeFromFS = self._flareTimeFromFS.get_active()
    7577        config.autoUpdate = self._autoUpdate.get_active()
    7678        config.updateURL = self._updateURL.get_text()
     
    107109        languageBox.pack_start(languageComboBox, False, False, 4)
    108110
     111        label.set_mnemonic_widget(languageComboBox)
     112
    109113        self._changingLanguage = False
    110114        self._warnedRestartNeeded = False
    111115
    112         label.set_mnemonic_widget(languageComboBox)
     116        self._flareTimeFromFS = gtk.CheckButton(xstr("prefs_flaretimeFromFS"))
     117        self._flareTimeFromFS.set_use_underline(True)
     118        self._flareTimeFromFS.set_tooltip_text(xstr("prefs_flaretimeFromFS_tooltip"))
     119
     120        mainBox.pack_start(self._flareTimeFromFS, False, False, 4)
    113121                                       
    114122        return mainAlignment
Note: See TracChangeset for help on using the changeset viewer.