|
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.NewDialogClassDialog</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.NewDialogClassDialog</h1> |
|
24 <p> |
|
25 Module implementing a dialog to ente the data for a new dialog class file. |
|
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="#NewDialogClassDialog">NewDialogClassDialog</a></td> |
|
35 <td>Class implementing a dialog to ente the data for a new dialog class file.</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="NewDialogClassDialog" ID="NewDialogClassDialog"></a> |
|
44 <h2>NewDialogClassDialog</h2> |
|
45 <p> |
|
46 Class implementing a dialog to ente the data for a new dialog class file. |
|
47 </p> |
|
48 <h3>Derived from</h3> |
|
49 QDialog, Ui_NewDialogClassDialog |
|
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="#NewDialogClassDialog.__init__">NewDialogClassDialog</a></td> |
|
58 <td>Constructor</td> |
|
59 </tr><tr> |
|
60 <td><a href="#NewDialogClassDialog.__enableOkButton">__enableOkButton</a></td> |
|
61 <td>Private slot to set the enable state of theok button.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#NewDialogClassDialog.getData">getData</a></td> |
|
64 <td>Public method to retrieve the data entered into the dialog.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#NewDialogClassDialog.on_classnameEdit_textChanged">on_classnameEdit_textChanged</a></td> |
|
67 <td>Private slot called, when thext of the classname edit has changed.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#NewDialogClassDialog.on_filenameEdit_textChanged">on_filenameEdit_textChanged</a></td> |
|
70 <td>Private slot called, when thext of the filename edit has changed.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#NewDialogClassDialog.on_pathButton_clicked">on_pathButton_clicked</a></td> |
|
73 <td>Private slot called to open a directory selection dialog.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#NewDialogClassDialog.on_pathnameEdit_textChanged">on_pathnameEdit_textChanged</a></td> |
|
76 <td>Private slot called, when thext of the pathname edit has changed.</td> |
|
77 </tr> |
|
78 </table> |
|
79 <a NAME="NewDialogClassDialog.__init__" ID="NewDialogClassDialog.__init__"></a> |
|
80 <h4>NewDialogClassDialog (Constructor)</h4> |
|
81 <b>NewDialogClassDialog</b>(<i>defaultClassName, defaultFile, defaultPath, parent = None</i>) |
|
82 <p> |
|
83 Constructor |
|
84 </p><dl> |
|
85 <dt><i>defaultClassName</i></dt> |
|
86 <dd> |
|
87 proposed name for the new class (string) |
|
88 </dd><dt><i>defaultFile</i></dt> |
|
89 <dd> |
|
90 proposed name for the source file (string) |
|
91 </dd><dt><i>defaultPath</i></dt> |
|
92 <dd> |
|
93 default path for the new file (string) |
|
94 </dd><dt><i>parent</i></dt> |
|
95 <dd> |
|
96 parent widget if the dialog (QWidget) |
|
97 </dd> |
|
98 </dl><a NAME="NewDialogClassDialog.__enableOkButton" ID="NewDialogClassDialog.__enableOkButton"></a> |
|
99 <h4>NewDialogClassDialog.__enableOkButton</h4> |
|
100 <b>__enableOkButton</b>(<i></i>) |
|
101 <p> |
|
102 Private slot to set the enable state of theok button. |
|
103 </p><a NAME="NewDialogClassDialog.getData" ID="NewDialogClassDialog.getData"></a> |
|
104 <h4>NewDialogClassDialog.getData</h4> |
|
105 <b>getData</b>(<i></i>) |
|
106 <p> |
|
107 Public method to retrieve the data entered into the dialog. |
|
108 </p><dl> |
|
109 <dt>Returns:</dt> |
|
110 <dd> |
|
111 tuple giving the classname (string) and the file name (string) |
|
112 </dd> |
|
113 </dl><a NAME="NewDialogClassDialog.on_classnameEdit_textChanged" ID="NewDialogClassDialog.on_classnameEdit_textChanged"></a> |
|
114 <h4>NewDialogClassDialog.on_classnameEdit_textChanged</h4> |
|
115 <b>on_classnameEdit_textChanged</b>(<i>text</i>) |
|
116 <p> |
|
117 Private slot called, when thext of the classname edit has changed. |
|
118 </p><dl> |
|
119 <dt><i>text</i></dt> |
|
120 <dd> |
|
121 changed text (string) |
|
122 </dd> |
|
123 </dl><a NAME="NewDialogClassDialog.on_filenameEdit_textChanged" ID="NewDialogClassDialog.on_filenameEdit_textChanged"></a> |
|
124 <h4>NewDialogClassDialog.on_filenameEdit_textChanged</h4> |
|
125 <b>on_filenameEdit_textChanged</b>(<i>text</i>) |
|
126 <p> |
|
127 Private slot called, when thext of the filename edit has changed. |
|
128 </p><dl> |
|
129 <dt><i>text</i></dt> |
|
130 <dd> |
|
131 changed text (string) |
|
132 </dd> |
|
133 </dl><a NAME="NewDialogClassDialog.on_pathButton_clicked" ID="NewDialogClassDialog.on_pathButton_clicked"></a> |
|
134 <h4>NewDialogClassDialog.on_pathButton_clicked</h4> |
|
135 <b>on_pathButton_clicked</b>(<i></i>) |
|
136 <p> |
|
137 Private slot called to open a directory selection dialog. |
|
138 </p><a NAME="NewDialogClassDialog.on_pathnameEdit_textChanged" ID="NewDialogClassDialog.on_pathnameEdit_textChanged"></a> |
|
139 <h4>NewDialogClassDialog.on_pathnameEdit_textChanged</h4> |
|
140 <b>on_pathnameEdit_textChanged</b>(<i>text</i>) |
|
141 <p> |
|
142 Private slot called, when thext of the pathname edit has changed. |
|
143 </p><dl> |
|
144 <dt><i>text</i></dt> |
|
145 <dd> |
|
146 changed text (string) |
|
147 </dd> |
|
148 </dl> |
|
149 <div align="right"><a href="#top">Up</a></div> |
|
150 <hr /> |
|
151 </body></html> |