5 <link rel="stylesheet" href="styles.css"> |
5 <link rel="stylesheet" href="styles.css"> |
6 </head> |
6 </head> |
7 <body> |
7 <body> |
8 <a NAME="top" ID="top"></a> |
8 <a NAME="top" ID="top"></a> |
9 <h1>eric7.EricWidgets.EricFileSaveConfirmDialog</h1> |
9 <h1>eric7.EricWidgets.EricFileSaveConfirmDialog</h1> |
10 |
|
11 <p> |
10 <p> |
12 Module implementing a dialog to enter a file system path using a file picker. |
11 Module implementing a dialog to enter a file system path using a file picker. |
13 </p> |
12 </p> |
|
13 |
14 <h3>Global Attributes</h3> |
14 <h3>Global Attributes</h3> |
15 |
15 <table> |
16 <table> |
16 <tr><td>None</td></tr> |
17 <tr><td>None</td></tr> |
17 </table> |
18 </table> |
18 |
19 <h3>Classes</h3> |
19 <h3>Classes</h3> |
20 |
20 <table> |
21 <table> |
|
22 |
|
23 <tr> |
21 <tr> |
24 <td><a href="#EricFileSaveConfirmDialog">EricFileSaveConfirmDialog</a></td> |
22 <td><a href="#EricFileSaveConfirmDialog">EricFileSaveConfirmDialog</a></td> |
25 <td>Class implementing a dialog to enter a file system path using a file picker.</td> |
23 <td>Class implementing a dialog to enter a file system path using a file picker.</td> |
26 </tr> |
24 </tr> |
27 </table> |
25 </table> |
|
26 |
28 <h3>Functions</h3> |
27 <h3>Functions</h3> |
29 |
28 <table> |
30 <table> |
|
31 |
|
32 <tr> |
29 <tr> |
33 <td><a href="#confirmOverwrite">confirmOverwrite</a></td> |
30 <td><a href="#confirmOverwrite">confirmOverwrite</a></td> |
34 <td>Function to confirm that a file shall be overwritten.</td> |
31 <td>Function to confirm that a file shall be overwritten.</td> |
35 </tr> |
32 </tr> |
36 </table> |
33 </table> |
|
34 |
37 <hr /> |
35 <hr /> |
38 <hr /> |
36 <hr /> |
39 <a NAME="EricFileSaveConfirmDialog" ID="EricFileSaveConfirmDialog"></a> |
37 <a NAME="EricFileSaveConfirmDialog" ID="EricFileSaveConfirmDialog"></a> |
40 <h2>EricFileSaveConfirmDialog</h2> |
38 <h2>EricFileSaveConfirmDialog</h2> |
41 |
|
42 <p> |
39 <p> |
43 Class implementing a dialog to enter a file system path using a file |
40 Class implementing a dialog to enter a file system path using a file |
44 picker. |
41 picker. |
45 </p> |
42 </p> |
|
43 |
46 <h3>Derived from</h3> |
44 <h3>Derived from</h3> |
47 QDialog |
45 QDialog |
48 <h3>Class Attributes</h3> |
46 <h3>Class Attributes</h3> |
49 |
47 <table> |
50 <table> |
48 <tr><td>None</td></tr> |
51 <tr><td>None</td></tr> |
49 </table> |
52 </table> |
50 |
53 <h3>Class Methods</h3> |
51 <h3>Class Methods</h3> |
54 |
52 <table> |
55 <table> |
53 <tr><td>None</td></tr> |
56 <tr><td>None</td></tr> |
54 </table> |
57 </table> |
55 |
58 <h3>Methods</h3> |
56 <h3>Methods</h3> |
59 |
57 <table> |
60 <table> |
|
61 |
|
62 <tr> |
58 <tr> |
63 <td><a href="#EricFileSaveConfirmDialog.__init__">EricFileSaveConfirmDialog</a></td> |
59 <td><a href="#EricFileSaveConfirmDialog.__init__">EricFileSaveConfirmDialog</a></td> |
64 <td>Constructor</td> |
60 <td>Constructor</td> |
65 </tr> |
61 </tr> |
66 <tr> |
62 <tr> |
74 <tr> |
70 <tr> |
75 <td><a href="#EricFileSaveConfirmDialog.selectedAction">selectedAction</a></td> |
71 <td><a href="#EricFileSaveConfirmDialog.selectedAction">selectedAction</a></td> |
76 <td>Public method to get the selected action and associated data.</td> |
72 <td>Public method to get the selected action and associated data.</td> |
77 </tr> |
73 </tr> |
78 </table> |
74 </table> |
|
75 |
79 <h3>Static Methods</h3> |
76 <h3>Static Methods</h3> |
80 |
77 <table> |
81 <table> |
78 <tr><td>None</td></tr> |
82 <tr><td>None</td></tr> |
79 </table> |
83 </table> |
80 |
84 |
81 |
85 <a NAME="EricFileSaveConfirmDialog.__init__" ID="EricFileSaveConfirmDialog.__init__"></a> |
82 <a NAME="EricFileSaveConfirmDialog.__init__" ID="EricFileSaveConfirmDialog.__init__"></a> |
86 <h4>EricFileSaveConfirmDialog (Constructor)</h4> |
83 <h4>EricFileSaveConfirmDialog (Constructor)</h4> |
87 <b>EricFileSaveConfirmDialog</b>(<i>filename, title, message="", picker=True, parent=None</i>) |
84 <b>EricFileSaveConfirmDialog</b>(<i>filename, title, message="", picker=True, parent=None</i>) |
88 |
|
89 <p> |
85 <p> |
90 Constructor |
86 Constructor |
91 </p> |
87 </p> |
|
88 |
92 <dl> |
89 <dl> |
93 |
90 |
94 <dt><i>filename</i> (str)</dt> |
91 <dt><i>filename</i> (str)</dt> |
95 <dd> |
92 <dd> |
96 file name to be shown |
93 file name to be shown |
113 </dd> |
110 </dd> |
114 </dl> |
111 </dl> |
115 <a NAME="EricFileSaveConfirmDialog.__buttonBoxClicked" ID="EricFileSaveConfirmDialog.__buttonBoxClicked"></a> |
112 <a NAME="EricFileSaveConfirmDialog.__buttonBoxClicked" ID="EricFileSaveConfirmDialog.__buttonBoxClicked"></a> |
116 <h4>EricFileSaveConfirmDialog.__buttonBoxClicked</h4> |
113 <h4>EricFileSaveConfirmDialog.__buttonBoxClicked</h4> |
117 <b>__buttonBoxClicked</b>(<i>button</i>) |
114 <b>__buttonBoxClicked</b>(<i>button</i>) |
118 |
|
119 <p> |
115 <p> |
120 Private slot to handle the user clicking a button. |
116 Private slot to handle the user clicking a button. |
121 </p> |
117 </p> |
|
118 |
122 <dl> |
119 <dl> |
123 |
120 |
124 <dt><i>button</i> (QAbstractButton)</dt> |
121 <dt><i>button</i> (QAbstractButton)</dt> |
125 <dd> |
122 <dd> |
126 reference to the clicked button |
123 reference to the clicked button |
127 </dd> |
124 </dd> |
128 </dl> |
125 </dl> |
129 <a NAME="EricFileSaveConfirmDialog.__filenameChanged" ID="EricFileSaveConfirmDialog.__filenameChanged"></a> |
126 <a NAME="EricFileSaveConfirmDialog.__filenameChanged" ID="EricFileSaveConfirmDialog.__filenameChanged"></a> |
130 <h4>EricFileSaveConfirmDialog.__filenameChanged</h4> |
127 <h4>EricFileSaveConfirmDialog.__filenameChanged</h4> |
131 <b>__filenameChanged</b>(<i>text</i>) |
128 <b>__filenameChanged</b>(<i>text</i>) |
132 |
|
133 <p> |
129 <p> |
134 Private slot to handle a change of the file name. |
130 Private slot to handle a change of the file name. |
135 </p> |
131 </p> |
|
132 |
136 <dl> |
133 <dl> |
137 |
134 |
138 <dt><i>text</i> (str)</dt> |
135 <dt><i>text</i> (str)</dt> |
139 <dd> |
136 <dd> |
140 new file name |
137 new file name |
141 </dd> |
138 </dd> |
142 </dl> |
139 </dl> |
143 <a NAME="EricFileSaveConfirmDialog.selectedAction" ID="EricFileSaveConfirmDialog.selectedAction"></a> |
140 <a NAME="EricFileSaveConfirmDialog.selectedAction" ID="EricFileSaveConfirmDialog.selectedAction"></a> |
144 <h4>EricFileSaveConfirmDialog.selectedAction</h4> |
141 <h4>EricFileSaveConfirmDialog.selectedAction</h4> |
145 <b>selectedAction</b>(<i></i>) |
142 <b>selectedAction</b>(<i></i>) |
146 |
|
147 <p> |
143 <p> |
148 Public method to get the selected action and associated data. |
144 Public method to get the selected action and associated data. |
149 </p> |
145 </p> |
|
146 |
150 <dl> |
147 <dl> |
151 <dt>Return:</dt> |
148 <dt>Return:</dt> |
152 <dd> |
149 <dd> |
153 tuple containing the selected action (cancel, rename, |
150 tuple containing the selected action (cancel, rename, |
154 overwrite) and the filename (in case of 'rename' or 'overwrite') |
151 overwrite) and the filename (in case of 'rename' or 'overwrite') |
164 <hr /> |
161 <hr /> |
165 <hr /> |
162 <hr /> |
166 <a NAME="confirmOverwrite" ID="confirmOverwrite"></a> |
163 <a NAME="confirmOverwrite" ID="confirmOverwrite"></a> |
167 <h2>confirmOverwrite</h2> |
164 <h2>confirmOverwrite</h2> |
168 <b>confirmOverwrite</b>(<i>filename, title, message="", picker=True, parent=None</i>) |
165 <b>confirmOverwrite</b>(<i>filename, title, message="", picker=True, parent=None</i>) |
169 |
|
170 <p> |
166 <p> |
171 Function to confirm that a file shall be overwritten. |
167 Function to confirm that a file shall be overwritten. |
172 </p> |
168 </p> |
|
169 |
173 <dl> |
170 <dl> |
174 |
171 |
175 <dt><i>filename</i> (str)</dt> |
172 <dt><i>filename</i> (str)</dt> |
176 <dd> |
173 <dd> |
177 file name to be shown |
174 file name to be shown |