Changeset 865:b452afb620fa


Ignore:
Timestamp:
06/18/17 18:02:32 (7 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The flight selection table popup menu includes printing (re #304)

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • locale/en/mlx.po

    r864 r865  
    532532msgid "flightsel_popup_save"
    533533msgstr "S_ave..."
     534
     535msgid "flightsel_popup_print"
     536msgstr "_Print briefing..."
    534537
    535538msgid "flightsel_popup_delete"
  • locale/hu/mlx.po

    r864 r865  
    535535msgid "flightsel_popup_save"
    536536msgstr "_Mentés..."
     537
     538msgid "flightsel_popup_print"
     539msgstr "Eligazítás _nyomtatása..."
    537540
    538541msgid "flightsel_popup_delete"
  • src/mlx/gui/flight.py

    r864 r865  
    10911091
    10921092        menuItem = gtk.MenuItem()
     1093        menuItem.set_label(xstr("flightsel_popup_print"))
     1094        menuItem.set_use_underline(True)
     1095        menuItem.connect("activate", self._popupPrint)
     1096        menuItem.show()
     1097
     1098        menu.append(menuItem)
     1099
     1100        menuItem = gtk.MenuItem()
    10931101        menuItem.set_label(xstr("flightsel_popup_delete"))
    10941102        menuItem.set_use_underline(True)
     
    11091117        if not self._completed:
    11101118            self._saveSelected()
     1119
     1120    def _popupPrint(self, menuItem):
     1121        """Called when the Print briefing menu item is activated in the popup menu."""
     1122        if not self._completed:
     1123            self._printSelected()
    11111124
    11121125    def _popupDelete(self, menuItem):
Note: See TracChangeset for help on using the changeset viewer.