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