30 and the common methods. |
30 and the common methods. |
31 |
31 |
32 @signal vcsStatusMonitorData(list of str) emitted to update the VCS status |
32 @signal vcsStatusMonitorData(list of str) emitted to update the VCS status |
33 @signal vcsStatusMonitorStatus(str, str) emitted to signal the status of the |
33 @signal vcsStatusMonitorStatus(str, str) emitted to signal the status of the |
34 monitoring thread (ok, nok, op, off) and a status message |
34 monitoring thread (ok, nok, op, off) and a status message |
|
35 @signal vcsStatusChanged() emitted to indicate a change of the overall VCS status |
35 """ |
36 """ |
36 vcsStatusMonitorData = pyqtSignal(list) |
37 vcsStatusMonitorData = pyqtSignal(list) |
37 vcsStatusMonitorStatus = pyqtSignal(str, str) |
38 vcsStatusMonitorStatus = pyqtSignal(str, str) |
|
39 vcsStatusChanged = pyqtSignal() |
38 |
40 |
39 canBeCommitted = 1 # Indicates that a file/directory is in the vcs. |
41 canBeCommitted = 1 # Indicates that a file/directory is in the vcs. |
40 canBeAdded = 2 # Indicates that a file/directory is not in vcs. |
42 canBeAdded = 2 # Indicates that a file/directory is not in vcs. |
41 |
43 |
42 def __init__(self, parent=None, name=None): |
44 def __init__(self, parent=None, name=None): |
723 |
725 |
724 def checkVCSStatus(self): |
726 def checkVCSStatus(self): |
725 """ |
727 """ |
726 Public method to wake up the VCS status monitor thread. |
728 Public method to wake up the VCS status monitor thread. |
727 """ |
729 """ |
|
730 self.vcsStatusChanged.emit() |
|
731 |
728 if self.statusMonitorThread is not None: |
732 if self.statusMonitorThread is not None: |
729 self.statusMonitorThread.checkStatus() |
733 self.statusMonitorThread.checkStatus() |
730 |
734 |
731 def clearStatusMonitorCachedState(self, name): |
735 def clearStatusMonitorCachedState(self, name): |
732 """ |
736 """ |