UI/UserInterface.py

changeset 5555
5ece4e830780
parent 5504
ba1134308a7b
child 5576
c866ec38662d
child 5587
ea526b78ee6c
equal deleted inserted replaced
5554:c477ae02bf5f 5555:5ece4e830780
5667 from .ClearPrivateDataDialog import ClearPrivateDataDialog 5667 from .ClearPrivateDataDialog import ClearPrivateDataDialog
5668 dlg = ClearPrivateDataDialog(self) 5668 dlg = ClearPrivateDataDialog(self)
5669 if dlg.exec_() == QDialog.Accepted: 5669 if dlg.exec_() == QDialog.Accepted:
5670 # recent files, recent projects, recent multi projects, 5670 # recent files, recent projects, recent multi projects,
5671 # debug histories, shell histories 5671 # debug histories, shell histories
5672 (files, projects, multiProjects, debug, shell) = dlg.getData() 5672 (files, projects, multiProjects, debug, shell, vcs, plugins) = \
5673 dlg.getData()
5673 if files: 5674 if files:
5674 # clear list of recently opened files 5675 # clear list of recently opened files
5675 self.viewmanager.clearRecent() 5676 self.viewmanager.clearRecent()
5676 if projects: 5677 if projects:
5677 # clear list of recently opened projects 5678 # clear list of recently opened projects and other histories
5678 self.project.clearRecent() 5679 self.project.clearHistories()
5679 if multiProjects: 5680 if multiProjects:
5680 # clear list of recently opened multi projects 5681 # clear list of recently opened multi projects
5681 self.multiProject.clearRecent() 5682 self.multiProject.clearRecent()
5682 if debug: 5683 if debug:
5683 # clear the various debug histories 5684 # clear the various debug histories
5684 self.debuggerUI.clearHistories() 5685 self.debuggerUI.clearHistories()
5685 if shell: 5686 if shell:
5686 # clear the shell histories 5687 # clear the shell histories
5687 self.shell.clearAllHistories() 5688 self.shell.clearAllHistories()
5688 5689 if vcs:
5690 # clear the VCS related histories
5691 self.pluginManager.clearPluginsPrivateData("version_control")
5692 if plugins:
5693 # clear private data of plug-ins not covered above
5694 self.pluginManager.clearPluginsPrivateData("")
5695
5696 Preferences.syncPreferences()
5697
5689 def __newProject(self): 5698 def __newProject(self):
5690 """ 5699 """
5691 Private slot to handle the NewProject signal. 5700 Private slot to handle the NewProject signal.
5692 """ 5701 """
5693 self.__setWindowCaption(project=self.project.name) 5702 self.__setWindowCaption(project=self.project.name)

eric ide

mercurial