Project/AddFoundFilesDialog.py

changeset 945
8cd4d08fa9f6
parent 791
9ec2ac20e54e
child 1112
8a7d1b9d18db
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
10 from PyQt4.QtCore import * 10 from PyQt4.QtCore import *
11 from PyQt4.QtGui import * 11 from PyQt4.QtGui import *
12 12
13 from .Ui_AddFoundFilesDialog import Ui_AddFoundFilesDialog 13 from .Ui_AddFoundFilesDialog import Ui_AddFoundFilesDialog
14 14
15
15 class AddFoundFilesDialog(QDialog, Ui_AddFoundFilesDialog): 16 class AddFoundFilesDialog(QDialog, Ui_AddFoundFilesDialog):
16 """ 17 """
17 Class implementing a dialog to show the found files to the user. 18 Class implementing a dialog to show the found files to the user.
18 19
19 The found files are displayed in a listview. 20 The found files are displayed in a listview.
20 Pressing the 'Add All' button adds all files to the current project, 21 Pressing the 'Add All' button adds all files to the current project,
21 the 'Add Selected' button adds only the selected files and the 'Cancel' 22 the 'Add Selected' button adds only the selected files and the 'Cancel'
22 button cancels the operation. 23 button cancels the operation.
23 """ 24 """
24 25
25 def __init__(self, files, parent = None, name = None): 26 def __init__(self, files, parent=None, name=None):
26 """ 27 """
27 Constructor 28 Constructor
28 29
29 @param files list of files, that have been found for addition (list of strings) 30 @param files list of files, that have been found for addition (list of strings)
30 @param parent parent widget of this dialog (QWidget) 31 @param parent parent widget of this dialog (QWidget)
56 self.on_addSelectedButton_clicked() 57 self.on_addSelectedButton_clicked()
57 58
58 @pyqtSlot() 59 @pyqtSlot()
59 def on_addAllButton_clicked(self): 60 def on_addAllButton_clicked(self):
60 """ 61 """
61 Private slot to handle the 'Add All' button press. 62 Private slot to handle the 'Add All' button press.
62 63
63 @return always 1 (int) 64 @return always 1 (int)
64 """ 65 """
65 self.done(1) 66 self.done(1)
66 67

eric ide

mercurial