eric7/Documentation/Source/eric7.MultiProject.MultiProject.html

branch
eric7
changeset 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8371:d6062691d424 8372:e0227a7c850e
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.MultiProject.MultiProject</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body>
22 <a NAME="top" ID="top"></a>
23 <h1>eric7.MultiProject.MultiProject</h1>
24
25 <p>
26 Module implementing the multi project management functionality.
27 </p>
28 <h3>Global Attributes</h3>
29
30 <table>
31 <tr><td>None</td></tr>
32 </table>
33 <h3>Classes</h3>
34
35 <table>
36
37 <tr>
38 <td><a href="#MultiProject">MultiProject</a></td>
39 <td>Class implementing the project management functionality.</td>
40 </tr>
41 </table>
42 <h3>Functions</h3>
43
44 <table>
45 <tr><td>None</td></tr>
46 </table>
47 <hr />
48 <hr />
49 <a NAME="MultiProject" ID="MultiProject"></a>
50 <h2>MultiProject</h2>
51
52 <p>
53 Class implementing the project management functionality.
54 </p>
55 <h3>Signals</h3>
56 <dl>
57
58 <dt>dirty(bool)</dt>
59 <dd>
60 emitted when the dirty state changes
61 </dd>
62 <dt>multiProjectClosed()</dt>
63 <dd>
64 emitted after a multi project was closed
65 </dd>
66 <dt>multiProjectOpened()</dt>
67 <dd>
68 emitted after a multi project file was read
69 </dd>
70 <dt>multiProjectPropertiesChanged()</dt>
71 <dd>
72 emitted after the multi project
73 properties were changed
74 </dd>
75 <dt>newMultiProject()</dt>
76 <dd>
77 emitted after a new multi project was generated
78 </dd>
79 <dt>projectAdded(project data dict)</dt>
80 <dd>
81 emitted after a project entry
82 has been added
83 </dd>
84 <dt>projectDataChanged(project data dict)</dt>
85 <dd>
86 emitted after a project entry
87 has been changed
88 </dd>
89 <dt>projectOpened(filename)</dt>
90 <dd>
91 emitted after the project has been opened
92 </dd>
93 <dt>projectRemoved(project data dict)</dt>
94 <dd>
95 emitted after a project entry
96 has been removed
97 </dd>
98 <dt>showMenu(string, QMenu)</dt>
99 <dd>
100 emitted when a menu is about to be shown.
101 The name of the menu and a reference to the menu are given.
102 </dd>
103 </dl>
104 <h3>Derived from</h3>
105 QObject
106 <h3>Class Attributes</h3>
107
108 <table>
109 <tr><td>None</td></tr>
110 </table>
111 <h3>Class Methods</h3>
112
113 <table>
114 <tr><td>None</td></tr>
115 </table>
116 <h3>Methods</h3>
117
118 <table>
119
120 <tr>
121 <td><a href="#MultiProject.__init__">MultiProject</a></td>
122 <td>Constructor</td>
123 </tr>
124 <tr>
125 <td><a href="#MultiProject.__checkFilesExist">__checkFilesExist</a></td>
126 <td>Private method to check, if the files in a list exist.</td>
127 </tr>
128 <tr>
129 <td><a href="#MultiProject.__extractCategories">__extractCategories</a></td>
130 <td>Private slot to extract the categories used in the project definitions.</td>
131 </tr>
132 <tr>
133 <td><a href="#MultiProject.__initData">__initData</a></td>
134 <td>Private method to initialize the multi project data part.</td>
135 </tr>
136 <tr>
137 <td><a href="#MultiProject.__loadRecent">__loadRecent</a></td>
138 <td>Private method to load the recently opened multi project filenames.</td>
139 </tr>
140 <tr>
141 <td><a href="#MultiProject.__newMultiProject">__newMultiProject</a></td>
142 <td>Private slot to build a new multi project.</td>
143 </tr>
144 <tr>
145 <td><a href="#MultiProject.__openMasterProject">__openMasterProject</a></td>
146 <td>Private slot to open the master project.</td>
147 </tr>
148 <tr>
149 <td><a href="#MultiProject.__openRecent">__openRecent</a></td>
150 <td>Private method to open a multi project from the list of rencently opened multi projects.</td>
151 </tr>
152 <tr>
153 <td><a href="#MultiProject.__readMultiProject">__readMultiProject</a></td>
154 <td>Private method to read in a multi project (.emj, .e4m, .e5m) file.</td>
155 </tr>
156 <tr>
157 <td><a href="#MultiProject.__saveRecent">__saveRecent</a></td>
158 <td>Private method to save the list of recently opened filenames.</td>
159 </tr>
160 <tr>
161 <td><a href="#MultiProject.__showContextMenuRecent">__showContextMenuRecent</a></td>
162 <td>Private method to set up the recent multi projects menu.</td>
163 </tr>
164 <tr>
165 <td><a href="#MultiProject.__showMenu">__showMenu</a></td>
166 <td>Private method to set up the multi project menu.</td>
167 </tr>
168 <tr>
169 <td><a href="#MultiProject.__showProperties">__showProperties</a></td>
170 <td>Private slot to display the properties dialog.</td>
171 </tr>
172 <tr>
173 <td><a href="#MultiProject.__syncRecent">__syncRecent</a></td>
174 <td>Private method to synchronize the list of recently opened multi projects with the central store.</td>
175 </tr>
176 <tr>
177 <td><a href="#MultiProject.__writeMultiProject">__writeMultiProject</a></td>
178 <td>Private method to save the multi project infos to a multi project file.</td>
179 </tr>
180 <tr>
181 <td><a href="#MultiProject.addEricActions">addEricActions</a></td>
182 <td>Public method to add actions to the list of actions.</td>
183 </tr>
184 <tr>
185 <td><a href="#MultiProject.addNewProject">addNewProject</a></td>
186 <td>Public slot used to add a new project to the multi-project.</td>
187 </tr>
188 <tr>
189 <td><a href="#MultiProject.addProject">addProject</a></td>
190 <td>Public method to add a project to the multi-project.</td>
191 </tr>
192 <tr>
193 <td><a href="#MultiProject.changeProjectProperties">changeProjectProperties</a></td>
194 <td>Public method to change the data of a project entry.</td>
195 </tr>
196 <tr>
197 <td><a href="#MultiProject.checkDirty">checkDirty</a></td>
198 <td>Public method to check the dirty status and open a message window.</td>
199 </tr>
200 <tr>
201 <td><a href="#MultiProject.clearRecent">clearRecent</a></td>
202 <td>Public method to clear the recent multi projects menu.</td>
203 </tr>
204 <tr>
205 <td><a href="#MultiProject.closeMultiProject">closeMultiProject</a></td>
206 <td>Public slot to close the current multi project.</td>
207 </tr>
208 <tr>
209 <td><a href="#MultiProject.copyProject">copyProject</a></td>
210 <td>Public method to copy the project with given UID on disk.</td>
211 </tr>
212 <tr>
213 <td><a href="#MultiProject.deleteProject">deleteProject</a></td>
214 <td>Public slot to delete project(s) from the multi project and disk.</td>
215 </tr>
216 <tr>
217 <td><a href="#MultiProject.getActions">getActions</a></td>
218 <td>Public method to get a list of all actions.</td>
219 </tr>
220 <tr>
221 <td><a href="#MultiProject.getCategories">getCategories</a></td>
222 <td>Public method to get the list of defined categories.</td>
223 </tr>
224 <tr>
225 <td><a href="#MultiProject.getDependantProjectFiles">getDependantProjectFiles</a></td>
226 <td>Public method to get the filenames of the dependent projects.</td>
227 </tr>
228 <tr>
229 <td><a href="#MultiProject.getMasterProjectFile">getMasterProjectFile</a></td>
230 <td>Public method to get the filename of the master project.</td>
231 </tr>
232 <tr>
233 <td><a href="#MultiProject.getMenu">getMenu</a></td>
234 <td>Public method to get a reference to the main menu or a submenu.</td>
235 </tr>
236 <tr>
237 <td><a href="#MultiProject.getMostRecent">getMostRecent</a></td>
238 <td>Public method to get the most recently opened multiproject.</td>
239 </tr>
240 <tr>
241 <td><a href="#MultiProject.getMultiProjectFile">getMultiProjectFile</a></td>
242 <td>Public method to get the path of the multi project file.</td>
243 </tr>
244 <tr>
245 <td><a href="#MultiProject.getMultiProjectPath">getMultiProjectPath</a></td>
246 <td>Public method to get the multi project path.</td>
247 </tr>
248 <tr>
249 <td><a href="#MultiProject.getProject">getProject</a></td>
250 <td>Public method to get a reference to a project entry.</td>
251 </tr>
252 <tr>
253 <td><a href="#MultiProject.getProjects">getProjects</a></td>
254 <td>Public method to get all project entries.</td>
255 </tr>
256 <tr>
257 <td><a href="#MultiProject.initActions">initActions</a></td>
258 <td>Public slot to initialize the multi project related actions.</td>
259 </tr>
260 <tr>
261 <td><a href="#MultiProject.initMenu">initMenu</a></td>
262 <td>Public slot to initialize the multi project menu.</td>
263 </tr>
264 <tr>
265 <td><a href="#MultiProject.initToolbar">initToolbar</a></td>
266 <td>Public slot to initialize the multi project toolbar.</td>
267 </tr>
268 <tr>
269 <td><a href="#MultiProject.isDirty">isDirty</a></td>
270 <td>Public method to return the dirty state.</td>
271 </tr>
272 <tr>
273 <td><a href="#MultiProject.isOpen">isOpen</a></td>
274 <td>Public method to return the opened state.</td>
275 </tr>
276 <tr>
277 <td><a href="#MultiProject.openMultiProject">openMultiProject</a></td>
278 <td>Public slot to open a multi project.</td>
279 </tr>
280 <tr>
281 <td><a href="#MultiProject.openProject">openProject</a></td>
282 <td>Public slot to open a project.</td>
283 </tr>
284 <tr>
285 <td><a href="#MultiProject.removeEricActions">removeEricActions</a></td>
286 <td>Public method to remove actions from the list of actions.</td>
287 </tr>
288 <tr>
289 <td><a href="#MultiProject.removeProject">removeProject</a></td>
290 <td>Public slot to remove a project from the multi project.</td>
291 </tr>
292 <tr>
293 <td><a href="#MultiProject.saveMultiProject">saveMultiProject</a></td>
294 <td>Public slot to save the current multi project.</td>
295 </tr>
296 <tr>
297 <td><a href="#MultiProject.saveMultiProjectAs">saveMultiProjectAs</a></td>
298 <td>Public slot to save the current multi project to a different file.</td>
299 </tr>
300 <tr>
301 <td><a href="#MultiProject.setDirty">setDirty</a></td>
302 <td>Public method to set the dirty state.</td>
303 </tr>
304 </table>
305 <h3>Static Methods</h3>
306
307 <table>
308 <tr><td>None</td></tr>
309 </table>
310
311 <a NAME="MultiProject.__init__" ID="MultiProject.__init__"></a>
312 <h4>MultiProject (Constructor)</h4>
313 <b>MultiProject</b>(<i>project, parent=None, filename=None</i>)
314
315 <p>
316 Constructor
317 </p>
318 <dl>
319
320 <dt><i>project</i></dt>
321 <dd>
322 reference to the project object (Project.Project)
323 </dd>
324 <dt><i>parent</i></dt>
325 <dd>
326 parent widget (usually the ui object) (QWidget)
327 </dd>
328 <dt><i>filename</i></dt>
329 <dd>
330 optional filename of a multi project file to open
331 (string)
332 </dd>
333 </dl>
334 <a NAME="MultiProject.__checkFilesExist" ID="MultiProject.__checkFilesExist"></a>
335 <h4>MultiProject.__checkFilesExist</h4>
336 <b>__checkFilesExist</b>(<i></i>)
337
338 <p>
339 Private method to check, if the files in a list exist.
340 </p>
341 <p>
342 The project files are checked for existance in the
343 filesystem. Non existant projects are removed from the list and the
344 dirty state of the multi project is changed accordingly.
345 </p>
346 <a NAME="MultiProject.__extractCategories" ID="MultiProject.__extractCategories"></a>
347 <h4>MultiProject.__extractCategories</h4>
348 <b>__extractCategories</b>(<i></i>)
349
350 <p>
351 Private slot to extract the categories used in the project definitions.
352 </p>
353 <a NAME="MultiProject.__initData" ID="MultiProject.__initData"></a>
354 <h4>MultiProject.__initData</h4>
355 <b>__initData</b>(<i></i>)
356
357 <p>
358 Private method to initialize the multi project data part.
359 </p>
360 <a NAME="MultiProject.__loadRecent" ID="MultiProject.__loadRecent"></a>
361 <h4>MultiProject.__loadRecent</h4>
362 <b>__loadRecent</b>(<i></i>)
363
364 <p>
365 Private method to load the recently opened multi project filenames.
366 </p>
367 <a NAME="MultiProject.__newMultiProject" ID="MultiProject.__newMultiProject"></a>
368 <h4>MultiProject.__newMultiProject</h4>
369 <b>__newMultiProject</b>(<i></i>)
370
371 <p>
372 Private slot to build a new multi project.
373 </p>
374 <p>
375 This method displays the new multi project dialog and initializes
376 the multi project object with the data entered.
377 </p>
378 <a NAME="MultiProject.__openMasterProject" ID="MultiProject.__openMasterProject"></a>
379 <h4>MultiProject.__openMasterProject</h4>
380 <b>__openMasterProject</b>(<i>reopen=True</i>)
381
382 <p>
383 Private slot to open the master project.
384 </p>
385 <dl>
386
387 <dt><i>reopen</i></dt>
388 <dd>
389 flag indicating, that the master project should be
390 reopened, if it has been opened already (boolean)
391 </dd>
392 </dl>
393 <a NAME="MultiProject.__openRecent" ID="MultiProject.__openRecent"></a>
394 <h4>MultiProject.__openRecent</h4>
395 <b>__openRecent</b>(<i>act</i>)
396
397 <p>
398 Private method to open a multi project from the list of rencently
399 opened multi projects.
400 </p>
401 <dl>
402
403 <dt><i>act</i></dt>
404 <dd>
405 reference to the action that triggered (QAction)
406 </dd>
407 </dl>
408 <a NAME="MultiProject.__readMultiProject" ID="MultiProject.__readMultiProject"></a>
409 <h4>MultiProject.__readMultiProject</h4>
410 <b>__readMultiProject</b>(<i>fn</i>)
411
412 <p>
413 Private method to read in a multi project (.emj, .e4m, .e5m) file.
414 </p>
415 <dl>
416
417 <dt><i>fn</i></dt>
418 <dd>
419 filename of the multi project file to be read (string)
420 </dd>
421 </dl>
422 <dl>
423 <dt>Return:</dt>
424 <dd>
425 flag indicating success
426 </dd>
427 </dl>
428 <a NAME="MultiProject.__saveRecent" ID="MultiProject.__saveRecent"></a>
429 <h4>MultiProject.__saveRecent</h4>
430 <b>__saveRecent</b>(<i></i>)
431
432 <p>
433 Private method to save the list of recently opened filenames.
434 </p>
435 <a NAME="MultiProject.__showContextMenuRecent" ID="MultiProject.__showContextMenuRecent"></a>
436 <h4>MultiProject.__showContextMenuRecent</h4>
437 <b>__showContextMenuRecent</b>(<i></i>)
438
439 <p>
440 Private method to set up the recent multi projects menu.
441 </p>
442 <a NAME="MultiProject.__showMenu" ID="MultiProject.__showMenu"></a>
443 <h4>MultiProject.__showMenu</h4>
444 <b>__showMenu</b>(<i></i>)
445
446 <p>
447 Private method to set up the multi project menu.
448 </p>
449 <a NAME="MultiProject.__showProperties" ID="MultiProject.__showProperties"></a>
450 <h4>MultiProject.__showProperties</h4>
451 <b>__showProperties</b>(<i></i>)
452
453 <p>
454 Private slot to display the properties dialog.
455 </p>
456 <a NAME="MultiProject.__syncRecent" ID="MultiProject.__syncRecent"></a>
457 <h4>MultiProject.__syncRecent</h4>
458 <b>__syncRecent</b>(<i></i>)
459
460 <p>
461 Private method to synchronize the list of recently opened multi
462 projects with the central store.
463 </p>
464 <a NAME="MultiProject.__writeMultiProject" ID="MultiProject.__writeMultiProject"></a>
465 <h4>MultiProject.__writeMultiProject</h4>
466 <b>__writeMultiProject</b>(<i>fn=None</i>)
467
468 <p>
469 Private method to save the multi project infos to a multi project file.
470 </p>
471 <dl>
472
473 <dt><i>fn</i></dt>
474 <dd>
475 optional filename of the multi project file to be written.
476 If fn is None, the filename stored in the multi project object
477 is used. This is the 'save' action. If fn is given, this filename
478 is used instead of the one in the multi project object. This is the
479 'save as' action.
480 </dd>
481 </dl>
482 <dl>
483 <dt>Return:</dt>
484 <dd>
485 flag indicating success
486 </dd>
487 </dl>
488 <a NAME="MultiProject.addEricActions" ID="MultiProject.addEricActions"></a>
489 <h4>MultiProject.addEricActions</h4>
490 <b>addEricActions</b>(<i>actions</i>)
491
492 <p>
493 Public method to add actions to the list of actions.
494 </p>
495 <dl>
496
497 <dt><i>actions</i></dt>
498 <dd>
499 list of actions (list of EricAction)
500 </dd>
501 </dl>
502 <a NAME="MultiProject.addNewProject" ID="MultiProject.addNewProject"></a>
503 <h4>MultiProject.addNewProject</h4>
504 <b>addNewProject</b>(<i>startdir="", category=""</i>)
505
506 <p>
507 Public slot used to add a new project to the multi-project.
508 </p>
509 <dl>
510
511 <dt><i>startdir</i> (str)</dt>
512 <dd>
513 start directory for the selection dialog
514 </dd>
515 <dt><i>category</i> (str)</dt>
516 <dd>
517 category to be preset
518 </dd>
519 </dl>
520 <a NAME="MultiProject.addProject" ID="MultiProject.addProject"></a>
521 <h4>MultiProject.addProject</h4>
522 <b>addProject</b>(<i>project</i>)
523
524 <p>
525 Public method to add a project to the multi-project.
526 </p>
527 <dl>
528
529 <dt><i>project</i> (dict)</dt>
530 <dd>
531 dictionary containing the project data to be added
532 </dd>
533 </dl>
534 <a NAME="MultiProject.changeProjectProperties" ID="MultiProject.changeProjectProperties"></a>
535 <h4>MultiProject.changeProjectProperties</h4>
536 <b>changeProjectProperties</b>(<i>pro</i>)
537
538 <p>
539 Public method to change the data of a project entry.
540 </p>
541 <dl>
542
543 <dt><i>pro</i></dt>
544 <dd>
545 dictionary with the project data (string)
546 </dd>
547 </dl>
548 <a NAME="MultiProject.checkDirty" ID="MultiProject.checkDirty"></a>
549 <h4>MultiProject.checkDirty</h4>
550 <b>checkDirty</b>(<i></i>)
551
552 <p>
553 Public method to check the dirty status and open a message window.
554 </p>
555 <dl>
556 <dt>Return:</dt>
557 <dd>
558 flag indicating whether this operation was successful (boolean)
559 </dd>
560 </dl>
561 <a NAME="MultiProject.clearRecent" ID="MultiProject.clearRecent"></a>
562 <h4>MultiProject.clearRecent</h4>
563 <b>clearRecent</b>(<i></i>)
564
565 <p>
566 Public method to clear the recent multi projects menu.
567 </p>
568 <a NAME="MultiProject.closeMultiProject" ID="MultiProject.closeMultiProject"></a>
569 <h4>MultiProject.closeMultiProject</h4>
570 <b>closeMultiProject</b>(<i></i>)
571
572 <p>
573 Public slot to close the current multi project.
574 </p>
575 <dl>
576 <dt>Return:</dt>
577 <dd>
578 flag indicating success (boolean)
579 </dd>
580 </dl>
581 <a NAME="MultiProject.copyProject" ID="MultiProject.copyProject"></a>
582 <h4>MultiProject.copyProject</h4>
583 <b>copyProject</b>(<i>uid</i>)
584
585 <p>
586 Public method to copy the project with given UID on disk.
587 </p>
588 <dl>
589
590 <dt><i>uid</i> (str)</dt>
591 <dd>
592 UID of the project to copy
593 </dd>
594 </dl>
595 <a NAME="MultiProject.deleteProject" ID="MultiProject.deleteProject"></a>
596 <h4>MultiProject.deleteProject</h4>
597 <b>deleteProject</b>(<i>uid</i>)
598
599 <p>
600 Public slot to delete project(s) from the multi project and disk.
601 </p>
602 <dl>
603
604 <dt><i>uid</i> (str)</dt>
605 <dd>
606 UID of the project to be removed from the multi
607 project
608 </dd>
609 </dl>
610 <a NAME="MultiProject.getActions" ID="MultiProject.getActions"></a>
611 <h4>MultiProject.getActions</h4>
612 <b>getActions</b>(<i></i>)
613
614 <p>
615 Public method to get a list of all actions.
616 </p>
617 <dl>
618 <dt>Return:</dt>
619 <dd>
620 list of all actions (list of EricAction)
621 </dd>
622 </dl>
623 <a NAME="MultiProject.getCategories" ID="MultiProject.getCategories"></a>
624 <h4>MultiProject.getCategories</h4>
625 <b>getCategories</b>(<i></i>)
626
627 <p>
628 Public method to get the list of defined categories.
629 </p>
630 <dl>
631 <dt>Return:</dt>
632 <dd>
633 list of categories (list of string)
634 </dd>
635 </dl>
636 <a NAME="MultiProject.getDependantProjectFiles" ID="MultiProject.getDependantProjectFiles"></a>
637 <h4>MultiProject.getDependantProjectFiles</h4>
638 <b>getDependantProjectFiles</b>(<i></i>)
639
640 <p>
641 Public method to get the filenames of the dependent projects.
642 </p>
643 <dl>
644 <dt>Return:</dt>
645 <dd>
646 names of the dependent project files (list of strings)
647 </dd>
648 </dl>
649 <a NAME="MultiProject.getMasterProjectFile" ID="MultiProject.getMasterProjectFile"></a>
650 <h4>MultiProject.getMasterProjectFile</h4>
651 <b>getMasterProjectFile</b>(<i></i>)
652
653 <p>
654 Public method to get the filename of the master project.
655 </p>
656 <dl>
657 <dt>Return:</dt>
658 <dd>
659 name of the master project file (string)
660 </dd>
661 </dl>
662 <a NAME="MultiProject.getMenu" ID="MultiProject.getMenu"></a>
663 <h4>MultiProject.getMenu</h4>
664 <b>getMenu</b>(<i>menuName</i>)
665
666 <p>
667 Public method to get a reference to the main menu or a submenu.
668 </p>
669 <dl>
670
671 <dt><i>menuName</i></dt>
672 <dd>
673 name of the menu (string)
674 </dd>
675 </dl>
676 <dl>
677 <dt>Return:</dt>
678 <dd>
679 reference to the requested menu (QMenu) or None
680 </dd>
681 </dl>
682 <a NAME="MultiProject.getMostRecent" ID="MultiProject.getMostRecent"></a>
683 <h4>MultiProject.getMostRecent</h4>
684 <b>getMostRecent</b>(<i></i>)
685
686 <p>
687 Public method to get the most recently opened multiproject.
688 </p>
689 <dl>
690 <dt>Return:</dt>
691 <dd>
692 path of the most recently opened multiproject (string)
693 </dd>
694 </dl>
695 <a NAME="MultiProject.getMultiProjectFile" ID="MultiProject.getMultiProjectFile"></a>
696 <h4>MultiProject.getMultiProjectFile</h4>
697 <b>getMultiProjectFile</b>(<i></i>)
698
699 <p>
700 Public method to get the path of the multi project file.
701 </p>
702 <dl>
703 <dt>Return:</dt>
704 <dd>
705 path of the multi project file (string)
706 </dd>
707 </dl>
708 <a NAME="MultiProject.getMultiProjectPath" ID="MultiProject.getMultiProjectPath"></a>
709 <h4>MultiProject.getMultiProjectPath</h4>
710 <b>getMultiProjectPath</b>(<i></i>)
711
712 <p>
713 Public method to get the multi project path.
714 </p>
715 <dl>
716 <dt>Return:</dt>
717 <dd>
718 multi project path (string)
719 </dd>
720 </dl>
721 <a NAME="MultiProject.getProject" ID="MultiProject.getProject"></a>
722 <h4>MultiProject.getProject</h4>
723 <b>getProject</b>(<i>uid</i>)
724
725 <p>
726 Public method to get a reference to a project entry.
727 </p>
728 <dl>
729
730 <dt><i>uid</i> (str)</dt>
731 <dd>
732 UID of the project to get
733 </dd>
734 </dl>
735 <dl>
736 <dt>Return:</dt>
737 <dd>
738 dictionary containing the project data
739 </dd>
740 </dl>
741 <dl>
742 <dt>Return Type:</dt>
743 <dd>
744 dict
745 </dd>
746 </dl>
747 <a NAME="MultiProject.getProjects" ID="MultiProject.getProjects"></a>
748 <h4>MultiProject.getProjects</h4>
749 <b>getProjects</b>(<i></i>)
750
751 <p>
752 Public method to get all project entries.
753 </p>
754 <dl>
755 <dt>Return:</dt>
756 <dd>
757 list of all project entries (list of dictionaries)
758 </dd>
759 </dl>
760 <a NAME="MultiProject.initActions" ID="MultiProject.initActions"></a>
761 <h4>MultiProject.initActions</h4>
762 <b>initActions</b>(<i></i>)
763
764 <p>
765 Public slot to initialize the multi project related actions.
766 </p>
767 <a NAME="MultiProject.initMenu" ID="MultiProject.initMenu"></a>
768 <h4>MultiProject.initMenu</h4>
769 <b>initMenu</b>(<i></i>)
770
771 <p>
772 Public slot to initialize the multi project menu.
773 </p>
774 <dl>
775 <dt>Return:</dt>
776 <dd>
777 the menu generated (QMenu)
778 </dd>
779 </dl>
780 <a NAME="MultiProject.initToolbar" ID="MultiProject.initToolbar"></a>
781 <h4>MultiProject.initToolbar</h4>
782 <b>initToolbar</b>(<i>toolbarManager</i>)
783
784 <p>
785 Public slot to initialize the multi project toolbar.
786 </p>
787 <dl>
788
789 <dt><i>toolbarManager</i></dt>
790 <dd>
791 reference to a toolbar manager object
792 (EricToolBarManager)
793 </dd>
794 </dl>
795 <dl>
796 <dt>Return:</dt>
797 <dd>
798 the toolbar generated (QToolBar)
799 </dd>
800 </dl>
801 <a NAME="MultiProject.isDirty" ID="MultiProject.isDirty"></a>
802 <h4>MultiProject.isDirty</h4>
803 <b>isDirty</b>(<i></i>)
804
805 <p>
806 Public method to return the dirty state.
807 </p>
808 <dl>
809 <dt>Return:</dt>
810 <dd>
811 dirty state (boolean)
812 </dd>
813 </dl>
814 <a NAME="MultiProject.isOpen" ID="MultiProject.isOpen"></a>
815 <h4>MultiProject.isOpen</h4>
816 <b>isOpen</b>(<i></i>)
817
818 <p>
819 Public method to return the opened state.
820 </p>
821 <dl>
822 <dt>Return:</dt>
823 <dd>
824 open state (boolean)
825 </dd>
826 </dl>
827 <a NAME="MultiProject.openMultiProject" ID="MultiProject.openMultiProject"></a>
828 <h4>MultiProject.openMultiProject</h4>
829 <b>openMultiProject</b>(<i>fn=None, openMaster=True</i>)
830
831 <p>
832 Public slot to open a multi project.
833 </p>
834 <dl>
835
836 <dt><i>fn</i> (str)</dt>
837 <dd>
838 optional filename of the multi project file to be
839 read
840 </dd>
841 <dt><i>openMaster</i> (bool)</dt>
842 <dd>
843 flag indicating, that the master project
844 should be opened depending on the configuration
845 </dd>
846 </dl>
847 <a NAME="MultiProject.openProject" ID="MultiProject.openProject"></a>
848 <h4>MultiProject.openProject</h4>
849 <b>openProject</b>(<i>filename</i>)
850
851 <p>
852 Public slot to open a project.
853 </p>
854 <dl>
855
856 <dt><i>filename</i></dt>
857 <dd>
858 filename of the project file (string)
859 </dd>
860 </dl>
861 <a NAME="MultiProject.removeEricActions" ID="MultiProject.removeEricActions"></a>
862 <h4>MultiProject.removeEricActions</h4>
863 <b>removeEricActions</b>(<i>actions</i>)
864
865 <p>
866 Public method to remove actions from the list of actions.
867 </p>
868 <dl>
869
870 <dt><i>actions</i></dt>
871 <dd>
872 list of actions (list of EricAction)
873 </dd>
874 </dl>
875 <a NAME="MultiProject.removeProject" ID="MultiProject.removeProject"></a>
876 <h4>MultiProject.removeProject</h4>
877 <b>removeProject</b>(<i>uid</i>)
878
879 <p>
880 Public slot to remove a project from the multi project.
881 </p>
882 <dl>
883
884 <dt><i>uid</i> (str)</dt>
885 <dd>
886 UID of the project to be removed from the multi
887 project
888 </dd>
889 </dl>
890 <a NAME="MultiProject.saveMultiProject" ID="MultiProject.saveMultiProject"></a>
891 <h4>MultiProject.saveMultiProject</h4>
892 <b>saveMultiProject</b>(<i></i>)
893
894 <p>
895 Public slot to save the current multi project.
896 </p>
897 <dl>
898 <dt>Return:</dt>
899 <dd>
900 flag indicating success
901 </dd>
902 </dl>
903 <dl>
904 <dt>Return Type:</dt>
905 <dd>
906 bool
907 </dd>
908 </dl>
909 <a NAME="MultiProject.saveMultiProjectAs" ID="MultiProject.saveMultiProjectAs"></a>
910 <h4>MultiProject.saveMultiProjectAs</h4>
911 <b>saveMultiProjectAs</b>(<i></i>)
912
913 <p>
914 Public slot to save the current multi project to a different file.
915 </p>
916 <dl>
917 <dt>Return:</dt>
918 <dd>
919 flag indicating success
920 </dd>
921 </dl>
922 <dl>
923 <dt>Return Type:</dt>
924 <dd>
925 bool
926 </dd>
927 </dl>
928 <a NAME="MultiProject.setDirty" ID="MultiProject.setDirty"></a>
929 <h4>MultiProject.setDirty</h4>
930 <b>setDirty</b>(<i>b</i>)
931
932 <p>
933 Public method to set the dirty state.
934 </p>
935 <p>
936 It emits the signal dirty(int).
937 </p>
938 <dl>
939
940 <dt><i>b</i></dt>
941 <dd>
942 dirty state (boolean)
943 </dd>
944 </dl>
945 <div align="right"><a href="#top">Up</a></div>
946 <hr />
947 </body></html>

eric ide

mercurial