56 self.initColour("VcsUpdate", self.pbVcsUpdateButton, |
56 self.initColour("VcsUpdate", self.pbVcsUpdateButton, |
57 Preferences.getProjectBrowserColour) |
57 Preferences.getProjectBrowserColour) |
58 self.projectBrowserColours["VcsConflict"] = \ |
58 self.projectBrowserColours["VcsConflict"] = \ |
59 self.initColour("VcsConflict", self.pbVcsConflictButton, |
59 self.initColour("VcsConflict", self.pbVcsConflictButton, |
60 Preferences.getProjectBrowserColour) |
60 Preferences.getProjectBrowserColour) |
|
61 self.projectBrowserColours["VcsRemoved"] = \ |
|
62 self.initColour("VcsRemoved", self.pbVcsRemovedButton, |
|
63 Preferences.getProjectBrowserColour) |
61 |
64 |
62 def save(self): |
65 def save(self): |
63 """ |
66 """ |
64 Public slot to save the VCS configuration. |
67 Public slot to save the VCS configuration. |
65 """ |
68 """ |
86 status "added". |
89 status "added". |
87 """ |
90 """ |
88 self.projectBrowserColours["VcsAdded"] = \ |
91 self.projectBrowserColours["VcsAdded"] = \ |
89 self.selectColour(self.pbVcsAddedButton, |
92 self.selectColour(self.pbVcsAddedButton, |
90 self.projectBrowserColours["VcsAdded"]) |
93 self.projectBrowserColours["VcsAdded"]) |
91 |
94 |
92 @pyqtSlot() |
95 @pyqtSlot() |
93 def on_pbVcsConflictButton_clicked(self): |
96 def on_pbVcsConflictButton_clicked(self): |
94 """ |
97 """ |
95 Private slot to set the background colour for entries with VCS |
98 Private slot to set the background colour for entries with VCS |
96 status "conflict". |
99 status "conflict". |
97 """ |
100 """ |
98 self.projectBrowserColours["VcsConflict"] = \ |
101 self.projectBrowserColours["VcsConflict"] = \ |
99 self.selectColour(self.pbVcsConflictButton, |
102 self.selectColour(self.pbVcsConflictButton, |
100 self.projectBrowserColours["VcsConflict"]) |
103 self.projectBrowserColours["VcsConflict"]) |
101 |
104 |
102 @pyqtSlot() |
105 @pyqtSlot() |
103 def on_pbVcsModifiedButton_clicked(self): |
106 def on_pbVcsModifiedButton_clicked(self): |
104 """ |
107 """ |
105 Private slot to set the background colour for entries with VCS |
108 Private slot to set the background colour for entries with VCS |
106 status "modified". |
109 status "modified". |
107 """ |
110 """ |
108 self.projectBrowserColours["VcsModified"] = \ |
111 self.projectBrowserColours["VcsModified"] = \ |
109 self.selectColour(self.pbVcsModifiedButton, |
112 self.selectColour(self.pbVcsModifiedButton, |
110 self.projectBrowserColours["VcsModified"]) |
113 self.projectBrowserColours["VcsModified"]) |
111 |
114 |
112 @pyqtSlot() |
115 @pyqtSlot() |
113 def on_pbVcsReplacedButton_clicked(self): |
116 def on_pbVcsReplacedButton_clicked(self): |
114 """ |
117 """ |
115 Private slot to set the background colour for entries with VCS |
118 Private slot to set the background colour for entries with VCS |
116 status "replaced". |
119 status "replaced". |
117 """ |
120 """ |
118 self.projectBrowserColours["VcsReplaced"] = \ |
121 self.projectBrowserColours["VcsReplaced"] = \ |
119 self.selectColour(self.pbVcsReplacedButton, |
122 self.selectColour(self.pbVcsReplacedButton, |
120 self.projectBrowserColours["VcsReplaced"]) |
123 self.projectBrowserColours["VcsReplaced"]) |
121 |
124 |
|
125 @pyqtSlot() |
|
126 def on_pbVcsRemovedButton_clicked(self): |
|
127 """ |
|
128 Private slot to set the background colour for entries with VCS |
|
129 status "removed". |
|
130 """ |
|
131 self.projectBrowserColours["VcsRemoved"] = \ |
|
132 self.selectColour(self.pbVcsRemovedButton, |
|
133 self.projectBrowserColours["VcsRemoved"]) |
|
134 |
122 @pyqtSlot() |
135 @pyqtSlot() |
123 def on_pbVcsUpdateButton_clicked(self): |
136 def on_pbVcsUpdateButton_clicked(self): |
124 """ |
137 """ |
125 Private slot to set the background colour for entries with VCS |
138 Private slot to set the background colour for entries with VCS |
126 status "needs update". |
139 status "needs update". |