3863 |
3863 |
3864 self.actGrp1 = createActionGroup(self) |
3864 self.actGrp1 = createActionGroup(self) |
3865 |
3865 |
3866 act = E5Action( |
3866 act = E5Action( |
3867 self.tr('New project'), |
3867 self.tr('New project'), |
3868 UI.PixmapCache.getIcon("projectNew.png"), |
3868 UI.PixmapCache.getIcon("projectNew"), |
3869 self.tr('&New...'), 0, 0, |
3869 self.tr('&New...'), 0, 0, |
3870 self.actGrp1, 'project_new') |
3870 self.actGrp1, 'project_new') |
3871 act.setStatusTip(self.tr('Generate a new project')) |
3871 act.setStatusTip(self.tr('Generate a new project')) |
3872 act.setWhatsThis(self.tr( |
3872 act.setWhatsThis(self.tr( |
3873 """<b>New...</b>""" |
3873 """<b>New...</b>""" |
3877 act.triggered.connect(self.createNewProject) |
3877 act.triggered.connect(self.createNewProject) |
3878 self.actions.append(act) |
3878 self.actions.append(act) |
3879 |
3879 |
3880 act = E5Action( |
3880 act = E5Action( |
3881 self.tr('Open project'), |
3881 self.tr('Open project'), |
3882 UI.PixmapCache.getIcon("projectOpen.png"), |
3882 UI.PixmapCache.getIcon("projectOpen"), |
3883 self.tr('&Open...'), 0, 0, |
3883 self.tr('&Open...'), 0, 0, |
3884 self.actGrp1, 'project_open') |
3884 self.actGrp1, 'project_open') |
3885 act.setStatusTip(self.tr('Open an existing project')) |
3885 act.setStatusTip(self.tr('Open an existing project')) |
3886 act.setWhatsThis(self.tr( |
3886 act.setWhatsThis(self.tr( |
3887 """<b>Open...</b>""" |
3887 """<b>Open...</b>""" |
3890 act.triggered.connect(self.openProject) |
3890 act.triggered.connect(self.openProject) |
3891 self.actions.append(act) |
3891 self.actions.append(act) |
3892 |
3892 |
3893 self.closeAct = E5Action( |
3893 self.closeAct = E5Action( |
3894 self.tr('Close project'), |
3894 self.tr('Close project'), |
3895 UI.PixmapCache.getIcon("projectClose.png"), |
3895 UI.PixmapCache.getIcon("projectClose"), |
3896 self.tr('&Close'), 0, 0, self, 'project_close') |
3896 self.tr('&Close'), 0, 0, self, 'project_close') |
3897 self.closeAct.setStatusTip(self.tr('Close the current project')) |
3897 self.closeAct.setStatusTip(self.tr('Close the current project')) |
3898 self.closeAct.setWhatsThis(self.tr( |
3898 self.closeAct.setWhatsThis(self.tr( |
3899 """<b>Close</b>""" |
3899 """<b>Close</b>""" |
3900 """<p>This closes the current project.</p>""" |
3900 """<p>This closes the current project.</p>""" |
3902 self.closeAct.triggered.connect(self.closeProject) |
3902 self.closeAct.triggered.connect(self.closeProject) |
3903 self.actions.append(self.closeAct) |
3903 self.actions.append(self.closeAct) |
3904 |
3904 |
3905 self.saveAct = E5Action( |
3905 self.saveAct = E5Action( |
3906 self.tr('Save project'), |
3906 self.tr('Save project'), |
3907 UI.PixmapCache.getIcon("projectSave.png"), |
3907 UI.PixmapCache.getIcon("projectSave"), |
3908 self.tr('&Save'), 0, 0, self, 'project_save') |
3908 self.tr('&Save'), 0, 0, self, 'project_save') |
3909 self.saveAct.setStatusTip(self.tr('Save the current project')) |
3909 self.saveAct.setStatusTip(self.tr('Save the current project')) |
3910 self.saveAct.setWhatsThis(self.tr( |
3910 self.saveAct.setWhatsThis(self.tr( |
3911 """<b>Save</b>""" |
3911 """<b>Save</b>""" |
3912 """<p>This saves the current project.</p>""" |
3912 """<p>This saves the current project.</p>""" |
3914 self.saveAct.triggered.connect(self.saveProject) |
3914 self.saveAct.triggered.connect(self.saveProject) |
3915 self.actions.append(self.saveAct) |
3915 self.actions.append(self.saveAct) |
3916 |
3916 |
3917 self.saveasAct = E5Action( |
3917 self.saveasAct = E5Action( |
3918 self.tr('Save project as'), |
3918 self.tr('Save project as'), |
3919 UI.PixmapCache.getIcon("projectSaveAs.png"), |
3919 UI.PixmapCache.getIcon("projectSaveAs"), |
3920 self.tr('Save &as...'), 0, 0, self, 'project_save_as') |
3920 self.tr('Save &as...'), 0, 0, self, 'project_save_as') |
3921 self.saveasAct.setStatusTip(self.tr( |
3921 self.saveasAct.setStatusTip(self.tr( |
3922 'Save the current project to a new file')) |
3922 'Save the current project to a new file')) |
3923 self.saveasAct.setWhatsThis(self.tr( |
3923 self.saveasAct.setWhatsThis(self.tr( |
3924 """<b>Save as</b>""" |
3924 """<b>Save as</b>""" |
3929 |
3929 |
3930 self.actGrp2 = createActionGroup(self) |
3930 self.actGrp2 = createActionGroup(self) |
3931 |
3931 |
3932 self.addFilesAct = E5Action( |
3932 self.addFilesAct = E5Action( |
3933 self.tr('Add files to project'), |
3933 self.tr('Add files to project'), |
3934 UI.PixmapCache.getIcon("fileMisc.png"), |
3934 UI.PixmapCache.getIcon("fileMisc"), |
3935 self.tr('Add &files...'), 0, 0, |
3935 self.tr('Add &files...'), 0, 0, |
3936 self.actGrp2, 'project_add_file') |
3936 self.actGrp2, 'project_add_file') |
3937 self.addFilesAct.setStatusTip(self.tr( |
3937 self.addFilesAct.setStatusTip(self.tr( |
3938 'Add files to the current project')) |
3938 'Add files to the current project')) |
3939 self.addFilesAct.setWhatsThis(self.tr( |
3939 self.addFilesAct.setWhatsThis(self.tr( |
3945 self.addFilesAct.triggered.connect(self.addFiles) |
3945 self.addFilesAct.triggered.connect(self.addFiles) |
3946 self.actions.append(self.addFilesAct) |
3946 self.actions.append(self.addFilesAct) |
3947 |
3947 |
3948 self.addDirectoryAct = E5Action( |
3948 self.addDirectoryAct = E5Action( |
3949 self.tr('Add directory to project'), |
3949 self.tr('Add directory to project'), |
3950 UI.PixmapCache.getIcon("dirOpen.png"), |
3950 UI.PixmapCache.getIcon("dirOpen"), |
3951 self.tr('Add directory...'), 0, 0, |
3951 self.tr('Add directory...'), 0, 0, |
3952 self.actGrp2, 'project_add_directory') |
3952 self.actGrp2, 'project_add_directory') |
3953 self.addDirectoryAct.setStatusTip( |
3953 self.addDirectoryAct.setStatusTip( |
3954 self.tr('Add a directory to the current project')) |
3954 self.tr('Add a directory to the current project')) |
3955 self.addDirectoryAct.setWhatsThis(self.tr( |
3955 self.addDirectoryAct.setWhatsThis(self.tr( |
3960 self.addDirectoryAct.triggered.connect(self.addDirectory) |
3960 self.addDirectoryAct.triggered.connect(self.addDirectory) |
3961 self.actions.append(self.addDirectoryAct) |
3961 self.actions.append(self.addDirectoryAct) |
3962 |
3962 |
3963 self.addLanguageAct = E5Action( |
3963 self.addLanguageAct = E5Action( |
3964 self.tr('Add translation to project'), |
3964 self.tr('Add translation to project'), |
3965 UI.PixmapCache.getIcon("linguist4.png"), |
3965 UI.PixmapCache.getIcon("linguist4"), |
3966 self.tr('Add &translation...'), 0, 0, |
3966 self.tr('Add &translation...'), 0, 0, |
3967 self.actGrp2, 'project_add_translation') |
3967 self.actGrp2, 'project_add_translation') |
3968 self.addLanguageAct.setStatusTip( |
3968 self.addLanguageAct.setStatusTip( |
3969 self.tr('Add a translation to the current project')) |
3969 self.tr('Add a translation to the current project')) |
3970 self.addLanguageAct.setWhatsThis(self.tr( |
3970 self.addLanguageAct.setWhatsThis(self.tr( |
4005 act.triggered.connect(self.__searchProjectFile) |
4005 act.triggered.connect(self.__searchProjectFile) |
4006 self.actions.append(act) |
4006 self.actions.append(act) |
4007 |
4007 |
4008 self.propsAct = E5Action( |
4008 self.propsAct = E5Action( |
4009 self.tr('Project properties'), |
4009 self.tr('Project properties'), |
4010 UI.PixmapCache.getIcon("projectProps.png"), |
4010 UI.PixmapCache.getIcon("projectProps"), |
4011 self.tr('&Properties...'), 0, 0, self, |
4011 self.tr('&Properties...'), 0, 0, self, |
4012 'project_properties') |
4012 'project_properties') |
4013 self.propsAct.setStatusTip(self.tr('Show the project properties')) |
4013 self.propsAct.setStatusTip(self.tr('Show the project properties')) |
4014 self.propsAct.setWhatsThis(self.tr( |
4014 self.propsAct.setWhatsThis(self.tr( |
4015 """<b>Properties...</b>""" |
4015 """<b>Properties...</b>""" |
4018 self.propsAct.triggered.connect(self.__showProperties) |
4018 self.propsAct.triggered.connect(self.__showProperties) |
4019 self.actions.append(self.propsAct) |
4019 self.actions.append(self.propsAct) |
4020 |
4020 |
4021 self.userPropsAct = E5Action( |
4021 self.userPropsAct = E5Action( |
4022 self.tr('User project properties'), |
4022 self.tr('User project properties'), |
4023 UI.PixmapCache.getIcon("projectUserProps.png"), |
4023 UI.PixmapCache.getIcon("projectUserProps"), |
4024 self.tr('&User Properties...'), 0, 0, self, |
4024 self.tr('&User Properties...'), 0, 0, self, |
4025 'project_user_properties') |
4025 'project_user_properties') |
4026 self.userPropsAct.setStatusTip(self.tr( |
4026 self.userPropsAct.setStatusTip(self.tr( |
4027 'Show the user specific project properties')) |
4027 'Show the user specific project properties')) |
4028 self.userPropsAct.setWhatsThis(self.tr( |
4028 self.userPropsAct.setWhatsThis(self.tr( |
4255 |
4255 |
4256 self.pluginGrp = createActionGroup(self) |
4256 self.pluginGrp = createActionGroup(self) |
4257 |
4257 |
4258 self.pluginPkgListAct = E5Action( |
4258 self.pluginPkgListAct = E5Action( |
4259 self.tr('Create Package List'), |
4259 self.tr('Create Package List'), |
4260 UI.PixmapCache.getIcon("pluginArchiveList.png"), |
4260 UI.PixmapCache.getIcon("pluginArchiveList"), |
4261 self.tr('Create &Package List'), 0, 0, |
4261 self.tr('Create &Package List'), 0, 0, |
4262 self.pluginGrp, 'project_plugin_pkglist') |
4262 self.pluginGrp, 'project_plugin_pkglist') |
4263 self.pluginPkgListAct.setStatusTip( |
4263 self.pluginPkgListAct.setStatusTip( |
4264 self.tr('Create an initial PKGLIST file for an eric6 plugin.')) |
4264 self.tr('Create an initial PKGLIST file for an eric6 plugin.')) |
4265 self.pluginPkgListAct.setWhatsThis(self.tr( |
4265 self.pluginPkgListAct.setWhatsThis(self.tr( |
4271 self.pluginPkgListAct.triggered.connect(self.__pluginCreatePkgList) |
4271 self.pluginPkgListAct.triggered.connect(self.__pluginCreatePkgList) |
4272 self.actions.append(self.pluginPkgListAct) |
4272 self.actions.append(self.pluginPkgListAct) |
4273 |
4273 |
4274 self.pluginArchiveAct = E5Action( |
4274 self.pluginArchiveAct = E5Action( |
4275 self.tr('Create Plugin Archives'), |
4275 self.tr('Create Plugin Archives'), |
4276 UI.PixmapCache.getIcon("pluginArchive.png"), |
4276 UI.PixmapCache.getIcon("pluginArchive"), |
4277 self.tr('Create Plugin &Archives'), 0, 0, |
4277 self.tr('Create Plugin &Archives'), 0, 0, |
4278 self.pluginGrp, 'project_plugin_archive') |
4278 self.pluginGrp, 'project_plugin_archive') |
4279 self.pluginArchiveAct.setStatusTip( |
4279 self.pluginArchiveAct.setStatusTip( |
4280 self.tr('Create eric6 plugin archive files.')) |
4280 self.tr('Create eric6 plugin archive files.')) |
4281 self.pluginArchiveAct.setWhatsThis(self.tr( |
4281 self.pluginArchiveAct.setWhatsThis(self.tr( |
4288 self.pluginArchiveAct.triggered.connect(self.__pluginCreateArchives) |
4288 self.pluginArchiveAct.triggered.connect(self.__pluginCreateArchives) |
4289 self.actions.append(self.pluginArchiveAct) |
4289 self.actions.append(self.pluginArchiveAct) |
4290 |
4290 |
4291 self.pluginSArchiveAct = E5Action( |
4291 self.pluginSArchiveAct = E5Action( |
4292 self.tr('Create Plugin Archives (Snapshot)'), |
4292 self.tr('Create Plugin Archives (Snapshot)'), |
4293 UI.PixmapCache.getIcon("pluginArchiveSnapshot.png"), |
4293 UI.PixmapCache.getIcon("pluginArchiveSnapshot"), |
4294 self.tr('Create Plugin Archives (&Snapshot)'), 0, 0, |
4294 self.tr('Create Plugin Archives (&Snapshot)'), 0, 0, |
4295 self.pluginGrp, 'project_plugin_sarchive') |
4295 self.pluginGrp, 'project_plugin_sarchive') |
4296 self.pluginSArchiveAct.setStatusTip(self.tr( |
4296 self.pluginSArchiveAct.setStatusTip(self.tr( |
4297 'Create eric6 plugin archive files (snapshot releases).')) |
4297 'Create eric6 plugin archive files (snapshot releases).')) |
4298 self.pluginSArchiveAct.setWhatsThis(self.tr( |
4298 self.pluginSArchiveAct.setWhatsThis(self.tr( |
5516 else: |
5516 else: |
5517 message = self.tr("<p>The eric6 plugin archive files were " |
5517 message = self.tr("<p>The eric6 plugin archive files were " |
5518 "created successfully.</p>") |
5518 "created successfully.</p>") |
5519 if self.ui.notificationsEnabled(): |
5519 if self.ui.notificationsEnabled(): |
5520 self.ui.showNotification( |
5520 self.ui.showNotification( |
5521 UI.PixmapCache.getPixmap("pluginArchive48.png"), |
5521 UI.PixmapCache.getPixmap("pluginArchive48"), |
5522 self.tr("Create Plugin Archive"), |
5522 self.tr("Create Plugin Archive"), |
5523 message) |
5523 message) |
5524 else: |
5524 else: |
5525 E5MessageBox.information( |
5525 E5MessageBox.information( |
5526 self.ui, |
5526 self.ui, |
5784 """<p>There are changes that require the default""" |
5784 """<p>There are changes that require the default""" |
5785 """ make target to be rebuilt.</p>""") |
5785 """ make target to be rebuilt.</p>""") |
5786 |
5786 |
5787 if self.ui.notificationsEnabled() and not interactive: |
5787 if self.ui.notificationsEnabled() and not interactive: |
5788 self.ui.showNotification( |
5788 self.ui.showNotification( |
5789 UI.PixmapCache.getPixmap("makefile48.png"), |
5789 UI.PixmapCache.getPixmap("makefile48"), |
5790 title, |
5790 title, |
5791 message) |
5791 message) |
5792 else: |
5792 else: |
5793 E5MessageBox.information(self.ui, title, message) |
5793 E5MessageBox.information(self.ui, title, message) |
5794 elif exitCode > 1: |
5794 elif exitCode > 1: |