Project/Project.py

changeset 453
a81097a85889
parent 427
6af5d12cfecb
child 454
d28d558f7484
equal deleted inserted replaced
452:0bc58cbb64b2 453:a81097a85889
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 self.connect(act, SIGNAL('triggered()'), 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 self.connect(act, SIGNAL('triggered()'), 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.connect(self.closeAct, SIGNAL('triggered()'), 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.connect(self.saveAct, SIGNAL('triggered()'), 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.connect(self.saveasAct, SIGNAL('triggered()'), 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.connect(self.addFilesAct, SIGNAL('triggered()'), 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.connect(self.addDirectoryAct, SIGNAL('triggered()'), 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.connect(self.addLanguageAct, SIGNAL('triggered()'), 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 self.connect(act, SIGNAL('triggered()'), 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.connect(self.propsAct, SIGNAL('triggered()'), 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.connect(self.userPropsAct, SIGNAL('triggered()'), 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.connect(self.filetypesAct, SIGNAL('triggered()'), 3490 self.filetypesAct.triggered.connect(self.__showFiletypeAssociations)
3491 self.__showFiletypeAssociations)
3492 self.actions.append(self.filetypesAct) 3491 self.actions.append(self.filetypesAct)
3493 3492
3494 self.lexersAct = E5Action(self.trUtf8('Lexer Associations'), 3493 self.lexersAct = E5Action(self.trUtf8('Lexer Associations'),
3495 self.trUtf8('Lexer Associations...'), 0, 0, 3494 self.trUtf8('Lexer Associations...'), 0, 0,
3496 self, 'project_lexer_associatios') 3495 self, 'project_lexer_associatios')
3500 """<b>Lexer Associations...</b>""" 3499 """<b>Lexer Associations...</b>"""
3501 """<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."""
3502 """ These associations override the global lexer associations. Lexers""" 3501 """ These associations override the global lexer associations. Lexers"""
3503 """ are used to highlight the editor text.</p>""" 3502 """ are used to highlight the editor text.</p>"""
3504 )) 3503 ))
3505 self.connect(self.lexersAct, SIGNAL('triggered()'), 3504 self.lexersAct.triggered.connect(self.__showLexerAssociations)
3506 self.__showLexerAssociations)
3507 self.actions.append(self.lexersAct) 3505 self.actions.append(self.lexersAct)
3508 3506
3509 self.dbgActGrp = createActionGroup(self) 3507 self.dbgActGrp = createActionGroup(self)
3510 3508
3511 act = E5Action(self.trUtf8('Debugger Properties'), 3509 act = E5Action(self.trUtf8('Debugger Properties'),
3514 act.setStatusTip(self.trUtf8('Show the debugger properties')) 3512 act.setStatusTip(self.trUtf8('Show the debugger properties'))
3515 act.setWhatsThis(self.trUtf8( 3513 act.setWhatsThis(self.trUtf8(
3516 """<b>Debugger Properties...</b>""" 3514 """<b>Debugger Properties...</b>"""
3517 """<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>"""
3518 )) 3516 ))
3519 self.connect(act, SIGNAL('triggered()'), self.__showDebugProperties) 3517 act.triggered.connect(self.__showDebugProperties)
3520 self.actions.append(act) 3518 self.actions.append(act)
3521 3519
3522 act = E5Action(self.trUtf8('Load'), 3520 act = E5Action(self.trUtf8('Load'),
3523 self.trUtf8('&Load'), 0, 0, 3521 self.trUtf8('&Load'), 0, 0,
3524 self.dbgActGrp, 'project_debugger_properties_load') 3522 self.dbgActGrp, 'project_debugger_properties_load')
3525 act.setStatusTip(self.trUtf8('Load the debugger properties')) 3523 act.setStatusTip(self.trUtf8('Load the debugger properties'))
3526 act.setWhatsThis(self.trUtf8( 3524 act.setWhatsThis(self.trUtf8(
3527 """<b>Load Debugger Properties</b>""" 3525 """<b>Load Debugger Properties</b>"""
3528 """<p>This loads the project specific debugger settings.</p>""" 3526 """<p>This loads the project specific debugger settings.</p>"""
3529 )) 3527 ))
3530 self.connect(act, SIGNAL('triggered()'), self.__readDebugProperties) 3528 act.triggered.connect(self.__readDebugProperties)
3531 self.actions.append(act) 3529 self.actions.append(act)
3532 3530
3533 act = E5Action(self.trUtf8('Save'), 3531 act = E5Action(self.trUtf8('Save'),
3534 self.trUtf8('&Save'), 0, 0, 3532 self.trUtf8('&Save'), 0, 0,
3535 self.dbgActGrp, 'project_debugger_properties_save') 3533 self.dbgActGrp, 'project_debugger_properties_save')
3536 act.setStatusTip(self.trUtf8('Save the debugger properties')) 3534 act.setStatusTip(self.trUtf8('Save the debugger properties'))
3537 act.setWhatsThis(self.trUtf8( 3535 act.setWhatsThis(self.trUtf8(
3538 """<b>Save Debugger Properties</b>""" 3536 """<b>Save Debugger Properties</b>"""
3539 """<p>This saves the project specific debugger settings.</p>""" 3537 """<p>This saves the project specific debugger settings.</p>"""
3540 )) 3538 ))
3541 self.connect(act, SIGNAL('triggered()'), self.__writeDebugProperties) 3539 act.triggered.connect(self.__writeDebugProperties)
3542 self.actions.append(act) 3540 self.actions.append(act)
3543 3541
3544 act = E5Action(self.trUtf8('Delete'), 3542 act = E5Action(self.trUtf8('Delete'),
3545 self.trUtf8('&Delete'), 0, 0, 3543 self.trUtf8('&Delete'), 0, 0,
3546 self.dbgActGrp, 'project_debugger_properties_delete') 3544 self.dbgActGrp, 'project_debugger_properties_delete')
3548 act.setWhatsThis(self.trUtf8( 3546 act.setWhatsThis(self.trUtf8(
3549 """<b>Delete Debugger Properties</b>""" 3547 """<b>Delete Debugger Properties</b>"""
3550 """<p>This deletes the file containing the project specific""" 3548 """<p>This deletes the file containing the project specific"""
3551 """ debugger settings.</p>""" 3549 """ debugger settings.</p>"""
3552 )) 3550 ))
3553 self.connect(act, SIGNAL('triggered()'), self.__deleteDebugProperties) 3551 act.triggered.connect(self.__deleteDebugProperties)
3554 self.actions.append(act) 3552 self.actions.append(act)
3555 3553
3556 act = E5Action(self.trUtf8('Reset'), 3554 act = E5Action(self.trUtf8('Reset'),
3557 self.trUtf8('&Reset'), 0, 0, 3555 self.trUtf8('&Reset'), 0, 0,
3558 self.dbgActGrp, 'project_debugger_properties_resets') 3556 self.dbgActGrp, 'project_debugger_properties_resets')
3559 act.setStatusTip(self.trUtf8('Reset the debugger properties')) 3557 act.setStatusTip(self.trUtf8('Reset the debugger properties'))
3560 act.setWhatsThis(self.trUtf8( 3558 act.setWhatsThis(self.trUtf8(
3561 """<b>Reset Debugger Properties</b>""" 3559 """<b>Reset Debugger Properties</b>"""
3562 """<p>This resets the project specific debugger settings.</p>""" 3560 """<p>This resets the project specific debugger settings.</p>"""
3563 )) 3561 ))
3564 self.connect(act, SIGNAL('triggered()'), self.__initDebugProperties) 3562 act.triggered.connect(self.__initDebugProperties)
3565 self.actions.append(act) 3563 self.actions.append(act)
3566 3564
3567 self.sessActGrp = createActionGroup(self) 3565 self.sessActGrp = createActionGroup(self)
3568 3566
3569 act = E5Action(self.trUtf8('Load session'), 3567 act = E5Action(self.trUtf8('Load session'),
3578 """- all breakpoint<br>""" 3576 """- all breakpoint<br>"""
3579 """- the commandline arguments<br>""" 3577 """- the commandline arguments<br>"""
3580 """- the working directory<br>""" 3578 """- the working directory<br>"""
3581 """- the exception reporting flag</p>""" 3579 """- the exception reporting flag</p>"""
3582 )) 3580 ))
3583 self.connect(act, SIGNAL('triggered()'), self.__readSession) 3581 act.triggered.connect(self.__readSession)
3584 self.actions.append(act) 3582 self.actions.append(act)
3585 3583
3586 act = E5Action(self.trUtf8('Save session'), 3584 act = E5Action(self.trUtf8('Save session'),
3587 self.trUtf8('Save session'), 0, 0, 3585 self.trUtf8('Save session'), 0, 0,
3588 self.sessActGrp, 'project_save_session') 3586 self.sessActGrp, 'project_save_session')
3595 """- all breakpoint<br>""" 3593 """- all breakpoint<br>"""
3596 """- the commandline arguments<br>""" 3594 """- the commandline arguments<br>"""
3597 """- the working directory<br>""" 3595 """- the working directory<br>"""
3598 """- the exception reporting flag</p>""" 3596 """- the exception reporting flag</p>"""
3599 )) 3597 ))
3600 self.connect(act, SIGNAL('triggered()'), self.__writeSession) 3598 act.triggered.connect(self.__writeSession)
3601 self.actions.append(act) 3599 self.actions.append(act)
3602 3600
3603 act = E5Action(self.trUtf8('Delete session'), 3601 act = E5Action(self.trUtf8('Delete session'),
3604 self.trUtf8('Delete session'), 0, 0, 3602 self.trUtf8('Delete session'), 0, 0,
3605 self.sessActGrp, 'project_delete_session') 3603 self.sessActGrp, 'project_delete_session')
3606 act.setStatusTip(self.trUtf8('Delete the projects session file.')) 3604 act.setStatusTip(self.trUtf8('Delete the projects session file.'))
3607 act.setWhatsThis(self.trUtf8( 3605 act.setWhatsThis(self.trUtf8(
3608 """<b>Delete session</b>""" 3606 """<b>Delete session</b>"""
3609 """<p>This deletes the projects session file</p>""" 3607 """<p>This deletes the projects session file</p>"""
3610 )) 3608 ))
3611 self.connect(act, SIGNAL('triggered()'), self.__deleteSession) 3609 act.triggered.connect(self.__deleteSession)
3612 self.actions.append(act) 3610 self.actions.append(act)
3613 3611
3614 self.chkGrp = createActionGroup(self) 3612 self.chkGrp = createActionGroup(self)
3615 3613
3616 self.codeMetricsAct = E5Action(self.trUtf8('Code Metrics'), 3614 self.codeMetricsAct = E5Action(self.trUtf8('Code Metrics'),
3620 self.trUtf8('Show some code metrics for the project.')) 3618 self.trUtf8('Show some code metrics for the project.'))
3621 self.codeMetricsAct.setWhatsThis(self.trUtf8( 3619 self.codeMetricsAct.setWhatsThis(self.trUtf8(
3622 """<b>Code Metrics...</b>""" 3620 """<b>Code Metrics...</b>"""
3623 """<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>"""
3624 )) 3622 ))
3625 self.connect(self.codeMetricsAct, SIGNAL('triggered()'), self.__showCodeMetrics) 3623 self.codeMetricsAct.triggered.connect(self.__showCodeMetrics)
3626 self.actions.append(self.codeMetricsAct) 3624 self.actions.append(self.codeMetricsAct)
3627 3625
3628 self.codeCoverageAct = E5Action(self.trUtf8('Python Code Coverage'), 3626 self.codeCoverageAct = E5Action(self.trUtf8('Python Code Coverage'),
3629 self.trUtf8('Code Co&verage...'), 0, 0, 3627 self.trUtf8('Code Co&verage...'), 0, 0,
3630 self.chkGrp,'project_code_coverage') 3628 self.chkGrp,'project_code_coverage')
3633 self.codeCoverageAct.setWhatsThis(self.trUtf8( 3631 self.codeCoverageAct.setWhatsThis(self.trUtf8(
3634 """<b>Code Coverage...</b>""" 3632 """<b>Code Coverage...</b>"""
3635 """<p>This shows the code coverage information for all Python files""" 3633 """<p>This shows the code coverage information for all Python files"""
3636 """ in the project.</p>""" 3634 """ in the project.</p>"""
3637 )) 3635 ))
3638 self.connect(self.codeCoverageAct, SIGNAL('triggered()'), self.__showCodeCoverage) 3636 self.codeCoverageAct.triggered.connect(self.__showCodeCoverage)
3639 self.actions.append(self.codeCoverageAct) 3637 self.actions.append(self.codeCoverageAct)
3640 3638
3641 self.codeProfileAct = E5Action(self.trUtf8('Profile Data'), 3639 self.codeProfileAct = E5Action(self.trUtf8('Profile Data'),
3642 self.trUtf8('&Profile Data...'), 0, 0, 3640 self.trUtf8('&Profile Data...'), 0, 0,
3643 self.chkGrp,'project_profile_data') 3641 self.chkGrp,'project_profile_data')
3645 self.trUtf8('Show profiling data for the project.')) 3643 self.trUtf8('Show profiling data for the project.'))
3646 self.codeProfileAct.setWhatsThis(self.trUtf8( 3644 self.codeProfileAct.setWhatsThis(self.trUtf8(
3647 """<b>Profile Data...</b>""" 3645 """<b>Profile Data...</b>"""
3648 """<p>This shows the profiling data for the project.</p>""" 3646 """<p>This shows the profiling data for the project.</p>"""
3649 )) 3647 ))
3650 self.connect(self.codeProfileAct, SIGNAL('triggered()'), self.__showProfileData) 3648 self.codeProfileAct.triggered.connect(self.__showProfileData)
3651 self.actions.append(self.codeProfileAct) 3649 self.actions.append(self.codeProfileAct)
3652 3650
3653 self.applicationDiagramAct = E5Action(self.trUtf8('Application Diagram'), 3651 self.applicationDiagramAct = E5Action(self.trUtf8('Application Diagram'),
3654 self.trUtf8('&Application Diagram...'), 0, 0, 3652 self.trUtf8('&Application Diagram...'), 0, 0,
3655 self.chkGrp,'project_application_diagram') 3653 self.chkGrp,'project_application_diagram')
3657 self.trUtf8('Show a diagram of the project.')) 3655 self.trUtf8('Show a diagram of the project.'))
3658 self.applicationDiagramAct.setWhatsThis(self.trUtf8( 3656 self.applicationDiagramAct.setWhatsThis(self.trUtf8(
3659 """<b>Application Diagram...</b>""" 3657 """<b>Application Diagram...</b>"""
3660 """<p>This shows a diagram of the project.</p>""" 3658 """<p>This shows a diagram of the project.</p>"""
3661 )) 3659 ))
3662 self.connect(self.applicationDiagramAct, 3660 self.applicationDiagramAct.triggered.connect(self.handleApplicationDiagram)
3663 SIGNAL('triggered()'), self.handleApplicationDiagram)
3664 self.actions.append(self.applicationDiagramAct) 3661 self.actions.append(self.applicationDiagramAct)
3665 3662
3666 self.pluginGrp = createActionGroup(self) 3663 self.pluginGrp = createActionGroup(self)
3667 3664
3668 self.pluginPkgListAct = E5Action(self.trUtf8('Create Package List'), 3665 self.pluginPkgListAct = E5Action(self.trUtf8('Create Package List'),
3674 self.pluginPkgListAct.setWhatsThis(self.trUtf8( 3671 self.pluginPkgListAct.setWhatsThis(self.trUtf8(
3675 """<b>Create Package List</b>""" 3672 """<b>Create Package List</b>"""
3676 """<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 """
3677 """plugin archive. The list is created from the project file.</p>""" 3674 """plugin archive. The list is created from the project file.</p>"""
3678 )) 3675 ))
3679 self.connect(self.pluginPkgListAct, SIGNAL('triggered()'), 3676 self.pluginPkgListAct.triggered.connect(self.__pluginCreatePkgList)
3680 self.__pluginCreatePkgList)
3681 self.actions.append(self.pluginPkgListAct) 3677 self.actions.append(self.pluginPkgListAct)
3682 3678
3683 self.pluginArchiveAct = E5Action(self.trUtf8('Create Plugin Archive'), 3679 self.pluginArchiveAct = E5Action(self.trUtf8('Create Plugin Archive'),
3684 UI.PixmapCache.getIcon("pluginArchive.png"), 3680 UI.PixmapCache.getIcon("pluginArchive.png"),
3685 self.trUtf8('Create Plugin &Archive'), 0, 0, 3681 self.trUtf8('Create Plugin &Archive'), 0, 0,
3690 """<b>Create Plugin Archive</b>""" 3686 """<b>Create Plugin Archive</b>"""
3691 """<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 """
3692 """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 """
3693 """script name.</p>""" 3689 """script name.</p>"""
3694 )) 3690 ))
3695 self.connect(self.pluginArchiveAct, SIGNAL('triggered()'), 3691 self.pluginArchiveAct.triggered.connect(self.__pluginCreateArchive)
3696 self.__pluginCreateArchive)
3697 self.actions.append(self.pluginArchiveAct) 3692 self.actions.append(self.pluginArchiveAct)
3698 3693
3699 self.pluginSArchiveAct = E5Action(self.trUtf8('Create Plugin Archive (Snapshot)'), 3694 self.pluginSArchiveAct = E5Action(self.trUtf8('Create Plugin Archive (Snapshot)'),
3700 UI.PixmapCache.getIcon("pluginArchiveSnapshot.png"), 3695 UI.PixmapCache.getIcon("pluginArchiveSnapshot.png"),
3701 self.trUtf8('Create Plugin Archive (&Snapshot)'), 0, 0, 3696 self.trUtf8('Create Plugin Archive (&Snapshot)'), 0, 0,
3707 """<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 """
3708 """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 """
3709 """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 """
3710 """reflect a snapshot release.</p>""" 3705 """reflect a snapshot release.</p>"""
3711 )) 3706 ))
3712 self.connect(self.pluginSArchiveAct, SIGNAL('triggered()'), 3707 self.pluginSArchiveAct.triggered.connect(self.__pluginCreateSnapshotArchive)
3713 self.__pluginCreateSnapshotArchive)
3714 self.actions.append(self.pluginSArchiveAct) 3708 self.actions.append(self.pluginSArchiveAct)
3715 3709
3716 self.closeAct.setEnabled(False) 3710 self.closeAct.setEnabled(False)
3717 self.saveAct.setEnabled(False) 3711 self.saveAct.setEnabled(False)
3718 self.saveasAct.setEnabled(False) 3712 self.saveasAct.setEnabled(False)

eric ide

mercurial