20 from PyQt6.QtWidgets import ( |
20 from PyQt6.QtWidgets import ( |
21 QWidget, QDialogButtonBox, QAbstractButton, QApplication, QDialog, |
21 QWidget, QDialogButtonBox, QAbstractButton, QApplication, QDialog, |
22 QVBoxLayout |
22 QVBoxLayout |
23 ) |
23 ) |
24 |
24 |
25 from E5Gui import E5FileDialog |
25 from E5Gui import EricFileDialog |
26 from E5Gui.E5MainWindow import E5MainWindow |
26 from E5Gui.EricMainWindow import EricMainWindow |
27 |
27 |
28 from .Ui_PluginInstallDialog import Ui_PluginInstallDialog |
28 from .Ui_PluginInstallDialog import Ui_PluginInstallDialog |
29 |
29 |
30 import Utilities |
30 import Utilities |
31 import Preferences |
31 import Preferences |
157 def on_addArchivesButton_clicked(self): |
157 def on_addArchivesButton_clicked(self): |
158 """ |
158 """ |
159 Private slot to select plugin ZIP-archives via a file selection dialog. |
159 Private slot to select plugin ZIP-archives via a file selection dialog. |
160 """ |
160 """ |
161 dn = Preferences.getPluginManager("DownloadPath") |
161 dn = Preferences.getPluginManager("DownloadPath") |
162 archives = E5FileDialog.getOpenFileNames( |
162 archives = EricFileDialog.getOpenFileNames( |
163 self, |
163 self, |
164 self.tr("Select plugin ZIP-archives"), |
164 self.tr("Select plugin ZIP-archives"), |
165 dn, |
165 dn, |
166 self.tr("Plugin archive (*.zip)")) |
166 self.tr("Plugin archive (*.zip)")) |
167 |
167 |
618 @return flag indicating a restart is required (boolean) |
618 @return flag indicating a restart is required (boolean) |
619 """ |
619 """ |
620 return self.cw.restartNeeded() |
620 return self.cw.restartNeeded() |
621 |
621 |
622 |
622 |
623 class PluginInstallWindow(E5MainWindow): |
623 class PluginInstallWindow(EricMainWindow): |
624 """ |
624 """ |
625 Main window class for the standalone dialog. |
625 Main window class for the standalone dialog. |
626 """ |
626 """ |
627 def __init__(self, pluginFileNames, parent=None): |
627 def __init__(self, pluginFileNames, parent=None): |
628 """ |
628 """ |