Documentation/Source/eric5.Project.AddFoundFilesDialog.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.Project.AddFoundFilesDialog</h1> 23 <h1>eric5.Project.AddFoundFilesDialog</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#116;&#111; &#115;&#104;&#111;w &#116;&#104;&#101; &#102;&#111;&#117;&#110;&#100; &#102;&#105;&#108;&#101;&#115; &#116;&#111; &#116;&#104;&#101; &#117;&#115;&#101;&#114;. 25 Module implementing a dialog to show the found files to the user.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
30 </table> 30 </table>
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#AddFoundFilesDialog">AddFoundFilesDialog</a></td> 34 <td><a href="#AddFoundFilesDialog">AddFoundFilesDialog</a></td>
35 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#116;&#111; &#115;&#104;&#111;w &#116;&#104;&#101; &#102;&#111;&#117;&#110;&#100; &#102;&#105;&#108;&#101;&#115; &#116;&#111; &#116;&#104;&#101; &#117;&#115;&#101;&#114;.</td> 35 <td>Class implementing a dialog to show the found files to the user.</td>
36 </tr> 36 </tr>
37 </table> 37 </table>
38 <h3>Functions</h3> 38 <h3>Functions</h3>
39 <table> 39 <table>
40 <tr><td>None</td></tr> 40 <tr><td>None</td></tr>
41 </table> 41 </table>
42 <hr /><hr /> 42 <hr /><hr />
43 <a NAME="AddFoundFilesDialog" ID="AddFoundFilesDialog"></a> 43 <a NAME="AddFoundFilesDialog" ID="AddFoundFilesDialog"></a>
44 <h2>AddFoundFilesDialog</h2> 44 <h2>AddFoundFilesDialog</h2>
45 <p> 45 <p>
46 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97; &#100;&#105;&#97;&#108;&#111;&#103; &#116;&#111; &#115;&#104;&#111;w &#116;&#104;&#101; &#102;&#111;&#117;&#110;&#100; &#102;&#105;&#108;&#101;&#115; &#116;&#111; &#116;&#104;&#101; &#117;&#115;&#101;&#114;. 46 Class implementing a dialog to show the found files to the user.
47 </p><p> 47 </p><p>
48 &#84;&#104;&#101; &#102;&#111;&#117;&#110;&#100; &#102;&#105;&#108;&#101;&#115; &#97;&#114;&#101; &#100;&#105;&#115;&#112;&#108;&#97;y&#101;&#100; &#105;&#110; &#97; &#108;&#105;&#115;&#116;v&#105;&#101;w. 48 The found files are displayed in a listview.
49 &#80;&#114;&#101;&#115;&#115;&#105;&#110;&#103; &#116;&#104;&#101; '&#65;&#100;&#100; &#65;&#108;&#108;' &#98;&#117;&#116;&#116;&#111;&#110; &#97;&#100;&#100;&#115; &#97;&#108;&#108; &#102;&#105;&#108;&#101;&#115; &#116;&#111; &#116;&#104;&#101; &#99;&#117;&#114;&#114;&#101;&#110;&#116; &#112;&#114;&#111;&#106;&#101;&#99;&#116;, 49 Pressing the 'Add All' button adds all files to the current project,
50 &#116;&#104;&#101; '&#65;&#100;&#100; &#83;&#101;&#108;&#101;&#99;&#116;&#101;&#100;' &#98;&#117;&#116;&#116;&#111;&#110; &#97;&#100;&#100;&#115; &#111;&#110;&#108;y &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#101;&#100; &#102;&#105;&#108;&#101;&#115; &#97;&#110;&#100; &#116;&#104;&#101; '&#67;&#97;&#110;&#99;&#101;&#108;' 50 the 'Add Selected' button adds only the selected files and the 'Cancel'
51 &#98;&#117;&#116;&#116;&#111;&#110; &#99;&#97;&#110;&#99;&#101;&#108;&#115; &#116;&#104;&#101; &#111;&#112;&#101;&#114;&#97;&#116;&#105;&#111;&#110;. 51 button cancels the operation.
52 </p> 52 </p>
53 <h3>Derived from</h3> 53 <h3>Derived from</h3>
54 QDialog, Ui_AddFoundFilesDialog 54 QDialog, Ui_AddFoundFilesDialog
55 <h3>Class Attributes</h3> 55 <h3>Class Attributes</h3>
56 <table> 56 <table>
58 </table> 58 </table>
59 <h3>Methods</h3> 59 <h3>Methods</h3>
60 <table> 60 <table>
61 <tr> 61 <tr>
62 <td><a href="#AddFoundFilesDialog.__init__">AddFoundFilesDialog</a></td> 62 <td><a href="#AddFoundFilesDialog.__init__">AddFoundFilesDialog</a></td>
63 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 63 <td>Constructor</td>
64 </tr><tr> 64 </tr><tr>
65 <td><a href="#AddFoundFilesDialog.getSelection">getSelection</a></td> 65 <td><a href="#AddFoundFilesDialog.getSelection">getSelection</a></td>
66 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#117;&#114;&#110; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#101;&#100; &#105;&#116;&#101;&#109;&#115;.</td> 66 <td>Public method to return the selected items.</td>
67 </tr><tr> 67 </tr><tr>
68 <td><a href="#AddFoundFilesDialog.on_addAllButton_clicked">on_addAllButton_clicked</a></td> 68 <td><a href="#AddFoundFilesDialog.on_addAllButton_clicked">on_addAllButton_clicked</a></td>
69 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; '&#65;&#100;&#100; &#65;&#108;&#108;' &#98;&#117;&#116;&#116;&#111;&#110; &#112;&#114;&#101;&#115;&#115;.</td> 69 <td>Private slot to handle the 'Add All' button press.</td>
70 </tr><tr> 70 </tr><tr>
71 <td><a href="#AddFoundFilesDialog.on_addSelectedButton_clicked">on_addSelectedButton_clicked</a></td> 71 <td><a href="#AddFoundFilesDialog.on_addSelectedButton_clicked">on_addSelectedButton_clicked</a></td>
72 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; '&#65;&#100;&#100; &#83;&#101;&#108;&#101;&#99;&#116;&#101;&#100;' &#98;&#117;&#116;&#116;&#111;&#110; &#112;&#114;&#101;&#115;&#115;.</td> 72 <td>Private slot to handle the 'Add Selected' button press.</td>
73 </tr><tr> 73 </tr><tr>
74 <td><a href="#AddFoundFilesDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> 74 <td><a href="#AddFoundFilesDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td>
75 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100; &#98;y &#97; &#98;&#117;&#116;&#116;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#98;&#117;&#116;&#116;&#111;&#110; &#98;&#111;x &#99;&#108;&#105;&#99;&#107;&#101;&#100;.</td> 75 <td>Private slot called by a button of the button box clicked.</td>
76 </tr> 76 </tr>
77 </table> 77 </table>
78 <a NAME="AddFoundFilesDialog.__init__" ID="AddFoundFilesDialog.__init__"></a> 78 <a NAME="AddFoundFilesDialog.__init__" ID="AddFoundFilesDialog.__init__"></a>
79 <h4>AddFoundFilesDialog (Constructor)</h4> 79 <h4>AddFoundFilesDialog (Constructor)</h4>
80 <b>AddFoundFilesDialog</b>(<i>files, parent = None, name = None</i>) 80 <b>AddFoundFilesDialog</b>(<i>files, parent = None, name = None</i>)
81 <p> 81 <p>
82 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 82 Constructor
83 </p><dl> 83 </p><dl>
84 <dt><i>files</i></dt> 84 <dt><i>files</i></dt>
85 <dd> 85 <dd>
86 &#108;&#105;&#115;&#116; &#111;&#102; &#102;&#105;&#108;&#101;&#115;, &#116;&#104;&#97;&#116; &#104;&#97;v&#101; &#98;&#101;&#101;&#110; &#102;&#111;&#117;&#110;&#100; &#102;&#111;&#114; &#97;&#100;&#100;&#105;&#116;&#105;&#111;&#110; (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;) 86 list of files, that have been found for addition (list of strings)
87 </dd><dt><i>parent</i></dt> 87 </dd><dt><i>parent</i></dt>
88 <dd> 88 <dd>
89 &#112;&#97;&#114;&#101;&#110;&#116; w&#105;&#100;&#103;&#101;&#116; &#111;&#102; &#116;&#104;&#105;&#115; &#100;&#105;&#97;&#108;&#111;&#103; (&#81;&#87;&#105;&#100;&#103;&#101;&#116;) 89 parent widget of this dialog (QWidget)
90 </dd><dt><i>name</i></dt> 90 </dd><dt><i>name</i></dt>
91 <dd> 91 <dd>
92 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#105;&#115; &#100;&#105;&#97;&#108;&#111;&#103; (&#115;&#116;&#114;&#105;&#110;&#103;) 92 name of this dialog (string)
93 </dd> 93 </dd>
94 </dl><a NAME="AddFoundFilesDialog.getSelection" ID="AddFoundFilesDialog.getSelection"></a> 94 </dl><a NAME="AddFoundFilesDialog.getSelection" ID="AddFoundFilesDialog.getSelection"></a>
95 <h4>AddFoundFilesDialog.getSelection</h4> 95 <h4>AddFoundFilesDialog.getSelection</h4>
96 <b>getSelection</b>(<i></i>) 96 <b>getSelection</b>(<i></i>)
97 <p> 97 <p>
98 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#117;&#114;&#110; &#116;&#104;&#101; &#115;&#101;&#108;&#101;&#99;&#116;&#101;&#100; &#105;&#116;&#101;&#109;&#115;. 98 Public method to return the selected items.
99 </p><dl> 99 </p><dl>
100 <dt>Returns:</dt> 100 <dt>Returns:</dt>
101 <dd> 101 <dd>
102 &#108;&#105;&#115;&#116; &#111;&#102; &#115;&#101;&#108;&#101;&#99;&#116;&#101;&#100; &#102;&#105;&#108;&#101;&#115; (&#108;&#105;&#115;&#116; &#111;&#102; &#115;&#116;&#114;&#105;&#110;&#103;&#115;) 102 list of selected files (list of strings)
103 </dd> 103 </dd>
104 </dl><a NAME="AddFoundFilesDialog.on_addAllButton_clicked" ID="AddFoundFilesDialog.on_addAllButton_clicked"></a> 104 </dl><a NAME="AddFoundFilesDialog.on_addAllButton_clicked" ID="AddFoundFilesDialog.on_addAllButton_clicked"></a>
105 <h4>AddFoundFilesDialog.on_addAllButton_clicked</h4> 105 <h4>AddFoundFilesDialog.on_addAllButton_clicked</h4>
106 <b>on_addAllButton_clicked</b>(<i></i>) 106 <b>on_addAllButton_clicked</b>(<i></i>)
107 <p> 107 <p>
108 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; '&#65;&#100;&#100; &#65;&#108;&#108;' &#98;&#117;&#116;&#116;&#111;&#110; &#112;&#114;&#101;&#115;&#115;. 108 Private slot to handle the 'Add All' button press.
109 </p><dl> 109 </p><dl>
110 <dt>Returns:</dt> 110 <dt>Returns:</dt>
111 <dd> 111 <dd>
112 &#97;&#108;w&#97;y&#115; &#49; (&#105;&#110;&#116;) 112 always 1 (int)
113 </dd> 113 </dd>
114 </dl><a NAME="AddFoundFilesDialog.on_addSelectedButton_clicked" ID="AddFoundFilesDialog.on_addSelectedButton_clicked"></a> 114 </dl><a NAME="AddFoundFilesDialog.on_addSelectedButton_clicked" ID="AddFoundFilesDialog.on_addSelectedButton_clicked"></a>
115 <h4>AddFoundFilesDialog.on_addSelectedButton_clicked</h4> 115 <h4>AddFoundFilesDialog.on_addSelectedButton_clicked</h4>
116 <b>on_addSelectedButton_clicked</b>(<i></i>) 116 <b>on_addSelectedButton_clicked</b>(<i></i>)
117 <p> 117 <p>
118 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#116;&#111; &#104;&#97;&#110;&#100;&#108;&#101; &#116;&#104;&#101; '&#65;&#100;&#100; &#83;&#101;&#108;&#101;&#99;&#116;&#101;&#100;' &#98;&#117;&#116;&#116;&#111;&#110; &#112;&#114;&#101;&#115;&#115;. 118 Private slot to handle the 'Add Selected' button press.
119 </p><dl> 119 </p><dl>
120 <dt>Returns:</dt> 120 <dt>Returns:</dt>
121 <dd> 121 <dd>
122 &#97;&#108;w&#97;y&#115; &#50; (&#105;&#110;&#116;) 122 always 2 (int)
123 </dd> 123 </dd>
124 </dl><a NAME="AddFoundFilesDialog.on_buttonBox_clicked" ID="AddFoundFilesDialog.on_buttonBox_clicked"></a> 124 </dl><a NAME="AddFoundFilesDialog.on_buttonBox_clicked" ID="AddFoundFilesDialog.on_buttonBox_clicked"></a>
125 <h4>AddFoundFilesDialog.on_buttonBox_clicked</h4> 125 <h4>AddFoundFilesDialog.on_buttonBox_clicked</h4>
126 <b>on_buttonBox_clicked</b>(<i>button</i>) 126 <b>on_buttonBox_clicked</b>(<i>button</i>)
127 <p> 127 <p>
128 &#80;&#114;&#105;v&#97;&#116;&#101; &#115;&#108;&#111;&#116; &#99;&#97;&#108;&#108;&#101;&#100; &#98;y &#97; &#98;&#117;&#116;&#116;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#98;&#117;&#116;&#116;&#111;&#110; &#98;&#111;x &#99;&#108;&#105;&#99;&#107;&#101;&#100;. 128 Private slot called by a button of the button box clicked.
129 </p><dl> 129 </p><dl>
130 <dt><i>button</i></dt> 130 <dt><i>button</i></dt>
131 <dd> 131 <dd>
132 &#98;&#117;&#116;&#116;&#111;&#110; &#116;&#104;&#97;&#116; w&#97;&#115; &#99;&#108;&#105;&#99;&#107;&#101;&#100; (&#81;&#65;&#98;&#115;&#116;&#114;&#97;&#99;&#116;&#66;&#117;&#116;&#116;&#111;&#110;) 132 button that was clicked (QAbstractButton)
133 </dd> 133 </dd>
134 </dl> 134 </dl>
135 <div align="right"><a href="#top">Up</a></div> 135 <div align="right"><a href="#top">Up</a></div>
136 <hr /> 136 <hr />
137 </body></html> 137 </body></html>

eric ide

mercurial