Ignore:
Timestamp:
02/25/12 14:44:45 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Various information about the flight is displayed in the status icon's tooltip or menu

File:
1 edited

Legend:

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

    r30 r31  
    9999        gobject.idle_add(self._setData, state)
    100100
     101    def resetFlightStatus(self):
     102        """Reset the status of the flight."""
     103        self._statusIcon.resetFlightStatus()
     104
     105    def setStage(self, stage):
     106        """Set the stage of the flight."""
     107        gobject.idle_add(self._setStage, stage)
     108
     109    def _setStage(self, stage):
     110        """Set the stage of the flight."""
     111        self._statusIcon.setStage(stage)
     112
     113    def setRating(self, rating):
     114        """Set the rating of the flight."""
     115        gobject.idle_add(self._setRating, rating)
     116
     117    def _setRating(self, rating):
     118        """Set the rating of the flight."""
     119        self._statusIcon.setRating(rating)
     120
     121    def setNoGo(self, reason):
     122        """Set the rating of the flight to No-Go with the given reason."""
     123        gobject.idle_add(self._setNoGo, reason)
     124
     125    def _setNoGo(self, reason):
     126        """Set the rating of the flight."""
     127        self._statusIcon.setNoGo(reason)
     128
    101129    def _handleMainWindowState(self, window, event):
    102130        """Hande a change in the state of the window"""
     
    177205            self._simulator.startMonitoring()
    178206        else:
     207            self.resetFlightStatus()
    179208            self._connecting = False
    180209            self._simulator.stopMonitoring()
Note: See TracChangeset for help on using the changeset viewer.