eric6/Documentation/Source/eric6.Project.AddFileDialog.html

changeset 6942
2602857055c5
parent 5606
da305d172769
child 7273
391d6b7b1eff
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.Project.AddFileDialog</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.Project.AddFileDialog</h1>
23 <p>
24 Module implementing a dialog to add a file to the project.
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="#AddFileDialog">AddFileDialog</a></td>
34 <td>Class implementing a dialog to add a file to the project.</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="AddFileDialog" ID="AddFileDialog"></a>
43 <h2>AddFileDialog</h2>
44 <p>
45 Class implementing a dialog to add a file to the project.
46 </p>
47 <h3>Derived from</h3>
48 QDialog, Ui_AddFileDialog
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="#AddFileDialog.__init__">AddFileDialog</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#AddFileDialog.getData">getData</a></td>
64 <td>Public slot to retrieve the dialogs data.</td>
65 </tr><tr>
66 <td><a href="#AddFileDialog.on_sourceFilesPicker_aboutToShowPathPickerDialog">on_sourceFilesPicker_aboutToShowPathPickerDialog</a></td>
67 <td>Private slot to perform actions before the source files selection dialog is shown.</td>
68 </tr><tr>
69 <td><a href="#AddFileDialog.on_sourceFilesPicker_textChanged">on_sourceFilesPicker_textChanged</a></td>
70 <td>Private slot to handle the source file text changed.</td>
71 </tr>
72 </table>
73 <h3>Static Methods</h3>
74 <table>
75 <tr><td>None</td></tr>
76 </table>
77 <a NAME="AddFileDialog.__init__" ID="AddFileDialog.__init__"></a>
78 <h4>AddFileDialog (Constructor)</h4>
79 <b>AddFileDialog</b>(<i>pro, parent=None, fileTypeFilter=None, name=None, startdir=None</i>)
80 <p>
81 Constructor
82 </p><dl>
83 <dt><i>pro</i></dt>
84 <dd>
85 reference to the project object
86 </dd><dt><i>parent</i></dt>
87 <dd>
88 parent widget of this dialog (QWidget)
89 </dd><dt><i>fileTypeFilter</i></dt>
90 <dd>
91 filter specification for the file to add (string)
92 </dd><dt><i>name</i></dt>
93 <dd>
94 name of this dialog (string)
95 </dd><dt><i>startdir</i></dt>
96 <dd>
97 start directory for the selection dialog
98 </dd>
99 </dl><a NAME="AddFileDialog.getData" ID="AddFileDialog.getData"></a>
100 <h4>AddFileDialog.getData</h4>
101 <b>getData</b>(<i></i>)
102 <p>
103 Public slot to retrieve the dialogs data.
104 </p><dl>
105 <dt>Returns:</dt>
106 <dd>
107 tuple of three values (list of string, string, boolean)
108 giving the source files, the target directory and a flag
109 telling, whether the files shall be added as source code
110 </dd>
111 </dl><a NAME="AddFileDialog.on_sourceFilesPicker_aboutToShowPathPickerDialog" ID="AddFileDialog.on_sourceFilesPicker_aboutToShowPathPickerDialog"></a>
112 <h4>AddFileDialog.on_sourceFilesPicker_aboutToShowPathPickerDialog</h4>
113 <b>on_sourceFilesPicker_aboutToShowPathPickerDialog</b>(<i></i>)
114 <p>
115 Private slot to perform actions before the source files selection
116 dialog is shown.
117 </p><a NAME="AddFileDialog.on_sourceFilesPicker_textChanged" ID="AddFileDialog.on_sourceFilesPicker_textChanged"></a>
118 <h4>AddFileDialog.on_sourceFilesPicker_textChanged</h4>
119 <b>on_sourceFilesPicker_textChanged</b>(<i>sfile</i>)
120 <p>
121 Private slot to handle the source file text changed.
122 </p><p>
123 If the entered source directory is a subdirectory of the current
124 projects main directory, the target directory path is synchronized.
125 It is assumed, that the user wants to add a bunch of files to
126 the project in place.
127 </p><dl>
128 <dt><i>sfile</i></dt>
129 <dd>
130 the text of the source file picker (string)
131 </dd>
132 </dl>
133 <div align="right"><a href="#top">Up</a></div>
134 <hr />
135 </body></html>

eric ide

mercurial