42 projectObject, isTranslationsBrowser, |
42 projectObject, isTranslationsBrowser, |
43 parent, name) |
43 parent, name) |
44 |
44 |
45 def showContextMenu(self, menu, standardItems): |
45 def showContextMenu(self, menu, standardItems): |
46 """ |
46 """ |
47 Slot called before the context menu is shown. |
47 Public slot called before the context menu is shown. |
48 |
48 |
49 It enables/disables the VCS menu entries depending on the overall |
49 It enables/disables the VCS menu entries depending on the overall |
50 VCS status and the file status. |
50 VCS status and the file status. |
51 |
51 |
52 @param menu reference to the menu to be shown |
52 @param menu reference to the menu to be shown |
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): |
81 """ |
81 """ |
82 Slot called before the context menu (multiple selections) is shown. |
82 Public slot called before the context menu (multiple selections) is |
|
83 shown. |
83 |
84 |
84 It enables/disables the VCS menu entries depending on the overall |
85 It enables/disables the VCS menu entries depending on the overall |
85 VCS status and the files status. |
86 VCS status and the files status. |
86 |
87 |
87 @param menu reference to the menu to be shown |
88 @param menu reference to the menu to be shown |
118 for act in standardItems: |
119 for act in standardItems: |
119 act.setEnabled(True) |
120 act.setEnabled(True) |
120 |
121 |
121 def showContextMenuDir(self, menu, standardItems): |
122 def showContextMenuDir(self, menu, standardItems): |
122 """ |
123 """ |
123 Slot called before the context menu is shown. |
124 Public slot called before the context menu is shown. |
124 |
125 |
125 It enables/disables the VCS menu entries depending on the overall |
126 It enables/disables the VCS menu entries depending on the overall |
126 VCS status and the directory status. |
127 VCS status and the directory status. |
127 |
128 |
128 @param menu reference to the menu to be shown |
129 @param menu reference to the menu to be shown |
144 for act in standardItems: |
145 for act in standardItems: |
145 act.setEnabled(True) |
146 act.setEnabled(True) |
146 |
147 |
147 def showContextMenuDirMulti(self, menu, standardItems): |
148 def showContextMenuDirMulti(self, menu, standardItems): |
148 """ |
149 """ |
149 Slot called before the context menu is shown. |
150 Public slot called before the context menu is shown. |
150 |
151 |
151 It enables/disables the VCS menu entries depending on the overall |
152 It enables/disables the VCS menu entries depending on the overall |
152 VCS status and the directory status. |
153 VCS status and the directory status. |
153 |
154 |
154 @param menu reference to the menu to be shown |
155 @param menu reference to the menu to be shown |