Documentation/Source/eric6.Project.FiletypeAssociationDialog.html

changeset 3673
e26d7d0c1088
equal deleted inserted replaced
3670:f0cb7579c0b4 3673:e26d7d0c1088
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.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><a NAME="top" ID="top"></a>
22 <h1>eric6.Project.FiletypeAssociationDialog</h1>
23 <p>
24 Module implementing a dialog to enter filetype associations for the project.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#FiletypeAssociationDialog">FiletypeAssociationDialog</a></td>
34 <td>Class implementing a dialog to enter filetype associations for the project.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="FiletypeAssociationDialog" ID="FiletypeAssociationDialog"></a>
43 <h2>FiletypeAssociationDialog</h2>
44 <p>
45 Class implementing a dialog to enter filetype associations for the project.
46 </p>
47 <h3>Derived from</h3>
48 QDialog, Ui_FiletypeAssociationDialog
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>None</td></tr>
52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58 <table>
59 <tr>
60 <td><a href="#FiletypeAssociationDialog.__init__">FiletypeAssociationDialog</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#FiletypeAssociationDialog.__createItem">__createItem</a></td>
64 <td>Private slot to create a new entry in the association list.</td>
65 </tr><tr>
66 <td><a href="#FiletypeAssociationDialog.__reformat">__reformat</a></td>
67 <td>Private method to reformat the tree.</td>
68 </tr><tr>
69 <td><a href="#FiletypeAssociationDialog.__resort">__resort</a></td>
70 <td>Private method to resort the tree.</td>
71 </tr><tr>
72 <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>
74 </tr><tr>
75 <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>
77 </tr><tr>
78 <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>
80 </tr><tr>
81 <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>
83 </tr><tr>
84 <td><a href="#FiletypeAssociationDialog.transferData">transferData</a></td>
85 <td>Public slot to transfer the associations into the projects data structure.</td>
86 </tr>
87 </table>
88 <h3>Static Methods</h3>
89 <table>
90 <tr><td>None</td></tr>
91 </table>
92 <a NAME="FiletypeAssociationDialog.__init__" ID="FiletypeAssociationDialog.__init__"></a>
93 <h4>FiletypeAssociationDialog (Constructor)</h4>
94 <b>FiletypeAssociationDialog</b>(<i>project, parent=None</i>)
95 <p>
96 Constructor
97 </p><dl>
98 <dt><i>project</i></dt>
99 <dd>
100 reference to the project object
101 </dd><dt><i>parent</i></dt>
102 <dd>
103 reference to the parent widget (QWidget)
104 </dd>
105 </dl><a NAME="FiletypeAssociationDialog.__createItem" ID="FiletypeAssociationDialog.__createItem"></a>
106 <h4>FiletypeAssociationDialog.__createItem</h4>
107 <b>__createItem</b>(<i>pattern, filetype</i>)
108 <p>
109 Private slot to create a new entry in the association list.
110 </p><dl>
111 <dt><i>pattern</i></dt>
112 <dd>
113 pattern of the entry (string)
114 </dd><dt><i>filetype</i></dt>
115 <dd>
116 file type of the entry (string)
117 </dd>
118 </dl><dl>
119 <dt>Returns:</dt>
120 <dd>
121 reference to the newly generated entry (QTreeWidgetItem)
122 </dd>
123 </dl><a NAME="FiletypeAssociationDialog.__reformat" ID="FiletypeAssociationDialog.__reformat"></a>
124 <h4>FiletypeAssociationDialog.__reformat</h4>
125 <b>__reformat</b>(<i></i>)
126 <p>
127 Private method to reformat the tree.
128 </p><a NAME="FiletypeAssociationDialog.__resort" ID="FiletypeAssociationDialog.__resort"></a>
129 <h4>FiletypeAssociationDialog.__resort</h4>
130 <b>__resort</b>(<i></i>)
131 <p>
132 Private method to resort the tree.
133 </p><a NAME="FiletypeAssociationDialog.on_addAssociationButton_clicked" ID="FiletypeAssociationDialog.on_addAssociationButton_clicked"></a>
134 <h4>FiletypeAssociationDialog.on_addAssociationButton_clicked</h4>
135 <b>on_addAssociationButton_clicked</b>(<i></i>)
136 <p>
137 Private slot to add the association displayed to the list.
138 </p><a NAME="FiletypeAssociationDialog.on_deleteAssociationButton_clicked" ID="FiletypeAssociationDialog.on_deleteAssociationButton_clicked"></a>
139 <h4>FiletypeAssociationDialog.on_deleteAssociationButton_clicked</h4>
140 <b>on_deleteAssociationButton_clicked</b>(<i></i>)
141 <p>
142 Private slot to delete the currently selected association of the
143 listbox.
144 </p><a NAME="FiletypeAssociationDialog.on_filePatternEdit_textChanged" ID="FiletypeAssociationDialog.on_filePatternEdit_textChanged"></a>
145 <h4>FiletypeAssociationDialog.on_filePatternEdit_textChanged</h4>
146 <b>on_filePatternEdit_textChanged</b>(<i>txt</i>)
147 <p>
148 Private slot to handle the textChanged signal of the pattern lineedit.
149 </p><dl>
150 <dt><i>txt</i></dt>
151 <dd>
152 text of the lineedit (string)
153 </dd>
154 </dl><a NAME="FiletypeAssociationDialog.on_filetypeAssociationList_currentItemChanged" ID="FiletypeAssociationDialog.on_filetypeAssociationList_currentItemChanged"></a>
155 <h4>FiletypeAssociationDialog.on_filetypeAssociationList_currentItemChanged</h4>
156 <b>on_filetypeAssociationList_currentItemChanged</b>(<i>itm, prevItm</i>)
157 <p>
158 Private slot to handle the currentItemChanged signal of the
159 association list.
160 </p><dl>
161 <dt><i>itm</i></dt>
162 <dd>
163 reference to the new current item (QTreeWidgetItem)
164 </dd><dt><i>prevItm</i></dt>
165 <dd>
166 reference to the previous current item (QTreeWidgetItem)
167 </dd>
168 </dl><a NAME="FiletypeAssociationDialog.transferData" ID="FiletypeAssociationDialog.transferData"></a>
169 <h4>FiletypeAssociationDialog.transferData</h4>
170 <b>transferData</b>(<i></i>)
171 <p>
172 Public slot to transfer the associations into the projects data
173 structure.
174 </p>
175 <div align="right"><a href="#top">Up</a></div>
176 <hr />
177 </body></html>

eric ide

mercurial