|
1 <!DOCTYPE html> |
|
2 <html><head> |
|
3 <title>eric6.MultiProject.AddProjectDialog</title> |
|
4 <meta charset="UTF-8"> |
|
5 <style> |
|
6 body { |
|
7 background: #EDECE6; |
|
8 margin: 0em 1em 10em 1em; |
|
9 color: black; |
|
10 } |
|
11 |
|
12 h1 { color: white; background: #85774A; } |
|
13 h2 { color: white; background: #85774A; } |
|
14 h3 { color: white; background: #9D936E; } |
|
15 h4 { color: white; background: #9D936E; } |
|
16 |
|
17 a { color: #BA6D36; } |
|
18 |
|
19 </style> |
|
20 </head> |
|
21 <body><a NAME="top" ID="top"></a> |
|
22 <h1>eric6.MultiProject.AddProjectDialog</h1> |
|
23 <p> |
|
24 Module implementing the add project dialog. |
|
25 </p> |
|
26 <h3>Global Attributes</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <h3>Classes</h3> |
|
31 <table> |
|
32 <tr> |
|
33 <td><a href="#AddProjectDialog">AddProjectDialog</a></td> |
|
34 <td>Class implementing the add project dialog.</td> |
|
35 </tr> |
|
36 </table> |
|
37 <h3>Functions</h3> |
|
38 <table> |
|
39 <tr><td>None</td></tr> |
|
40 </table> |
|
41 <hr /><hr /> |
|
42 <a NAME="AddProjectDialog" ID="AddProjectDialog"></a> |
|
43 <h2>AddProjectDialog</h2> |
|
44 <p> |
|
45 Class implementing the add project dialog. |
|
46 </p> |
|
47 <h3>Derived from</h3> |
|
48 QDialog, Ui_AddProjectDialog |
|
49 <h3>Class Attributes</h3> |
|
50 <table> |
|
51 <tr><td>None</td></tr> |
|
52 </table> |
|
53 <h3>Class Methods</h3> |
|
54 <table> |
|
55 <tr><td>None</td></tr> |
|
56 </table> |
|
57 <h3>Methods</h3> |
|
58 <table> |
|
59 <tr> |
|
60 <td><a href="#AddProjectDialog.__init__">AddProjectDialog</a></td> |
|
61 <td>Constructor</td> |
|
62 </tr><tr> |
|
63 <td><a href="#AddProjectDialog.__updateUi">__updateUi</a></td> |
|
64 <td>Private method to update the dialog.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#AddProjectDialog.getData">getData</a></td> |
|
67 <td>Public slot to retrieve the dialogs data.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#AddProjectDialog.on_fileButton_clicked">on_fileButton_clicked</a></td> |
|
70 <td>Private slot to display a file selection dialog.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#AddProjectDialog.on_filenameEdit_textChanged">on_filenameEdit_textChanged</a></td> |
|
73 <td>Private slot called when the project filename has changed.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#AddProjectDialog.on_nameEdit_textChanged">on_nameEdit_textChanged</a></td> |
|
76 <td>Private slot called when the project name has changed.</td> |
|
77 </tr> |
|
78 </table> |
|
79 <h3>Static Methods</h3> |
|
80 <table> |
|
81 <tr><td>None</td></tr> |
|
82 </table> |
|
83 <a NAME="AddProjectDialog.__init__" ID="AddProjectDialog.__init__"></a> |
|
84 <h4>AddProjectDialog (Constructor)</h4> |
|
85 <b>AddProjectDialog</b>(<i>parent=None, startdir=None, project=None, categories=None</i>) |
|
86 <p> |
|
87 Constructor |
|
88 </p><dl> |
|
89 <dt><i>parent</i></dt> |
|
90 <dd> |
|
91 parent widget of this dialog (QWidget) |
|
92 </dd><dt><i>startdir</i></dt> |
|
93 <dd> |
|
94 start directory for the selection dialog (string) |
|
95 </dd><dt><i>project</i></dt> |
|
96 <dd> |
|
97 dictionary containing project data |
|
98 </dd><dt><i>categories</i></dt> |
|
99 <dd> |
|
100 list of already used categories (list of string) |
|
101 </dd> |
|
102 </dl><a NAME="AddProjectDialog.__updateUi" ID="AddProjectDialog.__updateUi"></a> |
|
103 <h4>AddProjectDialog.__updateUi</h4> |
|
104 <b>__updateUi</b>(<i></i>) |
|
105 <p> |
|
106 Private method to update the dialog. |
|
107 </p><a NAME="AddProjectDialog.getData" ID="AddProjectDialog.getData"></a> |
|
108 <h4>AddProjectDialog.getData</h4> |
|
109 <b>getData</b>(<i></i>) |
|
110 <p> |
|
111 Public slot to retrieve the dialogs data. |
|
112 </p><dl> |
|
113 <dt>Returns:</dt> |
|
114 <dd> |
|
115 tuple of five values (string, string, boolean, string, string) |
|
116 giving the project name, the name of the project file, a flag |
|
117 telling whether the project shall be the main project, a short |
|
118 description for the project and the project category |
|
119 </dd> |
|
120 </dl><a NAME="AddProjectDialog.on_fileButton_clicked" ID="AddProjectDialog.on_fileButton_clicked"></a> |
|
121 <h4>AddProjectDialog.on_fileButton_clicked</h4> |
|
122 <b>on_fileButton_clicked</b>(<i></i>) |
|
123 <p> |
|
124 Private slot to display a file selection dialog. |
|
125 </p><a NAME="AddProjectDialog.on_filenameEdit_textChanged" ID="AddProjectDialog.on_filenameEdit_textChanged"></a> |
|
126 <h4>AddProjectDialog.on_filenameEdit_textChanged</h4> |
|
127 <b>on_filenameEdit_textChanged</b>(<i>txt</i>) |
|
128 <p> |
|
129 Private slot called when the project filename has changed. |
|
130 </p><dl> |
|
131 <dt><i>txt</i></dt> |
|
132 <dd> |
|
133 text of the edit (string) |
|
134 </dd> |
|
135 </dl><a NAME="AddProjectDialog.on_nameEdit_textChanged" ID="AddProjectDialog.on_nameEdit_textChanged"></a> |
|
136 <h4>AddProjectDialog.on_nameEdit_textChanged</h4> |
|
137 <b>on_nameEdit_textChanged</b>(<i>txt</i>) |
|
138 <p> |
|
139 Private slot called when the project name has changed. |
|
140 </p><dl> |
|
141 <dt><i>txt</i></dt> |
|
142 <dd> |
|
143 text of the edit (string) |
|
144 </dd> |
|
145 </dl> |
|
146 <div align="right"><a href="#top">Up</a></div> |
|
147 <hr /> |
|
148 </body></html> |