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

branch
eric7
changeset 8372
e0227a7c850e
child 8596
d64760b2da50
equal deleted inserted replaced
8371:d6062691d424 8372:e0227a7c850e
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric7.Project.FiletypeAssociationDialog</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body>
22 <a NAME="top" ID="top"></a>
23 <h1>eric7.Project.FiletypeAssociationDialog</h1>
24
25 <p>
26 Module implementing a dialog to enter filetype associations for the project.
27 </p>
28 <h3>Global Attributes</h3>
29
30 <table>
31 <tr><td>None</td></tr>
32 </table>
33 <h3>Classes</h3>
34
35 <table>
36
37 <tr>
38 <td><a href="#FiletypeAssociationDialog">FiletypeAssociationDialog</a></td>
39 <td>Class implementing a dialog to enter filetype associations for the project.</td>
40 </tr>
41 </table>
42 <h3>Functions</h3>
43
44 <table>
45 <tr><td>None</td></tr>
46 </table>
47 <hr />
48 <hr />
49 <a NAME="FiletypeAssociationDialog" ID="FiletypeAssociationDialog"></a>
50 <h2>FiletypeAssociationDialog</h2>
51
52 <p>
53 Class implementing a dialog to enter filetype associations for the project.
54 </p>
55 <h3>Derived from</h3>
56 QDialog, Ui_FiletypeAssociationDialog
57 <h3>Class Attributes</h3>
58
59 <table>
60 <tr><td>None</td></tr>
61 </table>
62 <h3>Class Methods</h3>
63
64 <table>
65 <tr><td>None</td></tr>
66 </table>
67 <h3>Methods</h3>
68
69 <table>
70
71 <tr>
72 <td><a href="#FiletypeAssociationDialog.__init__">FiletypeAssociationDialog</a></td>
73 <td>Constructor</td>
74 </tr>
75 <tr>
76 <td><a href="#FiletypeAssociationDialog.__createItem">__createItem</a></td>
77 <td>Private slot to create a new entry in the association list.</td>
78 </tr>
79 <tr>
80 <td><a href="#FiletypeAssociationDialog.__reformat">__reformat</a></td>
81 <td>Private method to reformat the tree.</td>
82 </tr>
83 <tr>
84 <td><a href="#FiletypeAssociationDialog.__resort">__resort</a></td>
85 <td>Private method to resort the tree.</td>
86 </tr>
87 <tr>
88 <td><a href="#FiletypeAssociationDialog.on_addAssociationButton_clicked">on_addAssociationButton_clicked</a></td>
89 <td>Private slot to add the association displayed to the list.</td>
90 </tr>
91 <tr>
92 <td><a href="#FiletypeAssociationDialog.on_deleteAssociationButton_clicked">on_deleteAssociationButton_clicked</a></td>
93 <td>Private slot to delete the currently selected association of the listbox.</td>
94 </tr>
95 <tr>
96 <td><a href="#FiletypeAssociationDialog.on_filePatternEdit_textChanged">on_filePatternEdit_textChanged</a></td>
97 <td>Private slot to handle the textChanged signal of the pattern lineedit.</td>
98 </tr>
99 <tr>
100 <td><a href="#FiletypeAssociationDialog.on_filetypeAssociationList_currentItemChanged">on_filetypeAssociationList_currentItemChanged</a></td>
101 <td>Private slot to handle the currentItemChanged signal of the association list.</td>
102 </tr>
103 <tr>
104 <td><a href="#FiletypeAssociationDialog.transferData">transferData</a></td>
105 <td>Public slot to transfer the associations into the projects data structure.</td>
106 </tr>
107 </table>
108 <h3>Static Methods</h3>
109
110 <table>
111 <tr><td>None</td></tr>
112 </table>
113
114 <a NAME="FiletypeAssociationDialog.__init__" ID="FiletypeAssociationDialog.__init__"></a>
115 <h4>FiletypeAssociationDialog (Constructor)</h4>
116 <b>FiletypeAssociationDialog</b>(<i>project, parent=None</i>)
117
118 <p>
119 Constructor
120 </p>
121 <dl>
122
123 <dt><i>project</i></dt>
124 <dd>
125 reference to the project object
126 </dd>
127 <dt><i>parent</i></dt>
128 <dd>
129 reference to the parent widget (QWidget)
130 </dd>
131 </dl>
132 <a NAME="FiletypeAssociationDialog.__createItem" ID="FiletypeAssociationDialog.__createItem"></a>
133 <h4>FiletypeAssociationDialog.__createItem</h4>
134 <b>__createItem</b>(<i>pattern, filetype</i>)
135
136 <p>
137 Private slot to create a new entry in the association list.
138 </p>
139 <dl>
140
141 <dt><i>pattern</i></dt>
142 <dd>
143 pattern of the entry (string)
144 </dd>
145 <dt><i>filetype</i></dt>
146 <dd>
147 file type of the entry (string)
148 </dd>
149 </dl>
150 <dl>
151 <dt>Return:</dt>
152 <dd>
153 reference to the newly generated entry (QTreeWidgetItem)
154 </dd>
155 </dl>
156 <a NAME="FiletypeAssociationDialog.__reformat" ID="FiletypeAssociationDialog.__reformat"></a>
157 <h4>FiletypeAssociationDialog.__reformat</h4>
158 <b>__reformat</b>(<i></i>)
159
160 <p>
161 Private method to reformat the tree.
162 </p>
163 <a NAME="FiletypeAssociationDialog.__resort" ID="FiletypeAssociationDialog.__resort"></a>
164 <h4>FiletypeAssociationDialog.__resort</h4>
165 <b>__resort</b>(<i></i>)
166
167 <p>
168 Private method to resort the tree.
169 </p>
170 <a NAME="FiletypeAssociationDialog.on_addAssociationButton_clicked" ID="FiletypeAssociationDialog.on_addAssociationButton_clicked"></a>
171 <h4>FiletypeAssociationDialog.on_addAssociationButton_clicked</h4>
172 <b>on_addAssociationButton_clicked</b>(<i></i>)
173
174 <p>
175 Private slot to add the association displayed to the list.
176 </p>
177 <a NAME="FiletypeAssociationDialog.on_deleteAssociationButton_clicked" ID="FiletypeAssociationDialog.on_deleteAssociationButton_clicked"></a>
178 <h4>FiletypeAssociationDialog.on_deleteAssociationButton_clicked</h4>
179 <b>on_deleteAssociationButton_clicked</b>(<i></i>)
180
181 <p>
182 Private slot to delete the currently selected association of the
183 listbox.
184 </p>
185 <a NAME="FiletypeAssociationDialog.on_filePatternEdit_textChanged" ID="FiletypeAssociationDialog.on_filePatternEdit_textChanged"></a>
186 <h4>FiletypeAssociationDialog.on_filePatternEdit_textChanged</h4>
187 <b>on_filePatternEdit_textChanged</b>(<i>txt</i>)
188
189 <p>
190 Private slot to handle the textChanged signal of the pattern lineedit.
191 </p>
192 <dl>
193
194 <dt><i>txt</i></dt>
195 <dd>
196 text of the lineedit (string)
197 </dd>
198 </dl>
199 <a NAME="FiletypeAssociationDialog.on_filetypeAssociationList_currentItemChanged" ID="FiletypeAssociationDialog.on_filetypeAssociationList_currentItemChanged"></a>
200 <h4>FiletypeAssociationDialog.on_filetypeAssociationList_currentItemChanged</h4>
201 <b>on_filetypeAssociationList_currentItemChanged</b>(<i>itm, prevItm</i>)
202
203 <p>
204 Private slot to handle the currentItemChanged signal of the
205 association list.
206 </p>
207 <dl>
208
209 <dt><i>itm</i></dt>
210 <dd>
211 reference to the new current item (QTreeWidgetItem)
212 </dd>
213 <dt><i>prevItm</i></dt>
214 <dd>
215 reference to the previous current item (QTreeWidgetItem)
216 </dd>
217 </dl>
218 <a NAME="FiletypeAssociationDialog.transferData" ID="FiletypeAssociationDialog.transferData"></a>
219 <h4>FiletypeAssociationDialog.transferData</h4>
220 <b>transferData</b>(<i></i>)
221
222 <p>
223 Public slot to transfer the associations into the projects data
224 structure.
225 </p>
226 <div align="right"><a href="#top">Up</a></div>
227 <hr />
228 </body></html>

eric ide

mercurial