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