778 """ |
778 """ |
779 Public slot to show the shell history dialog. |
779 Public slot to show the shell history dialog. |
780 """ |
780 """ |
781 from .ShellHistoryDialog import ShellHistoryDialog |
781 from .ShellHistoryDialog import ShellHistoryDialog |
782 dlg = ShellHistoryDialog(self.__history, self.vm, self) |
782 dlg = ShellHistoryDialog(self.__history, self.vm, self) |
783 if dlg.exec_() == QDialog.Accepted: |
783 if dlg.exec() == QDialog.Accepted: |
784 self.__historyLists[self.clientType], idx = dlg.getHistory() |
784 self.__historyLists[self.clientType], idx = dlg.getHistory() |
785 self.__history = self.__historyLists[self.clientType] |
785 self.__history = self.__historyLists[self.clientType] |
786 self.__setHistoryIndex(index=idx) |
786 self.__setHistoryIndex(index=idx) |
787 |
787 |
788 def clearAllHistories(self): |
788 def clearAllHistories(self): |