|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.PluginManager.PluginInfoDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.PluginManager.PluginInfoDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing the Plugin Info Dialog. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#PluginInfoDialog">PluginInfoDialog</a></td> |
|
25 <td>Class implementing the Plugin Info Dialog.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="PluginInfoDialog" ID="PluginInfoDialog"></a> |
|
36 <h2>PluginInfoDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing the Plugin Info Dialog. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QDialog, Ui_PluginInfoDialog |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#PluginInfoDialog.__init__">PluginInfoDialog</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#PluginInfoDialog.__activatePlugin">__activatePlugin</a></td> |
|
63 <td>Private slot to handle the "Deactivate" context menu action.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#PluginInfoDialog.__createEntry">__createEntry</a></td> |
|
67 <td>Private method to create a list entry based on the provided info.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#PluginInfoDialog.__deactivatePlugin">__deactivatePlugin</a></td> |
|
71 <td>Private slot to handle the "Activate" context menu action.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#PluginInfoDialog.__populateList">__populateList</a></td> |
|
75 <td>Private method to (re)populate the list of plugins.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#PluginInfoDialog.__showContextMenu">__showContextMenu</a></td> |
|
79 <td>Private slot to show the context menu of the listview.</td> |
|
80 </tr> |
|
81 <tr> |
|
82 <td><a href="#PluginInfoDialog.__showDetails">__showDetails</a></td> |
|
83 <td>Private slot to handle the "Show details" context menu action.</td> |
|
84 </tr> |
|
85 <tr> |
|
86 <td><a href="#PluginInfoDialog.on_pluginList_itemActivated">on_pluginList_itemActivated</a></td> |
|
87 <td>Private slot to show details about a plugin.</td> |
|
88 </tr> |
|
89 </table> |
|
90 <h3>Static Methods</h3> |
|
91 |
|
92 <table> |
|
93 <tr><td>None</td></tr> |
|
94 </table> |
|
95 |
|
96 <a NAME="PluginInfoDialog.__init__" ID="PluginInfoDialog.__init__"></a> |
|
97 <h4>PluginInfoDialog (Constructor)</h4> |
|
98 <b>PluginInfoDialog</b>(<i>pluginManager, parent=None</i>) |
|
99 |
|
100 <p> |
|
101 Constructor |
|
102 </p> |
|
103 <dl> |
|
104 |
|
105 <dt><i>pluginManager</i></dt> |
|
106 <dd> |
|
107 reference to the plugin manager object |
|
108 </dd> |
|
109 <dt><i>parent</i></dt> |
|
110 <dd> |
|
111 parent of this dialog (QWidget) |
|
112 </dd> |
|
113 </dl> |
|
114 <a NAME="PluginInfoDialog.__activatePlugin" ID="PluginInfoDialog.__activatePlugin"></a> |
|
115 <h4>PluginInfoDialog.__activatePlugin</h4> |
|
116 <b>__activatePlugin</b>(<i></i>) |
|
117 |
|
118 <p> |
|
119 Private slot to handle the "Deactivate" context menu action. |
|
120 </p> |
|
121 <a NAME="PluginInfoDialog.__createEntry" ID="PluginInfoDialog.__createEntry"></a> |
|
122 <h4>PluginInfoDialog.__createEntry</h4> |
|
123 <b>__createEntry</b>(<i>info</i>) |
|
124 |
|
125 <p> |
|
126 Private method to create a list entry based on the provided info. |
|
127 </p> |
|
128 <dl> |
|
129 |
|
130 <dt><i>info</i> (dict)</dt> |
|
131 <dd> |
|
132 dictionary giving the info for the entry (as returned by |
|
133 PluginManager.getPluginInfos()) |
|
134 </dd> |
|
135 </dl> |
|
136 <a NAME="PluginInfoDialog.__deactivatePlugin" ID="PluginInfoDialog.__deactivatePlugin"></a> |
|
137 <h4>PluginInfoDialog.__deactivatePlugin</h4> |
|
138 <b>__deactivatePlugin</b>(<i></i>) |
|
139 |
|
140 <p> |
|
141 Private slot to handle the "Activate" context menu action. |
|
142 </p> |
|
143 <a NAME="PluginInfoDialog.__populateList" ID="PluginInfoDialog.__populateList"></a> |
|
144 <h4>PluginInfoDialog.__populateList</h4> |
|
145 <b>__populateList</b>(<i></i>) |
|
146 |
|
147 <p> |
|
148 Private method to (re)populate the list of plugins. |
|
149 </p> |
|
150 <a NAME="PluginInfoDialog.__showContextMenu" ID="PluginInfoDialog.__showContextMenu"></a> |
|
151 <h4>PluginInfoDialog.__showContextMenu</h4> |
|
152 <b>__showContextMenu</b>(<i>coord</i>) |
|
153 |
|
154 <p> |
|
155 Private slot to show the context menu of the listview. |
|
156 </p> |
|
157 <dl> |
|
158 |
|
159 <dt><i>coord</i></dt> |
|
160 <dd> |
|
161 the position of the mouse pointer (QPoint) |
|
162 </dd> |
|
163 </dl> |
|
164 <a NAME="PluginInfoDialog.__showDetails" ID="PluginInfoDialog.__showDetails"></a> |
|
165 <h4>PluginInfoDialog.__showDetails</h4> |
|
166 <b>__showDetails</b>(<i></i>) |
|
167 |
|
168 <p> |
|
169 Private slot to handle the "Show details" context menu action. |
|
170 </p> |
|
171 <a NAME="PluginInfoDialog.on_pluginList_itemActivated" ID="PluginInfoDialog.on_pluginList_itemActivated"></a> |
|
172 <h4>PluginInfoDialog.on_pluginList_itemActivated</h4> |
|
173 <b>on_pluginList_itemActivated</b>(<i>item, column</i>) |
|
174 |
|
175 <p> |
|
176 Private slot to show details about a plugin. |
|
177 </p> |
|
178 <dl> |
|
179 |
|
180 <dt><i>item</i></dt> |
|
181 <dd> |
|
182 reference to the selected item (QTreeWidgetItem) |
|
183 </dd> |
|
184 <dt><i>column</i></dt> |
|
185 <dd> |
|
186 column number (integer) |
|
187 </dd> |
|
188 </dl> |
|
189 <div align="right"><a href="#top">Up</a></div> |
|
190 <hr /> |
|
191 </body></html> |