99 |
99 |
100 self.__logTreeNormalFont = self.logTree.font() |
100 self.__logTreeNormalFont = self.logTree.font() |
101 self.__logTreeNormalFont.setBold(False) |
101 self.__logTreeNormalFont.setBold(False) |
102 self.__logTreeBoldFont = self.logTree.font() |
102 self.__logTreeBoldFont = self.logTree.font() |
103 self.__logTreeBoldFont.setBold(True) |
103 self.__logTreeBoldFont.setBold(True) |
|
104 |
|
105 self.__finishCallbacks = [] |
|
106 |
|
107 def __addFinishCallback(self, callback): |
|
108 """ |
|
109 Private method to add a method to be called once the process finished. |
|
110 |
|
111 The callback methods are invoke in a FIFO style and are consumed. If |
|
112 a callback method needs to be called again, it must be added again. |
|
113 |
|
114 @param callback callback method |
|
115 @type function |
|
116 """ |
|
117 if callback not in self.__finishCallbacks: |
|
118 self.__finishCallbacks.append(callback) |
104 |
119 |
105 def __initData(self): |
120 def __initData(self): |
106 """ |
121 """ |
107 Private method to (re-)initialize some data. |
122 Private method to (re-)initialize some data. |
108 """ |
123 """ |
356 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False) |
371 self.buttonBox.button(QDialogButtonBox.Cancel).setEnabled(False) |
357 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) |
372 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) |
358 |
373 |
359 self.inputGroup.setEnabled(False) |
374 self.inputGroup.setEnabled(False) |
360 self.inputGroup.hide() |
375 self.inputGroup.hide() |
|
376 |
|
377 while self.__finishCallbacks: |
|
378 self.__finishCallbacks.pop(0)() |
361 |
379 |
362 def __processBuffer(self): |
380 def __processBuffer(self): |
363 """ |
381 """ |
364 Private method to process the buffered output of the svn log command. |
382 Private method to process the buffered output of the svn log command. |
365 """ |
383 """ |
695 itm = self.logTree.itemBelow(self.logTree.currentItem()) |
713 itm = self.logTree.itemBelow(self.logTree.currentItem()) |
696 if itm: |
714 if itm: |
697 self.logTree.setCurrentItem(itm) |
715 self.logTree.setCurrentItem(itm) |
698 else: |
716 else: |
699 # load the next bunch and try again |
717 # load the next bunch and try again |
|
718 self.__addFinishCallback(self.on_downButton_clicked) |
700 self.on_nextButton_clicked() |
719 self.on_nextButton_clicked() |
701 self.on_downButton_clicked() |
|
702 |
720 |
703 def on_passwordCheckBox_toggled(self, isOn): |
721 def on_passwordCheckBox_toggled(self, isOn): |
704 """ |
722 """ |
705 Private slot to handle the password checkbox toggled. |
723 Private slot to handle the password checkbox toggled. |
706 |
724 |