51 isTranslationsBrowser, |
51 isTranslationsBrowser, |
52 parent, |
52 parent, |
53 name, |
53 name, |
54 ) |
54 ) |
55 |
55 |
56 def showContextMenu(self, menu, standardItems): |
56 def showContextMenu(self, menu, standardItems): # noqa: U100 |
57 """ |
57 """ |
58 Public slot called before the context menu is shown. |
58 Public slot called before the context menu is shown. |
59 |
59 |
60 It enables/disables the VCS menu entries depending on the overall |
60 It enables/disables the VCS menu entries depending on the overall |
61 VCS status and the file status. |
61 VCS status and the file status. |
75 for act in self.vcsMenuActions: |
75 for act in self.vcsMenuActions: |
76 act.setEnabled(False) |
76 act.setEnabled(False) |
77 for act in standardItems: |
77 for act in standardItems: |
78 act.setEnabled(True) |
78 act.setEnabled(True) |
79 |
79 |
80 def showContextMenuMulti(self, menu, standardItems): |
80 def showContextMenuMulti(self, menu, standardItems): # noqa: U100 |
81 """ |
81 """ |
82 Public slot called before the context menu (multiple selections) is |
82 Public slot called before the context menu (multiple selections) is |
83 shown. |
83 shown. |
84 |
84 |
85 It enables/disables the VCS menu entries depending on the overall |
85 It enables/disables the VCS menu entries depending on the overall |
110 for act in self.vcsMultiMenuActions: |
110 for act in self.vcsMultiMenuActions: |
111 act.setEnabled(False) |
111 act.setEnabled(False) |
112 for act in standardItems: |
112 for act in standardItems: |
113 act.setEnabled(True) |
113 act.setEnabled(True) |
114 |
114 |
115 def showContextMenuDir(self, menu, standardItems): |
115 def showContextMenuDir(self, menu, standardItems): # noqa: U100 |
116 """ |
116 """ |
117 Public slot called before the context menu is shown. |
117 Public slot called before the context menu is shown. |
118 |
118 |
119 It enables/disables the VCS menu entries depending on the overall |
119 It enables/disables the VCS menu entries depending on the overall |
120 VCS status and the directory status. |
120 VCS status and the directory status. |
132 for act in self.vcsDirMenuActions: |
132 for act in self.vcsDirMenuActions: |
133 act.setEnabled(False) |
133 act.setEnabled(False) |
134 for act in standardItems: |
134 for act in standardItems: |
135 act.setEnabled(True) |
135 act.setEnabled(True) |
136 |
136 |
137 def showContextMenuDirMulti(self, menu, standardItems): |
137 def showContextMenuDirMulti(self, menu, standardItems): # noqa: U100 |
138 """ |
138 """ |
139 Public slot called before the context menu is shown. |
139 Public slot called before the context menu is shown. |
140 |
140 |
141 It enables/disables the VCS menu entries depending on the overall |
141 It enables/disables the VCS menu entries depending on the overall |
142 VCS status and the directory status. |
142 VCS status and the directory status. |