|
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.MultiProject.AddProjectDialog</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.MultiProject.AddProjectDialog</h1> |
|
12 <p> |
|
13 Module implementing the add project dialog. |
|
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="#AddProjectDialog">AddProjectDialog</a></td> |
|
23 <td>Class implementing the add project 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="AddProjectDialog" ID="AddProjectDialog"></a> |
|
32 <h2>AddProjectDialog</h2> |
|
33 <p> |
|
34 Class implementing the add project dialog. |
|
35 </p> |
|
36 <h3>Derived from</h3> |
|
37 QDialog, Ui_AddProjectDialog |
|
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="#AddProjectDialog.__init__">AddProjectDialog</a></td> |
|
46 <td>Constructor</td> |
|
47 </tr><tr> |
|
48 <td><a href="#AddProjectDialog.__updateUi">__updateUi</a></td> |
|
49 <td>Private method to update the dialog.</td> |
|
50 </tr><tr> |
|
51 <td><a href="#AddProjectDialog.getData">getData</a></td> |
|
52 <td>Public slot to retrieve the dialogs data.</td> |
|
53 </tr><tr> |
|
54 <td><a href="#AddProjectDialog.on_fileButton_clicked">on_fileButton_clicked</a></td> |
|
55 <td>Private slot to display a file selection dialog.</td> |
|
56 </tr><tr> |
|
57 <td><a href="#AddProjectDialog.on_filenameEdit_textChanged">on_filenameEdit_textChanged</a></td> |
|
58 <td>Private slot called when the project filename has changed.</td> |
|
59 </tr><tr> |
|
60 <td><a href="#AddProjectDialog.on_nameEdit_textChanged">on_nameEdit_textChanged</a></td> |
|
61 <td>Private slot called when the project name has changed.</td> |
|
62 </tr> |
|
63 </table> |
|
64 <a NAME="AddProjectDialog.__init__" ID="AddProjectDialog.__init__"></a> |
|
65 <h4>AddProjectDialog (Constructor)</h4> |
|
66 <b>AddProjectDialog</b>(<i>parent = None, startdir = None, project = None</i>) |
|
67 <p> |
|
68 Constructor |
|
69 </p><dl> |
|
70 <dt><i>parent</i></dt> |
|
71 <dd> |
|
72 parent widget of this dialog (QWidget) |
|
73 </dd><dt><i>startdir</i></dt> |
|
74 <dd> |
|
75 start directory for the selection dialog (string) |
|
76 </dd><dt><i>project</i></dt> |
|
77 <dd> |
|
78 dictionary containing project data |
|
79 </dd> |
|
80 </dl><a NAME="AddProjectDialog.__updateUi" ID="AddProjectDialog.__updateUi"></a> |
|
81 <h4>AddProjectDialog.__updateUi</h4> |
|
82 <b>__updateUi</b>(<i></i>) |
|
83 <p> |
|
84 Private method to update the dialog. |
|
85 </p><a NAME="AddProjectDialog.getData" ID="AddProjectDialog.getData"></a> |
|
86 <h4>AddProjectDialog.getData</h4> |
|
87 <b>getData</b>(<i></i>) |
|
88 <p> |
|
89 Public slot to retrieve the dialogs data. |
|
90 </p><dl> |
|
91 <dt>Returns:</dt> |
|
92 <dd> |
|
93 tuple of four values (string, string, boolean, string) giving the |
|
94 project name, the name of the project file, a flag telling, whether |
|
95 the project shall be the master project and a short description |
|
96 for the project |
|
97 </dd> |
|
98 </dl><a NAME="AddProjectDialog.on_fileButton_clicked" ID="AddProjectDialog.on_fileButton_clicked"></a> |
|
99 <h4>AddProjectDialog.on_fileButton_clicked</h4> |
|
100 <b>on_fileButton_clicked</b>(<i></i>) |
|
101 <p> |
|
102 Private slot to display a file selection dialog. |
|
103 </p><a NAME="AddProjectDialog.on_filenameEdit_textChanged" ID="AddProjectDialog.on_filenameEdit_textChanged"></a> |
|
104 <h4>AddProjectDialog.on_filenameEdit_textChanged</h4> |
|
105 <b>on_filenameEdit_textChanged</b>(<i>p0</i>) |
|
106 <p> |
|
107 Private slot called when the project filename has changed. |
|
108 </p><a NAME="AddProjectDialog.on_nameEdit_textChanged" ID="AddProjectDialog.on_nameEdit_textChanged"></a> |
|
109 <h4>AddProjectDialog.on_nameEdit_textChanged</h4> |
|
110 <b>on_nameEdit_textChanged</b>(<i>p0</i>) |
|
111 <p> |
|
112 Private slot called when the project name has changed. |
|
113 </p> |
|
114 <div align="right"><a href="#top">Up</a></div> |
|
115 <hr /> |
|
116 </body></html> |