src/eric7/PluginManager/PluginRepositoryDialog.py

branch
eric7
changeset 10502
89b8e0a67fde
parent 10500
40fc136e7002
child 10517
aecd5a8c958c
equal deleted inserted replaced
10501:234702836442 10502:89b8e0a67fde
79 LocalUpdate = 2 79 LocalUpdate = 2
80 RemoteUpdate = 3 80 RemoteUpdate = 3
81 Error = 4 81 Error = 4
82 82
83 83
84 # TODO: add "Selected:" entry
85 class PluginRepositoryWidget(QWidget, Ui_PluginRepositoryDialog): 84 class PluginRepositoryWidget(QWidget, Ui_PluginRepositoryDialog):
86 """ 85 """
87 Class implementing a dialog showing the available plugins. 86 Class implementing a dialog showing the available plugins.
88 87
89 @signal closeAndInstall() emitted when the Close & Install button is 88 @signal closeAndInstall() emitted when the Close & Install button is
260 self.__isDownloadInstall = False 259 self.__isDownloadInstall = False
261 self.__allDownloadedOk = False 260 self.__allDownloadedOk = False
262 261
263 self.__hiddenPlugins = Preferences.getPluginManager("HiddenPlugins") 262 self.__hiddenPlugins = Preferences.getPluginManager("HiddenPlugins")
264 263
264 self.on_repositoryList_itemSelectionChanged()
265 self.__populateList() 265 self.__populateList()
266 266
267 def __reachabilityChanged(self, reachability): 267 def __reachabilityChanged(self, reachability):
268 """ 268 """
269 Private slot handling reachability state changes. 269 Private slot handling reachability state changes.
436 """ 436 """
437 enable = bool(self.__selectedItems()) 437 enable = bool(self.__selectedItems())
438 self.__downloadButton.setEnabled(enable and self.__online) 438 self.__downloadButton.setEnabled(enable and self.__online)
439 self.__downloadInstallButton.setEnabled(enable and self.__online) 439 self.__downloadInstallButton.setEnabled(enable and self.__online)
440 self.__installButton.setEnabled(enable) 440 self.__installButton.setEnabled(enable)
441
442 self.selectedLabel.setText(
443 self.tr("Selected: <b>{0}</b>")
444 .format(len(self.repositoryList.selectedItems()))
445 )
441 446
442 def reloadList(self): 447 def reloadList(self):
443 """ 448 """
444 Public method to reload the list of plugins. 449 Public method to reload the list of plugins.
445 """ 450 """

eric ide

mercurial