diff -r 7826884089fd -r c18d759b6b86 Debugger/StartDialog.py --- a/Debugger/StartDialog.py Sun Dec 11 18:43:05 2016 +0100 +++ b/Debugger/StartDialog.py Mon Dec 12 18:56:42 2016 +0100 @@ -136,10 +136,8 @@ @return a tuple of argv (string), workdir (string), environment (string), exceptions flag (boolean), clear interpreter flag - (boolean), clear histories flag (boolean) and run in console - flag (boolean) + (boolean) and run in console flag (boolean) """ - # TODO: add the complete histories cmdLine = self.ui.cmdlineCombo.currentText() workdir = self.ui.workdirPicker.currentText() environment = self.ui.environmentCombo.currentText() @@ -149,7 +147,6 @@ environment, self.ui.exceptionCheckBox.isChecked(), self.ui.clearShellCheckBox.isChecked(), - self.__clearHistoryLists, self.ui.consoleCheckBox.isChecked()) def getDebugData(self): @@ -210,6 +207,7 @@ clear the lists. """ self.__clearHistoryLists = True + self.__historiesModified = False # clear catches it all cmdLine = self.ui.cmdlineCombo.currentText() workdir = self.ui.workdirPicker.currentText() @@ -266,7 +264,41 @@ combo.addItems(history) self.__historiesModified = True + + def historiesModified(self): + """ + Public method to test for modified histories. + @return flag indicating modified histories + @rtype bool + """ + return self.__historiesModified + + def clearHistories(self): + """ + Public method to test, if histories shall be cleared. + + @return flag indicating histories shall be cleared + @rtype bool + """ + return self.__clearHistoryLists + + def getHistories(self): + """ + Public method to get the lists of histories. + + @return tuple containing the histories of command line arguments, + working directories and environment settings + @rtype tuple of three list of str + """ + return ( + [self.ui.cmdlineCombo.itemText(index) for index in range( + self.ui.cmdlineCombo.count())], + self.ui.workdirPicker.getPathItems(), + [self.ui.environmentCombo.itemText(index) for index in range( + self.ui.environmentCombo.count())], + ) + def on_buttonBox_clicked(self, button): """ Private slot called by a button of the button box clicked.