4685 f"<td>{session}</td></tr>" |
4685 f"<td>{session}</td></tr>" |
4686 ) |
4686 ) |
4687 |
4687 |
4688 versionInfo.append("</table>") |
4688 versionInfo.append("</table>") |
4689 |
4689 |
4690 VersionsDialog(self, Program, "".join(versionInfo)) |
4690 VersionsDialog(parent=self, title=Program, text="".join(versionInfo)) |
4691 |
4691 |
4692 def __copyVersions(self): |
4692 def __copyVersions(self): |
4693 """ |
4693 """ |
4694 Private method to generated version information and copy that to the clipboard. |
4694 Private method to generated version information and copy that to the clipboard. |
4695 """ |
4695 """ |
4793 from .ErrorLogDialog import ErrorLogDialog |
4793 from .ErrorLogDialog import ErrorLogDialog |
4794 |
4794 |
4795 if Preferences.getUI("CheckErrorLog"): |
4795 if Preferences.getUI("CheckErrorLog"): |
4796 logFile = os.path.join(EricUtilities.getConfigDir(), self.ErrorLogFileName) |
4796 logFile = os.path.join(EricUtilities.getConfigDir(), self.ErrorLogFileName) |
4797 if os.path.exists(logFile): |
4797 if os.path.exists(logFile): |
4798 dlg = ErrorLogDialog(logFile, False, self) |
4798 dlg = ErrorLogDialog(logFile, False, parent=self) |
4799 dlg.exec() |
4799 dlg.exec() |
4800 |
4800 |
4801 def __hasErrorLog(self): |
4801 def __hasErrorLog(self): |
4802 """ |
4802 """ |
4803 Private method to check, if an error log file exists. |
4803 Private method to check, if an error log file exists. |
4824 Private slot to show a dialog containing information about the |
4824 Private slot to show a dialog containing information about the |
4825 installation process. |
4825 installation process. |
4826 """ |
4826 """ |
4827 from .InstallInfoDialog import InstallInfoDialog |
4827 from .InstallInfoDialog import InstallInfoDialog |
4828 |
4828 |
4829 dlg = InstallInfoDialog(self) |
4829 dlg = InstallInfoDialog(parent=self) |
4830 if dlg.wasLoaded(): |
4830 if dlg.wasLoaded(): |
4831 dlg.exec() |
4831 dlg.exec() |
4832 |
4832 |
4833 def __compareFiles(self): |
4833 def __compareFiles(self): |
4834 """ |
4834 """ |
6046 """ |
6046 """ |
6047 Private slot to handle the tools configuration menu entry. |
6047 Private slot to handle the tools configuration menu entry. |
6048 """ |
6048 """ |
6049 from eric7.Preferences.ToolConfigurationDialog import ToolConfigurationDialog |
6049 from eric7.Preferences.ToolConfigurationDialog import ToolConfigurationDialog |
6050 |
6050 |
6051 dlg = ToolConfigurationDialog(self.toolGroups[self.currentToolGroup][1], self) |
6051 dlg = ToolConfigurationDialog( |
|
6052 self.toolGroups[self.currentToolGroup][1], parent=self |
|
6053 ) |
6052 if dlg.exec() == QDialog.DialogCode.Accepted: |
6054 if dlg.exec() == QDialog.DialogCode.Accepted: |
6053 self.toolGroups[self.currentToolGroup][1] = dlg.getToollist() |
6055 self.toolGroups[self.currentToolGroup][1] = dlg.getToollist() |
6054 self.__updateExternalToolsActions() |
6056 self.__updateExternalToolsActions() |
6055 |
6057 |
6056 def __toolGroupsConfiguration(self): |
6058 def __toolGroupsConfiguration(self): |
6059 """ |
6061 """ |
6060 from eric7.Preferences.ToolGroupConfigurationDialog import ( |
6062 from eric7.Preferences.ToolGroupConfigurationDialog import ( |
6061 ToolGroupConfigurationDialog, |
6063 ToolGroupConfigurationDialog, |
6062 ) |
6064 ) |
6063 |
6065 |
6064 dlg = ToolGroupConfigurationDialog(self.toolGroups, self.currentToolGroup, self) |
6066 dlg = ToolGroupConfigurationDialog( |
|
6067 self.toolGroups, self.currentToolGroup, parent=self |
|
6068 ) |
6065 if dlg.exec() == QDialog.DialogCode.Accepted: |
6069 if dlg.exec() == QDialog.DialogCode.Accepted: |
6066 self.toolGroups, self.currentToolGroup = dlg.getToolGroups() |
6070 self.toolGroups, self.currentToolGroup = dlg.getToolGroups() |
6067 |
6071 |
6068 def __createTestingDialog(self): |
6072 def __createTestingDialog(self): |
6069 """ |
6073 """ |
7323 from eric7.Preferences.ConfigurationDialog import ConfigurationDialog |
7327 from eric7.Preferences.ConfigurationDialog import ConfigurationDialog |
7324 |
7328 |
7325 if self.__configurationDialog is None: |
7329 if self.__configurationDialog is None: |
7326 # only one invocation at a time is allowed |
7330 # only one invocation at a time is allowed |
7327 self.__configurationDialog = ConfigurationDialog( |
7331 self.__configurationDialog = ConfigurationDialog( |
7328 self, |
7332 parent=self, |
7329 "Configuration", |
7333 name="Configuration", |
7330 expandedEntries=self.__expandedConfigurationEntries, |
7334 expandedEntries=self.__expandedConfigurationEntries, |
7331 ) |
7335 ) |
7332 self.__configurationDialog.preferencesChanged.connect( |
7336 self.__configurationDialog.preferencesChanged.connect( |
7333 self.__preferencesChanged |
7337 self.__preferencesChanged |
7334 ) |
7338 ) |
7528 Private slot to configure the various view profiles. |
7532 Private slot to configure the various view profiles. |
7529 """ |
7533 """ |
7530 from eric7.Preferences.ViewProfileDialog import ViewProfileDialog |
7534 from eric7.Preferences.ViewProfileDialog import ViewProfileDialog |
7531 |
7535 |
7532 dlg = ViewProfileDialog( |
7536 dlg = ViewProfileDialog( |
7533 self.__layoutType, self.profiles["edit"][1], self.profiles["debug"][1] |
7537 self.__layoutType, |
|
7538 self.profiles["edit"][1], |
|
7539 self.profiles["debug"][1], |
|
7540 parent=self, |
7534 ) |
7541 ) |
7535 if dlg.exec() == QDialog.DialogCode.Accepted: |
7542 if dlg.exec() == QDialog.DialogCode.Accepted: |
7536 edit, debug = dlg.getVisibilities() |
7543 edit, debug = dlg.getVisibilities() |
7537 self.profiles["edit"][1] = edit |
7544 self.profiles["edit"][1] = edit |
7538 self.profiles["debug"][1] = debug |
7545 self.profiles["debug"][1] = debug |
7546 """ |
7553 """ |
7547 Private slot to configure the various toolbars. |
7554 Private slot to configure the various toolbars. |
7548 """ |
7555 """ |
7549 from eric7.EricWidgets.EricToolBarDialog import EricToolBarDialog |
7556 from eric7.EricWidgets.EricToolBarDialog import EricToolBarDialog |
7550 |
7557 |
7551 dlg = EricToolBarDialog(self.toolbarManager) |
7558 dlg = EricToolBarDialog(self.toolbarManager, parent=self) |
7552 if dlg.exec() == QDialog.DialogCode.Accepted: |
7559 if dlg.exec() == QDialog.DialogCode.Accepted: |
7553 Preferences.setUI("ToolbarManagerState", self.toolbarManager.saveState()) |
7560 Preferences.setUI("ToolbarManagerState", self.toolbarManager.saveState()) |
7554 |
7561 |
7555 def __configShortcuts(self): |
7562 def __configShortcuts(self): |
7556 """ |
7563 """ |
7630 """ |
7637 """ |
7631 Private slot to clear the private data lists. |
7638 Private slot to clear the private data lists. |
7632 """ |
7639 """ |
7633 from .ClearPrivateDataDialog import ClearPrivateDataDialog |
7640 from .ClearPrivateDataDialog import ClearPrivateDataDialog |
7634 |
7641 |
7635 dlg = ClearPrivateDataDialog(self) |
7642 dlg = ClearPrivateDataDialog(parent=self) |
7636 if dlg.exec() == QDialog.DialogCode.Accepted: |
7643 if dlg.exec() == QDialog.DialogCode.Accepted: |
7637 # recent files, recent projects, recent multi projects, |
7644 # recent files, recent projects, recent multi projects, |
7638 # debug histories, shell histories |
7645 # debug histories, shell histories |
7639 ( |
7646 ( |
7640 files, |
7647 files, |
8293 """ |
8300 """ |
8294 Private slot to show a dialog to uninstall a plugin. |
8301 Private slot to show a dialog to uninstall a plugin. |
8295 """ |
8302 """ |
8296 from eric7.PluginManager.PluginUninstallDialog import PluginUninstallDialog |
8303 from eric7.PluginManager.PluginUninstallDialog import PluginUninstallDialog |
8297 |
8304 |
8298 dlg = PluginUninstallDialog(self.pluginManager, self) |
8305 dlg = PluginUninstallDialog(self.pluginManager, parent=self) |
8299 dlg.exec() |
8306 dlg.exec() |
8300 |
8307 |
8301 if self.__findFileWidget: |
8308 if self.__findFileWidget: |
8302 self.__findFileWidget.populateFileCategories() |
8309 self.__findFileWidget.populateFileCategories() |
8303 if self.__findFileDialog: |
8310 if self.__findFileDialog: |
8308 """ |
8315 """ |
8309 Private slot to show the plugins available for download. |
8316 Private slot to show the plugins available for download. |
8310 """ |
8317 """ |
8311 from eric7.PluginManager.PluginRepositoryDialog import PluginRepositoryDialog |
8318 from eric7.PluginManager.PluginRepositoryDialog import PluginRepositoryDialog |
8312 |
8319 |
8313 dlg = PluginRepositoryDialog(self.pluginManager, self) |
8320 dlg = PluginRepositoryDialog(self.pluginManager, parent=self) |
8314 res = dlg.exec() |
8321 res = dlg.exec() |
8315 if res == (QDialog.DialogCode.Accepted + 1): |
8322 if res == (QDialog.DialogCode.Accepted + 1): |
8316 self.__installPlugins(dlg.getDownloadedPlugins()) |
8323 self.__installPlugins(dlg.getDownloadedPlugins()) |
8317 |
8324 |
8318 def __pluginsConfigure(self): |
8325 def __pluginsConfigure(self): |