34 # set initial values |
34 # set initial values |
35 self.logSpinBox.setValue(self.__plugin.getPreferences("LogLimit")) |
35 self.logSpinBox.setValue(self.__plugin.getPreferences("LogLimit")) |
36 self.commitSpinBox.setValue(self.__plugin.getPreferences("CommitMessages")) |
36 self.commitSpinBox.setValue(self.__plugin.getPreferences("CommitMessages")) |
37 self.logBrowserCheckBox.setChecked(self.__plugin.getPreferences("UseLogBrowser")) |
37 self.logBrowserCheckBox.setChecked(self.__plugin.getPreferences("UseLogBrowser")) |
38 self.pullUpdateCheckBox.setChecked(self.__plugin.getPreferences("PullUpdate")) |
38 self.pullUpdateCheckBox.setChecked(self.__plugin.getPreferences("PullUpdate")) |
|
39 self.cleanupPatternEdit.setText(self.__plugin.getPreferences("CleanupPatterns")) |
39 |
40 |
40 def save(self): |
41 def save(self): |
41 """ |
42 """ |
42 Public slot to save the Mercurial configuration. |
43 Public slot to save the Mercurial configuration. |
43 """ |
44 """ |
44 self.__plugin.setPreferences("LogLimit", self.logSpinBox.value()) |
45 self.__plugin.setPreferences("LogLimit", self.logSpinBox.value()) |
45 self.__plugin.setPreferences("CommitMessages", self.commitSpinBox.value()) |
46 self.__plugin.setPreferences("CommitMessages", self.commitSpinBox.value()) |
46 self.__plugin.setPreferences("UseLogBrowser", self.logBrowserCheckBox.isChecked()) |
47 self.__plugin.setPreferences("UseLogBrowser", self.logBrowserCheckBox.isChecked()) |
47 self.__plugin.setPreferences("PullUpdate", self.pullUpdateCheckBox.isChecked()) |
48 self.__plugin.setPreferences("PullUpdate", self.pullUpdateCheckBox.isChecked()) |
|
49 self.__plugin.setPreferences("CleanupPatterns", self.cleanupPatternEdit.text()) |
48 |
50 |
49 @pyqtSlot() |
51 @pyqtSlot() |
50 def on_configButton_clicked(self): |
52 def on_configButton_clicked(self): |
51 """ |
53 """ |
52 Private slot to edit the (per user) Mercurial configuration file. |
54 Private slot to edit the (per user) Mercurial configuration file. |