|
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.CreateDialogCodeDialog</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.CreateDialogCodeDialog</h1> |
|
12 <p> |
|
13 Module implementing a dialog to generate code for a Qt4 dialog. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>pyqtSignatureRole</td></tr><tr><td>pythonSignatureRole</td></tr><tr><td>rubySignatureRole</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#CreateDialogCodeDialog">CreateDialogCodeDialog</a></td> |
|
23 <td>Class implementing a dialog to generate code for a Qt4 dialog.</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="CreateDialogCodeDialog" ID="CreateDialogCodeDialog"></a> |
|
32 <h2>CreateDialogCodeDialog</h2> |
|
33 <p> |
|
34 Class implementing a dialog to generate code for a Qt4 dialog. |
|
35 </p> |
|
36 <h3>Derived from</h3> |
|
37 QDialog, Ui_CreateDialogCodeDialog |
|
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="#CreateDialogCodeDialog.__init__">CreateDialogCodeDialog</a></td> |
|
46 <td>Constructor</td> |
|
47 </tr><tr> |
|
48 <td><a href="#CreateDialogCodeDialog.__className">__className</a></td> |
|
49 <td>Private method to get the class name of the dialog.</td> |
|
50 </tr><tr> |
|
51 <td><a href="#CreateDialogCodeDialog.__generateCode">__generateCode</a></td> |
|
52 <td>Private slot to generate the code as requested by the user.</td> |
|
53 </tr><tr> |
|
54 <td><a href="#CreateDialogCodeDialog.__generatePythonCode">__generatePythonCode</a></td> |
|
55 <td>Private slot to generate Python code as requested by the user.</td> |
|
56 </tr><tr> |
|
57 <td><a href="#CreateDialogCodeDialog.__objectName">__objectName</a></td> |
|
58 <td>Private method to get the object name of the dialog.</td> |
|
59 </tr><tr> |
|
60 <td><a href="#CreateDialogCodeDialog.__signatures">__signatures</a></td> |
|
61 <td>Private slot to get the signatures.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#CreateDialogCodeDialog.__updateSlotsModel">__updateSlotsModel</a></td> |
|
64 <td>Private slot to update the slots tree display.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#CreateDialogCodeDialog.initError">initError</a></td> |
|
67 <td>Public method to determine, if there was an initialzation error.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#CreateDialogCodeDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
|
70 <td>Private slot to handle the buttonBox clicked signal.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#CreateDialogCodeDialog.on_classNameCombo_activated">on_classNameCombo_activated</a></td> |
|
73 <td>Private slot to handle the activated signal of the classname combo.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#CreateDialogCodeDialog.on_clearFilterButton_clicked">on_clearFilterButton_clicked</a></td> |
|
76 <td>Private slot called by a click of the clear filter button.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#CreateDialogCodeDialog.on_filterEdit_textChanged">on_filterEdit_textChanged</a></td> |
|
79 <td>Private slot called, when thext of the filter edit has changed.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#CreateDialogCodeDialog.on_newButton_clicked">on_newButton_clicked</a></td> |
|
82 <td>Private slot called to enter the data for a new dialog class.</td> |
|
83 </tr> |
|
84 </table> |
|
85 <a NAME="CreateDialogCodeDialog.__init__" ID="CreateDialogCodeDialog.__init__"></a> |
|
86 <h4>CreateDialogCodeDialog (Constructor)</h4> |
|
87 <b>CreateDialogCodeDialog</b>(<i>formName, project, parent = None</i>) |
|
88 <p> |
|
89 Constructor |
|
90 </p><dl> |
|
91 <dt><i>formName</i></dt> |
|
92 <dd> |
|
93 name of the file containing the form (string) |
|
94 </dd><dt><i>project</i></dt> |
|
95 <dd> |
|
96 reference to the project object |
|
97 </dd><dt><i>parent</i></dt> |
|
98 <dd> |
|
99 parent widget if the dialog (QWidget) |
|
100 </dd> |
|
101 </dl><a NAME="CreateDialogCodeDialog.__className" ID="CreateDialogCodeDialog.__className"></a> |
|
102 <h4>CreateDialogCodeDialog.__className</h4> |
|
103 <b>__className</b>(<i></i>) |
|
104 <p> |
|
105 Private method to get the class name of the dialog. |
|
106 </p><dl> |
|
107 <dt>Returns:</dt> |
|
108 <dd> |
|
109 class name (sting) |
|
110 </dd> |
|
111 </dl><a NAME="CreateDialogCodeDialog.__generateCode" ID="CreateDialogCodeDialog.__generateCode"></a> |
|
112 <h4>CreateDialogCodeDialog.__generateCode</h4> |
|
113 <b>__generateCode</b>(<i></i>) |
|
114 <p> |
|
115 Private slot to generate the code as requested by the user. |
|
116 </p><a NAME="CreateDialogCodeDialog.__generatePythonCode" ID="CreateDialogCodeDialog.__generatePythonCode"></a> |
|
117 <h4>CreateDialogCodeDialog.__generatePythonCode</h4> |
|
118 <b>__generatePythonCode</b>(<i></i>) |
|
119 <p> |
|
120 Private slot to generate Python code as requested by the user. |
|
121 </p><a NAME="CreateDialogCodeDialog.__objectName" ID="CreateDialogCodeDialog.__objectName"></a> |
|
122 <h4>CreateDialogCodeDialog.__objectName</h4> |
|
123 <b>__objectName</b>(<i></i>) |
|
124 <p> |
|
125 Private method to get the object name of the dialog. |
|
126 </p><dl> |
|
127 <dt>Returns:</dt> |
|
128 <dd> |
|
129 object name (string) |
|
130 </dd> |
|
131 </dl><a NAME="CreateDialogCodeDialog.__signatures" ID="CreateDialogCodeDialog.__signatures"></a> |
|
132 <h4>CreateDialogCodeDialog.__signatures</h4> |
|
133 <b>__signatures</b>(<i></i>) |
|
134 <p> |
|
135 Private slot to get the signatures. |
|
136 </p><dl> |
|
137 <dt>Returns:</dt> |
|
138 <dd> |
|
139 list of signatures (list of strings) |
|
140 </dd> |
|
141 </dl><a NAME="CreateDialogCodeDialog.__updateSlotsModel" ID="CreateDialogCodeDialog.__updateSlotsModel"></a> |
|
142 <h4>CreateDialogCodeDialog.__updateSlotsModel</h4> |
|
143 <b>__updateSlotsModel</b>(<i></i>) |
|
144 <p> |
|
145 Private slot to update the slots tree display. |
|
146 </p><a NAME="CreateDialogCodeDialog.initError" ID="CreateDialogCodeDialog.initError"></a> |
|
147 <h4>CreateDialogCodeDialog.initError</h4> |
|
148 <b>initError</b>(<i></i>) |
|
149 <p> |
|
150 Public method to determine, if there was an initialzation error. |
|
151 </p><dl> |
|
152 <dt>Returns:</dt> |
|
153 <dd> |
|
154 flag indicating an initialzation error (boolean) |
|
155 </dd> |
|
156 </dl><a NAME="CreateDialogCodeDialog.on_buttonBox_clicked" ID="CreateDialogCodeDialog.on_buttonBox_clicked"></a> |
|
157 <h4>CreateDialogCodeDialog.on_buttonBox_clicked</h4> |
|
158 <b>on_buttonBox_clicked</b>(<i>button</i>) |
|
159 <p> |
|
160 Private slot to handle the buttonBox clicked signal. |
|
161 </p><dl> |
|
162 <dt><i>button</i></dt> |
|
163 <dd> |
|
164 reference to the button that was clicked (QAbstractButton) |
|
165 </dd> |
|
166 </dl><a NAME="CreateDialogCodeDialog.on_classNameCombo_activated" ID="CreateDialogCodeDialog.on_classNameCombo_activated"></a> |
|
167 <h4>CreateDialogCodeDialog.on_classNameCombo_activated</h4> |
|
168 <b>on_classNameCombo_activated</b>(<i>index</i>) |
|
169 <p> |
|
170 Private slot to handle the activated signal of the classname combo. |
|
171 </p><dl> |
|
172 <dt><i>index</i></dt> |
|
173 <dd> |
|
174 index of the activated item (integer) |
|
175 </dd> |
|
176 </dl><a NAME="CreateDialogCodeDialog.on_clearFilterButton_clicked" ID="CreateDialogCodeDialog.on_clearFilterButton_clicked"></a> |
|
177 <h4>CreateDialogCodeDialog.on_clearFilterButton_clicked</h4> |
|
178 <b>on_clearFilterButton_clicked</b>(<i></i>) |
|
179 <p> |
|
180 Private slot called by a click of the clear filter button. |
|
181 </p><a NAME="CreateDialogCodeDialog.on_filterEdit_textChanged" ID="CreateDialogCodeDialog.on_filterEdit_textChanged"></a> |
|
182 <h4>CreateDialogCodeDialog.on_filterEdit_textChanged</h4> |
|
183 <b>on_filterEdit_textChanged</b>(<i>text</i>) |
|
184 <p> |
|
185 Private slot called, when thext of the filter edit has changed. |
|
186 </p><dl> |
|
187 <dt><i>text</i></dt> |
|
188 <dd> |
|
189 changed text (string) |
|
190 </dd> |
|
191 </dl><a NAME="CreateDialogCodeDialog.on_newButton_clicked" ID="CreateDialogCodeDialog.on_newButton_clicked"></a> |
|
192 <h4>CreateDialogCodeDialog.on_newButton_clicked</h4> |
|
193 <b>on_newButton_clicked</b>(<i></i>) |
|
194 <p> |
|
195 Private slot called to enter the data for a new dialog class. |
|
196 </p> |
|
197 <div align="right"><a href="#top">Up</a></div> |
|
198 <hr /> |
|
199 </body></html> |