Documentation/Source/eric5.PluginManager.PluginInstallDialog.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.PluginManager.PluginInstallDialog</h1> 23 <h1>eric5.PluginManager.PluginInstallDialog</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#80;&#108;&#117;&#103;&#105;&#110; &#105;&#110;&#115;&#116;&#97;&#108;&#108;&#97;&#116;&#105;&#111;&#110; &#100;&#105;&#97;&#108;&#111;&#103;. 25 Module implementing the Plugin installation dialog.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
30 </table> 30 </table>
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#PluginInstallDialog">PluginInstallDialog</a></td> 34 <td><a href="#PluginInstallDialog">PluginInstallDialog</a></td>
35 <td>&#67;&#108;&#97;&#115;&#115; &#102;&#111;&#114; &#116;&#104;&#101; &#100;&#105;&#97;&#108;&#111;&#103; v&#97;&#114;&#105;&#97;&#110;&#116;.</td> 35 <td>Class for the dialog variant.</td>
36 </tr><tr> 36 </tr><tr>
37 <td><a href="#PluginInstallWidget">PluginInstallWidget</a></td> 37 <td><a href="#PluginInstallWidget">PluginInstallWidget</a></td>
38 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#80;&#108;&#117;&#103;&#105;&#110; &#105;&#110;&#115;&#116;&#97;&#108;&#108;&#97;&#116;&#105;&#111;&#110; &#100;&#105;&#97;&#108;&#111;&#103;.</td> 38 <td>Class implementing the Plugin installation dialog.</td>
39 </tr><tr> 39 </tr><tr>
40 <td><a href="#PluginInstallWindow">PluginInstallWindow</a></td> 40 <td><a href="#PluginInstallWindow">PluginInstallWindow</a></td>
41 <td>&#77;&#97;&#105;&#110; w&#105;&#110;&#100;&#111;w &#99;&#108;&#97;&#115;&#115; &#102;&#111;&#114; &#116;&#104;&#101; &#115;&#116;&#97;&#110;&#100;&#97;&#108;&#111;&#110;&#101; &#100;&#105;&#97;&#108;&#111;&#103;.</td> 41 <td>Main window class for the standalone dialog.</td>
42 </tr> 42 </tr>
43 </table> 43 </table>
44 <h3>Functions</h3> 44 <h3>Functions</h3>
45 <table> 45 <table>
46 <tr><td>None</td></tr> 46 <tr><td>None</td></tr>
47 </table> 47 </table>
48 <hr /><hr /> 48 <hr /><hr />
49 <a NAME="PluginInstallDialog" ID="PluginInstallDialog"></a> 49 <a NAME="PluginInstallDialog" ID="PluginInstallDialog"></a>
50 <h2>PluginInstallDialog</h2> 50 <h2>PluginInstallDialog</h2>
51 <p> 51 <p>
52 &#67;&#108;&#97;&#115;&#115; &#102;&#111;&#114; &#116;&#104;&#101; &#100;&#105;&#97;&#108;&#111;&#103; v&#97;&#114;&#105;&#97;&#110;&#116;. 52 Class for the dialog variant.
53 </p> 53 </p>
54 <h3>Derived from</h3> 54 <h3>Derived from</h3>
55 QDialog 55 QDialog
56 <h3>Class Attributes</h3> 56 <h3>Class Attributes</h3>
57 <table> 57 <table>
59 </table> 59 </table>
60 <h3>Methods</h3> 60 <h3>Methods</h3>
61 <table> 61 <table>
62 <tr> 62 <tr>
63 <td><a href="#PluginInstallDialog.__init__">PluginInstallDialog</a></td> 63 <td><a href="#PluginInstallDialog.__init__">PluginInstallDialog</a></td>
64 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 64 <td>Constructor</td>
65 </tr><tr> 65 </tr><tr>
66 <td><a href="#PluginInstallDialog.restartNeeded">restartNeeded</a></td> 66 <td><a href="#PluginInstallDialog.restartNeeded">restartNeeded</a></td>
67 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#104;&#101;&#99;&#107;, &#105;&#102; &#97; &#114;&#101;&#115;&#116;&#97;&#114;&#116; &#111;&#102; &#116;&#104;&#101; &#73;&#68;&#69; &#105;&#115; &#114;&#101;&#113;&#117;&#105;&#114;&#101;&#100;.</td> 67 <td>Public method to check, if a restart of the IDE is required.</td>
68 </tr> 68 </tr>
69 </table> 69 </table>
70 <a NAME="PluginInstallDialog.__init__" ID="PluginInstallDialog.__init__"></a> 70 <a NAME="PluginInstallDialog.__init__" ID="PluginInstallDialog.__init__"></a>
71 <h4>PluginInstallDialog (Constructor)</h4> 71 <h4>PluginInstallDialog (Constructor)</h4>
72 <b>PluginInstallDialog</b>(<i>pluginManager, pluginFileNames, parent = None</i>) 72 <b>PluginInstallDialog</b>(<i>pluginManager, pluginFileNames, parent = None</i>)
73 <p> 73 <p>
74 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 74 Constructor
75 </p><dl> 75 </p><dl>
76 <dt><i>pluginManager</i></dt> 76 <dt><i>pluginManager</i></dt>
77 <dd> 77 <dd>
78 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#108;&#117;&#103;&#105;&#110; &#109;&#97;&#110;&#97;&#103;&#101;&#114; &#111;&#98;&#106;&#101;&#99;&#116; 78 reference to the plugin manager object
79 </dd><dt><i>pluginFileNames</i></dt> 79 </dd><dt><i>pluginFileNames</i></dt>
80 <dd> 80 <dd>
81 &#108;&#105;&#115;&#116; &#111;&#102; &#112;&#108;&#117;&#103;&#105;&#110; &#102;&#105;&#108;&#101;&#115; &#115;&#117;&#103;&#103;&#101;&#115;&#116;&#101;&#100; &#102;&#111;&#114; 81 list of plugin files suggested for
82 &#105;&#110;&#115;&#116;&#97;&#108;&#108;&#97;&#116;&#105;&#111;&#110; (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;) 82 installation (list of strings)
83 </dd><dt><i>parent</i></dt> 83 </dd><dt><i>parent</i></dt>
84 <dd> 84 <dd>
85 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; w&#105;&#100;&#103;&#101;&#116; (&#81;&#87;&#105;&#100;&#103;&#101;&#116;) 85 reference to the parent widget (QWidget)
86 </dd> 86 </dd>
87 </dl><a NAME="PluginInstallDialog.restartNeeded" ID="PluginInstallDialog.restartNeeded"></a> 87 </dl><a NAME="PluginInstallDialog.restartNeeded" ID="PluginInstallDialog.restartNeeded"></a>
88 <h4>PluginInstallDialog.restartNeeded</h4> 88 <h4>PluginInstallDialog.restartNeeded</h4>
89 <b>restartNeeded</b>(<i></i>) 89 <b>restartNeeded</b>(<i></i>)
90 <p> 90 <p>
91 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#104;&#101;&#99;&#107;, &#105;&#102; &#97; &#114;&#101;&#115;&#116;&#97;&#114;&#116; &#111;&#102; &#116;&#104;&#101; &#73;&#68;&#69; &#105;&#115; &#114;&#101;&#113;&#117;&#105;&#114;&#101;&#100;. 91 Public method to check, if a restart of the IDE is required.
92 </p><dl> 92 </p><dl>
93 <dt>Returns:</dt> 93 <dt>Returns:</dt>
94 <dd> 94 <dd>
95 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#97; &#114;&#101;&#115;&#116;&#97;&#114;&#116; &#105;&#115; &#114;&#101;&#113;&#117;&#105;&#114;&#101;&#100; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 95 flag indicating a restart is required (boolean)
96 </dd> 96 </dd>
97 </dl> 97 </dl>
98 <div align="right"><a href="#top">Up</a></div> 98 <div align="right"><a href="#top">Up</a></div>
99 <hr /><hr /> 99 <hr /><hr />
100 <a NAME="PluginInstallWidget" ID="PluginInstallWidget"></a> 100 <a NAME="PluginInstallWidget" ID="PluginInstallWidget"></a>
101 <h2>PluginInstallWidget</h2> 101 <h2>PluginInstallWidget</h2>
102 <p> 102 <p>
103 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#80;&#108;&#117;&#103;&#105;&#110; &#105;&#110;&#115;&#116;&#97;&#108;&#108;&#97;&#116;&#105;&#111;&#110; &#100;&#105;&#97;&#108;&#111;&#103;. 103 Class implementing the Plugin installation dialog.
104 </p> 104 </p>
105 <h3>Derived from</h3> 105 <h3>Derived from</h3>
106 QWidget, Ui_PluginInstallDialog 106 QWidget, Ui_PluginInstallDialog
107 <h3>Class Attributes</h3> 107 <h3>Class Attributes</h3>
108 <table> 108 <table>
110 </table> 110 </table>
111 <h3>Methods</h3> 111 <h3>Methods</h3>
112 <table> 112 <table>
113 <tr> 113 <tr>
114 <td><a href="#PluginInstallWidget.__init__">PluginInstallWidget</a></td> 114 <td><a href="#PluginInstallWidget.__init__">PluginInstallWidget</a></td>
115 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 115 <td>Constructor</td>
116 </tr><tr> 116 </tr><tr>
117 <td><a href="#PluginInstallWidget.__createArchivesList">__createArchivesList</a></td> 117 <td><a href="#PluginInstallWidget.__createArchivesList">__createArchivesList</a></td>
118 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97; &#108;&#105;&#115;&#116; &#111;&#102; &#112;&#108;&#117;&#103;&#105;&#110; &#97;&#114;&#99;&#104;&#105;v&#101; &#110;&#97;&#109;&#101;&#115;.</td> 118 <td>Private method to create a list of plugin archive names.</td>
119 </tr><tr> 119 </tr><tr>
120 <td><a href="#PluginInstallWidget.__installPlugin">__installPlugin</a></td> 120 <td><a href="#PluginInstallWidget.__installPlugin">__installPlugin</a></td>
121 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#105;&#110;&#115;&#116;&#97;&#108;&#108; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#101;&#100; &#112;&#108;&#117;&#103;&#105;&#110;.</td> 121 <td>Private slot to install the selected plugin.</td>
122 </tr><tr> 122 </tr><tr>
123 <td><a href="#PluginInstallWidget.__installPlugins">__installPlugins</a></td> 123 <td><a href="#PluginInstallWidget.__installPlugins">__installPlugins</a></td>
124 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#105;&#110;&#115;&#116;&#97;&#108;&#108; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#101;&#100; &#112;&#108;&#117;&#103;&#105;&#110; &#97;&#114;&#99;&#104;&#105;v&#101;&#115;.</td> 124 <td>Private method to install the selected plugin archives.</td>
125 </tr><tr> 125 </tr><tr>
126 <td><a href="#PluginInstallWidget.__makedirs">__makedirs</a></td> 126 <td><a href="#PluginInstallWidget.__makedirs">__makedirs</a></td>
127 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97; &#100;&#105;&#114;&#101;&#99;&#116;&#111;&#114;y &#97;&#110;&#100; &#97;&#108;&#108; &#105;&#110;&#116;&#101;&#114;&#109;&#101;&#100;&#105;&#97;&#116;&#101; &#111;&#110;&#101;&#115;.</td> 127 <td>Private method to create a directory and all intermediate ones.</td>
128 </tr><tr> 128 </tr><tr>
129 <td><a href="#PluginInstallWidget.__rollback">__rollback</a></td> 129 <td><a href="#PluginInstallWidget.__rollback">__rollback</a></td>
130 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#111;&#108;&#108;&#98;&#97;&#99;&#107; &#97; &#102;&#97;&#105;&#108;&#101;&#100; &#105;&#110;&#115;&#116;&#97;&#108;&#108;&#97;&#116;&#105;&#111;&#110;.</td> 130 <td>Private method to rollback a failed installation.</td>
131 </tr><tr> 131 </tr><tr>
132 <td><a href="#PluginInstallWidget.__selectPage">__selectPage</a></td> 132 <td><a href="#PluginInstallWidget.__selectPage">__selectPage</a></td>
133 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#104;&#111;w &#116;&#104;&#101; &#114;&#105;&#103;&#104;&#116; w&#105;z&#97;&#114;&#100; &#112;&#97;&#103;&#101;.</td> 133 <td>Private method to show the right wizard page.</td>
134 </tr><tr> 134 </tr><tr>
135 <td><a href="#PluginInstallWidget.__uninstallPackage">__uninstallPackage</a></td> 135 <td><a href="#PluginInstallWidget.__uninstallPackage">__uninstallPackage</a></td>
136 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#117;&#110;&#105;&#110;&#115;&#116;&#97;&#108;&#108; &#97;&#110; &#97;&#108;&#114;&#101;&#97;&#100;y &#105;&#110;&#115;&#116;&#97;&#108;&#108;&#101;&#100; &#112;&#108;&#117;&#103;&#105;&#110; &#116;&#111; &#112;&#114;&#101;&#112;&#97;&#114;&#101; &#116;&#104;&#101; &#117;&#112;&#100;&#97;&#116;&#101;.</td> 136 <td>Private method to uninstall an already installed plugin to prepare the update.</td>
137 </tr><tr> 137 </tr><tr>
138 <td><a href="#PluginInstallWidget.on_addArchivesButton_clicked">on_addArchivesButton_clicked</a></td> 138 <td><a href="#PluginInstallWidget.on_addArchivesButton_clicked">on_addArchivesButton_clicked</a></td>
139 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#101;&#108;&#101;&#99;&#116; &#112;&#108;&#117;&#103;&#105;&#110; &#90;&#73;&#80;-&#97;&#114;&#99;&#104;&#105;v&#101;&#115; v&#105;&#97; &#97; &#102;&#105;&#108;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#105;&#111;&#110; &#100;&#105;&#97;&#108;&#111;&#103;.</td> 139 <td>Private slot to select plugin ZIP-archives via a file selection dialog.</td>
140 </tr><tr> 140 </tr><tr>
141 <td><a href="#PluginInstallWidget.on_archivesList_itemSelectionChanged">on_archivesList_itemSelectionChanged</a></td> 141 <td><a href="#PluginInstallWidget.on_archivesList_itemSelectionChanged">on_archivesList_itemSelectionChanged</a></td>
142 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100;, w&#104;&#101;&#110; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#105;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#97;&#114;&#99;&#104;&#105;v&#101;&#115; &#108;&#105;&#115;&#116; &#99;&#104;&#97;&#110;&#103;&#101;&#115;.</td> 142 <td>Private slot called, when the selection of the archives list changes.</td>
143 </tr><tr> 143 </tr><tr>
144 <td><a href="#PluginInstallWidget.on_buttonBox_clicked">on_buttonBox_clicked</a></td> 144 <td><a href="#PluginInstallWidget.on_buttonBox_clicked">on_buttonBox_clicked</a></td>
145 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#99;&#108;&#105;&#99;&#107; &#111;&#102; &#97; &#98;&#117;&#116;&#116;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#98;&#117;&#116;&#116;&#111;&#110; &#98;&#111;x.</td> 145 <td>Private slot to handle the click of a button of the button box.</td>
146 </tr><tr> 146 </tr><tr>
147 <td><a href="#PluginInstallWidget.on_removeArchivesButton_clicked">on_removeArchivesButton_clicked</a></td> 147 <td><a href="#PluginInstallWidget.on_removeArchivesButton_clicked">on_removeArchivesButton_clicked</a></td>
148 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97;&#114;&#99;&#104;&#105;v&#101;&#115; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#108;&#105;&#115;&#116;.</td> 148 <td>Private slot to remove archives from the list.</td>
149 </tr><tr> 149 </tr><tr>
150 <td><a href="#PluginInstallWidget.restartNeeded">restartNeeded</a></td> 150 <td><a href="#PluginInstallWidget.restartNeeded">restartNeeded</a></td>
151 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#104;&#101;&#99;&#107;, &#105;&#102; &#97; &#114;&#101;&#115;&#116;&#97;&#114;&#116; &#111;&#102; &#116;&#104;&#101; &#73;&#68;&#69; &#105;&#115; &#114;&#101;&#113;&#117;&#105;&#114;&#101;&#100;.</td> 151 <td>Public method to check, if a restart of the IDE is required.</td>
152 </tr> 152 </tr>
153 </table> 153 </table>
154 <a NAME="PluginInstallWidget.__init__" ID="PluginInstallWidget.__init__"></a> 154 <a NAME="PluginInstallWidget.__init__" ID="PluginInstallWidget.__init__"></a>
155 <h4>PluginInstallWidget (Constructor)</h4> 155 <h4>PluginInstallWidget (Constructor)</h4>
156 <b>PluginInstallWidget</b>(<i>pluginManager, pluginFileNames, parent = None</i>) 156 <b>PluginInstallWidget</b>(<i>pluginManager, pluginFileNames, parent = None</i>)
157 <p> 157 <p>
158 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 158 Constructor
159 </p><dl> 159 </p><dl>
160 <dt><i>pluginManager</i></dt> 160 <dt><i>pluginManager</i></dt>
161 <dd> 161 <dd>
162 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#108;&#117;&#103;&#105;&#110; &#109;&#97;&#110;&#97;&#103;&#101;&#114; &#111;&#98;&#106;&#101;&#99;&#116; 162 reference to the plugin manager object
163 </dd><dt><i>pluginFileNames</i></dt> 163 </dd><dt><i>pluginFileNames</i></dt>
164 <dd> 164 <dd>
165 &#108;&#105;&#115;&#116; &#111;&#102; &#112;&#108;&#117;&#103;&#105;&#110; &#102;&#105;&#108;&#101;&#115; &#115;&#117;&#103;&#103;&#101;&#115;&#116;&#101;&#100; &#102;&#111;&#114; 165 list of plugin files suggested for
166 &#105;&#110;&#115;&#116;&#97;&#108;&#108;&#97;&#116;&#105;&#111;&#110; (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;) 166 installation (list of strings)
167 </dd><dt><i>parent</i></dt> 167 </dd><dt><i>parent</i></dt>
168 <dd> 168 <dd>
169 &#112;&#97;&#114;&#101;&#110;&#116; &#111;&#102; &#116;&#104;&#105;&#115; &#100;&#105;&#97;&#108;&#111;&#103; (&#81;&#87;&#105;&#100;&#103;&#101;&#116;) 169 parent of this dialog (QWidget)
170 </dd> 170 </dd>
171 </dl><a NAME="PluginInstallWidget.__createArchivesList" ID="PluginInstallWidget.__createArchivesList"></a> 171 </dl><a NAME="PluginInstallWidget.__createArchivesList" ID="PluginInstallWidget.__createArchivesList"></a>
172 <h4>PluginInstallWidget.__createArchivesList</h4> 172 <h4>PluginInstallWidget.__createArchivesList</h4>
173 <b>__createArchivesList</b>(<i></i>) 173 <b>__createArchivesList</b>(<i></i>)
174 <p> 174 <p>
175 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97; &#108;&#105;&#115;&#116; &#111;&#102; &#112;&#108;&#117;&#103;&#105;&#110; &#97;&#114;&#99;&#104;&#105;v&#101; &#110;&#97;&#109;&#101;&#115;. 175 Private method to create a list of plugin archive names.
176 </p><dl> 176 </p><dl>
177 <dt>Returns:</dt> 177 <dt>Returns:</dt>
178 <dd> 178 <dd>
179 &#108;&#105;&#115;&#116; &#111;&#102; &#112;&#108;&#117;&#103;&#105;&#110; &#97;&#114;&#99;&#104;&#105;v&#101; &#110;&#97;&#109;&#101;&#115; (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;) 179 list of plugin archive names (list of strings)
180 </dd> 180 </dd>
181 </dl><a NAME="PluginInstallWidget.__installPlugin" ID="PluginInstallWidget.__installPlugin"></a> 181 </dl><a NAME="PluginInstallWidget.__installPlugin" ID="PluginInstallWidget.__installPlugin"></a>
182 <h4>PluginInstallWidget.__installPlugin</h4> 182 <h4>PluginInstallWidget.__installPlugin</h4>
183 <b>__installPlugin</b>(<i>archiveFilename</i>) 183 <b>__installPlugin</b>(<i>archiveFilename</i>)
184 <p> 184 <p>
185 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#105;&#110;&#115;&#116;&#97;&#108;&#108; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#101;&#100; &#112;&#108;&#117;&#103;&#105;&#110;. 185 Private slot to install the selected plugin.
186 </p><dl> 186 </p><dl>
187 <dt><i>archiveFilename</i></dt> 187 <dt><i>archiveFilename</i></dt>
188 <dd> 188 <dd>
189 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#112;&#108;&#117;&#103;&#105;&#110; &#97;&#114;&#99;&#104;&#105;v&#101; 189 name of the plugin archive
190 &#102;&#105;&#108;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;) 190 file (string)
191 </dd> 191 </dd>
192 </dl><dl> 192 </dl><dl>
193 <dt>Returns:</dt> 193 <dt>Returns:</dt>
194 <dd> 194 <dd>
195 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#115;&#117;&#99;&#99;&#101;&#115;&#115; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;), &#101;&#114;&#114;&#111;&#114; &#109;&#101;&#115;&#115;&#97;&#103;&#101; 195 flag indicating success (boolean), error message
196 &#117;&#112;&#111;&#110; &#102;&#97;&#105;&#108;&#117;&#114;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;) &#97;&#110;&#100; &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#97; &#114;&#101;&#115;&#116;&#97;&#114;&#116; 196 upon failure (string) and flag indicating a restart
197 &#111;&#102; &#116;&#104;&#101; &#73;&#68;&#69; &#105;&#115; &#114;&#101;&#113;&#117;&#105;&#114;&#101;&#100; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 197 of the IDE is required (boolean)
198 </dd> 198 </dd>
199 </dl><a NAME="PluginInstallWidget.__installPlugins" ID="PluginInstallWidget.__installPlugins"></a> 199 </dl><a NAME="PluginInstallWidget.__installPlugins" ID="PluginInstallWidget.__installPlugins"></a>
200 <h4>PluginInstallWidget.__installPlugins</h4> 200 <h4>PluginInstallWidget.__installPlugins</h4>
201 <b>__installPlugins</b>(<i></i>) 201 <b>__installPlugins</b>(<i></i>)
202 <p> 202 <p>
203 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#105;&#110;&#115;&#116;&#97;&#108;&#108; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#101;&#100; &#112;&#108;&#117;&#103;&#105;&#110; &#97;&#114;&#99;&#104;&#105;v&#101;&#115;. 203 Private method to install the selected plugin archives.
204 </p><dl> 204 </p><dl>
205 <dt>Returns:</dt> 205 <dt>Returns:</dt>
206 <dd> 206 <dd>
207 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#115;&#117;&#99;&#99;&#101;&#115;&#115; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 207 flag indicating success (boolean)
208 </dd> 208 </dd>
209 </dl><a NAME="PluginInstallWidget.__makedirs" ID="PluginInstallWidget.__makedirs"></a> 209 </dl><a NAME="PluginInstallWidget.__makedirs" ID="PluginInstallWidget.__makedirs"></a>
210 <h4>PluginInstallWidget.__makedirs</h4> 210 <h4>PluginInstallWidget.__makedirs</h4>
211 <b>__makedirs</b>(<i>name, mode = 0o777</i>) 211 <b>__makedirs</b>(<i>name, mode = 0o777</i>)
212 <p> 212 <p>
213 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97; &#100;&#105;&#114;&#101;&#99;&#116;&#111;&#114;y &#97;&#110;&#100; &#97;&#108;&#108; &#105;&#110;&#116;&#101;&#114;&#109;&#101;&#100;&#105;&#97;&#116;&#101; &#111;&#110;&#101;&#115;. 213 Private method to create a directory and all intermediate ones.
214 </p><p> 214 </p><p>
215 &#84;&#104;&#105;&#115; &#105;&#115; &#97;&#110; &#101;x&#116;&#101;&#110;&#100;&#101;&#100; v&#101;&#114;&#115;&#105;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#80;y&#116;&#104;&#111;&#110; &#111;&#110;&#101; &#105;&#110; &#111;&#114;&#100;&#101;&#114; &#116;&#111; 215 This is an extended version of the Python one in order to
216 &#114;&#101;&#99;&#111;&#114;&#100; &#116;&#104;&#101; &#99;&#114;&#101;&#97;&#116;&#101;&#100; &#100;&#105;&#114;&#101;&#99;&#116;&#111;&#114;&#105;&#101;&#115;. 216 record the created directories.
217 </p><dl> 217 </p><dl>
218 <dt><i>name</i></dt> 218 <dt><i>name</i></dt>
219 <dd> 219 <dd>
220 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#100;&#105;&#114;&#101;&#99;&#116;&#111;&#114;y &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;) 220 name of the directory to create (string)
221 </dd><dt><i>mode</i></dt> 221 </dd><dt><i>mode</i></dt>
222 <dd> 222 <dd>
223 &#112;&#101;&#114;&#109;&#105;&#115;&#115;&#105;&#111;&#110; &#116;&#111; &#115;&#101;&#116; &#102;&#111;&#114; &#116;&#104;&#101; &#110;&#101;w &#100;&#105;&#114;&#101;&#99;&#116;&#111;&#114;y (&#105;&#110;&#116;&#101;&#103;&#101;&#114;) 223 permission to set for the new directory (integer)
224 </dd> 224 </dd>
225 </dl><a NAME="PluginInstallWidget.__rollback" ID="PluginInstallWidget.__rollback"></a> 225 </dl><a NAME="PluginInstallWidget.__rollback" ID="PluginInstallWidget.__rollback"></a>
226 <h4>PluginInstallWidget.__rollback</h4> 226 <h4>PluginInstallWidget.__rollback</h4>
227 <b>__rollback</b>(<i></i>) 227 <b>__rollback</b>(<i></i>)
228 <p> 228 <p>
229 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#111;&#108;&#108;&#98;&#97;&#99;&#107; &#97; &#102;&#97;&#105;&#108;&#101;&#100; &#105;&#110;&#115;&#116;&#97;&#108;&#108;&#97;&#116;&#105;&#111;&#110;. 229 Private method to rollback a failed installation.
230 </p><a NAME="PluginInstallWidget.__selectPage" ID="PluginInstallWidget.__selectPage"></a> 230 </p><a NAME="PluginInstallWidget.__selectPage" ID="PluginInstallWidget.__selectPage"></a>
231 <h4>PluginInstallWidget.__selectPage</h4> 231 <h4>PluginInstallWidget.__selectPage</h4>
232 <b>__selectPage</b>(<i></i>) 232 <b>__selectPage</b>(<i></i>)
233 <p> 233 <p>
234 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#104;&#111;w &#116;&#104;&#101; &#114;&#105;&#103;&#104;&#116; w&#105;z&#97;&#114;&#100; &#112;&#97;&#103;&#101;. 234 Private method to show the right wizard page.
235 </p><a NAME="PluginInstallWidget.__uninstallPackage" ID="PluginInstallWidget.__uninstallPackage"></a> 235 </p><a NAME="PluginInstallWidget.__uninstallPackage" ID="PluginInstallWidget.__uninstallPackage"></a>
236 <h4>PluginInstallWidget.__uninstallPackage</h4> 236 <h4>PluginInstallWidget.__uninstallPackage</h4>
237 <b>__uninstallPackage</b>(<i>destination, pluginFileName, packageName</i>) 237 <b>__uninstallPackage</b>(<i>destination, pluginFileName, packageName</i>)
238 <p> 238 <p>
239 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#117;&#110;&#105;&#110;&#115;&#116;&#97;&#108;&#108; &#97;&#110; &#97;&#108;&#114;&#101;&#97;&#100;y &#105;&#110;&#115;&#116;&#97;&#108;&#108;&#101;&#100; &#112;&#108;&#117;&#103;&#105;&#110; &#116;&#111; &#112;&#114;&#101;&#112;&#97;&#114;&#101; 239 Private method to uninstall an already installed plugin to prepare
240 &#116;&#104;&#101; &#117;&#112;&#100;&#97;&#116;&#101;. 240 the update.
241 </p><dl> 241 </p><dl>
242 <dt><i>destination</i></dt> 242 <dt><i>destination</i></dt>
243 <dd> 243 <dd>
244 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#112;&#108;&#117;&#103;&#105;&#110; &#100;&#105;&#114;&#101;&#99;&#116;&#111;&#114;y (&#115;&#116;&#114;&#105;&#110;&#103;) 244 name of the plugin directory (string)
245 </dd><dt><i>pluginFileName</i></dt> 245 </dd><dt><i>pluginFileName</i></dt>
246 <dd> 246 <dd>
247 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#112;&#108;&#117;&#103;&#105;&#110; &#102;&#105;&#108;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;) 247 name of the plugin file (string)
248 </dd><dt><i>packageName</i></dt> 248 </dd><dt><i>packageName</i></dt>
249 <dd> 249 <dd>
250 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#112;&#108;&#117;&#103;&#105;&#110; &#112;&#97;&#99;&#107;&#97;&#103;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;) 250 name of the plugin package (string)
251 </dd> 251 </dd>
252 </dl><a NAME="PluginInstallWidget.on_addArchivesButton_clicked" ID="PluginInstallWidget.on_addArchivesButton_clicked"></a> 252 </dl><a NAME="PluginInstallWidget.on_addArchivesButton_clicked" ID="PluginInstallWidget.on_addArchivesButton_clicked"></a>
253 <h4>PluginInstallWidget.on_addArchivesButton_clicked</h4> 253 <h4>PluginInstallWidget.on_addArchivesButton_clicked</h4>
254 <b>on_addArchivesButton_clicked</b>(<i></i>) 254 <b>on_addArchivesButton_clicked</b>(<i></i>)
255 <p> 255 <p>
256 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#101;&#108;&#101;&#99;&#116; &#112;&#108;&#117;&#103;&#105;&#110; &#90;&#73;&#80;-&#97;&#114;&#99;&#104;&#105;v&#101;&#115; v&#105;&#97; &#97; &#102;&#105;&#108;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#105;&#111;&#110; &#100;&#105;&#97;&#108;&#111;&#103;. 256 Private slot to select plugin ZIP-archives via a file selection dialog.
257 </p><a NAME="PluginInstallWidget.on_archivesList_itemSelectionChanged" ID="PluginInstallWidget.on_archivesList_itemSelectionChanged"></a> 257 </p><a NAME="PluginInstallWidget.on_archivesList_itemSelectionChanged" ID="PluginInstallWidget.on_archivesList_itemSelectionChanged"></a>
258 <h4>PluginInstallWidget.on_archivesList_itemSelectionChanged</h4> 258 <h4>PluginInstallWidget.on_archivesList_itemSelectionChanged</h4>
259 <b>on_archivesList_itemSelectionChanged</b>(<i></i>) 259 <b>on_archivesList_itemSelectionChanged</b>(<i></i>)
260 <p> 260 <p>
261 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100;, w&#104;&#101;&#110; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#105;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#97;&#114;&#99;&#104;&#105;v&#101;&#115; &#108;&#105;&#115;&#116; &#99;&#104;&#97;&#110;&#103;&#101;&#115;. 261 Private slot called, when the selection of the archives list changes.
262 </p><a NAME="PluginInstallWidget.on_buttonBox_clicked" ID="PluginInstallWidget.on_buttonBox_clicked"></a> 262 </p><a NAME="PluginInstallWidget.on_buttonBox_clicked" ID="PluginInstallWidget.on_buttonBox_clicked"></a>
263 <h4>PluginInstallWidget.on_buttonBox_clicked</h4> 263 <h4>PluginInstallWidget.on_buttonBox_clicked</h4>
264 <b>on_buttonBox_clicked</b>(<i>button</i>) 264 <b>on_buttonBox_clicked</b>(<i>button</i>)
265 <p> 265 <p>
266 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; &#99;&#108;&#105;&#99;&#107; &#111;&#102; &#97; &#98;&#117;&#116;&#116;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#98;&#117;&#116;&#116;&#111;&#110; &#98;&#111;x. 266 Private slot to handle the click of a button of the button box.
267 </p><a NAME="PluginInstallWidget.on_removeArchivesButton_clicked" ID="PluginInstallWidget.on_removeArchivesButton_clicked"></a> 267 </p><a NAME="PluginInstallWidget.on_removeArchivesButton_clicked" ID="PluginInstallWidget.on_removeArchivesButton_clicked"></a>
268 <h4>PluginInstallWidget.on_removeArchivesButton_clicked</h4> 268 <h4>PluginInstallWidget.on_removeArchivesButton_clicked</h4>
269 <b>on_removeArchivesButton_clicked</b>(<i></i>) 269 <b>on_removeArchivesButton_clicked</b>(<i></i>)
270 <p> 270 <p>
271 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97;&#114;&#99;&#104;&#105;v&#101;&#115; &#102;&#114;&#111;&#109; &#116;&#104;&#101; &#108;&#105;&#115;&#116;. 271 Private slot to remove archives from the list.
272 </p><a NAME="PluginInstallWidget.restartNeeded" ID="PluginInstallWidget.restartNeeded"></a> 272 </p><a NAME="PluginInstallWidget.restartNeeded" ID="PluginInstallWidget.restartNeeded"></a>
273 <h4>PluginInstallWidget.restartNeeded</h4> 273 <h4>PluginInstallWidget.restartNeeded</h4>
274 <b>restartNeeded</b>(<i></i>) 274 <b>restartNeeded</b>(<i></i>)
275 <p> 275 <p>
276 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#99;&#104;&#101;&#99;&#107;, &#105;&#102; &#97; &#114;&#101;&#115;&#116;&#97;&#114;&#116; &#111;&#102; &#116;&#104;&#101; &#73;&#68;&#69; &#105;&#115; &#114;&#101;&#113;&#117;&#105;&#114;&#101;&#100;. 276 Public method to check, if a restart of the IDE is required.
277 </p><dl> 277 </p><dl>
278 <dt>Returns:</dt> 278 <dt>Returns:</dt>
279 <dd> 279 <dd>
280 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#97; &#114;&#101;&#115;&#116;&#97;&#114;&#116; &#105;&#115; &#114;&#101;&#113;&#117;&#105;&#114;&#101;&#100; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 280 flag indicating a restart is required (boolean)
281 </dd> 281 </dd>
282 </dl> 282 </dl>
283 <div align="right"><a href="#top">Up</a></div> 283 <div align="right"><a href="#top">Up</a></div>
284 <hr /><hr /> 284 <hr /><hr />
285 <a NAME="PluginInstallWindow" ID="PluginInstallWindow"></a> 285 <a NAME="PluginInstallWindow" ID="PluginInstallWindow"></a>
286 <h2>PluginInstallWindow</h2> 286 <h2>PluginInstallWindow</h2>
287 <p> 287 <p>
288 &#77;&#97;&#105;&#110; w&#105;&#110;&#100;&#111;w &#99;&#108;&#97;&#115;&#115; &#102;&#111;&#114; &#116;&#104;&#101; &#115;&#116;&#97;&#110;&#100;&#97;&#108;&#111;&#110;&#101; &#100;&#105;&#97;&#108;&#111;&#103;. 288 Main window class for the standalone dialog.
289 </p> 289 </p>
290 <h3>Derived from</h3> 290 <h3>Derived from</h3>
291 QMainWindow 291 QMainWindow
292 <h3>Class Attributes</h3> 292 <h3>Class Attributes</h3>
293 <table> 293 <table>
295 </table> 295 </table>
296 <h3>Methods</h3> 296 <h3>Methods</h3>
297 <table> 297 <table>
298 <tr> 298 <tr>
299 <td><a href="#PluginInstallWindow.__init__">PluginInstallWindow</a></td> 299 <td><a href="#PluginInstallWindow.__init__">PluginInstallWindow</a></td>
300 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 300 <td>Constructor</td>
301 </tr> 301 </tr>
302 </table> 302 </table>
303 <a NAME="PluginInstallWindow.__init__" ID="PluginInstallWindow.__init__"></a> 303 <a NAME="PluginInstallWindow.__init__" ID="PluginInstallWindow.__init__"></a>
304 <h4>PluginInstallWindow (Constructor)</h4> 304 <h4>PluginInstallWindow (Constructor)</h4>
305 <b>PluginInstallWindow</b>(<i>pluginFileNames, parent = None</i>) 305 <b>PluginInstallWindow</b>(<i>pluginFileNames, parent = None</i>)
306 <p> 306 <p>
307 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 307 Constructor
308 </p><dl> 308 </p><dl>
309 <dt><i>pluginFileNames</i></dt> 309 <dt><i>pluginFileNames</i></dt>
310 <dd> 310 <dd>
311 &#108;&#105;&#115;&#116; &#111;&#102; &#112;&#108;&#117;&#103;&#105;&#110; &#102;&#105;&#108;&#101;&#115; &#115;&#117;&#103;&#103;&#101;&#115;&#116;&#101;&#100; &#102;&#111;&#114; 311 list of plugin files suggested for
312 &#105;&#110;&#115;&#116;&#97;&#108;&#108;&#97;&#116;&#105;&#111;&#110; (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;) 312 installation (list of strings)
313 </dd><dt><i>parent</i></dt> 313 </dd><dt><i>parent</i></dt>
314 <dd> 314 <dd>
315 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; w&#105;&#100;&#103;&#101;&#116; (&#81;&#87;&#105;&#100;&#103;&#101;&#116;) 315 reference to the parent widget (QWidget)
316 </dd> 316 </dd>
317 </dl> 317 </dl>
318 <div align="right"><a href="#top">Up</a></div> 318 <div align="right"><a href="#top">Up</a></div>
319 <hr /> 319 <hr />
320 </body></html> 320 </body></html>

eric ide

mercurial