| |
- ExtensionManagerDialog
class ExtensionManagerDialog |
|
This module shows the Extensions Manager dialog which is used to add, remove
and configure Jokosher's Extensions. |
|
Methods defined here:
- AddColumn(self, title, modelId, cell_renderer='text', cell_width=20)
- Adds a display column to the ExtensionManager dialog.
Parameters:
title -- title of the column.
modelId -- index of the column within the TreeView model.
cell_renderer -- type of render to use:
'text' = renders text into the TreeView.
'toggle' = renders toggle buttons into the TreeView.
cell_width -- width in pixels of the column.
- OnAdd(self, button)
- Displays a dialog which allows the user to add an external Extension.
If an error occurs, an error dialog is displayed.
Parameters:
button -- reserved for GTK callbacks, don't use it explicitly.
- OnClose(self, button)
- Destroys the dialog when the close button is pressed.
It also saves the Extensions's settings.
Parameters:
button -- reserved for GTK callbacks, don't use it explicitly.
- OnPreferences(self, button)
- Displays the Extension's preferences dialog.
If an error occurs, an error dialog is displayed.
Parameters:
button -- reserved for GTK callbacks, don't use it explicitly.
- OnRemove(self, button)
- Removes an Extension from the Extensions list.
If an error occurs, an error dialog is displayed.
Parameters:
button -- reserved for GTK callbacks, don't use it explicitly.
- OnSelect(self, tree)
- When an Extension is selected, enables/disables the preferences button
according to the reported Extension capabilities and updates the
description label.
Parameters:
tree -- GTKTreeView holding the Extensions's representation.
- ToggleEnabled(self, cell, path)
- Enables/disables an Extension.
Parameters:
cell -- reserved for GTK callbacks, don't use it explicitly.
path -- path to the Extension.
- UpdateModel(self)
- Updates the ExtensionManagerDialog Extension list, to reflect changes
in the currently available Extensions.
- __init__(self, parent)
- Creates a new instance of ExtensionManagerDialog.
Parameters:
parent -- the parent MainApp Jokosher window.
| |