39 |
39 |
40 def __createProgressHandle(self, interruptable=True): |
40 def __createProgressHandle(self, interruptable=True): |
41 """ |
41 """ |
42 Private method to create a TaskHandle to update a progress dialog. |
42 Private method to create a TaskHandle to update a progress dialog. |
43 |
43 |
44 @param interruptable flag indicating, that the task may be |
44 @param interruptable flag indicating, that the task may be |
45 interrupted (boolean) |
45 interrupted (boolean) |
46 """ |
46 """ |
47 self.__handle = ProgressHandle(self._title, interruptable, self) |
47 self.__handle = ProgressHandle(self._title, interruptable, self) |
48 self.__handle.show() |
48 self.__handle.show() |
49 QApplication.processEvents() |
49 QApplication.processEvents() |
80 if changes is not None: |
80 if changes is not None: |
81 dlg = ChangesPreviewDialog(changes, self) |
81 dlg = ChangesPreviewDialog(changes, self) |
82 if dlg.exec_() == QDialog.Accepted: |
82 if dlg.exec_() == QDialog.Accepted: |
83 self.applyChanges(changes) |
83 self.applyChanges(changes) |
84 |
84 |
85 def applyChanges(self, changes = None): |
85 def applyChanges(self, changes=None): |
86 """ |
86 """ |
87 Public method to apply the changes. |
87 Public method to apply the changes. |
88 |
88 |
89 @param reference to the Changes object (rope.base.change.ChangeSet) |
89 @param reference to the Changes object (rope.base.change.ChangeSet) |
90 """ |
90 """ |