Changeset 172:565a6ea1f630 for src/mlx
- Timestamp:
- 05/12/12 17:28:52 (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/gui/gui.py
r171 r172 11 11 from mlx.gui.gates import FleetGateStatus 12 12 from mlx.gui.prefs import Preferences 13 from mlx.gui.checklist import ChecklistEditor 13 14 14 15 import mlx.const as const … … 85 86 86 87 self._preferences = Preferences(self) 88 self._checklistEditor = ChecklistEditor(self) 87 89 88 90 menuBar = self._buildMenuBar(accelGroup) … … 770 772 menuBar.append(toolsMenuItem) 771 773 772 prefsMenuItem = gtk.ImageMenuItem(gtk.STOCK_PREFERENCES) 774 checklistMenuItem = gtk.ImageMenuItem(gtk.STOCK_PREFERENCES) 775 checklistMenuItem.set_use_stock(True) 776 checklistMenuItem.set_label(xstr("menu_tools_chklst")) 777 checklistMenuItem.add_accelerator("activate", accelGroup, 778 ord(xstr("menu_tools_chklst_key")), 779 CONTROL_MASK, ACCEL_VISIBLE) 780 checklistMenuItem.connect("activate", self._editChecklist) 781 toolsMenu.append(checklistMenuItem) 782 783 prefsMenuItem = gtk.ImageMenuItem(gtk.STOCK_APPLY) 773 784 prefsMenuItem.set_use_stock(True) 774 785 prefsMenuItem.set_label(xstr("menu_tools_prefs")) … … 878 889 self._mainWindow.set_default(None) 879 890 891 def _editChecklist(self, menuItem): 892 """Callback for editing the checklists.""" 893 self._checklistEditor.run() 894 880 895 def _editPreferences(self, menuItem): 881 896 """Callback for editing the preferences.""" -
src/mlx/i18n.py
r166 r172 142 142 143 143 self.add("menu_tools", "Tools") 144 self.add("menu_tools_chklst", "_Checklist Editor") 145 self.add("menu_tools_chklst_key", "c") 144 146 self.add("menu_tools_prefs", "_Preferences") 145 147 self.add("menu_tools_prefs_key", "p") … … 619 621 "Select PIREP directory") 620 622 623 self.add("chklst_title", "Checklist Editor") 624 621 625 self.add("prefs_sounds_frame_bg", "Background") 622 626 self.add("prefs_sounds_enable", … … 771 775 772 776 self.add("menu_tools", "Eszközök") 777 self.add("menu_tools_chklst", "_Ellenörzőlista szerkesztő") 778 self.add("menu_tools_chklst_key", "e") 773 779 self.add("menu_tools_prefs", "_Beállítások") 774 780 self.add("menu_tools_prefs_key", "b") … … 1200 1206 self.add("gates_plane_unknown", "ISMERETLEN") 1201 1207 1208 self.add("chklst_title", "Ellenörzőlista szerkesztő") 1209 1202 1210 self.add("prefs_title", "Beállítások") 1203 1211 self.add("prefs_tab_general", "_Általános")
Note:
See TracChangeset
for help on using the changeset viewer.