|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Project.ProjectOthersBrowser</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.Project.ProjectOthersBrowser</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a class used to display the parts of the project, that |
|
13 don't fit the other categories. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 |
|
17 <table> |
|
18 <tr><td>None</td></tr> |
|
19 </table> |
|
20 <h3>Classes</h3> |
|
21 |
|
22 <table> |
|
23 |
|
24 <tr> |
|
25 <td><a href="#ProjectOthersBrowser">ProjectOthersBrowser</a></td> |
|
26 <td>A class used to display the parts of the project, that don't fit the other categories.</td> |
|
27 </tr> |
|
28 </table> |
|
29 <h3>Functions</h3> |
|
30 |
|
31 <table> |
|
32 <tr><td>None</td></tr> |
|
33 </table> |
|
34 <hr /> |
|
35 <hr /> |
|
36 <a NAME="ProjectOthersBrowser" ID="ProjectOthersBrowser"></a> |
|
37 <h2>ProjectOthersBrowser</h2> |
|
38 |
|
39 <p> |
|
40 A class used to display the parts of the project, that don't fit the |
|
41 other categories. |
|
42 </p> |
|
43 <h3>Signals</h3> |
|
44 <dl> |
|
45 |
|
46 <dt>showMenu(str, QMenu)</dt> |
|
47 <dd> |
|
48 emitted when a menu is about to be shown. |
|
49 The name of the menu and a reference to the menu are given. |
|
50 </dd> |
|
51 </dl> |
|
52 <h3>Derived from</h3> |
|
53 ProjectBaseBrowser |
|
54 <h3>Class Attributes</h3> |
|
55 |
|
56 <table> |
|
57 <tr><td>None</td></tr> |
|
58 </table> |
|
59 <h3>Class Methods</h3> |
|
60 |
|
61 <table> |
|
62 <tr><td>None</td></tr> |
|
63 </table> |
|
64 <h3>Methods</h3> |
|
65 |
|
66 <table> |
|
67 |
|
68 <tr> |
|
69 <td><a href="#ProjectOthersBrowser.__init__">ProjectOthersBrowser</a></td> |
|
70 <td>Constructor</td> |
|
71 </tr> |
|
72 <tr> |
|
73 <td><a href="#ProjectOthersBrowser.__deleteItem">__deleteItem</a></td> |
|
74 <td>Private method to delete the selected entry from the OTHERS project data area.</td> |
|
75 </tr> |
|
76 <tr> |
|
77 <td><a href="#ProjectOthersBrowser.__refreshItem">__refreshItem</a></td> |
|
78 <td>Private slot to refresh (repopulate) an item.</td> |
|
79 </tr> |
|
80 <tr> |
|
81 <td><a href="#ProjectOthersBrowser.__removeItem">__removeItem</a></td> |
|
82 <td>Private slot to remove the selected entry from the OTHERS project data area.</td> |
|
83 </tr> |
|
84 <tr> |
|
85 <td><a href="#ProjectOthersBrowser.__showContextMenu">__showContextMenu</a></td> |
|
86 <td>Private slot called by the menu aboutToShow signal.</td> |
|
87 </tr> |
|
88 <tr> |
|
89 <td><a href="#ProjectOthersBrowser.__showContextMenuBack">__showContextMenuBack</a></td> |
|
90 <td>Private slot called by the backMenu aboutToShow signal.</td> |
|
91 </tr> |
|
92 <tr> |
|
93 <td><a href="#ProjectOthersBrowser.__showContextMenuMulti">__showContextMenuMulti</a></td> |
|
94 <td>Private slot called by the multiMenu aboutToShow signal.</td> |
|
95 </tr> |
|
96 <tr> |
|
97 <td><a href="#ProjectOthersBrowser.__showMimeType">__showMimeType</a></td> |
|
98 <td>Private slot to show the mime type of the selected entry.</td> |
|
99 </tr> |
|
100 <tr> |
|
101 <td><a href="#ProjectOthersBrowser._contextMenuRequested">_contextMenuRequested</a></td> |
|
102 <td>Protected slot to show the context menu.</td> |
|
103 </tr> |
|
104 <tr> |
|
105 <td><a href="#ProjectOthersBrowser._createPopupMenus">_createPopupMenus</a></td> |
|
106 <td>Protected overloaded method to generate the popup menu.</td> |
|
107 </tr> |
|
108 <tr> |
|
109 <td><a href="#ProjectOthersBrowser._editPixmap">_editPixmap</a></td> |
|
110 <td>Protected slot to handle the open in icon editor popup menu entry.</td> |
|
111 </tr> |
|
112 <tr> |
|
113 <td><a href="#ProjectOthersBrowser._openFileInEditor">_openFileInEditor</a></td> |
|
114 <td>Protected slot to handle the Open in Editor menu action.</td> |
|
115 </tr> |
|
116 <tr> |
|
117 <td><a href="#ProjectOthersBrowser._openHexEditor">_openHexEditor</a></td> |
|
118 <td>Protected slot to handle the open in hex editor popup menu entry.</td> |
|
119 </tr> |
|
120 <tr> |
|
121 <td><a href="#ProjectOthersBrowser._openItem">_openItem</a></td> |
|
122 <td>Protected slot to handle the open popup menu entry.</td> |
|
123 </tr> |
|
124 <tr> |
|
125 <td><a href="#ProjectOthersBrowser._showContextMenu">_showContextMenu</a></td> |
|
126 <td>Protected slot called before the context menu is shown.</td> |
|
127 </tr> |
|
128 </table> |
|
129 <h3>Static Methods</h3> |
|
130 |
|
131 <table> |
|
132 <tr><td>None</td></tr> |
|
133 </table> |
|
134 |
|
135 <a NAME="ProjectOthersBrowser.__init__" ID="ProjectOthersBrowser.__init__"></a> |
|
136 <h4>ProjectOthersBrowser (Constructor)</h4> |
|
137 <b>ProjectOthersBrowser</b>(<i>project, parent=None</i>) |
|
138 |
|
139 <p> |
|
140 Constructor |
|
141 </p> |
|
142 <dl> |
|
143 |
|
144 <dt><i>project</i></dt> |
|
145 <dd> |
|
146 reference to the project object |
|
147 </dd> |
|
148 <dt><i>parent</i></dt> |
|
149 <dd> |
|
150 parent widget of this browser (QWidget) |
|
151 </dd> |
|
152 </dl> |
|
153 <a NAME="ProjectOthersBrowser.__deleteItem" ID="ProjectOthersBrowser.__deleteItem"></a> |
|
154 <h4>ProjectOthersBrowser.__deleteItem</h4> |
|
155 <b>__deleteItem</b>(<i></i>) |
|
156 |
|
157 <p> |
|
158 Private method to delete the selected entry from the OTHERS project |
|
159 data area. |
|
160 </p> |
|
161 <a NAME="ProjectOthersBrowser.__refreshItem" ID="ProjectOthersBrowser.__refreshItem"></a> |
|
162 <h4>ProjectOthersBrowser.__refreshItem</h4> |
|
163 <b>__refreshItem</b>(<i></i>) |
|
164 |
|
165 <p> |
|
166 Private slot to refresh (repopulate) an item. |
|
167 </p> |
|
168 <a NAME="ProjectOthersBrowser.__removeItem" ID="ProjectOthersBrowser.__removeItem"></a> |
|
169 <h4>ProjectOthersBrowser.__removeItem</h4> |
|
170 <b>__removeItem</b>(<i></i>) |
|
171 |
|
172 <p> |
|
173 Private slot to remove the selected entry from the OTHERS project |
|
174 data area. |
|
175 </p> |
|
176 <a NAME="ProjectOthersBrowser.__showContextMenu" ID="ProjectOthersBrowser.__showContextMenu"></a> |
|
177 <h4>ProjectOthersBrowser.__showContextMenu</h4> |
|
178 <b>__showContextMenu</b>(<i></i>) |
|
179 |
|
180 <p> |
|
181 Private slot called by the menu aboutToShow signal. |
|
182 </p> |
|
183 <a NAME="ProjectOthersBrowser.__showContextMenuBack" ID="ProjectOthersBrowser.__showContextMenuBack"></a> |
|
184 <h4>ProjectOthersBrowser.__showContextMenuBack</h4> |
|
185 <b>__showContextMenuBack</b>(<i></i>) |
|
186 |
|
187 <p> |
|
188 Private slot called by the backMenu aboutToShow signal. |
|
189 </p> |
|
190 <a NAME="ProjectOthersBrowser.__showContextMenuMulti" ID="ProjectOthersBrowser.__showContextMenuMulti"></a> |
|
191 <h4>ProjectOthersBrowser.__showContextMenuMulti</h4> |
|
192 <b>__showContextMenuMulti</b>(<i></i>) |
|
193 |
|
194 <p> |
|
195 Private slot called by the multiMenu aboutToShow signal. |
|
196 </p> |
|
197 <a NAME="ProjectOthersBrowser.__showMimeType" ID="ProjectOthersBrowser.__showMimeType"></a> |
|
198 <h4>ProjectOthersBrowser.__showMimeType</h4> |
|
199 <b>__showMimeType</b>(<i></i>) |
|
200 |
|
201 <p> |
|
202 Private slot to show the mime type of the selected entry. |
|
203 </p> |
|
204 <a NAME="ProjectOthersBrowser._contextMenuRequested" ID="ProjectOthersBrowser._contextMenuRequested"></a> |
|
205 <h4>ProjectOthersBrowser._contextMenuRequested</h4> |
|
206 <b>_contextMenuRequested</b>(<i>coord</i>) |
|
207 |
|
208 <p> |
|
209 Protected slot to show the context menu. |
|
210 </p> |
|
211 <dl> |
|
212 |
|
213 <dt><i>coord</i></dt> |
|
214 <dd> |
|
215 the position of the mouse pointer (QPoint) |
|
216 </dd> |
|
217 </dl> |
|
218 <a NAME="ProjectOthersBrowser._createPopupMenus" ID="ProjectOthersBrowser._createPopupMenus"></a> |
|
219 <h4>ProjectOthersBrowser._createPopupMenus</h4> |
|
220 <b>_createPopupMenus</b>(<i></i>) |
|
221 |
|
222 <p> |
|
223 Protected overloaded method to generate the popup menu. |
|
224 </p> |
|
225 <a NAME="ProjectOthersBrowser._editPixmap" ID="ProjectOthersBrowser._editPixmap"></a> |
|
226 <h4>ProjectOthersBrowser._editPixmap</h4> |
|
227 <b>_editPixmap</b>(<i></i>) |
|
228 |
|
229 <p> |
|
230 Protected slot to handle the open in icon editor popup menu entry. |
|
231 </p> |
|
232 <a NAME="ProjectOthersBrowser._openFileInEditor" ID="ProjectOthersBrowser._openFileInEditor"></a> |
|
233 <h4>ProjectOthersBrowser._openFileInEditor</h4> |
|
234 <b>_openFileInEditor</b>(<i></i>) |
|
235 |
|
236 <p> |
|
237 Protected slot to handle the Open in Editor menu action. |
|
238 </p> |
|
239 <a NAME="ProjectOthersBrowser._openHexEditor" ID="ProjectOthersBrowser._openHexEditor"></a> |
|
240 <h4>ProjectOthersBrowser._openHexEditor</h4> |
|
241 <b>_openHexEditor</b>(<i></i>) |
|
242 |
|
243 <p> |
|
244 Protected slot to handle the open in hex editor popup menu entry. |
|
245 </p> |
|
246 <a NAME="ProjectOthersBrowser._openItem" ID="ProjectOthersBrowser._openItem"></a> |
|
247 <h4>ProjectOthersBrowser._openItem</h4> |
|
248 <b>_openItem</b>(<i></i>) |
|
249 |
|
250 <p> |
|
251 Protected slot to handle the open popup menu entry. |
|
252 </p> |
|
253 <a NAME="ProjectOthersBrowser._showContextMenu" ID="ProjectOthersBrowser._showContextMenu"></a> |
|
254 <h4>ProjectOthersBrowser._showContextMenu</h4> |
|
255 <b>_showContextMenu</b>(<i>menu</i>) |
|
256 |
|
257 <p> |
|
258 Protected slot called before the context menu is shown. |
|
259 </p> |
|
260 <p> |
|
261 It enables/disables the VCS menu entries depending on the overall |
|
262 VCS status and the file status. |
|
263 </p> |
|
264 <dl> |
|
265 |
|
266 <dt><i>menu</i></dt> |
|
267 <dd> |
|
268 Reference to the popup menu (QPopupMenu) |
|
269 </dd> |
|
270 </dl> |
|
271 <div align="right"><a href="#top">Up</a></div> |
|
272 <hr /> |
|
273 </body></html> |