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