Ignore:
Timestamp:
04/28/12 12:25:48 (13 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Implemented the weight help tab

Location:
src/mlx/gui
Files:
1 added
2 edited

Legend:

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

    r107 r117  
    799799        """Finalize the payload page."""
    800800        self._cargoWeight.set_sensitive(False)
     801        self._wizard.gui.initializeWeightHelp()
    801802
    802803    def calculateZFW(self):
     
    19081909        self._payloadPage = PayloadPage(self)
    19091910        self._pages.append(self._payloadPage)
     1911        self._payloadIndex = len(self._pages)
    19101912        self._pages.append(TimePage(self))
    19111913        self._routePage = RoutePage(self)
     
    19151917        self._arrivalBriefingPage = BriefingPage(self, False)
    19161918        self._pages.append(self._arrivalBriefingPage)
     1919        self._arrivalBriefingIndex = len(self._pages)
    19171920        self._takeoffPage = TakeoffPage(self)
    19181921        self._pages.append(self._takeoffPage)
  • src/mlx/gui/gui.py

    r110 r117  
    88from mlx.gui.flight import Wizard
    99from mlx.gui.monitor import MonitorWindow
     10from mlx.gui.weighthelp import WeightHelp
    1011
    1112import mlx.const as const
     
    8889        self._flightInfo.disable()
    8990
     91        self._weightHelp = WeightHelp(self)
     92        label = gtk.Label(xstr("tab_weight_help"))
     93        label.set_use_underline(True)
     94        label.set_tooltip_text(xstr("tab_weight_help_tooltip"))
     95        self._notebook.append_page(self._weightHelp, label)
     96       
    9097        (logWidget, self._logView)  = self._buildLogWidget()
    9198        label = gtk.Label(xstr("tab_log"))
     
    112119        window.show_all()
    113120        self._wizard.grabDefault()
     121        self._weightHelp.reset()
     122        self._weightHelp.disable()
    114123
    115124        self._mainWindow = window
     
    353362        self.resetFlightStatus()
    354363
     364        self._weightHelp.reset()
     365        self._weightHelp.disable()
    355366        self._wizard.reset()
    356367        self._notebook.set_current_page(0)
     
    518529        """Begin a period of background processing."""
    519530        self._wizard.set_sensitive(False)
     531        self._weightHelp.set_sensitive(False)
    520532        self._mainWindow.get_window().set_cursor(self._busyCursor)
    521533        self._statusbar.updateBusyState(message)
     
    524536        """End a period of background processing."""
    525537        self._mainWindow.get_window().set_cursor(None)
     538        self._weightHelp.set_sensitive(True)
    526539        self._wizard.set_sensitive(True)
    527540        self._statusbar.updateBusyState(None)
     541
     542    def initializeWeightHelp(self):
     543        """Initialize the weight help tab."""
     544        self._weightHelp.reset()
     545        self._weightHelp.enable()
    528546
    529547    def _writeStdIO(self):
Note: See TracChangeset for help on using the changeset viewer.