src/eric7/Documentation/Source/eric7.Project.FiletypeAssociationDialog.html

branch
eric7
changeset 9610
b45bccbdf331
parent 9530
c30f02ea1b27
child 10430
e440aaf179ce
equal deleted inserted replaced
9609:c2f9c10c47cc 9610:b45bccbdf331
73 <tr> 73 <tr>
74 <td><a href="#FiletypeAssociationDialog.__updateAddButton">__updateAddButton</a></td> 74 <td><a href="#FiletypeAssociationDialog.__updateAddButton">__updateAddButton</a></td>
75 <td>Private method to update the enabled state of the 'add' button.</td> 75 <td>Private method to update the enabled state of the 'add' button.</td>
76 </tr> 76 </tr>
77 <tr> 77 <tr>
78 <td><a href="#FiletypeAssociationDialog.getData">getData</a></td>
79 <td>Public method to get the entered associations into.</td>
80 </tr>
81 <tr>
78 <td><a href="#FiletypeAssociationDialog.on_addAssociationButton_clicked">on_addAssociationButton_clicked</a></td> 82 <td><a href="#FiletypeAssociationDialog.on_addAssociationButton_clicked">on_addAssociationButton_clicked</a></td>
79 <td>Private slot to add the association displayed to the list.</td> 83 <td>Private slot to add the association displayed to the list.</td>
80 </tr> 84 </tr>
81 <tr> 85 <tr>
82 <td><a href="#FiletypeAssociationDialog.on_deleteAssociationButton_clicked">on_deleteAssociationButton_clicked</a></td> 86 <td><a href="#FiletypeAssociationDialog.on_deleteAssociationButton_clicked">on_deleteAssociationButton_clicked</a></td>
85 <tr> 89 <tr>
86 <td><a href="#FiletypeAssociationDialog.on_filePatternEdit_textChanged">on_filePatternEdit_textChanged</a></td> 90 <td><a href="#FiletypeAssociationDialog.on_filePatternEdit_textChanged">on_filePatternEdit_textChanged</a></td>
87 <td>Private slot to handle the textChanged signal of the pattern lineedit.</td> 91 <td>Private slot to handle the textChanged signal of the pattern lineedit.</td>
88 </tr> 92 </tr>
89 <tr> 93 <tr>
90 <td><a href="#FiletypeAssociationDialog.on_filetypeAssociationList_currentItemChanged">on_filetypeAssociationList_currentItemChanged</a></td> 94 <td><a href="#FiletypeAssociationDialog.on_filetypeAssociationList_itemSelectionChanged">on_filetypeAssociationList_itemSelectionChanged</a></td>
91 <td>Private slot to handle the currentItemChanged signal of the association list.</td> 95 <td>Private slot to handle a change of the selected item.</td>
92 </tr> 96 </tr>
93 <tr> 97 <tr>
94 <td><a href="#FiletypeAssociationDialog.on_filetypeCombo_currentIndexChanged">on_filetypeCombo_currentIndexChanged</a></td> 98 <td><a href="#FiletypeAssociationDialog.on_filetypeCombo_currentIndexChanged">on_filetypeCombo_currentIndexChanged</a></td>
95 <td>Private slot handling the selection of a file type.</td> 99 <td>Private slot handling the selection of a file type.</td>
96 </tr> 100 </tr>
97 <tr>
98 <td><a href="#FiletypeAssociationDialog.transferData">transferData</a></td>
99 <td>Public slot to transfer the associations into the projects data structure.</td>
100 </tr>
101 </table> 101 </table>
102 <h3>Static Methods</h3> 102 <h3>Static Methods</h3>
103 103
104 <table> 104 <table>
105 <tr><td>None</td></tr> 105 <tr><td>None</td></tr>
106 </table> 106 </table>
107 107
108 <a NAME="FiletypeAssociationDialog.__init__" ID="FiletypeAssociationDialog.__init__"></a> 108 <a NAME="FiletypeAssociationDialog.__init__" ID="FiletypeAssociationDialog.__init__"></a>
109 <h4>FiletypeAssociationDialog (Constructor)</h4> 109 <h4>FiletypeAssociationDialog (Constructor)</h4>
110 <b>FiletypeAssociationDialog</b>(<i>project, parent=None</i>) 110 <b>FiletypeAssociationDialog</b>(<i>project, fileTypesDict, parent=None</i>)
111 111
112 <p> 112 <p>
113 Constructor 113 Constructor
114 </p> 114 </p>
115 <dl> 115 <dl>
116 116
117 <dt><i>project</i></dt> 117 <dt><i>project</i> (Project)</dt>
118 <dd> 118 <dd>
119 reference to the project object 119 reference to the project object
120 </dd> 120 </dd>
121 <dt><i>parent</i></dt> 121 <dt><i>fileTypesDict</i> (dict)</dt>
122 <dd> 122 <dd>
123 reference to the parent widget (QWidget) 123 dictionary containing the file type associations
124 </dd>
125 <dt><i>parent</i> (QWidget (optional))</dt>
126 <dd>
127 reference to the parent widget (defaults to None)
124 </dd> 128 </dd>
125 </dl> 129 </dl>
126 <a NAME="FiletypeAssociationDialog.__createItem" ID="FiletypeAssociationDialog.__createItem"></a> 130 <a NAME="FiletypeAssociationDialog.__createItem" ID="FiletypeAssociationDialog.__createItem"></a>
127 <h4>FiletypeAssociationDialog.__createItem</h4> 131 <h4>FiletypeAssociationDialog.__createItem</h4>
128 <b>__createItem</b>(<i>pattern, filetypeStr, fileCategory</i>) 132 <b>__createItem</b>(<i>pattern, filetypeStr, fileCategory</i>)
176 <b>__updateAddButton</b>(<i></i>) 180 <b>__updateAddButton</b>(<i></i>)
177 181
178 <p> 182 <p>
179 Private method to update the enabled state of the 'add' button. 183 Private method to update the enabled state of the 'add' button.
180 </p> 184 </p>
185 <a NAME="FiletypeAssociationDialog.getData" ID="FiletypeAssociationDialog.getData"></a>
186 <h4>FiletypeAssociationDialog.getData</h4>
187 <b>getData</b>(<i></i>)
188
189 <p>
190 Public method to get the entered associations into.
191 </p>
192 <dl>
193 <dt>Return:</dt>
194 <dd>
195 dictionary containing the defined file type associations
196 </dd>
197 </dl>
198 <dl>
199 <dt>Return Type:</dt>
200 <dd>
201 dict
202 </dd>
203 </dl>
181 <a NAME="FiletypeAssociationDialog.on_addAssociationButton_clicked" ID="FiletypeAssociationDialog.on_addAssociationButton_clicked"></a> 204 <a NAME="FiletypeAssociationDialog.on_addAssociationButton_clicked" ID="FiletypeAssociationDialog.on_addAssociationButton_clicked"></a>
182 <h4>FiletypeAssociationDialog.on_addAssociationButton_clicked</h4> 205 <h4>FiletypeAssociationDialog.on_addAssociationButton_clicked</h4>
183 <b>on_addAssociationButton_clicked</b>(<i></i>) 206 <b>on_addAssociationButton_clicked</b>(<i></i>)
184 207
185 <p> 208 <p>
205 <dt><i>txt</i></dt> 228 <dt><i>txt</i></dt>
206 <dd> 229 <dd>
207 text of the line edit (string) 230 text of the line edit (string)
208 </dd> 231 </dd>
209 </dl> 232 </dl>
210 <a NAME="FiletypeAssociationDialog.on_filetypeAssociationList_currentItemChanged" ID="FiletypeAssociationDialog.on_filetypeAssociationList_currentItemChanged"></a> 233 <a NAME="FiletypeAssociationDialog.on_filetypeAssociationList_itemSelectionChanged" ID="FiletypeAssociationDialog.on_filetypeAssociationList_itemSelectionChanged"></a>
211 <h4>FiletypeAssociationDialog.on_filetypeAssociationList_currentItemChanged</h4> 234 <h4>FiletypeAssociationDialog.on_filetypeAssociationList_itemSelectionChanged</h4>
212 <b>on_filetypeAssociationList_currentItemChanged</b>(<i>itm, prevItm</i>) 235 <b>on_filetypeAssociationList_itemSelectionChanged</b>(<i></i>)
213 236
214 <p> 237 <p>
215 Private slot to handle the currentItemChanged signal of the 238 Private slot to handle a change of the selected item.
216 association list. 239 </p>
217 </p>
218 <dl>
219
220 <dt><i>itm</i></dt>
221 <dd>
222 reference to the new current item (QTreeWidgetItem)
223 </dd>
224 <dt><i>prevItm</i></dt>
225 <dd>
226 reference to the previous current item (QTreeWidgetItem)
227 </dd>
228 </dl>
229 <a NAME="FiletypeAssociationDialog.on_filetypeCombo_currentIndexChanged" ID="FiletypeAssociationDialog.on_filetypeCombo_currentIndexChanged"></a> 240 <a NAME="FiletypeAssociationDialog.on_filetypeCombo_currentIndexChanged" ID="FiletypeAssociationDialog.on_filetypeCombo_currentIndexChanged"></a>
230 <h4>FiletypeAssociationDialog.on_filetypeCombo_currentIndexChanged</h4> 241 <h4>FiletypeAssociationDialog.on_filetypeCombo_currentIndexChanged</h4>
231 <b>on_filetypeCombo_currentIndexChanged</b>(<i>index</i>) 242 <b>on_filetypeCombo_currentIndexChanged</b>(<i>index</i>)
232 243
233 <p> 244 <p>
238 <dt><i>index</i> (int)</dt> 249 <dt><i>index</i> (int)</dt>
239 <dd> 250 <dd>
240 index of the selected entry 251 index of the selected entry
241 </dd> 252 </dd>
242 </dl> 253 </dl>
243 <a NAME="FiletypeAssociationDialog.transferData" ID="FiletypeAssociationDialog.transferData"></a>
244 <h4>FiletypeAssociationDialog.transferData</h4>
245 <b>transferData</b>(<i></i>)
246
247 <p>
248 Public slot to transfer the associations into the projects data
249 structure.
250 </p>
251 <div align="right"><a href="#top">Up</a></div> 254 <div align="right"><a href="#top">Up</a></div>
252 <hr /> 255 <hr />
253 </body></html> 256 </body></html>

eric ide

mercurial