eric6/Documentation/Source/eric6.Project.FiletypeAssociationDialog.html

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

eric ide

mercurial