QScintilla/Editor.py

branch
5_4_x
changeset 3584
e92f4aa860f6
parent 3577
a51fd3a75493
equal deleted inserted replaced
3577:a51fd3a75493 3584:e92f4aa860f6
603 else: 603 else:
604 self.checksMenu = self.__initContextMenuChecks() 604 self.checksMenu = self.__initContextMenuChecks()
605 self.menuShow = self.__initContextMenuShow() 605 self.menuShow = self.__initContextMenuShow()
606 self.graphicsMenu = self.__initContextMenuGraphics() 606 self.graphicsMenu = self.__initContextMenuGraphics()
607 self.autocompletionMenu = self.__initContextMenuAutocompletion() 607 self.autocompletionMenu = self.__initContextMenuAutocompletion()
608 self.toolsMenu = self.__initContextMenuTools()
609 self.__menus["Checks"] = self.checksMenu 608 self.__menus["Checks"] = self.checksMenu
610 self.__menus["Show"] = self.menuShow 609 self.__menus["Show"] = self.menuShow
611 self.__menus["Graphics"] = self.graphicsMenu 610 self.__menus["Graphics"] = self.graphicsMenu
612 self.__menus["Autocompletion"] = self.autocompletionMenu 611 self.__menus["Autocompletion"] = self.autocompletionMenu
613 self.__menus["Tools"] = self.toolsMenu 612 self.toolsMenu = self.__initContextMenuTools()
613 self.__menus["Tools"] = self.toolsMenu
614 self.exportersMenu = self.__initContextMenuExporters() 614 self.exportersMenu = self.__initContextMenuExporters()
615 self.__menus["Exporters"] = self.exportersMenu 615 self.__menus["Exporters"] = self.exportersMenu
616 self.eolMenu = self.__initContextMenuEol() 616 self.eolMenu = self.__initContextMenuEol()
617 self.__menus["Eol"] = self.eolMenu 617 self.__menus["Eol"] = self.eolMenu
618 self.encodingsMenu = self.__initContextMenuEncodings() 618 self.encodingsMenu = self.__initContextMenuEncodings()
713 self.menuActs["Check"] = self.menu.addMenu(self.checksMenu) 713 self.menuActs["Check"] = self.menu.addMenu(self.checksMenu)
714 self.menu.addSeparator() 714 self.menu.addSeparator()
715 self.menuActs["Show"] = self.menu.addMenu(self.menuShow) 715 self.menuActs["Show"] = self.menu.addMenu(self.menuShow)
716 self.menu.addSeparator() 716 self.menu.addSeparator()
717 self.menuActs["Diagrams"] = self.menu.addMenu(self.graphicsMenu) 717 self.menuActs["Diagrams"] = self.menu.addMenu(self.graphicsMenu)
718 self.menu.addSeparator() 718 self.menu.addSeparator()
719 self.menuActs["Tools"] = self.menu.addMenu(self.toolsMenu) 719 self.menuActs["Tools"] = self.menu.addMenu(self.toolsMenu)
720 self.menu.addSeparator() 720 self.menu.addSeparator()
721 self.menu.addAction( 721 self.menu.addAction(
722 UI.PixmapCache.getIcon("documentNewView.png"), 722 UI.PixmapCache.getIcon("documentNewView.png"),
723 self.trUtf8('New Document View'), self.__newView) 723 self.trUtf8('New Document View'), self.__newView)
724 self.menuActs["NewSplit"] = self.menu.addAction( 724 self.menuActs["NewSplit"] = self.menu.addAction(
4651 UI.PixmapCache.getIcon("splitHorizontal.png")) 4651 UI.PixmapCache.getIcon("splitHorizontal.png"))
4652 else: 4652 else:
4653 self.menuActs["NewSplit"].setIcon( 4653 self.menuActs["NewSplit"].setIcon(
4654 UI.PixmapCache.getIcon("splitVertical.png")) 4654 UI.PixmapCache.getIcon("splitVertical.png"))
4655 4655
4656 if not self.isResourcesFile: 4656 self.menuActs["Tools"].setEnabled(not self.toolsMenu.isEmpty())
4657 self.menuActs["Tools"].setEnabled(not self.toolsMenu.isEmpty())
4658 4657
4659 self.showMenu.emit("Main", self.menu, self) 4658 self.showMenu.emit("Main", self.menu, self)
4660 4659
4661 def __showContextMenuAutocompletion(self): 4660 def __showContextMenuAutocompletion(self):
4662 """ 4661 """

eric ide

mercurial