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

changeset 7273
391d6b7b1eff
parent 6942
2602857055c5
child 7989
a21d673a8f99
equal deleted inserted replaced
7272:1779dc278077 7273:391d6b7b1eff
16 16
17 a { color: #BA6D36; } 17 a { color: #BA6D36; }
18 18
19 </style> 19 </style>
20 </head> 20 </head>
21 <body><a NAME="top" ID="top"></a> 21 <body>
22 <a NAME="top" ID="top"></a>
22 <h1>eric6.Project.AddFileDialog</h1> 23 <h1>eric6.Project.AddFileDialog</h1>
24
23 <p> 25 <p>
24 Module implementing a dialog to add a file to the project. 26 Module implementing a dialog to add a file to the project.
25 </p> 27 </p>
26 <h3>Global Attributes</h3> 28 <h3>Global Attributes</h3>
29
27 <table> 30 <table>
28 <tr><td>None</td></tr> 31 <tr><td>None</td></tr>
29 </table> 32 </table>
30 <h3>Classes</h3> 33 <h3>Classes</h3>
34
31 <table> 35 <table>
36
32 <tr> 37 <tr>
33 <td><a href="#AddFileDialog">AddFileDialog</a></td> 38 <td><a href="#AddFileDialog">AddFileDialog</a></td>
34 <td>Class implementing a dialog to add a file to the project.</td> 39 <td>Class implementing a dialog to add a file to the project.</td>
35 </tr> 40 </tr>
36 </table> 41 </table>
37 <h3>Functions</h3> 42 <h3>Functions</h3>
43
38 <table> 44 <table>
39 <tr><td>None</td></tr> 45 <tr><td>None</td></tr>
40 </table> 46 </table>
41 <hr /><hr /> 47 <hr />
48 <hr />
42 <a NAME="AddFileDialog" ID="AddFileDialog"></a> 49 <a NAME="AddFileDialog" ID="AddFileDialog"></a>
43 <h2>AddFileDialog</h2> 50 <h2>AddFileDialog</h2>
51
44 <p> 52 <p>
45 Class implementing a dialog to add a file to the project. 53 Class implementing a dialog to add a file to the project.
46 </p> 54 </p>
47 <h3>Derived from</h3> 55 <h3>Derived from</h3>
48 QDialog, Ui_AddFileDialog 56 QDialog, Ui_AddFileDialog
49 <h3>Class Attributes</h3> 57 <h3>Class Attributes</h3>
58
50 <table> 59 <table>
51 <tr><td>None</td></tr> 60 <tr><td>None</td></tr>
52 </table> 61 </table>
53 <h3>Class Methods</h3> 62 <h3>Class Methods</h3>
63
54 <table> 64 <table>
55 <tr><td>None</td></tr> 65 <tr><td>None</td></tr>
56 </table> 66 </table>
57 <h3>Methods</h3> 67 <h3>Methods</h3>
68
58 <table> 69 <table>
70
59 <tr> 71 <tr>
60 <td><a href="#AddFileDialog.__init__">AddFileDialog</a></td> 72 <td><a href="#AddFileDialog.__init__">AddFileDialog</a></td>
61 <td>Constructor</td> 73 <td>Constructor</td>
62 </tr><tr> 74 </tr>
75 <tr>
63 <td><a href="#AddFileDialog.getData">getData</a></td> 76 <td><a href="#AddFileDialog.getData">getData</a></td>
64 <td>Public slot to retrieve the dialogs data.</td> 77 <td>Public slot to retrieve the dialogs data.</td>
65 </tr><tr> 78 </tr>
79 <tr>
66 <td><a href="#AddFileDialog.on_sourceFilesPicker_aboutToShowPathPickerDialog">on_sourceFilesPicker_aboutToShowPathPickerDialog</a></td> 80 <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> 81 <td>Private slot to perform actions before the source files selection dialog is shown.</td>
68 </tr><tr> 82 </tr>
83 <tr>
69 <td><a href="#AddFileDialog.on_sourceFilesPicker_textChanged">on_sourceFilesPicker_textChanged</a></td> 84 <td><a href="#AddFileDialog.on_sourceFilesPicker_textChanged">on_sourceFilesPicker_textChanged</a></td>
70 <td>Private slot to handle the source file text changed.</td> 85 <td>Private slot to handle the source file text changed.</td>
71 </tr> 86 </tr>
72 </table> 87 </table>
73 <h3>Static Methods</h3> 88 <h3>Static Methods</h3>
89
74 <table> 90 <table>
75 <tr><td>None</td></tr> 91 <tr><td>None</td></tr>
76 </table> 92 </table>
93
77 <a NAME="AddFileDialog.__init__" ID="AddFileDialog.__init__"></a> 94 <a NAME="AddFileDialog.__init__" ID="AddFileDialog.__init__"></a>
78 <h4>AddFileDialog (Constructor)</h4> 95 <h4>AddFileDialog (Constructor)</h4>
79 <b>AddFileDialog</b>(<i>pro, parent=None, fileTypeFilter=None, name=None, startdir=None</i>) 96 <b>AddFileDialog</b>(<i>pro, parent=None, fileTypeFilter=None, name=None, startdir=None</i>)
97
80 <p> 98 <p>
81 Constructor 99 Constructor
82 </p><dl> 100 </p>
101 <dl>
102
83 <dt><i>pro</i></dt> 103 <dt><i>pro</i></dt>
84 <dd> 104 <dd>
85 reference to the project object 105 reference to the project object
86 </dd><dt><i>parent</i></dt> 106 </dd>
107 <dt><i>parent</i></dt>
87 <dd> 108 <dd>
88 parent widget of this dialog (QWidget) 109 parent widget of this dialog (QWidget)
89 </dd><dt><i>fileTypeFilter</i></dt> 110 </dd>
111 <dt><i>fileTypeFilter</i></dt>
90 <dd> 112 <dd>
91 filter specification for the file to add (string) 113 filter specification for the file to add (string)
92 </dd><dt><i>name</i></dt> 114 </dd>
115 <dt><i>name</i></dt>
93 <dd> 116 <dd>
94 name of this dialog (string) 117 name of this dialog (string)
95 </dd><dt><i>startdir</i></dt> 118 </dd>
119 <dt><i>startdir</i></dt>
96 <dd> 120 <dd>
97 start directory for the selection dialog 121 start directory for the selection dialog
98 </dd> 122 </dd>
99 </dl><a NAME="AddFileDialog.getData" ID="AddFileDialog.getData"></a> 123 </dl>
124 <a NAME="AddFileDialog.getData" ID="AddFileDialog.getData"></a>
100 <h4>AddFileDialog.getData</h4> 125 <h4>AddFileDialog.getData</h4>
101 <b>getData</b>(<i></i>) 126 <b>getData</b>(<i></i>)
127
102 <p> 128 <p>
103 Public slot to retrieve the dialogs data. 129 Public slot to retrieve the dialogs data.
104 </p><dl> 130 </p>
131 <dl>
105 <dt>Returns:</dt> 132 <dt>Returns:</dt>
106 <dd> 133 <dd>
107 tuple of three values (list of string, string, boolean) 134 tuple of three values (list of string, string, boolean)
108 giving the source files, the target directory and a flag 135 giving the source files, the target directory and a flag
109 telling, whether the files shall be added as source code 136 telling, whether the files shall be added as source code
110 </dd> 137 </dd>
111 </dl><a NAME="AddFileDialog.on_sourceFilesPicker_aboutToShowPathPickerDialog" ID="AddFileDialog.on_sourceFilesPicker_aboutToShowPathPickerDialog"></a> 138 </dl>
139 <a NAME="AddFileDialog.on_sourceFilesPicker_aboutToShowPathPickerDialog" ID="AddFileDialog.on_sourceFilesPicker_aboutToShowPathPickerDialog"></a>
112 <h4>AddFileDialog.on_sourceFilesPicker_aboutToShowPathPickerDialog</h4> 140 <h4>AddFileDialog.on_sourceFilesPicker_aboutToShowPathPickerDialog</h4>
113 <b>on_sourceFilesPicker_aboutToShowPathPickerDialog</b>(<i></i>) 141 <b>on_sourceFilesPicker_aboutToShowPathPickerDialog</b>(<i></i>)
142
114 <p> 143 <p>
115 Private slot to perform actions before the source files selection 144 Private slot to perform actions before the source files selection
116 dialog is shown. 145 dialog is shown.
117 </p><a NAME="AddFileDialog.on_sourceFilesPicker_textChanged" ID="AddFileDialog.on_sourceFilesPicker_textChanged"></a> 146 </p>
147 <a NAME="AddFileDialog.on_sourceFilesPicker_textChanged" ID="AddFileDialog.on_sourceFilesPicker_textChanged"></a>
118 <h4>AddFileDialog.on_sourceFilesPicker_textChanged</h4> 148 <h4>AddFileDialog.on_sourceFilesPicker_textChanged</h4>
119 <b>on_sourceFilesPicker_textChanged</b>(<i>sfile</i>) 149 <b>on_sourceFilesPicker_textChanged</b>(<i>sfile</i>)
150
120 <p> 151 <p>
121 Private slot to handle the source file text changed. 152 Private slot to handle the source file text changed.
122 </p><p> 153 </p>
154 <p>
123 If the entered source directory is a subdirectory of the current 155 If the entered source directory is a subdirectory of the current
124 projects main directory, the target directory path is synchronized. 156 projects main directory, the target directory path is synchronized.
125 It is assumed, that the user wants to add a bunch of files to 157 It is assumed, that the user wants to add a bunch of files to
126 the project in place. 158 the project in place.
127 </p><dl> 159 </p>
160 <dl>
161
128 <dt><i>sfile</i></dt> 162 <dt><i>sfile</i></dt>
129 <dd> 163 <dd>
130 the text of the source file picker (string) 164 the text of the source file picker (string)
131 </dd> 165 </dd>
132 </dl> 166 </dl>

eric ide

mercurial