Ignore:
Timestamp:
10/25/15 08:59:21 (9 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
cef
Phase:
public
Message:

The extra fuel can be entered for SimBrief (re #279).

File:
1 edited

Legend:

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

    r706 r707  
    18101810        self._credentialsPassword = None
    18111811
     1812        label = gtk.Label(xstr("simbrief_extra_fuel"))
     1813        label.set_use_underline(True)
     1814        label.set_alignment(0.0, 0.5)
     1815        table.attach(label, 0, 1, 3, 4)
     1816
     1817        self._extraFuel = IntegerEntry(defaultValue = 0)
     1818        self._extraFuel.set_width_chars(6)
     1819        self._extraFuel.set_tooltip_text(xstr("simbrief_extra_fuel_tooltip"))
     1820        table.attach(self._extraFuel, 1, 2, 3, 4)
     1821        label.set_mnemonic_widget(self._extraFuel)
     1822
     1823        table.attach(gtk.Label("kg"), 2, 3, 3, 4)
     1824
    18121825        self.addCancelFlightButton()
    18131826
     
    18271840        self._rememberButton.set_active(config.rememberSimBriefPassword)
    18281841        self._rememberButton.set_sensitive(True)
     1842
     1843        self._extraFuel.set_int(0)
     1844        self._extraFuel.set_sensitive(True)
    18291845
    18301846        self._updateForwardButton()
     
    18601876            self._password.set_sensitive(False)
    18611877            self._rememberButton.set_sensitive(False)
     1878            self._extraFuel.set_sensitive(False)
    18621879
    18631880            self._wizard.gui.beginBusy("Calling SimBrief...")
     
    20052022        plan["altn"] = wizard.alternate
    20062023
    2007         plan["addedfuel"] = "2.5" # FIXME: query
     2024        plan["addedfuel"] = str(self._extraFuel.get_int() / 1000.0)
    20082025        plan["origrwy"] = "" # FIXME: query
    20092026        plan["destrwy"] = "" # FIXME: query
Note: See TracChangeset for help on using the changeset viewer.