ViewManager/ViewManager.py

changeset 5108
f5cb9cb98e6a
parent 5008
31a1eb0f70e4
child 5389
9b1c800daff3
equal deleted inserted replaced
5106:1ecc6c9abca5 5108:f5cb9cb98e6a
5015 idx += 1 5015 idx += 1
5016 5016
5017 self.recentMenu.addSeparator() 5017 self.recentMenu.addSeparator()
5018 self.recentMenu.addAction( 5018 self.recentMenu.addAction(
5019 QCoreApplication.translate('ViewManager', '&Clear'), 5019 QCoreApplication.translate('ViewManager', '&Clear'),
5020 self.__clearRecent) 5020 self.clearRecent)
5021 5021
5022 def __openSourceFile(self, act): 5022 def __openSourceFile(self, act):
5023 """ 5023 """
5024 Private method to open a file from the list of recently opened files. 5024 Private method to open a file from the list of recently opened files.
5025 5025
5027 """ 5027 """
5028 file = act.data() 5028 file = act.data()
5029 if file: 5029 if file:
5030 self.openSourceFile(file) 5030 self.openSourceFile(file)
5031 5031
5032 def __clearRecent(self): 5032 def clearRecent(self):
5033 """ 5033 """
5034 Private method to clear the recent files menu. 5034 Public method to clear the recent files menu.
5035 """ 5035 """
5036 self.recent = [] 5036 self.recent = []
5037 self.__saveRecent()
5037 5038
5038 def __showBookmarkedMenu(self): 5039 def __showBookmarkedMenu(self):
5039 """ 5040 """
5040 Private method to set up bookmarked files menu. 5041 Private method to set up bookmarked files menu.
5041 """ 5042 """

eric ide

mercurial