204 self.__fileTypeCallbacks = {} |
204 self.__fileTypeCallbacks = {} |
205 self.__lexerAssociationCallbacks = {} |
205 self.__lexerAssociationCallbacks = {} |
206 self.__binaryTranslationsCallbacks = {} |
206 self.__binaryTranslationsCallbacks = {} |
207 self.__projectTypes["Qt4"] = self.trUtf8("Qt4 GUI") |
207 self.__projectTypes["Qt4"] = self.trUtf8("Qt4 GUI") |
208 self.__projectTypes["Qt4C"] = self.trUtf8("Qt4 Console") |
208 self.__projectTypes["Qt4C"] = self.trUtf8("Qt4 Console") |
209 self.__projectTypes["E4Plugin"] = self.trUtf8("Eric5 Plugin") |
209 self.__projectTypes["E4Plugin"] = self.trUtf8("Eric Plugin") |
210 self.__projectTypes["Console"] = self.trUtf8("Console") |
210 self.__projectTypes["Console"] = self.trUtf8("Console") |
211 self.__projectTypes["Other"] = self.trUtf8("Other") |
211 self.__projectTypes["Other"] = self.trUtf8("Other") |
212 try: |
212 try: |
213 import PySide |
213 import PySide |
214 self.__projectTypes["PySide"] = self.trUtf8("PySide GUI") |
214 self.__projectTypes["PySide"] = self.trUtf8("PySide GUI") |
3232 """ new project.</p>""" |
3232 """ new project.</p>""" |
3233 )) |
3233 )) |
3234 self.connect(act, SIGNAL('triggered()'), self.newProject) |
3234 self.connect(act, SIGNAL('triggered()'), self.newProject) |
3235 self.actions.append(act) |
3235 self.actions.append(act) |
3236 |
3236 |
3237 act = E4Action(self.trUtf8('Open project'), |
3237 act = E5Action(self.trUtf8('Open project'), |
3238 UI.PixmapCache.getIcon("projectOpen.png"), |
3238 UI.PixmapCache.getIcon("projectOpen.png"), |
3239 self.trUtf8('&Open...'), 0, 0, |
3239 self.trUtf8('&Open...'), 0, 0, |
3240 self.actGrp1,'project_open') |
3240 self.actGrp1,'project_open') |
3241 act.setStatusTip(self.trUtf8('Open an existing project')) |
3241 act.setStatusTip(self.trUtf8('Open an existing project')) |
3242 act.setWhatsThis(self.trUtf8( |
3242 act.setWhatsThis(self.trUtf8( |
3244 """<p>This opens an existing project.</p>""" |
3244 """<p>This opens an existing project.</p>""" |
3245 )) |
3245 )) |
3246 self.connect(act, SIGNAL('triggered()'), self.openProject) |
3246 self.connect(act, SIGNAL('triggered()'), self.openProject) |
3247 self.actions.append(act) |
3247 self.actions.append(act) |
3248 |
3248 |
3249 self.closeAct = E4Action(self.trUtf8('Close project'), |
3249 self.closeAct = E5Action(self.trUtf8('Close project'), |
3250 UI.PixmapCache.getIcon("projectClose.png"), |
3250 UI.PixmapCache.getIcon("projectClose.png"), |
3251 self.trUtf8('&Close'), 0, 0, self, 'project_close') |
3251 self.trUtf8('&Close'), 0, 0, self, 'project_close') |
3252 self.closeAct.setStatusTip(self.trUtf8('Close the current project')) |
3252 self.closeAct.setStatusTip(self.trUtf8('Close the current project')) |
3253 self.closeAct.setWhatsThis(self.trUtf8( |
3253 self.closeAct.setWhatsThis(self.trUtf8( |
3254 """<b>Close</b>""" |
3254 """<b>Close</b>""" |
3255 """<p>This closes the current project.</p>""" |
3255 """<p>This closes the current project.</p>""" |
3256 )) |
3256 )) |
3257 self.connect(self.closeAct, SIGNAL('triggered()'), self.closeProject) |
3257 self.connect(self.closeAct, SIGNAL('triggered()'), self.closeProject) |
3258 self.actions.append(self.closeAct) |
3258 self.actions.append(self.closeAct) |
3259 |
3259 |
3260 self.saveAct = E4Action(self.trUtf8('Save project'), |
3260 self.saveAct = E5Action(self.trUtf8('Save project'), |
3261 UI.PixmapCache.getIcon("projectSave.png"), |
3261 UI.PixmapCache.getIcon("projectSave.png"), |
3262 self.trUtf8('&Save'), 0, 0, self, 'project_save') |
3262 self.trUtf8('&Save'), 0, 0, self, 'project_save') |
3263 self.saveAct.setStatusTip(self.trUtf8('Save the current project')) |
3263 self.saveAct.setStatusTip(self.trUtf8('Save the current project')) |
3264 self.saveAct.setWhatsThis(self.trUtf8( |
3264 self.saveAct.setWhatsThis(self.trUtf8( |
3265 """<b>Save</b>""" |
3265 """<b>Save</b>""" |
3266 """<p>This saves the current project.</p>""" |
3266 """<p>This saves the current project.</p>""" |
3267 )) |
3267 )) |
3268 self.connect(self.saveAct, SIGNAL('triggered()'), self.saveProject) |
3268 self.connect(self.saveAct, SIGNAL('triggered()'), self.saveProject) |
3269 self.actions.append(self.saveAct) |
3269 self.actions.append(self.saveAct) |
3270 |
3270 |
3271 self.saveasAct = E4Action(self.trUtf8('Save project as'), |
3271 self.saveasAct = E5Action(self.trUtf8('Save project as'), |
3272 UI.PixmapCache.getIcon("projectSaveAs.png"), |
3272 UI.PixmapCache.getIcon("projectSaveAs.png"), |
3273 self.trUtf8('Save &as...'), 0, 0, self, 'project_save_as') |
3273 self.trUtf8('Save &as...'), 0, 0, self, 'project_save_as') |
3274 self.saveasAct.setStatusTip(self.trUtf8('Save the current project to a new file')) |
3274 self.saveasAct.setStatusTip(self.trUtf8('Save the current project to a new file')) |
3275 self.saveasAct.setWhatsThis(self.trUtf8( |
3275 self.saveasAct.setWhatsThis(self.trUtf8( |
3276 """<b>Save as</b>""" |
3276 """<b>Save as</b>""" |
3279 self.connect(self.saveasAct, SIGNAL('triggered()'), self.saveProjectAs) |
3279 self.connect(self.saveasAct, SIGNAL('triggered()'), self.saveProjectAs) |
3280 self.actions.append(self.saveasAct) |
3280 self.actions.append(self.saveasAct) |
3281 |
3281 |
3282 self.actGrp2 = createActionGroup(self) |
3282 self.actGrp2 = createActionGroup(self) |
3283 |
3283 |
3284 self.addFilesAct = E4Action(self.trUtf8('Add files to project'), |
3284 self.addFilesAct = E5Action(self.trUtf8('Add files to project'), |
3285 UI.PixmapCache.getIcon("fileMisc.png"), |
3285 UI.PixmapCache.getIcon("fileMisc.png"), |
3286 self.trUtf8('Add &files...'), 0, 0, |
3286 self.trUtf8('Add &files...'), 0, 0, |
3287 self.actGrp2,'project_add_file') |
3287 self.actGrp2,'project_add_file') |
3288 self.addFilesAct.setStatusTip(self.trUtf8('Add files to the current project')) |
3288 self.addFilesAct.setStatusTip(self.trUtf8('Add files to the current project')) |
3289 self.addFilesAct.setWhatsThis(self.trUtf8( |
3289 self.addFilesAct.setWhatsThis(self.trUtf8( |
3293 """ determined by the file extension.</p>""" |
3293 """ determined by the file extension.</p>""" |
3294 )) |
3294 )) |
3295 self.connect(self.addFilesAct, SIGNAL('triggered()'), self.addFiles) |
3295 self.connect(self.addFilesAct, SIGNAL('triggered()'), self.addFiles) |
3296 self.actions.append(self.addFilesAct) |
3296 self.actions.append(self.addFilesAct) |
3297 |
3297 |
3298 self.addDirectoryAct = E4Action(self.trUtf8('Add directory to project'), |
3298 self.addDirectoryAct = E5Action(self.trUtf8('Add directory to project'), |
3299 UI.PixmapCache.getIcon("dirOpen.png"), |
3299 UI.PixmapCache.getIcon("dirOpen.png"), |
3300 self.trUtf8('Add directory...'), 0, 0, |
3300 self.trUtf8('Add directory...'), 0, 0, |
3301 self.actGrp2,'project_add_directory') |
3301 self.actGrp2,'project_add_directory') |
3302 self.addDirectoryAct.setStatusTip( |
3302 self.addDirectoryAct.setStatusTip( |
3303 self.trUtf8('Add a directory to the current project')) |
3303 self.trUtf8('Add a directory to the current project')) |
3307 """ to the current project.</p>""" |
3307 """ to the current project.</p>""" |
3308 )) |
3308 )) |
3309 self.connect(self.addDirectoryAct, SIGNAL('triggered()'), self.addDirectory) |
3309 self.connect(self.addDirectoryAct, SIGNAL('triggered()'), self.addDirectory) |
3310 self.actions.append(self.addDirectoryAct) |
3310 self.actions.append(self.addDirectoryAct) |
3311 |
3311 |
3312 self.addLanguageAct = E4Action(self.trUtf8('Add translation to project'), |
3312 self.addLanguageAct = E5Action(self.trUtf8('Add translation to project'), |
3313 UI.PixmapCache.getIcon("linguist4.png"), |
3313 UI.PixmapCache.getIcon("linguist4.png"), |
3314 self.trUtf8('Add &translation...'), 0, 0, |
3314 self.trUtf8('Add &translation...'), 0, 0, |
3315 self.actGrp2,'project_add_translation') |
3315 self.actGrp2,'project_add_translation') |
3316 self.addLanguageAct.setStatusTip( |
3316 self.addLanguageAct.setStatusTip( |
3317 self.trUtf8('Add a translation to the current project')) |
3317 self.trUtf8('Add a translation to the current project')) |
3321 """ to the current project.</p>""" |
3321 """ to the current project.</p>""" |
3322 )) |
3322 )) |
3323 self.connect(self.addLanguageAct, SIGNAL('triggered()'), self.addLanguage) |
3323 self.connect(self.addLanguageAct, SIGNAL('triggered()'), self.addLanguage) |
3324 self.actions.append(self.addLanguageAct) |
3324 self.actions.append(self.addLanguageAct) |
3325 |
3325 |
3326 act = E4Action(self.trUtf8('Search new files'), |
3326 act = E5Action(self.trUtf8('Search new files'), |
3327 self.trUtf8('Searc&h new files...'), 0, 0, |
3327 self.trUtf8('Searc&h new files...'), 0, 0, |
3328 self.actGrp2,'project_search_new_files') |
3328 self.actGrp2,'project_search_new_files') |
3329 act.setStatusTip(self.trUtf8('Search new files in the project directory.')) |
3329 act.setStatusTip(self.trUtf8('Search new files in the project directory.')) |
3330 act.setWhatsThis(self.trUtf8( |
3330 act.setWhatsThis(self.trUtf8( |
3331 """<b>Search new files...</b>""" |
3331 """<b>Search new files...</b>""" |
3333 """ directory and registered subdirectories.</p>""" |
3333 """ directory and registered subdirectories.</p>""" |
3334 )) |
3334 )) |
3335 self.connect(act, SIGNAL('triggered()'), self.__searchNewFiles) |
3335 self.connect(act, SIGNAL('triggered()'), self.__searchNewFiles) |
3336 self.actions.append(act) |
3336 self.actions.append(act) |
3337 |
3337 |
3338 self.propsAct = E4Action(self.trUtf8('Project properties'), |
3338 self.propsAct = E5Action(self.trUtf8('Project properties'), |
3339 UI.PixmapCache.getIcon("projectProps.png"), |
3339 UI.PixmapCache.getIcon("projectProps.png"), |
3340 self.trUtf8('&Properties...'), 0, 0, self, 'project_properties') |
3340 self.trUtf8('&Properties...'), 0, 0, self, 'project_properties') |
3341 self.propsAct.setStatusTip(self.trUtf8('Show the project properties')) |
3341 self.propsAct.setStatusTip(self.trUtf8('Show the project properties')) |
3342 self.propsAct.setWhatsThis(self.trUtf8( |
3342 self.propsAct.setWhatsThis(self.trUtf8( |
3343 """<b>Properties...</b>""" |
3343 """<b>Properties...</b>""" |
3344 """<p>This shows a dialog to edit the project properties.</p>""" |
3344 """<p>This shows a dialog to edit the project properties.</p>""" |
3345 )) |
3345 )) |
3346 self.connect(self.propsAct, SIGNAL('triggered()'), self.__showProperties) |
3346 self.connect(self.propsAct, SIGNAL('triggered()'), self.__showProperties) |
3347 self.actions.append(self.propsAct) |
3347 self.actions.append(self.propsAct) |
3348 |
3348 |
3349 self.userPropsAct = E4Action(self.trUtf8('User project properties'), |
3349 self.userPropsAct = E5Action(self.trUtf8('User project properties'), |
3350 UI.PixmapCache.getIcon("projectUserProps.png"), |
3350 UI.PixmapCache.getIcon("projectUserProps.png"), |
3351 self.trUtf8('&User Properties...'), 0, 0, self, 'project_user_properties') |
3351 self.trUtf8('&User Properties...'), 0, 0, self, 'project_user_properties') |
3352 self.userPropsAct.setStatusTip(self.trUtf8( |
3352 self.userPropsAct.setStatusTip(self.trUtf8( |
3353 'Show the user specific project properties')) |
3353 'Show the user specific project properties')) |
3354 self.userPropsAct.setWhatsThis(self.trUtf8( |
3354 self.userPropsAct.setWhatsThis(self.trUtf8( |
3356 """<p>This shows a dialog to edit the user specific project properties.</p>""" |
3356 """<p>This shows a dialog to edit the user specific project properties.</p>""" |
3357 )) |
3357 )) |
3358 self.connect(self.userPropsAct, SIGNAL('triggered()'), self.__showUserProperties) |
3358 self.connect(self.userPropsAct, SIGNAL('triggered()'), self.__showUserProperties) |
3359 self.actions.append(self.userPropsAct) |
3359 self.actions.append(self.userPropsAct) |
3360 |
3360 |
3361 self.filetypesAct = E4Action(self.trUtf8('Filetype Associations'), |
3361 self.filetypesAct = E5Action(self.trUtf8('Filetype Associations'), |
3362 self.trUtf8('Filetype Associations...'), 0, 0, |
3362 self.trUtf8('Filetype Associations...'), 0, 0, |
3363 self, 'project_filetype_associatios') |
3363 self, 'project_filetype_associatios') |
3364 self.filetypesAct.setStatusTip(\ |
3364 self.filetypesAct.setStatusTip(\ |
3365 self.trUtf8('Show the project filetype associations')) |
3365 self.trUtf8('Show the project filetype associations')) |
3366 self.filetypesAct.setWhatsThis(self.trUtf8( |
3366 self.filetypesAct.setWhatsThis(self.trUtf8( |
3372 )) |
3372 )) |
3373 self.connect(self.filetypesAct, SIGNAL('triggered()'), |
3373 self.connect(self.filetypesAct, SIGNAL('triggered()'), |
3374 self.__showFiletypeAssociations) |
3374 self.__showFiletypeAssociations) |
3375 self.actions.append(self.filetypesAct) |
3375 self.actions.append(self.filetypesAct) |
3376 |
3376 |
3377 self.lexersAct = E4Action(self.trUtf8('Lexer Associations'), |
3377 self.lexersAct = E5Action(self.trUtf8('Lexer Associations'), |
3378 self.trUtf8('Lexer Associations...'), 0, 0, |
3378 self.trUtf8('Lexer Associations...'), 0, 0, |
3379 self, 'project_lexer_associatios') |
3379 self, 'project_lexer_associatios') |
3380 self.lexersAct.setStatusTip(\ |
3380 self.lexersAct.setStatusTip(\ |
3381 self.trUtf8('Show the project lexer associations (overriding defaults)')) |
3381 self.trUtf8('Show the project lexer associations (overriding defaults)')) |
3382 self.lexersAct.setWhatsThis(self.trUtf8( |
3382 self.lexersAct.setWhatsThis(self.trUtf8( |
3389 self.__showLexerAssociations) |
3389 self.__showLexerAssociations) |
3390 self.actions.append(self.lexersAct) |
3390 self.actions.append(self.lexersAct) |
3391 |
3391 |
3392 self.dbgActGrp = createActionGroup(self) |
3392 self.dbgActGrp = createActionGroup(self) |
3393 |
3393 |
3394 act = E4Action(self.trUtf8('Debugger Properties'), |
3394 act = E5Action(self.trUtf8('Debugger Properties'), |
3395 self.trUtf8('Debugger &Properties...'), 0, 0, |
3395 self.trUtf8('Debugger &Properties...'), 0, 0, |
3396 self.dbgActGrp, 'project_debugger_properties') |
3396 self.dbgActGrp, 'project_debugger_properties') |
3397 act.setStatusTip(self.trUtf8('Show the debugger properties')) |
3397 act.setStatusTip(self.trUtf8('Show the debugger properties')) |
3398 act.setWhatsThis(self.trUtf8( |
3398 act.setWhatsThis(self.trUtf8( |
3399 """<b>Debugger Properties...</b>""" |
3399 """<b>Debugger Properties...</b>""" |
3400 """<p>This shows a dialog to edit project specific debugger settings.</p>""" |
3400 """<p>This shows a dialog to edit project specific debugger settings.</p>""" |
3401 )) |
3401 )) |
3402 self.connect(act, SIGNAL('triggered()'), self.__showDebugProperties) |
3402 self.connect(act, SIGNAL('triggered()'), self.__showDebugProperties) |
3403 self.actions.append(act) |
3403 self.actions.append(act) |
3404 |
3404 |
3405 act = E4Action(self.trUtf8('Load'), |
3405 act = E5Action(self.trUtf8('Load'), |
3406 self.trUtf8('&Load'), 0, 0, |
3406 self.trUtf8('&Load'), 0, 0, |
3407 self.dbgActGrp, 'project_debugger_properties_load') |
3407 self.dbgActGrp, 'project_debugger_properties_load') |
3408 act.setStatusTip(self.trUtf8('Load the debugger properties')) |
3408 act.setStatusTip(self.trUtf8('Load the debugger properties')) |
3409 act.setWhatsThis(self.trUtf8( |
3409 act.setWhatsThis(self.trUtf8( |
3410 """<b>Load Debugger Properties</b>""" |
3410 """<b>Load Debugger Properties</b>""" |
3411 """<p>This loads the project specific debugger settings.</p>""" |
3411 """<p>This loads the project specific debugger settings.</p>""" |
3412 )) |
3412 )) |
3413 self.connect(act, SIGNAL('triggered()'), self.__readDebugProperties) |
3413 self.connect(act, SIGNAL('triggered()'), self.__readDebugProperties) |
3414 self.actions.append(act) |
3414 self.actions.append(act) |
3415 |
3415 |
3416 act = E4Action(self.trUtf8('Save'), |
3416 act = E5Action(self.trUtf8('Save'), |
3417 self.trUtf8('&Save'), 0, 0, |
3417 self.trUtf8('&Save'), 0, 0, |
3418 self.dbgActGrp, 'project_debugger_properties_save') |
3418 self.dbgActGrp, 'project_debugger_properties_save') |
3419 act.setStatusTip(self.trUtf8('Save the debugger properties')) |
3419 act.setStatusTip(self.trUtf8('Save the debugger properties')) |
3420 act.setWhatsThis(self.trUtf8( |
3420 act.setWhatsThis(self.trUtf8( |
3421 """<b>Save Debugger Properties</b>""" |
3421 """<b>Save Debugger Properties</b>""" |
3422 """<p>This saves the project specific debugger settings.</p>""" |
3422 """<p>This saves the project specific debugger settings.</p>""" |
3423 )) |
3423 )) |
3424 self.connect(act, SIGNAL('triggered()'), self.__writeDebugProperties) |
3424 self.connect(act, SIGNAL('triggered()'), self.__writeDebugProperties) |
3425 self.actions.append(act) |
3425 self.actions.append(act) |
3426 |
3426 |
3427 act = E4Action(self.trUtf8('Delete'), |
3427 act = E5Action(self.trUtf8('Delete'), |
3428 self.trUtf8('&Delete'), 0, 0, |
3428 self.trUtf8('&Delete'), 0, 0, |
3429 self.dbgActGrp, 'project_debugger_properties_delete') |
3429 self.dbgActGrp, 'project_debugger_properties_delete') |
3430 act.setStatusTip(self.trUtf8('Delete the debugger properties')) |
3430 act.setStatusTip(self.trUtf8('Delete the debugger properties')) |
3431 act.setWhatsThis(self.trUtf8( |
3431 act.setWhatsThis(self.trUtf8( |
3432 """<b>Delete Debugger Properties</b>""" |
3432 """<b>Delete Debugger Properties</b>""" |
3434 """ debugger settings.</p>""" |
3434 """ debugger settings.</p>""" |
3435 )) |
3435 )) |
3436 self.connect(act, SIGNAL('triggered()'), self.__deleteDebugProperties) |
3436 self.connect(act, SIGNAL('triggered()'), self.__deleteDebugProperties) |
3437 self.actions.append(act) |
3437 self.actions.append(act) |
3438 |
3438 |
3439 act = E4Action(self.trUtf8('Reset'), |
3439 act = E5Action(self.trUtf8('Reset'), |
3440 self.trUtf8('&Reset'), 0, 0, |
3440 self.trUtf8('&Reset'), 0, 0, |
3441 self.dbgActGrp, 'project_debugger_properties_resets') |
3441 self.dbgActGrp, 'project_debugger_properties_resets') |
3442 act.setStatusTip(self.trUtf8('Reset the debugger properties')) |
3442 act.setStatusTip(self.trUtf8('Reset the debugger properties')) |
3443 act.setWhatsThis(self.trUtf8( |
3443 act.setWhatsThis(self.trUtf8( |
3444 """<b>Reset Debugger Properties</b>""" |
3444 """<b>Reset Debugger Properties</b>""" |
3447 self.connect(act, SIGNAL('triggered()'), self.__initDebugProperties) |
3447 self.connect(act, SIGNAL('triggered()'), self.__initDebugProperties) |
3448 self.actions.append(act) |
3448 self.actions.append(act) |
3449 |
3449 |
3450 self.sessActGrp = createActionGroup(self) |
3450 self.sessActGrp = createActionGroup(self) |
3451 |
3451 |
3452 act = E4Action(self.trUtf8('Load session'), |
3452 act = E5Action(self.trUtf8('Load session'), |
3453 self.trUtf8('Load session'), 0, 0, |
3453 self.trUtf8('Load session'), 0, 0, |
3454 self.sessActGrp, 'project_load_session') |
3454 self.sessActGrp, 'project_load_session') |
3455 act.setStatusTip(self.trUtf8('Load the projects session file.')) |
3455 act.setStatusTip(self.trUtf8('Load the projects session file.')) |
3456 act.setWhatsThis(self.trUtf8( |
3456 act.setWhatsThis(self.trUtf8( |
3457 """<b>Load session</b>""" |
3457 """<b>Load session</b>""" |
3464 """- the exception reporting flag</p>""" |
3464 """- the exception reporting flag</p>""" |
3465 )) |
3465 )) |
3466 self.connect(act, SIGNAL('triggered()'), self.__readSession) |
3466 self.connect(act, SIGNAL('triggered()'), self.__readSession) |
3467 self.actions.append(act) |
3467 self.actions.append(act) |
3468 |
3468 |
3469 act = E4Action(self.trUtf8('Save session'), |
3469 act = E5Action(self.trUtf8('Save session'), |
3470 self.trUtf8('Save session'), 0, 0, |
3470 self.trUtf8('Save session'), 0, 0, |
3471 self.sessActGrp, 'project_save_session') |
3471 self.sessActGrp, 'project_save_session') |
3472 act.setStatusTip(self.trUtf8('Save the projects session file.')) |
3472 act.setStatusTip(self.trUtf8('Save the projects session file.')) |
3473 act.setWhatsThis(self.trUtf8( |
3473 act.setWhatsThis(self.trUtf8( |
3474 """<b>Save session</b>""" |
3474 """<b>Save session</b>""" |
3481 """- the exception reporting flag</p>""" |
3481 """- the exception reporting flag</p>""" |
3482 )) |
3482 )) |
3483 self.connect(act, SIGNAL('triggered()'), self.__writeSession) |
3483 self.connect(act, SIGNAL('triggered()'), self.__writeSession) |
3484 self.actions.append(act) |
3484 self.actions.append(act) |
3485 |
3485 |
3486 act = E4Action(self.trUtf8('Delete session'), |
3486 act = E5Action(self.trUtf8('Delete session'), |
3487 self.trUtf8('Delete session'), 0, 0, |
3487 self.trUtf8('Delete session'), 0, 0, |
3488 self.sessActGrp, 'project_delete_session') |
3488 self.sessActGrp, 'project_delete_session') |
3489 act.setStatusTip(self.trUtf8('Delete the projects session file.')) |
3489 act.setStatusTip(self.trUtf8('Delete the projects session file.')) |
3490 act.setWhatsThis(self.trUtf8( |
3490 act.setWhatsThis(self.trUtf8( |
3491 """<b>Delete session</b>""" |
3491 """<b>Delete session</b>""" |
3494 self.connect(act, SIGNAL('triggered()'), self.__deleteSession) |
3494 self.connect(act, SIGNAL('triggered()'), self.__deleteSession) |
3495 self.actions.append(act) |
3495 self.actions.append(act) |
3496 |
3496 |
3497 self.chkGrp = createActionGroup(self) |
3497 self.chkGrp = createActionGroup(self) |
3498 |
3498 |
3499 self.codeMetricsAct = E4Action(self.trUtf8('Code Metrics'), |
3499 self.codeMetricsAct = E5Action(self.trUtf8('Code Metrics'), |
3500 self.trUtf8('&Code Metrics...'), 0, 0, |
3500 self.trUtf8('&Code Metrics...'), 0, 0, |
3501 self.chkGrp,'project_code_metrics') |
3501 self.chkGrp,'project_code_metrics') |
3502 self.codeMetricsAct.setStatusTip(\ |
3502 self.codeMetricsAct.setStatusTip(\ |
3503 self.trUtf8('Show some code metrics for the project.')) |
3503 self.trUtf8('Show some code metrics for the project.')) |
3504 self.codeMetricsAct.setWhatsThis(self.trUtf8( |
3504 self.codeMetricsAct.setWhatsThis(self.trUtf8( |
3506 """<p>This shows some code metrics for all Python files in the project.</p>""" |
3506 """<p>This shows some code metrics for all Python files in the project.</p>""" |
3507 )) |
3507 )) |
3508 self.connect(self.codeMetricsAct, SIGNAL('triggered()'), self.__showCodeMetrics) |
3508 self.connect(self.codeMetricsAct, SIGNAL('triggered()'), self.__showCodeMetrics) |
3509 self.actions.append(self.codeMetricsAct) |
3509 self.actions.append(self.codeMetricsAct) |
3510 |
3510 |
3511 self.codeCoverageAct = E4Action(self.trUtf8('Python Code Coverage'), |
3511 self.codeCoverageAct = E5Action(self.trUtf8('Python Code Coverage'), |
3512 self.trUtf8('Code Co&verage...'), 0, 0, |
3512 self.trUtf8('Code Co&verage...'), 0, 0, |
3513 self.chkGrp,'project_code_coverage') |
3513 self.chkGrp,'project_code_coverage') |
3514 self.codeCoverageAct.setStatusTip(\ |
3514 self.codeCoverageAct.setStatusTip(\ |
3515 self.trUtf8('Show code coverage information for the project.')) |
3515 self.trUtf8('Show code coverage information for the project.')) |
3516 self.codeCoverageAct.setWhatsThis(self.trUtf8( |
3516 self.codeCoverageAct.setWhatsThis(self.trUtf8( |
3519 """ in the project.</p>""" |
3519 """ in the project.</p>""" |
3520 )) |
3520 )) |
3521 self.connect(self.codeCoverageAct, SIGNAL('triggered()'), self.__showCodeCoverage) |
3521 self.connect(self.codeCoverageAct, SIGNAL('triggered()'), self.__showCodeCoverage) |
3522 self.actions.append(self.codeCoverageAct) |
3522 self.actions.append(self.codeCoverageAct) |
3523 |
3523 |
3524 self.codeProfileAct = E4Action(self.trUtf8('Profile Data'), |
3524 self.codeProfileAct = E5Action(self.trUtf8('Profile Data'), |
3525 self.trUtf8('&Profile Data...'), 0, 0, |
3525 self.trUtf8('&Profile Data...'), 0, 0, |
3526 self.chkGrp,'project_profile_data') |
3526 self.chkGrp,'project_profile_data') |
3527 self.codeProfileAct.setStatusTip(\ |
3527 self.codeProfileAct.setStatusTip(\ |
3528 self.trUtf8('Show profiling data for the project.')) |
3528 self.trUtf8('Show profiling data for the project.')) |
3529 self.codeProfileAct.setWhatsThis(self.trUtf8( |
3529 self.codeProfileAct.setWhatsThis(self.trUtf8( |
3531 """<p>This shows the profiling data for the project.</p>""" |
3531 """<p>This shows the profiling data for the project.</p>""" |
3532 )) |
3532 )) |
3533 self.connect(self.codeProfileAct, SIGNAL('triggered()'), self.__showProfileData) |
3533 self.connect(self.codeProfileAct, SIGNAL('triggered()'), self.__showProfileData) |
3534 self.actions.append(self.codeProfileAct) |
3534 self.actions.append(self.codeProfileAct) |
3535 |
3535 |
3536 self.applicationDiagramAct = E4Action(self.trUtf8('Application Diagram'), |
3536 self.applicationDiagramAct = E5Action(self.trUtf8('Application Diagram'), |
3537 self.trUtf8('&Application Diagram...'), 0, 0, |
3537 self.trUtf8('&Application Diagram...'), 0, 0, |
3538 self.chkGrp,'project_application_diagram') |
3538 self.chkGrp,'project_application_diagram') |
3539 self.applicationDiagramAct.setStatusTip(\ |
3539 self.applicationDiagramAct.setStatusTip(\ |
3540 self.trUtf8('Show a diagram of the project.')) |
3540 self.trUtf8('Show a diagram of the project.')) |
3541 self.applicationDiagramAct.setWhatsThis(self.trUtf8( |
3541 self.applicationDiagramAct.setWhatsThis(self.trUtf8( |
3546 SIGNAL('triggered()'), self.handleApplicationDiagram) |
3546 SIGNAL('triggered()'), self.handleApplicationDiagram) |
3547 self.actions.append(self.applicationDiagramAct) |
3547 self.actions.append(self.applicationDiagramAct) |
3548 |
3548 |
3549 self.pluginGrp = createActionGroup(self) |
3549 self.pluginGrp = createActionGroup(self) |
3550 |
3550 |
3551 self.pluginPkgListAct = E4Action(self.trUtf8('Create Package List'), |
3551 self.pluginPkgListAct = E5Action(self.trUtf8('Create Package List'), |
3552 UI.PixmapCache.getIcon("pluginArchiveList.png"), |
3552 UI.PixmapCache.getIcon("pluginArchiveList.png"), |
3553 self.trUtf8('Create &Package List'), 0, 0, |
3553 self.trUtf8('Create &Package List'), 0, 0, |
3554 self.pluginGrp,'project_plugin_pkglist') |
3554 self.pluginGrp,'project_plugin_pkglist') |
3555 self.pluginPkgListAct.setStatusTip(\ |
3555 self.pluginPkgListAct.setStatusTip(\ |
3556 self.trUtf8('Create an initial PKGLIST file for an eric5 plugin.')) |
3556 self.trUtf8('Create an initial PKGLIST file for an eric5 plugin.')) |
3561 )) |
3561 )) |
3562 self.connect(self.pluginPkgListAct, SIGNAL('triggered()'), |
3562 self.connect(self.pluginPkgListAct, SIGNAL('triggered()'), |
3563 self.__pluginCreatePkgList) |
3563 self.__pluginCreatePkgList) |
3564 self.actions.append(self.pluginPkgListAct) |
3564 self.actions.append(self.pluginPkgListAct) |
3565 |
3565 |
3566 self.pluginArchiveAct = E4Action(self.trUtf8('Create Plugin Archive'), |
3566 self.pluginArchiveAct = E5Action(self.trUtf8('Create Plugin Archive'), |
3567 UI.PixmapCache.getIcon("pluginArchive.png"), |
3567 UI.PixmapCache.getIcon("pluginArchive.png"), |
3568 self.trUtf8('Create Plugin &Archive'), 0, 0, |
3568 self.trUtf8('Create Plugin &Archive'), 0, 0, |
3569 self.pluginGrp,'project_plugin_archive') |
3569 self.pluginGrp,'project_plugin_archive') |
3570 self.pluginArchiveAct.setStatusTip(\ |
3570 self.pluginArchiveAct.setStatusTip(\ |
3571 self.trUtf8('Create an eric5 plugin archive file.')) |
3571 self.trUtf8('Create an eric5 plugin archive file.')) |
3577 )) |
3577 )) |
3578 self.connect(self.pluginArchiveAct, SIGNAL('triggered()'), |
3578 self.connect(self.pluginArchiveAct, SIGNAL('triggered()'), |
3579 self.__pluginCreateArchive) |
3579 self.__pluginCreateArchive) |
3580 self.actions.append(self.pluginArchiveAct) |
3580 self.actions.append(self.pluginArchiveAct) |
3581 |
3581 |
3582 self.pluginSArchiveAct = E4Action(self.trUtf8('Create Plugin Archive (Snapshot)'), |
3582 self.pluginSArchiveAct = E5Action(self.trUtf8('Create Plugin Archive (Snapshot)'), |
3583 UI.PixmapCache.getIcon("pluginArchiveSnapshot.png"), |
3583 UI.PixmapCache.getIcon("pluginArchiveSnapshot.png"), |
3584 self.trUtf8('Create Plugin Archive (&Snapshot)'), 0, 0, |
3584 self.trUtf8('Create Plugin Archive (&Snapshot)'), 0, 0, |
3585 self.pluginGrp,'project_plugin_sarchive') |
3585 self.pluginGrp,'project_plugin_sarchive') |
3586 self.pluginSArchiveAct.setStatusTip(\ |
3586 self.pluginSArchiveAct.setStatusTip(\ |
3587 self.trUtf8('Create an eric5 plugin archive file (snapshot release).')) |
3587 self.trUtf8('Create an eric5 plugin archive file (snapshot release).')) |
3937 |
3937 |
3938 def getActions(self): |
3938 def getActions(self): |
3939 """ |
3939 """ |
3940 Public method to get a list of all actions. |
3940 Public method to get a list of all actions. |
3941 |
3941 |
3942 @return list of all actions (list of E4Action) |
3942 @return list of all actions (list of E5Action) |
3943 """ |
3943 """ |
3944 return self.actions[:] |
3944 return self.actions[:] |
3945 |
3945 |
3946 def addE4Actions(self, actions): |
3946 def addE5Actions(self, actions): |
3947 """ |
3947 """ |
3948 Public method to add actions to the list of actions. |
3948 Public method to add actions to the list of actions. |
3949 |
3949 |
3950 @param actions list of actions (list of E4Action) |
3950 @param actions list of actions (list of E5Action) |
3951 """ |
3951 """ |
3952 self.actions.extend(actions) |
3952 self.actions.extend(actions) |
3953 |
3953 |
3954 def removeE4Actions(self, actions): |
3954 def removeE5Actions(self, actions): |
3955 """ |
3955 """ |
3956 Public method to remove actions from the list of actions. |
3956 Public method to remove actions from the list of actions. |
3957 |
3957 |
3958 @param actions list of actions (list of E4Action) |
3958 @param actions list of actions (list of E5Action) |
3959 """ |
3959 """ |
3960 for act in actions: |
3960 for act in actions: |
3961 try: |
3961 try: |
3962 self.actions.remove(act) |
3962 self.actions.remove(act) |
3963 except ValueError: |
3963 except ValueError: |