Changeset 707:27d3bbba18a7


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).

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • locale/en/mlx.po

    r700 r707  
    741741"your files will be able to read it."
    742742
     743msgid "simbrief_extra_fuel"
     744msgstr "_Extra fuel:"
     745
     746msgid "simbrief_extra_fuel_tooltip"
     747msgstr "Enter the amount of extra fuel in kilograms."
     748
    743749msgid "simbrief_progress_searching_browser"
    744750msgstr "Searching browser..."
  • locale/hu/mlx.po

    r700 r707  
    739739"tároljuk, ezért bárki elolvashatja, aki hozzáfér a fájljaidhoz."
    740740
     741msgid "simbrief_extra_fuel"
     742msgstr "_Extra üzemanyag:"
     743
     744msgid "simbrief_extra_fuel_tooltip"
     745msgstr "Írd be az extra üzemanyag mennyiségéet kilogrammban."
     746
    741747msgid "simbrief_progress_searching_browser"
    742748msgstr "Böngésző keresése..."
  • 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.