Documentation/Source/eric5.Project.NewDialogClassDialog.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.Project.NewDialogClassDialog</h1> 23 <h1>eric5.Project.NewDialogClassDialog</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#116;&#111; &#101;&#110;&#116;&#101; &#116;&#104;&#101; &#100;&#97;&#116;&#97; &#102;&#111;&#114; &#97; &#110;&#101;w &#100;&#105;&#97;&#108;&#111;&#103; &#99;&#108;&#97;&#115;&#115; &#102;&#105;&#108;&#101;. 25 Module implementing a dialog to ente the data for a new dialog class file.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
30 </table> 30 </table>
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#NewDialogClassDialog">NewDialogClassDialog</a></td> 34 <td><a href="#NewDialogClassDialog">NewDialogClassDialog</a></td>
35 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#116;&#111; &#101;&#110;&#116;&#101; &#116;&#104;&#101; &#100;&#97;&#116;&#97; &#102;&#111;&#114; &#97; &#110;&#101;w &#100;&#105;&#97;&#108;&#111;&#103; &#99;&#108;&#97;&#115;&#115; &#102;&#105;&#108;&#101;.</td> 35 <td>Class implementing a dialog to ente the data for a new dialog class file.</td>
36 </tr> 36 </tr>
37 </table> 37 </table>
38 <h3>Functions</h3> 38 <h3>Functions</h3>
39 <table> 39 <table>
40 <tr><td>None</td></tr> 40 <tr><td>None</td></tr>
41 </table> 41 </table>
42 <hr /><hr /> 42 <hr /><hr />
43 <a NAME="NewDialogClassDialog" ID="NewDialogClassDialog"></a> 43 <a NAME="NewDialogClassDialog" ID="NewDialogClassDialog"></a>
44 <h2>NewDialogClassDialog</h2> 44 <h2>NewDialogClassDialog</h2>
45 <p> 45 <p>
46 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#116;&#111; &#101;&#110;&#116;&#101; &#116;&#104;&#101; &#100;&#97;&#116;&#97; &#102;&#111;&#114; &#97; &#110;&#101;w &#100;&#105;&#97;&#108;&#111;&#103; &#99;&#108;&#97;&#115;&#115; &#102;&#105;&#108;&#101;. 46 Class implementing a dialog to ente the data for a new dialog class file.
47 </p> 47 </p>
48 <h3>Derived from</h3> 48 <h3>Derived from</h3>
49 QDialog, Ui_NewDialogClassDialog 49 QDialog, Ui_NewDialogClassDialog
50 <h3>Class Attributes</h3> 50 <h3>Class Attributes</h3>
51 <table> 51 <table>
53 </table> 53 </table>
54 <h3>Methods</h3> 54 <h3>Methods</h3>
55 <table> 55 <table>
56 <tr> 56 <tr>
57 <td><a href="#NewDialogClassDialog.__init__">NewDialogClassDialog</a></td> 57 <td><a href="#NewDialogClassDialog.__init__">NewDialogClassDialog</a></td>
58 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 58 <td>Constructor</td>
59 </tr><tr> 59 </tr><tr>
60 <td><a href="#NewDialogClassDialog.__enableOkButton">__enableOkButton</a></td> 60 <td><a href="#NewDialogClassDialog.__enableOkButton">__enableOkButton</a></td>
61 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#101;&#110;&#97;&#98;&#108;&#101; &#115;&#116;&#97;&#116;&#101; &#111;&#102; &#116;&#104;&#101;&#111;&#107; &#98;&#117;&#116;&#116;&#111;&#110;.</td> 61 <td>Private slot to set the enable state of theok button.</td>
62 </tr><tr> 62 </tr><tr>
63 <td><a href="#NewDialogClassDialog.getData">getData</a></td> 63 <td><a href="#NewDialogClassDialog.getData">getData</a></td>
64 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; &#116;&#104;&#101; &#100;&#97;&#116;&#97; &#101;&#110;&#116;&#101;&#114;&#101;&#100; &#105;&#110;&#116;&#111; &#116;&#104;&#101; &#100;&#105;&#97;&#108;&#111;&#103;.</td> 64 <td>Public method to retrieve the data entered into the dialog.</td>
65 </tr><tr> 65 </tr><tr>
66 <td><a href="#NewDialogClassDialog.on_classnameEdit_textChanged">on_classnameEdit_textChanged</a></td> 66 <td><a href="#NewDialogClassDialog.on_classnameEdit_textChanged">on_classnameEdit_textChanged</a></td>
67 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100;, w&#104;&#101;&#110; &#116;&#104;&#101;x&#116; &#111;&#102; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115;&#110;&#97;&#109;&#101; &#101;&#100;&#105;&#116; &#104;&#97;&#115; &#99;&#104;&#97;&#110;&#103;&#101;&#100;.</td> 67 <td>Private slot called, when thext of the classname edit has changed.</td>
68 </tr><tr> 68 </tr><tr>
69 <td><a href="#NewDialogClassDialog.on_filenameEdit_textChanged">on_filenameEdit_textChanged</a></td> 69 <td><a href="#NewDialogClassDialog.on_filenameEdit_textChanged">on_filenameEdit_textChanged</a></td>
70 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100;, w&#104;&#101;&#110; &#116;&#104;&#101;x&#116; &#111;&#102; &#116;&#104;&#101; &#102;&#105;&#108;&#101;&#110;&#97;&#109;&#101; &#101;&#100;&#105;&#116; &#104;&#97;&#115; &#99;&#104;&#97;&#110;&#103;&#101;&#100;.</td> 70 <td>Private slot called, when thext of the filename edit has changed.</td>
71 </tr><tr> 71 </tr><tr>
72 <td><a href="#NewDialogClassDialog.on_pathButton_clicked">on_pathButton_clicked</a></td> 72 <td><a href="#NewDialogClassDialog.on_pathButton_clicked">on_pathButton_clicked</a></td>
73 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100; &#116;&#111; &#111;&#112;&#101;&#110; &#97; &#100;&#105;&#114;&#101;&#99;&#116;&#111;&#114;y &#115;&#101;&#108;&#101;&#99;&#116;&#105;&#111;&#110; &#100;&#105;&#97;&#108;&#111;&#103;.</td> 73 <td>Private slot called to open a directory selection dialog.</td>
74 </tr><tr> 74 </tr><tr>
75 <td><a href="#NewDialogClassDialog.on_pathnameEdit_textChanged">on_pathnameEdit_textChanged</a></td> 75 <td><a href="#NewDialogClassDialog.on_pathnameEdit_textChanged">on_pathnameEdit_textChanged</a></td>
76 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100;, w&#104;&#101;&#110; &#116;&#104;&#101;x&#116; &#111;&#102; &#116;&#104;&#101; &#112;&#97;&#116;&#104;&#110;&#97;&#109;&#101; &#101;&#100;&#105;&#116; &#104;&#97;&#115; &#99;&#104;&#97;&#110;&#103;&#101;&#100;.</td> 76 <td>Private slot called, when thext of the pathname edit has changed.</td>
77 </tr> 77 </tr>
78 </table> 78 </table>
79 <a NAME="NewDialogClassDialog.__init__" ID="NewDialogClassDialog.__init__"></a> 79 <a NAME="NewDialogClassDialog.__init__" ID="NewDialogClassDialog.__init__"></a>
80 <h4>NewDialogClassDialog (Constructor)</h4> 80 <h4>NewDialogClassDialog (Constructor)</h4>
81 <b>NewDialogClassDialog</b>(<i>defaultClassName, defaultFile, defaultPath, parent = None</i>) 81 <b>NewDialogClassDialog</b>(<i>defaultClassName, defaultFile, defaultPath, parent = None</i>)
82 <p> 82 <p>
83 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 83 Constructor
84 </p><dl> 84 </p><dl>
85 <dt><i>defaultClassName</i></dt> 85 <dt><i>defaultClassName</i></dt>
86 <dd> 86 <dd>
87 &#112;&#114;&#111;&#112;&#111;&#115;&#101;&#100; &#110;&#97;&#109;&#101; &#102;&#111;&#114; &#116;&#104;&#101; &#110;&#101;w &#99;&#108;&#97;&#115;&#115; (&#115;&#116;&#114;&#105;&#110;&#103;) 87 proposed name for the new class (string)
88 </dd><dt><i>defaultFile</i></dt> 88 </dd><dt><i>defaultFile</i></dt>
89 <dd> 89 <dd>
90 &#112;&#114;&#111;&#112;&#111;&#115;&#101;&#100; &#110;&#97;&#109;&#101; &#102;&#111;&#114; &#116;&#104;&#101; &#115;&#111;&#117;&#114;&#99;&#101; &#102;&#105;&#108;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;) 90 proposed name for the source file (string)
91 </dd><dt><i>defaultPath</i></dt> 91 </dd><dt><i>defaultPath</i></dt>
92 <dd> 92 <dd>
93 &#100;&#101;&#102;&#97;&#117;&#108;&#116; &#112;&#97;&#116;&#104; &#102;&#111;&#114; &#116;&#104;&#101; &#110;&#101;w &#102;&#105;&#108;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;) 93 default path for the new file (string)
94 </dd><dt><i>parent</i></dt> 94 </dd><dt><i>parent</i></dt>
95 <dd> 95 <dd>
96 &#112;&#97;&#114;&#101;&#110;&#116; w&#105;&#100;&#103;&#101;&#116; &#105;&#102; &#116;&#104;&#101; &#100;&#105;&#97;&#108;&#111;&#103; (&#81;&#87;&#105;&#100;&#103;&#101;&#116;) 96 parent widget if the dialog (QWidget)
97 </dd> 97 </dd>
98 </dl><a NAME="NewDialogClassDialog.__enableOkButton" ID="NewDialogClassDialog.__enableOkButton"></a> 98 </dl><a NAME="NewDialogClassDialog.__enableOkButton" ID="NewDialogClassDialog.__enableOkButton"></a>
99 <h4>NewDialogClassDialog.__enableOkButton</h4> 99 <h4>NewDialogClassDialog.__enableOkButton</h4>
100 <b>__enableOkButton</b>(<i></i>) 100 <b>__enableOkButton</b>(<i></i>)
101 <p> 101 <p>
102 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#101;&#110;&#97;&#98;&#108;&#101; &#115;&#116;&#97;&#116;&#101; &#111;&#102; &#116;&#104;&#101;&#111;&#107; &#98;&#117;&#116;&#116;&#111;&#110;. 102 Private slot to set the enable state of theok button.
103 </p><a NAME="NewDialogClassDialog.getData" ID="NewDialogClassDialog.getData"></a> 103 </p><a NAME="NewDialogClassDialog.getData" ID="NewDialogClassDialog.getData"></a>
104 <h4>NewDialogClassDialog.getData</h4> 104 <h4>NewDialogClassDialog.getData</h4>
105 <b>getData</b>(<i></i>) 105 <b>getData</b>(<i></i>)
106 <p> 106 <p>
107 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; &#116;&#104;&#101; &#100;&#97;&#116;&#97; &#101;&#110;&#116;&#101;&#114;&#101;&#100; &#105;&#110;&#116;&#111; &#116;&#104;&#101; &#100;&#105;&#97;&#108;&#111;&#103;. 107 Public method to retrieve the data entered into the dialog.
108 </p><dl> 108 </p><dl>
109 <dt>Returns:</dt> 109 <dt>Returns:</dt>
110 <dd> 110 <dd>
111 &#116;&#117;&#112;&#108;&#101; &#103;&#105;v&#105;&#110;&#103; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115;&#110;&#97;&#109;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;) &#97;&#110;&#100; &#116;&#104;&#101; &#102;&#105;&#108;&#101; &#110;&#97;&#109;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;) 111 tuple giving the classname (string) and the file name (string)
112 </dd> 112 </dd>
113 </dl><a NAME="NewDialogClassDialog.on_classnameEdit_textChanged" ID="NewDialogClassDialog.on_classnameEdit_textChanged"></a> 113 </dl><a NAME="NewDialogClassDialog.on_classnameEdit_textChanged" ID="NewDialogClassDialog.on_classnameEdit_textChanged"></a>
114 <h4>NewDialogClassDialog.on_classnameEdit_textChanged</h4> 114 <h4>NewDialogClassDialog.on_classnameEdit_textChanged</h4>
115 <b>on_classnameEdit_textChanged</b>(<i>text</i>) 115 <b>on_classnameEdit_textChanged</b>(<i>text</i>)
116 <p> 116 <p>
117 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100;, w&#104;&#101;&#110; &#116;&#104;&#101;x&#116; &#111;&#102; &#116;&#104;&#101; &#99;&#108;&#97;&#115;&#115;&#110;&#97;&#109;&#101; &#101;&#100;&#105;&#116; &#104;&#97;&#115; &#99;&#104;&#97;&#110;&#103;&#101;&#100;. 117 Private slot called, when thext of the classname edit has changed.
118 </p><dl> 118 </p><dl>
119 <dt><i>text</i></dt> 119 <dt><i>text</i></dt>
120 <dd> 120 <dd>
121 &#99;&#104;&#97;&#110;&#103;&#101;&#100; &#116;&#101;x&#116; (&#115;&#116;&#114;&#105;&#110;&#103;) 121 changed text (string)
122 </dd> 122 </dd>
123 </dl><a NAME="NewDialogClassDialog.on_filenameEdit_textChanged" ID="NewDialogClassDialog.on_filenameEdit_textChanged"></a> 123 </dl><a NAME="NewDialogClassDialog.on_filenameEdit_textChanged" ID="NewDialogClassDialog.on_filenameEdit_textChanged"></a>
124 <h4>NewDialogClassDialog.on_filenameEdit_textChanged</h4> 124 <h4>NewDialogClassDialog.on_filenameEdit_textChanged</h4>
125 <b>on_filenameEdit_textChanged</b>(<i>text</i>) 125 <b>on_filenameEdit_textChanged</b>(<i>text</i>)
126 <p> 126 <p>
127 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100;, w&#104;&#101;&#110; &#116;&#104;&#101;x&#116; &#111;&#102; &#116;&#104;&#101; &#102;&#105;&#108;&#101;&#110;&#97;&#109;&#101; &#101;&#100;&#105;&#116; &#104;&#97;&#115; &#99;&#104;&#97;&#110;&#103;&#101;&#100;. 127 Private slot called, when thext of the filename edit has changed.
128 </p><dl> 128 </p><dl>
129 <dt><i>text</i></dt> 129 <dt><i>text</i></dt>
130 <dd> 130 <dd>
131 &#99;&#104;&#97;&#110;&#103;&#101;&#100; &#116;&#101;x&#116; (&#115;&#116;&#114;&#105;&#110;&#103;) 131 changed text (string)
132 </dd> 132 </dd>
133 </dl><a NAME="NewDialogClassDialog.on_pathButton_clicked" ID="NewDialogClassDialog.on_pathButton_clicked"></a> 133 </dl><a NAME="NewDialogClassDialog.on_pathButton_clicked" ID="NewDialogClassDialog.on_pathButton_clicked"></a>
134 <h4>NewDialogClassDialog.on_pathButton_clicked</h4> 134 <h4>NewDialogClassDialog.on_pathButton_clicked</h4>
135 <b>on_pathButton_clicked</b>(<i></i>) 135 <b>on_pathButton_clicked</b>(<i></i>)
136 <p> 136 <p>
137 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100; &#116;&#111; &#111;&#112;&#101;&#110; &#97; &#100;&#105;&#114;&#101;&#99;&#116;&#111;&#114;y &#115;&#101;&#108;&#101;&#99;&#116;&#105;&#111;&#110; &#100;&#105;&#97;&#108;&#111;&#103;. 137 Private slot called to open a directory selection dialog.
138 </p><a NAME="NewDialogClassDialog.on_pathnameEdit_textChanged" ID="NewDialogClassDialog.on_pathnameEdit_textChanged"></a> 138 </p><a NAME="NewDialogClassDialog.on_pathnameEdit_textChanged" ID="NewDialogClassDialog.on_pathnameEdit_textChanged"></a>
139 <h4>NewDialogClassDialog.on_pathnameEdit_textChanged</h4> 139 <h4>NewDialogClassDialog.on_pathnameEdit_textChanged</h4>
140 <b>on_pathnameEdit_textChanged</b>(<i>text</i>) 140 <b>on_pathnameEdit_textChanged</b>(<i>text</i>)
141 <p> 141 <p>
142 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100;, w&#104;&#101;&#110; &#116;&#104;&#101;x&#116; &#111;&#102; &#116;&#104;&#101; &#112;&#97;&#116;&#104;&#110;&#97;&#109;&#101; &#101;&#100;&#105;&#116; &#104;&#97;&#115; &#99;&#104;&#97;&#110;&#103;&#101;&#100;. 142 Private slot called, when thext of the pathname edit has changed.
143 </p><dl> 143 </p><dl>
144 <dt><i>text</i></dt> 144 <dt><i>text</i></dt>
145 <dd> 145 <dd>
146 &#99;&#104;&#97;&#110;&#103;&#101;&#100; &#116;&#101;x&#116; (&#115;&#116;&#114;&#105;&#110;&#103;) 146 changed text (string)
147 </dd> 147 </dd>
148 </dl> 148 </dl>
149 <div align="right"><a href="#top">Up</a></div> 149 <div align="right"><a href="#top">Up</a></div>
150 <hr /> 150 <hr />
151 </body></html> 151 </body></html>

eric ide

mercurial