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

Added support for logging the state of the anti-ice system (re #159)

File:
1 edited

Legend:

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

    r384 r391  
    313313
    314314    @property
     315    def takeoffAntiIceOn(self):
     316        """Get whether the anti-ice system was on during take-off."""
     317        return self._wizard.takeoffAntiIceOn
     318
     319    @takeoffAntiIceOn.setter
     320    def takeoffAntiIceOn(self, value):
     321        """Set the anti-ice on indicator."""
     322        gobject.idle_add(self._setTakeoffAntiIceOn, value)
     323
     324    @property
    315325    def rtoIndicated(self):
    316326        """Get whether the pilot has indicated than an RTO has occured."""
     
    341351        """Get the Vref speed calculated for the flight."""
    342352        return self._wizard.vref
     353
     354    @property
     355    def landingAntiIceOn(self):
     356        """Get whether the anti-ice system was on during landing."""
     357        return self._wizard.landingAntiIceOn
     358
     359    @landingAntiIceOn.setter
     360    def landingAntiIceOn(self, value):
     361        """Set the anti-ice on indicator."""
     362        gobject.idle_add(self._setLandingAntiIceOn, value)
    343363
    344364    @property
     
    14381458        """Show the about URL."""
    14391459        webbrowser.open(url = link, new = 1)
     1460
     1461    def _setTakeoffAntiIceOn(self, value):
     1462        """Set the anti-ice on indicator."""
     1463        self._wizard.takeoffAntiIceOn = value
     1464
     1465    def _setLandingAntiIceOn(self, value):
     1466        """Set the anti-ice on indicator."""
     1467        self._wizard.landingAntiIceOn = value
Note: See TracChangeset for help on using the changeset viewer.