Documentation/Source/eric4.Project.FiletypeAssociationDialog.html

changeset 3
0d9daebf5b8c
equal deleted inserted replaced
2:bc6196164237 3:0d9daebf5b8c
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
4 <html><head>
5 <title>eric4.Project.FiletypeAssociationDialog</title>
6 <style>
7 body {
8 background:white;
9 margin: 0em 1em 10em 1em;
10 color: black;
11 }
12
13 h1 { color: white; background: #4FA4FF; }
14 h2 { color: white; background: #4FA4FF; }
15 h3 { color: white; background: #00557F; }
16 h4 { color: white; background: #00557F; }
17
18 a { color: #AA5500; }
19
20 </style>
21 </head>
22 <body><a NAME="top" ID="top"></a>
23 <h1>eric4.Project.FiletypeAssociationDialog</h1>
24 <p>
25 Module implementing a dialog to enter filetype associations for the project.
26 </p>
27 <h3>Global Attributes</h3>
28 <table>
29 <tr><td>None</td></tr>
30 </table>
31 <h3>Classes</h3>
32 <table>
33 <tr>
34 <td><a href="#FiletypeAssociationDialog">FiletypeAssociationDialog</a></td>
35 <td>Class implementing a dialog to enter filetype associations for the project.</td>
36 </tr>
37 </table>
38 <h3>Functions</h3>
39 <table>
40 <tr><td>None</td></tr>
41 </table>
42 <hr /><hr />
43 <a NAME="FiletypeAssociationDialog" ID="FiletypeAssociationDialog"></a>
44 <h2>FiletypeAssociationDialog</h2>
45 <p>
46 Class implementing a dialog to enter filetype associations for the project.
47 </p>
48 <h3>Derived from</h3>
49 QDialog, Ui_FiletypeAssociationDialog
50 <h3>Class Attributes</h3>
51 <table>
52 <tr><td>None</td></tr>
53 </table>
54 <h3>Methods</h3>
55 <table>
56 <tr>
57 <td><a href="#FiletypeAssociationDialog.__init__">FiletypeAssociationDialog</a></td>
58 <td>Constructor</td>
59 </tr><tr>
60 <td><a href="#FiletypeAssociationDialog.__createItem">__createItem</a></td>
61 <td>Private slot to create a new entry in the association list.</td>
62 </tr><tr>
63 <td><a href="#FiletypeAssociationDialog.__reformat">__reformat</a></td>
64 <td>Private method to reformat the tree.</td>
65 </tr><tr>
66 <td><a href="#FiletypeAssociationDialog.__resort">__resort</a></td>
67 <td>Private method to resort the tree.</td>
68 </tr><tr>
69 <td><a href="#FiletypeAssociationDialog.on_addAssociationButton_clicked">on_addAssociationButton_clicked</a></td>
70 <td>Private slot to add the association displayed to the list.</td>
71 </tr><tr>
72 <td><a href="#FiletypeAssociationDialog.on_deleteAssociationButton_clicked">on_deleteAssociationButton_clicked</a></td>
73 <td>Private slot to delete the currently selected association of the listbox.</td>
74 </tr><tr>
75 <td><a href="#FiletypeAssociationDialog.on_filePatternEdit_textChanged">on_filePatternEdit_textChanged</a></td>
76 <td>Private slot to handle the textChanged signal of the pattern lineedit.</td>
77 </tr><tr>
78 <td><a href="#FiletypeAssociationDialog.on_filetypeAssociationList_currentItemChanged">on_filetypeAssociationList_currentItemChanged</a></td>
79 <td>Private slot to handle the currentItemChanged signal of the association list.</td>
80 </tr><tr>
81 <td><a href="#FiletypeAssociationDialog.transferData">transferData</a></td>
82 <td>Public slot to transfer the associations into the projects data structure.</td>
83 </tr>
84 </table>
85 <a NAME="FiletypeAssociationDialog.__init__" ID="FiletypeAssociationDialog.__init__"></a>
86 <h4>FiletypeAssociationDialog (Constructor)</h4>
87 <b>FiletypeAssociationDialog</b>(<i>project, parent = None</i>)
88 <p>
89 Constructor
90 </p><dl>
91 <dt><i>project</i></dt>
92 <dd>
93 reference to the project object
94 </dd><dt><i>parent</i></dt>
95 <dd>
96 reference to the parent widget (QWidget)
97 </dd>
98 </dl><a NAME="FiletypeAssociationDialog.__createItem" ID="FiletypeAssociationDialog.__createItem"></a>
99 <h4>FiletypeAssociationDialog.__createItem</h4>
100 <b>__createItem</b>(<i>pattern, filetype</i>)
101 <p>
102 Private slot to create a new entry in the association list.
103 </p><dl>
104 <dt><i>pattern</i></dt>
105 <dd>
106 pattern of the entry (string)
107 </dd><dt><i>filetype</i></dt>
108 <dd>
109 file type of the entry (string)
110 </dd>
111 </dl><dl>
112 <dt>Returns:</dt>
113 <dd>
114 reference to the newly generated entry (QTreeWidgetItem)
115 </dd>
116 </dl><a NAME="FiletypeAssociationDialog.__reformat" ID="FiletypeAssociationDialog.__reformat"></a>
117 <h4>FiletypeAssociationDialog.__reformat</h4>
118 <b>__reformat</b>(<i></i>)
119 <p>
120 Private method to reformat the tree.
121 </p><a NAME="FiletypeAssociationDialog.__resort" ID="FiletypeAssociationDialog.__resort"></a>
122 <h4>FiletypeAssociationDialog.__resort</h4>
123 <b>__resort</b>(<i></i>)
124 <p>
125 Private method to resort the tree.
126 </p><a NAME="FiletypeAssociationDialog.on_addAssociationButton_clicked" ID="FiletypeAssociationDialog.on_addAssociationButton_clicked"></a>
127 <h4>FiletypeAssociationDialog.on_addAssociationButton_clicked</h4>
128 <b>on_addAssociationButton_clicked</b>(<i></i>)
129 <p>
130 Private slot to add the association displayed to the list.
131 </p><a NAME="FiletypeAssociationDialog.on_deleteAssociationButton_clicked" ID="FiletypeAssociationDialog.on_deleteAssociationButton_clicked"></a>
132 <h4>FiletypeAssociationDialog.on_deleteAssociationButton_clicked</h4>
133 <b>on_deleteAssociationButton_clicked</b>(<i></i>)
134 <p>
135 Private slot to delete the currently selected association of the listbox.
136 </p><a NAME="FiletypeAssociationDialog.on_filePatternEdit_textChanged" ID="FiletypeAssociationDialog.on_filePatternEdit_textChanged"></a>
137 <h4>FiletypeAssociationDialog.on_filePatternEdit_textChanged</h4>
138 <b>on_filePatternEdit_textChanged</b>(<i>txt</i>)
139 <p>
140 Private slot to handle the textChanged signal of the pattern lineedit.
141 </p><dl>
142 <dt><i>txt</i></dt>
143 <dd>
144 text of the lineedit (string)
145 </dd>
146 </dl><a NAME="FiletypeAssociationDialog.on_filetypeAssociationList_currentItemChanged" ID="FiletypeAssociationDialog.on_filetypeAssociationList_currentItemChanged"></a>
147 <h4>FiletypeAssociationDialog.on_filetypeAssociationList_currentItemChanged</h4>
148 <b>on_filetypeAssociationList_currentItemChanged</b>(<i>itm, prevItm</i>)
149 <p>
150 Private slot to handle the currentItemChanged signal of the association list.
151 </p><dl>
152 <dt><i>itm</i></dt>
153 <dd>
154 reference to the new current item (QTreeWidgetItem)
155 </dd><dt><i>prevItm</i></dt>
156 <dd>
157 reference to the previous current item (QTreeWidgetItem)
158 </dd>
159 </dl><a NAME="FiletypeAssociationDialog.transferData" ID="FiletypeAssociationDialog.transferData"></a>
160 <h4>FiletypeAssociationDialog.transferData</h4>
161 <b>transferData</b>(<i></i>)
162 <p>
163 Public slot to transfer the associations into the projects data structure.
164 </p>
165 <div align="right"><a href="#top">Up</a></div>
166 <hr />
167 </body></html>

eric ide

mercurial