eric4.PluginManager.PluginRepositoryDialog

Module implementing a dialog showing the available plugins.

Classes

PluginRepositoryDialog Class implementing a dialog showing the available plugins.

Functions

None


PluginRepositoryDialog

Class implementing a dialog showing the available plugins.

Derived from

QDialog, Ui_PluginRepositoryDialog

Methods

PluginRepositoryDialog Constructor
__dataReadProgress Private slot to show the download progress.
__downloadCancel Private slot to cancel the current download.
__downloadFile Private slot to download the given file.
__downloadFileDone Private method called, after the file has been downloaded from the internet.
__downloadPlugin Private method to download the next plugin.
__downloadPluginDone Private method called, when the download of a plugin is finished.
__downloadPlugins Private slot to download the selected plugins.
__downloadPluginsDone Private method called, when the download of the plugins is finished.
__formatDescription Private method to format the description.
__isUpToDate Private method to check, if the given archive is up-to-date.
__populateList Private method to populate the list of available plugins.
__resortRepositoryList Private method to resort the tree.
__selectedItems Private method to get all selected items without the toplevel ones.
__startPluginInstall Private slot to start the eric4 plugin installation dialog.
__updateList Private slot to download a new list and display the contents.
addEntry Public method to add an entry to the list.
on_buttonBox_clicked Private slot to handle the click of a button of the button box.
on_repositoryList_currentItemChanged Private slot to handle the change of the current item.
on_repositoryList_itemSelectionChanged Private slot to handle a change of the selection.

PluginRepositoryDialog (Constructor)

PluginRepositoryDialog(parent = None)

Constructor

parent
parent of this dialog (QWidget)

PluginRepositoryDialog.__dataReadProgress

__dataReadProgress(done, total)

Private slot to show the download progress.

done
number of bytes downloaded so far (integer)
total
total bytes to be downloaded (integer)

PluginRepositoryDialog.__downloadCancel

__downloadCancel()

Private slot to cancel the current download.

PluginRepositoryDialog.__downloadFile

__downloadFile(url, filename, doneMethod = None)

Private slot to download the given file.

url
URL for the download (string or QString)
filename
local name of the file (string or QString)
doneMethod
method to be called when done

PluginRepositoryDialog.__downloadFileDone

__downloadFileDone(error)

Private method called, after the file has been downloaded from the internet.

error
flag indicating an error condition (boolean)

PluginRepositoryDialog.__downloadPlugin

__downloadPlugin()

Private method to download the next plugin.

PluginRepositoryDialog.__downloadPluginDone

__downloadPluginDone()

Private method called, when the download of a plugin is finished.

PluginRepositoryDialog.__downloadPlugins

__downloadPlugins()

Private slot to download the selected plugins.

PluginRepositoryDialog.__downloadPluginsDone

__downloadPluginsDone()

Private method called, when the download of the plugins is finished.

PluginRepositoryDialog.__formatDescription

__formatDescription(lines)

Private method to format the description.

lines
lines of the description (QStringList)
Returns:
formatted description (QString)

PluginRepositoryDialog.__isUpToDate

__isUpToDate(filename, version)

Private method to check, if the given archive is up-to-date.

filename
data for the filename field (string or QString)
version
data for the version field (string or QString)
Returns:
flag indicating up-to-date (boolean)

PluginRepositoryDialog.__populateList

__populateList()

Private method to populate the list of available plugins.

PluginRepositoryDialog.__resortRepositoryList

__resortRepositoryList()

Private method to resort the tree.

PluginRepositoryDialog.__selectedItems

__selectedItems()

Private method to get all selected items without the toplevel ones.

Returns:
list of selected items (QList)

PluginRepositoryDialog.__startPluginInstall

__startPluginInstall()

Private slot to start the eric4 plugin installation dialog.

PluginRepositoryDialog.__updateList

__updateList()

Private slot to download a new list and display the contents.

PluginRepositoryDialog.addEntry

addEntry(name, short, description, url, author, version, filename, status)

Public method to add an entry to the list.

name
data for the name field (string or QString)
short
data for the short field (string or QString)
description
data for the description field (list of string or QStringList)
url
data for the url field (string or QString)
author
data for the author field (string or QString)
version
data for the version field (string or QString)
filename
data for the filename field (string or QString)
status
status of the plugin (string [stable, unstable, unknown])

PluginRepositoryDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

Private slot to handle the click of a button of the button box.

PluginRepositoryDialog.on_repositoryList_currentItemChanged

on_repositoryList_currentItemChanged(current, previous)

Private slot to handle the change of the current item.

current
reference to the new current item (QTreeWidgetItem)
previous
reference to the old current item (QTreeWidgetItem)

PluginRepositoryDialog.on_repositoryList_itemSelectionChanged

on_repositoryList_itemSelectionChanged()

Private slot to handle a change of the selection.

Up