|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric7.Project.NewDialogClassDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <link rel="stylesheet" href="styles.css"> |
|
6 </head> |
|
7 <body> |
|
8 <a NAME="top" ID="top"></a> |
|
9 <h1>eric7.Project.NewDialogClassDialog</h1> |
|
10 |
|
11 <p> |
|
12 Module implementing a dialog to enter the data for a new dialog class file. |
|
13 </p> |
|
14 <h3>Global Attributes</h3> |
|
15 |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 |
|
21 <table> |
|
22 |
|
23 <tr> |
|
24 <td><a href="#NewDialogClassDialog">NewDialogClassDialog</a></td> |
|
25 <td>Class implementing a dialog to ente the data for a new dialog class file.</td> |
|
26 </tr> |
|
27 </table> |
|
28 <h3>Functions</h3> |
|
29 |
|
30 <table> |
|
31 <tr><td>None</td></tr> |
|
32 </table> |
|
33 <hr /> |
|
34 <hr /> |
|
35 <a NAME="NewDialogClassDialog" ID="NewDialogClassDialog"></a> |
|
36 <h2>NewDialogClassDialog</h2> |
|
37 |
|
38 <p> |
|
39 Class implementing a dialog to ente the data for a new dialog class file. |
|
40 </p> |
|
41 <h3>Derived from</h3> |
|
42 QDialog, Ui_NewDialogClassDialog |
|
43 <h3>Class Attributes</h3> |
|
44 |
|
45 <table> |
|
46 <tr><td>None</td></tr> |
|
47 </table> |
|
48 <h3>Class Methods</h3> |
|
49 |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Methods</h3> |
|
54 |
|
55 <table> |
|
56 |
|
57 <tr> |
|
58 <td><a href="#NewDialogClassDialog.__init__">NewDialogClassDialog</a></td> |
|
59 <td>Constructor</td> |
|
60 </tr> |
|
61 <tr> |
|
62 <td><a href="#NewDialogClassDialog.__enableOkButton">__enableOkButton</a></td> |
|
63 <td>Private slot to set the enable state of theok button.</td> |
|
64 </tr> |
|
65 <tr> |
|
66 <td><a href="#NewDialogClassDialog.getData">getData</a></td> |
|
67 <td>Public method to retrieve the data entered into the dialog.</td> |
|
68 </tr> |
|
69 <tr> |
|
70 <td><a href="#NewDialogClassDialog.on_classnameEdit_textChanged">on_classnameEdit_textChanged</a></td> |
|
71 <td>Private slot called, when thext of the classname edit has changed.</td> |
|
72 </tr> |
|
73 <tr> |
|
74 <td><a href="#NewDialogClassDialog.on_filenameEdit_textChanged">on_filenameEdit_textChanged</a></td> |
|
75 <td>Private slot called, when thext of the filename edit has changed.</td> |
|
76 </tr> |
|
77 <tr> |
|
78 <td><a href="#NewDialogClassDialog.on_pathnamePicker_textChanged">on_pathnamePicker_textChanged</a></td> |
|
79 <td>Private slot called, when the text of the path name has changed.</td> |
|
80 </tr> |
|
81 </table> |
|
82 <h3>Static Methods</h3> |
|
83 |
|
84 <table> |
|
85 <tr><td>None</td></tr> |
|
86 </table> |
|
87 |
|
88 <a NAME="NewDialogClassDialog.__init__" ID="NewDialogClassDialog.__init__"></a> |
|
89 <h4>NewDialogClassDialog (Constructor)</h4> |
|
90 <b>NewDialogClassDialog</b>(<i>defaultClassName, defaultFile, defaultPath, parent=None</i>) |
|
91 |
|
92 <p> |
|
93 Constructor |
|
94 </p> |
|
95 <dl> |
|
96 |
|
97 <dt><i>defaultClassName</i></dt> |
|
98 <dd> |
|
99 proposed name for the new class (string) |
|
100 </dd> |
|
101 <dt><i>defaultFile</i></dt> |
|
102 <dd> |
|
103 proposed name for the source file (string) |
|
104 </dd> |
|
105 <dt><i>defaultPath</i></dt> |
|
106 <dd> |
|
107 default path for the new file (string) |
|
108 </dd> |
|
109 <dt><i>parent</i></dt> |
|
110 <dd> |
|
111 parent widget if the dialog (QWidget) |
|
112 </dd> |
|
113 </dl> |
|
114 <a NAME="NewDialogClassDialog.__enableOkButton" ID="NewDialogClassDialog.__enableOkButton"></a> |
|
115 <h4>NewDialogClassDialog.__enableOkButton</h4> |
|
116 <b>__enableOkButton</b>(<i></i>) |
|
117 |
|
118 <p> |
|
119 Private slot to set the enable state of theok button. |
|
120 </p> |
|
121 <a NAME="NewDialogClassDialog.getData" ID="NewDialogClassDialog.getData"></a> |
|
122 <h4>NewDialogClassDialog.getData</h4> |
|
123 <b>getData</b>(<i></i>) |
|
124 |
|
125 <p> |
|
126 Public method to retrieve the data entered into the dialog. |
|
127 </p> |
|
128 <dl> |
|
129 <dt>Return:</dt> |
|
130 <dd> |
|
131 tuple giving the classname (string) and the file name (string) |
|
132 </dd> |
|
133 </dl> |
|
134 <a NAME="NewDialogClassDialog.on_classnameEdit_textChanged" ID="NewDialogClassDialog.on_classnameEdit_textChanged"></a> |
|
135 <h4>NewDialogClassDialog.on_classnameEdit_textChanged</h4> |
|
136 <b>on_classnameEdit_textChanged</b>(<i>text</i>) |
|
137 |
|
138 <p> |
|
139 Private slot called, when thext of the classname edit has changed. |
|
140 </p> |
|
141 <dl> |
|
142 |
|
143 <dt><i>text</i></dt> |
|
144 <dd> |
|
145 changed text (string) |
|
146 </dd> |
|
147 </dl> |
|
148 <a NAME="NewDialogClassDialog.on_filenameEdit_textChanged" ID="NewDialogClassDialog.on_filenameEdit_textChanged"></a> |
|
149 <h4>NewDialogClassDialog.on_filenameEdit_textChanged</h4> |
|
150 <b>on_filenameEdit_textChanged</b>(<i>text</i>) |
|
151 |
|
152 <p> |
|
153 Private slot called, when thext of the filename edit has changed. |
|
154 </p> |
|
155 <dl> |
|
156 |
|
157 <dt><i>text</i></dt> |
|
158 <dd> |
|
159 changed text (string) |
|
160 </dd> |
|
161 </dl> |
|
162 <a NAME="NewDialogClassDialog.on_pathnamePicker_textChanged" ID="NewDialogClassDialog.on_pathnamePicker_textChanged"></a> |
|
163 <h4>NewDialogClassDialog.on_pathnamePicker_textChanged</h4> |
|
164 <b>on_pathnamePicker_textChanged</b>(<i>text</i>) |
|
165 |
|
166 <p> |
|
167 Private slot called, when the text of the path name has changed. |
|
168 </p> |
|
169 <dl> |
|
170 |
|
171 <dt><i>text</i></dt> |
|
172 <dd> |
|
173 changed text (string) |
|
174 </dd> |
|
175 </dl> |
|
176 <div align="right"><a href="#top">Up</a></div> |
|
177 <hr /> |
|
178 </body></html> |