3346 act.setWhatsThis(self.trUtf8( |
3346 act.setWhatsThis(self.trUtf8( |
3347 """<b>New...</b>""" |
3347 """<b>New...</b>""" |
3348 """<p>This opens a dialog for entering the info for a""" |
3348 """<p>This opens a dialog for entering the info for a""" |
3349 """ new project.</p>""" |
3349 """ new project.</p>""" |
3350 )) |
3350 )) |
3351 act.triggered.connect(self.newProject) |
3351 act.triggered[()].connect(self.newProject) |
3352 self.actions.append(act) |
3352 self.actions.append(act) |
3353 |
3353 |
3354 act = E5Action(self.trUtf8('Open project'), |
3354 act = E5Action(self.trUtf8('Open project'), |
3355 UI.PixmapCache.getIcon("projectOpen.png"), |
3355 UI.PixmapCache.getIcon("projectOpen.png"), |
3356 self.trUtf8('&Open...'), 0, 0, |
3356 self.trUtf8('&Open...'), 0, 0, |
3358 act.setStatusTip(self.trUtf8('Open an existing project')) |
3358 act.setStatusTip(self.trUtf8('Open an existing project')) |
3359 act.setWhatsThis(self.trUtf8( |
3359 act.setWhatsThis(self.trUtf8( |
3360 """<b>Open...</b>""" |
3360 """<b>Open...</b>""" |
3361 """<p>This opens an existing project.</p>""" |
3361 """<p>This opens an existing project.</p>""" |
3362 )) |
3362 )) |
3363 act.triggered.connect(self.openProject) |
3363 act.triggered[()].connect(self.openProject) |
3364 self.actions.append(act) |
3364 self.actions.append(act) |
3365 |
3365 |
3366 self.closeAct = E5Action(self.trUtf8('Close project'), |
3366 self.closeAct = E5Action(self.trUtf8('Close project'), |
3367 UI.PixmapCache.getIcon("projectClose.png"), |
3367 UI.PixmapCache.getIcon("projectClose.png"), |
3368 self.trUtf8('&Close'), 0, 0, self, 'project_close') |
3368 self.trUtf8('&Close'), 0, 0, self, 'project_close') |
3369 self.closeAct.setStatusTip(self.trUtf8('Close the current project')) |
3369 self.closeAct.setStatusTip(self.trUtf8('Close the current project')) |
3370 self.closeAct.setWhatsThis(self.trUtf8( |
3370 self.closeAct.setWhatsThis(self.trUtf8( |
3371 """<b>Close</b>""" |
3371 """<b>Close</b>""" |
3372 """<p>This closes the current project.</p>""" |
3372 """<p>This closes the current project.</p>""" |
3373 )) |
3373 )) |
3374 self.closeAct.triggered.connect(self.closeProject) |
3374 self.closeAct.triggered[()].connect(self.closeProject) |
3375 self.actions.append(self.closeAct) |
3375 self.actions.append(self.closeAct) |
3376 |
3376 |
3377 self.saveAct = E5Action(self.trUtf8('Save project'), |
3377 self.saveAct = E5Action(self.trUtf8('Save project'), |
3378 UI.PixmapCache.getIcon("projectSave.png"), |
3378 UI.PixmapCache.getIcon("projectSave.png"), |
3379 self.trUtf8('&Save'), 0, 0, self, 'project_save') |
3379 self.trUtf8('&Save'), 0, 0, self, 'project_save') |
3380 self.saveAct.setStatusTip(self.trUtf8('Save the current project')) |
3380 self.saveAct.setStatusTip(self.trUtf8('Save the current project')) |
3381 self.saveAct.setWhatsThis(self.trUtf8( |
3381 self.saveAct.setWhatsThis(self.trUtf8( |
3382 """<b>Save</b>""" |
3382 """<b>Save</b>""" |
3383 """<p>This saves the current project.</p>""" |
3383 """<p>This saves the current project.</p>""" |
3384 )) |
3384 )) |
3385 self.saveAct.triggered.connect(self.saveProject) |
3385 self.saveAct.triggered[()].connect(self.saveProject) |
3386 self.actions.append(self.saveAct) |
3386 self.actions.append(self.saveAct) |
3387 |
3387 |
3388 self.saveasAct = E5Action(self.trUtf8('Save project as'), |
3388 self.saveasAct = E5Action(self.trUtf8('Save project as'), |
3389 UI.PixmapCache.getIcon("projectSaveAs.png"), |
3389 UI.PixmapCache.getIcon("projectSaveAs.png"), |
3390 self.trUtf8('Save &as...'), 0, 0, self, 'project_save_as') |
3390 self.trUtf8('Save &as...'), 0, 0, self, 'project_save_as') |
3391 self.saveasAct.setStatusTip(self.trUtf8('Save the current project to a new file')) |
3391 self.saveasAct.setStatusTip(self.trUtf8('Save the current project to a new file')) |
3392 self.saveasAct.setWhatsThis(self.trUtf8( |
3392 self.saveasAct.setWhatsThis(self.trUtf8( |
3393 """<b>Save as</b>""" |
3393 """<b>Save as</b>""" |
3394 """<p>This saves the current project to a new file.</p>""" |
3394 """<p>This saves the current project to a new file.</p>""" |
3395 )) |
3395 )) |
3396 self.saveasAct.triggered.connect(self.saveProjectAs) |
3396 self.saveasAct.triggered[()].connect(self.saveProjectAs) |
3397 self.actions.append(self.saveasAct) |
3397 self.actions.append(self.saveasAct) |
3398 |
3398 |
3399 self.actGrp2 = createActionGroup(self) |
3399 self.actGrp2 = createActionGroup(self) |
3400 |
3400 |
3401 self.addFilesAct = E5Action(self.trUtf8('Add files to project'), |
3401 self.addFilesAct = E5Action(self.trUtf8('Add files to project'), |
3407 """<b>Add files...</b>""" |
3407 """<b>Add files...</b>""" |
3408 """<p>This opens a dialog for adding files""" |
3408 """<p>This opens a dialog for adding files""" |
3409 """ to the current project. The place to add is""" |
3409 """ to the current project. The place to add is""" |
3410 """ determined by the file extension.</p>""" |
3410 """ determined by the file extension.</p>""" |
3411 )) |
3411 )) |
3412 self.addFilesAct.triggered.connect(self.addFiles) |
3412 self.addFilesAct.triggered[()].connect(self.addFiles) |
3413 self.actions.append(self.addFilesAct) |
3413 self.actions.append(self.addFilesAct) |
3414 |
3414 |
3415 self.addDirectoryAct = E5Action(self.trUtf8('Add directory to project'), |
3415 self.addDirectoryAct = E5Action(self.trUtf8('Add directory to project'), |
3416 UI.PixmapCache.getIcon("dirOpen.png"), |
3416 UI.PixmapCache.getIcon("dirOpen.png"), |
3417 self.trUtf8('Add directory...'), 0, 0, |
3417 self.trUtf8('Add directory...'), 0, 0, |
3421 self.addDirectoryAct.setWhatsThis(self.trUtf8( |
3421 self.addDirectoryAct.setWhatsThis(self.trUtf8( |
3422 """<b>Add directory...</b>""" |
3422 """<b>Add directory...</b>""" |
3423 """<p>This opens a dialog for adding a directory""" |
3423 """<p>This opens a dialog for adding a directory""" |
3424 """ to the current project.</p>""" |
3424 """ to the current project.</p>""" |
3425 )) |
3425 )) |
3426 self.addDirectoryAct.triggered.connect(self.addDirectory) |
3426 self.addDirectoryAct.triggered[()].connect(self.addDirectory) |
3427 self.actions.append(self.addDirectoryAct) |
3427 self.actions.append(self.addDirectoryAct) |
3428 |
3428 |
3429 self.addLanguageAct = E5Action(self.trUtf8('Add translation to project'), |
3429 self.addLanguageAct = E5Action(self.trUtf8('Add translation to project'), |
3430 UI.PixmapCache.getIcon("linguist4.png"), |
3430 UI.PixmapCache.getIcon("linguist4.png"), |
3431 self.trUtf8('Add &translation...'), 0, 0, |
3431 self.trUtf8('Add &translation...'), 0, 0, |
3435 self.addLanguageAct.setWhatsThis(self.trUtf8( |
3435 self.addLanguageAct.setWhatsThis(self.trUtf8( |
3436 """<b>Add translation...</b>""" |
3436 """<b>Add translation...</b>""" |
3437 """<p>This opens a dialog for add a translation""" |
3437 """<p>This opens a dialog for add a translation""" |
3438 """ to the current project.</p>""" |
3438 """ to the current project.</p>""" |
3439 )) |
3439 )) |
3440 self.addLanguageAct.triggered.connect(self.addLanguage) |
3440 self.addLanguageAct.triggered[()].connect(self.addLanguage) |
3441 self.actions.append(self.addLanguageAct) |
3441 self.actions.append(self.addLanguageAct) |
3442 |
3442 |
3443 act = E5Action(self.trUtf8('Search new files'), |
3443 act = E5Action(self.trUtf8('Search new files'), |
3444 self.trUtf8('Searc&h new files...'), 0, 0, |
3444 self.trUtf8('Searc&h new files...'), 0, 0, |
3445 self.actGrp2,'project_search_new_files') |
3445 self.actGrp2,'project_search_new_files') |
3447 act.setWhatsThis(self.trUtf8( |
3447 act.setWhatsThis(self.trUtf8( |
3448 """<b>Search new files...</b>""" |
3448 """<b>Search new files...</b>""" |
3449 """<p>This searches for new files (sources, *.ui, *.idl) in the project""" |
3449 """<p>This searches for new files (sources, *.ui, *.idl) in the project""" |
3450 """ directory and registered subdirectories.</p>""" |
3450 """ directory and registered subdirectories.</p>""" |
3451 )) |
3451 )) |
3452 act.triggered.connect(self.__searchNewFiles) |
3452 act.triggered[()].connect(self.__searchNewFiles) |
3453 self.actions.append(act) |
3453 self.actions.append(act) |
3454 |
3454 |
3455 self.propsAct = E5Action(self.trUtf8('Project properties'), |
3455 self.propsAct = E5Action(self.trUtf8('Project properties'), |
3456 UI.PixmapCache.getIcon("projectProps.png"), |
3456 UI.PixmapCache.getIcon("projectProps.png"), |
3457 self.trUtf8('&Properties...'), 0, 0, self, 'project_properties') |
3457 self.trUtf8('&Properties...'), 0, 0, self, 'project_properties') |
3458 self.propsAct.setStatusTip(self.trUtf8('Show the project properties')) |
3458 self.propsAct.setStatusTip(self.trUtf8('Show the project properties')) |
3459 self.propsAct.setWhatsThis(self.trUtf8( |
3459 self.propsAct.setWhatsThis(self.trUtf8( |
3460 """<b>Properties...</b>""" |
3460 """<b>Properties...</b>""" |
3461 """<p>This shows a dialog to edit the project properties.</p>""" |
3461 """<p>This shows a dialog to edit the project properties.</p>""" |
3462 )) |
3462 )) |
3463 self.propsAct.triggered.connect(self.__showProperties) |
3463 self.propsAct.triggered[()].connect(self.__showProperties) |
3464 self.actions.append(self.propsAct) |
3464 self.actions.append(self.propsAct) |
3465 |
3465 |
3466 self.userPropsAct = E5Action(self.trUtf8('User project properties'), |
3466 self.userPropsAct = E5Action(self.trUtf8('User project properties'), |
3467 UI.PixmapCache.getIcon("projectUserProps.png"), |
3467 UI.PixmapCache.getIcon("projectUserProps.png"), |
3468 self.trUtf8('&User Properties...'), 0, 0, self, 'project_user_properties') |
3468 self.trUtf8('&User Properties...'), 0, 0, self, 'project_user_properties') |
3470 'Show the user specific project properties')) |
3470 'Show the user specific project properties')) |
3471 self.userPropsAct.setWhatsThis(self.trUtf8( |
3471 self.userPropsAct.setWhatsThis(self.trUtf8( |
3472 """<b>User Properties...</b>""" |
3472 """<b>User Properties...</b>""" |
3473 """<p>This shows a dialog to edit the user specific project properties.</p>""" |
3473 """<p>This shows a dialog to edit the user specific project properties.</p>""" |
3474 )) |
3474 )) |
3475 self.userPropsAct.triggered.connect(self.__showUserProperties) |
3475 self.userPropsAct.triggered[()].connect(self.__showUserProperties) |
3476 self.actions.append(self.userPropsAct) |
3476 self.actions.append(self.userPropsAct) |
3477 |
3477 |
3478 self.filetypesAct = E5Action(self.trUtf8('Filetype Associations'), |
3478 self.filetypesAct = E5Action(self.trUtf8('Filetype Associations'), |
3479 self.trUtf8('Filetype Associations...'), 0, 0, |
3479 self.trUtf8('Filetype Associations...'), 0, 0, |
3480 self, 'project_filetype_associatios') |
3480 self, 'project_filetype_associatios') |
3485 """<p>This shows a dialog to edit the filetype associations of the project.""" |
3485 """<p>This shows a dialog to edit the filetype associations of the project.""" |
3486 """ These associations determine the type (source, form, interface""" |
3486 """ These associations determine the type (source, form, interface""" |
3487 """ or others) with a filename pattern. They are used when adding a file""" |
3487 """ or others) with a filename pattern. They are used when adding a file""" |
3488 """ to the project and when performing a search for new files.</p>""" |
3488 """ to the project and when performing a search for new files.</p>""" |
3489 )) |
3489 )) |
3490 self.filetypesAct.triggered.connect(self.__showFiletypeAssociations) |
3490 self.filetypesAct.triggered[()].connect(self.__showFiletypeAssociations) |
3491 self.actions.append(self.filetypesAct) |
3491 self.actions.append(self.filetypesAct) |
3492 |
3492 |
3493 self.lexersAct = E5Action(self.trUtf8('Lexer Associations'), |
3493 self.lexersAct = E5Action(self.trUtf8('Lexer Associations'), |
3494 self.trUtf8('Lexer Associations...'), 0, 0, |
3494 self.trUtf8('Lexer Associations...'), 0, 0, |
3495 self, 'project_lexer_associatios') |
3495 self, 'project_lexer_associatios') |
3499 """<b>Lexer Associations...</b>""" |
3499 """<b>Lexer Associations...</b>""" |
3500 """<p>This shows a dialog to edit the lexer associations of the project.""" |
3500 """<p>This shows a dialog to edit the lexer associations of the project.""" |
3501 """ These associations override the global lexer associations. Lexers""" |
3501 """ These associations override the global lexer associations. Lexers""" |
3502 """ are used to highlight the editor text.</p>""" |
3502 """ are used to highlight the editor text.</p>""" |
3503 )) |
3503 )) |
3504 self.lexersAct.triggered.connect(self.__showLexerAssociations) |
3504 self.lexersAct.triggered[()].connect(self.__showLexerAssociations) |
3505 self.actions.append(self.lexersAct) |
3505 self.actions.append(self.lexersAct) |
3506 |
3506 |
3507 self.dbgActGrp = createActionGroup(self) |
3507 self.dbgActGrp = createActionGroup(self) |
3508 |
3508 |
3509 act = E5Action(self.trUtf8('Debugger Properties'), |
3509 act = E5Action(self.trUtf8('Debugger Properties'), |
3512 act.setStatusTip(self.trUtf8('Show the debugger properties')) |
3512 act.setStatusTip(self.trUtf8('Show the debugger properties')) |
3513 act.setWhatsThis(self.trUtf8( |
3513 act.setWhatsThis(self.trUtf8( |
3514 """<b>Debugger Properties...</b>""" |
3514 """<b>Debugger Properties...</b>""" |
3515 """<p>This shows a dialog to edit project specific debugger settings.</p>""" |
3515 """<p>This shows a dialog to edit project specific debugger settings.</p>""" |
3516 )) |
3516 )) |
3517 act.triggered.connect(self.__showDebugProperties) |
3517 act.triggered[()].connect(self.__showDebugProperties) |
3518 self.actions.append(act) |
3518 self.actions.append(act) |
3519 |
3519 |
3520 act = E5Action(self.trUtf8('Load'), |
3520 act = E5Action(self.trUtf8('Load'), |
3521 self.trUtf8('&Load'), 0, 0, |
3521 self.trUtf8('&Load'), 0, 0, |
3522 self.dbgActGrp, 'project_debugger_properties_load') |
3522 self.dbgActGrp, 'project_debugger_properties_load') |
3523 act.setStatusTip(self.trUtf8('Load the debugger properties')) |
3523 act.setStatusTip(self.trUtf8('Load the debugger properties')) |
3524 act.setWhatsThis(self.trUtf8( |
3524 act.setWhatsThis(self.trUtf8( |
3525 """<b>Load Debugger Properties</b>""" |
3525 """<b>Load Debugger Properties</b>""" |
3526 """<p>This loads the project specific debugger settings.</p>""" |
3526 """<p>This loads the project specific debugger settings.</p>""" |
3527 )) |
3527 )) |
3528 act.triggered.connect(self.__readDebugProperties) |
3528 act.triggered[()].connect(self.__readDebugProperties) |
3529 self.actions.append(act) |
3529 self.actions.append(act) |
3530 |
3530 |
3531 act = E5Action(self.trUtf8('Save'), |
3531 act = E5Action(self.trUtf8('Save'), |
3532 self.trUtf8('&Save'), 0, 0, |
3532 self.trUtf8('&Save'), 0, 0, |
3533 self.dbgActGrp, 'project_debugger_properties_save') |
3533 self.dbgActGrp, 'project_debugger_properties_save') |
3534 act.setStatusTip(self.trUtf8('Save the debugger properties')) |
3534 act.setStatusTip(self.trUtf8('Save the debugger properties')) |
3535 act.setWhatsThis(self.trUtf8( |
3535 act.setWhatsThis(self.trUtf8( |
3536 """<b>Save Debugger Properties</b>""" |
3536 """<b>Save Debugger Properties</b>""" |
3537 """<p>This saves the project specific debugger settings.</p>""" |
3537 """<p>This saves the project specific debugger settings.</p>""" |
3538 )) |
3538 )) |
3539 act.triggered.connect(self.__writeDebugProperties) |
3539 act.triggered[()].connect(self.__writeDebugProperties) |
3540 self.actions.append(act) |
3540 self.actions.append(act) |
3541 |
3541 |
3542 act = E5Action(self.trUtf8('Delete'), |
3542 act = E5Action(self.trUtf8('Delete'), |
3543 self.trUtf8('&Delete'), 0, 0, |
3543 self.trUtf8('&Delete'), 0, 0, |
3544 self.dbgActGrp, 'project_debugger_properties_delete') |
3544 self.dbgActGrp, 'project_debugger_properties_delete') |
3546 act.setWhatsThis(self.trUtf8( |
3546 act.setWhatsThis(self.trUtf8( |
3547 """<b>Delete Debugger Properties</b>""" |
3547 """<b>Delete Debugger Properties</b>""" |
3548 """<p>This deletes the file containing the project specific""" |
3548 """<p>This deletes the file containing the project specific""" |
3549 """ debugger settings.</p>""" |
3549 """ debugger settings.</p>""" |
3550 )) |
3550 )) |
3551 act.triggered.connect(self.__deleteDebugProperties) |
3551 act.triggered[()].connect(self.__deleteDebugProperties) |
3552 self.actions.append(act) |
3552 self.actions.append(act) |
3553 |
3553 |
3554 act = E5Action(self.trUtf8('Reset'), |
3554 act = E5Action(self.trUtf8('Reset'), |
3555 self.trUtf8('&Reset'), 0, 0, |
3555 self.trUtf8('&Reset'), 0, 0, |
3556 self.dbgActGrp, 'project_debugger_properties_resets') |
3556 self.dbgActGrp, 'project_debugger_properties_resets') |
3557 act.setStatusTip(self.trUtf8('Reset the debugger properties')) |
3557 act.setStatusTip(self.trUtf8('Reset the debugger properties')) |
3558 act.setWhatsThis(self.trUtf8( |
3558 act.setWhatsThis(self.trUtf8( |
3559 """<b>Reset Debugger Properties</b>""" |
3559 """<b>Reset Debugger Properties</b>""" |
3560 """<p>This resets the project specific debugger settings.</p>""" |
3560 """<p>This resets the project specific debugger settings.</p>""" |
3561 )) |
3561 )) |
3562 act.triggered.connect(self.__initDebugProperties) |
3562 act.triggered[()].connect(self.__initDebugProperties) |
3563 self.actions.append(act) |
3563 self.actions.append(act) |
3564 |
3564 |
3565 self.sessActGrp = createActionGroup(self) |
3565 self.sessActGrp = createActionGroup(self) |
3566 |
3566 |
3567 act = E5Action(self.trUtf8('Load session'), |
3567 act = E5Action(self.trUtf8('Load session'), |
3576 """- all breakpoint<br>""" |
3576 """- all breakpoint<br>""" |
3577 """- the commandline arguments<br>""" |
3577 """- the commandline arguments<br>""" |
3578 """- the working directory<br>""" |
3578 """- the working directory<br>""" |
3579 """- the exception reporting flag</p>""" |
3579 """- the exception reporting flag</p>""" |
3580 )) |
3580 )) |
3581 act.triggered.connect(self.__readSession) |
3581 act.triggered[()].connect(self.__readSession) |
3582 self.actions.append(act) |
3582 self.actions.append(act) |
3583 |
3583 |
3584 act = E5Action(self.trUtf8('Save session'), |
3584 act = E5Action(self.trUtf8('Save session'), |
3585 self.trUtf8('Save session'), 0, 0, |
3585 self.trUtf8('Save session'), 0, 0, |
3586 self.sessActGrp, 'project_save_session') |
3586 self.sessActGrp, 'project_save_session') |
3593 """- all breakpoint<br>""" |
3593 """- all breakpoint<br>""" |
3594 """- the commandline arguments<br>""" |
3594 """- the commandline arguments<br>""" |
3595 """- the working directory<br>""" |
3595 """- the working directory<br>""" |
3596 """- the exception reporting flag</p>""" |
3596 """- the exception reporting flag</p>""" |
3597 )) |
3597 )) |
3598 act.triggered.connect(self.__writeSession) |
3598 act.triggered[()].connect(self.__writeSession) |
3599 self.actions.append(act) |
3599 self.actions.append(act) |
3600 |
3600 |
3601 act = E5Action(self.trUtf8('Delete session'), |
3601 act = E5Action(self.trUtf8('Delete session'), |
3602 self.trUtf8('Delete session'), 0, 0, |
3602 self.trUtf8('Delete session'), 0, 0, |
3603 self.sessActGrp, 'project_delete_session') |
3603 self.sessActGrp, 'project_delete_session') |
3604 act.setStatusTip(self.trUtf8('Delete the projects session file.')) |
3604 act.setStatusTip(self.trUtf8('Delete the projects session file.')) |
3605 act.setWhatsThis(self.trUtf8( |
3605 act.setWhatsThis(self.trUtf8( |
3606 """<b>Delete session</b>""" |
3606 """<b>Delete session</b>""" |
3607 """<p>This deletes the projects session file</p>""" |
3607 """<p>This deletes the projects session file</p>""" |
3608 )) |
3608 )) |
3609 act.triggered.connect(self.__deleteSession) |
3609 act.triggered[()].connect(self.__deleteSession) |
3610 self.actions.append(act) |
3610 self.actions.append(act) |
3611 |
3611 |
3612 self.chkGrp = createActionGroup(self) |
3612 self.chkGrp = createActionGroup(self) |
3613 |
3613 |
3614 self.codeMetricsAct = E5Action(self.trUtf8('Code Metrics'), |
3614 self.codeMetricsAct = E5Action(self.trUtf8('Code Metrics'), |
3618 self.trUtf8('Show some code metrics for the project.')) |
3618 self.trUtf8('Show some code metrics for the project.')) |
3619 self.codeMetricsAct.setWhatsThis(self.trUtf8( |
3619 self.codeMetricsAct.setWhatsThis(self.trUtf8( |
3620 """<b>Code Metrics...</b>""" |
3620 """<b>Code Metrics...</b>""" |
3621 """<p>This shows some code metrics for all Python files in the project.</p>""" |
3621 """<p>This shows some code metrics for all Python files in the project.</p>""" |
3622 )) |
3622 )) |
3623 self.codeMetricsAct.triggered.connect(self.__showCodeMetrics) |
3623 self.codeMetricsAct.triggered[()].connect(self.__showCodeMetrics) |
3624 self.actions.append(self.codeMetricsAct) |
3624 self.actions.append(self.codeMetricsAct) |
3625 |
3625 |
3626 self.codeCoverageAct = E5Action(self.trUtf8('Python Code Coverage'), |
3626 self.codeCoverageAct = E5Action(self.trUtf8('Python Code Coverage'), |
3627 self.trUtf8('Code Co&verage...'), 0, 0, |
3627 self.trUtf8('Code Co&verage...'), 0, 0, |
3628 self.chkGrp,'project_code_coverage') |
3628 self.chkGrp,'project_code_coverage') |
3631 self.codeCoverageAct.setWhatsThis(self.trUtf8( |
3631 self.codeCoverageAct.setWhatsThis(self.trUtf8( |
3632 """<b>Code Coverage...</b>""" |
3632 """<b>Code Coverage...</b>""" |
3633 """<p>This shows the code coverage information for all Python files""" |
3633 """<p>This shows the code coverage information for all Python files""" |
3634 """ in the project.</p>""" |
3634 """ in the project.</p>""" |
3635 )) |
3635 )) |
3636 self.codeCoverageAct.triggered.connect(self.__showCodeCoverage) |
3636 self.codeCoverageAct.triggered[()].connect(self.__showCodeCoverage) |
3637 self.actions.append(self.codeCoverageAct) |
3637 self.actions.append(self.codeCoverageAct) |
3638 |
3638 |
3639 self.codeProfileAct = E5Action(self.trUtf8('Profile Data'), |
3639 self.codeProfileAct = E5Action(self.trUtf8('Profile Data'), |
3640 self.trUtf8('&Profile Data...'), 0, 0, |
3640 self.trUtf8('&Profile Data...'), 0, 0, |
3641 self.chkGrp,'project_profile_data') |
3641 self.chkGrp,'project_profile_data') |
3643 self.trUtf8('Show profiling data for the project.')) |
3643 self.trUtf8('Show profiling data for the project.')) |
3644 self.codeProfileAct.setWhatsThis(self.trUtf8( |
3644 self.codeProfileAct.setWhatsThis(self.trUtf8( |
3645 """<b>Profile Data...</b>""" |
3645 """<b>Profile Data...</b>""" |
3646 """<p>This shows the profiling data for the project.</p>""" |
3646 """<p>This shows the profiling data for the project.</p>""" |
3647 )) |
3647 )) |
3648 self.codeProfileAct.triggered.connect(self.__showProfileData) |
3648 self.codeProfileAct.triggered[()].connect(self.__showProfileData) |
3649 self.actions.append(self.codeProfileAct) |
3649 self.actions.append(self.codeProfileAct) |
3650 |
3650 |
3651 self.applicationDiagramAct = E5Action(self.trUtf8('Application Diagram'), |
3651 self.applicationDiagramAct = E5Action(self.trUtf8('Application Diagram'), |
3652 self.trUtf8('&Application Diagram...'), 0, 0, |
3652 self.trUtf8('&Application Diagram...'), 0, 0, |
3653 self.chkGrp,'project_application_diagram') |
3653 self.chkGrp,'project_application_diagram') |
3655 self.trUtf8('Show a diagram of the project.')) |
3655 self.trUtf8('Show a diagram of the project.')) |
3656 self.applicationDiagramAct.setWhatsThis(self.trUtf8( |
3656 self.applicationDiagramAct.setWhatsThis(self.trUtf8( |
3657 """<b>Application Diagram...</b>""" |
3657 """<b>Application Diagram...</b>""" |
3658 """<p>This shows a diagram of the project.</p>""" |
3658 """<p>This shows a diagram of the project.</p>""" |
3659 )) |
3659 )) |
3660 self.applicationDiagramAct.triggered.connect(self.handleApplicationDiagram) |
3660 self.applicationDiagramAct.triggered[()].connect(self.handleApplicationDiagram) |
3661 self.actions.append(self.applicationDiagramAct) |
3661 self.actions.append(self.applicationDiagramAct) |
3662 |
3662 |
3663 self.pluginGrp = createActionGroup(self) |
3663 self.pluginGrp = createActionGroup(self) |
3664 |
3664 |
3665 self.pluginPkgListAct = E5Action(self.trUtf8('Create Package List'), |
3665 self.pluginPkgListAct = E5Action(self.trUtf8('Create Package List'), |
3671 self.pluginPkgListAct.setWhatsThis(self.trUtf8( |
3671 self.pluginPkgListAct.setWhatsThis(self.trUtf8( |
3672 """<b>Create Package List</b>""" |
3672 """<b>Create Package List</b>""" |
3673 """<p>This creates an initial list of files to include in an eric5 """ |
3673 """<p>This creates an initial list of files to include in an eric5 """ |
3674 """plugin archive. The list is created from the project file.</p>""" |
3674 """plugin archive. The list is created from the project file.</p>""" |
3675 )) |
3675 )) |
3676 self.pluginPkgListAct.triggered.connect(self.__pluginCreatePkgList) |
3676 self.pluginPkgListAct.triggered[()].connect(self.__pluginCreatePkgList) |
3677 self.actions.append(self.pluginPkgListAct) |
3677 self.actions.append(self.pluginPkgListAct) |
3678 |
3678 |
3679 self.pluginArchiveAct = E5Action(self.trUtf8('Create Plugin Archive'), |
3679 self.pluginArchiveAct = E5Action(self.trUtf8('Create Plugin Archive'), |
3680 UI.PixmapCache.getIcon("pluginArchive.png"), |
3680 UI.PixmapCache.getIcon("pluginArchive.png"), |
3681 self.trUtf8('Create Plugin &Archive'), 0, 0, |
3681 self.trUtf8('Create Plugin &Archive'), 0, 0, |
3686 """<b>Create Plugin Archive</b>""" |
3686 """<b>Create Plugin Archive</b>""" |
3687 """<p>This creates an eric5 plugin archive file using the list of files """ |
3687 """<p>This creates an eric5 plugin archive file using the list of files """ |
3688 """given in the PKGLIST file. The archive name is built from the main """ |
3688 """given in the PKGLIST file. The archive name is built from the main """ |
3689 """script name.</p>""" |
3689 """script name.</p>""" |
3690 )) |
3690 )) |
3691 self.pluginArchiveAct.triggered.connect(self.__pluginCreateArchive) |
3691 self.pluginArchiveAct.triggered[()].connect(self.__pluginCreateArchive) |
3692 self.actions.append(self.pluginArchiveAct) |
3692 self.actions.append(self.pluginArchiveAct) |
3693 |
3693 |
3694 self.pluginSArchiveAct = E5Action(self.trUtf8('Create Plugin Archive (Snapshot)'), |
3694 self.pluginSArchiveAct = E5Action(self.trUtf8('Create Plugin Archive (Snapshot)'), |
3695 UI.PixmapCache.getIcon("pluginArchiveSnapshot.png"), |
3695 UI.PixmapCache.getIcon("pluginArchiveSnapshot.png"), |
3696 self.trUtf8('Create Plugin Archive (&Snapshot)'), 0, 0, |
3696 self.trUtf8('Create Plugin Archive (&Snapshot)'), 0, 0, |
3702 """<p>This creates an eric5 plugin archive file using the list of files """ |
3702 """<p>This creates an eric5 plugin archive file using the list of files """ |
3703 """given in the PKGLIST file. The archive name is built from the main """ |
3703 """given in the PKGLIST file. The archive name is built from the main """ |
3704 """script name. The version entry of the main script is modified to """ |
3704 """script name. The version entry of the main script is modified to """ |
3705 """reflect a snapshot release.</p>""" |
3705 """reflect a snapshot release.</p>""" |
3706 )) |
3706 )) |
3707 self.pluginSArchiveAct.triggered.connect(self.__pluginCreateSnapshotArchive) |
3707 self.pluginSArchiveAct.triggered[()].connect(self.__pluginCreateSnapshotArchive) |
3708 self.actions.append(self.pluginSArchiveAct) |
3708 self.actions.append(self.pluginSArchiveAct) |
3709 |
3709 |
3710 self.closeAct.setEnabled(False) |
3710 self.closeAct.setEnabled(False) |
3711 self.saveAct.setEnabled(False) |
3711 self.saveAct.setEnabled(False) |
3712 self.saveasAct.setEnabled(False) |
3712 self.saveasAct.setEnabled(False) |