Ignore:
Timestamp:
03/01/15 16:53:08 (9 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Added a new widget to list the faults and provide space for the user to enter an explanation (re #248).

File:
1 edited

Legend:

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

    r555 r604  
    396396    def flightDefects(self):
    397397        """Get the flight defects."""
    398         return self._flightInfo.flightDefects
     398        return self._flightInfo.faultsAndExplanations
    399399
    400400    @property
     
    585585        """Remove the flight log line with the given index."""
    586586        gobject.idle_add(self._removeFlightLogLine, index)
     587
     588    def addFault(self, id, timestampString, text):
     589        """Add a fault to the list of faults."""
     590        faultText = formatFlightLogLine(timestampString, text).strip()
     591        self._flightInfo.addFault(id, faultText)
     592
     593    def updateFault(self, id, timestampString, text):
     594        """Update a fault in the list of faults."""
     595        faultText = formatFlightLogLine(timestampString, text).strip()
     596        self._flightInfo.updateFault(id, faultText)
     597
     598    def clearFault(self, id):
     599        """Clear a fault in the list of faults."""
     600        self._flightInfo.clearFault(id)
    587601
    588602    def _removeFlightLogLine(self, index):
Note: See TracChangeset for help on using the changeset viewer.