Class implementing a dialog to add files of a directory to the project.
Methods
|
|
__init__
getData
handleDirDialog
handleSDirDialog
handleSTextChanged
handleTDirDialog
|
|
__init__
|
__init__ (
self,
pro,
parent=None,
name=None,
modal=0,
fl=0,
)
Constructor
Arguments
- pro
- reference to the project object
- parent
- parent widget of this dialog (QWidget)
- name
- name of this dialog (string or QString)
- modal
- flag for a modal dialog (boolean)
- fl
- window flags
|
|
getData
|
getData ( self )
Public slot to retrieve the dialogs data.
Returns
tuple of three values (string, string, boolean) giving the
source and target directory and a flag indicating a recursive add
|
|
handleDirDialog
|
handleDirDialog ( self, textEdit )
Private slot to display a directory selection dialog.
Arguments
- textEdit
- field for the display of the selected directory name
(QLineEdit)
|
|
handleSDirDialog
|
handleSDirDialog ( self )
Private slot to handle the source dir button press.
|
|
handleSTextChanged
|
handleSTextChanged ( self, dir )
Private slot to handle the source dir text changed.
If the entered source directory is a subdirectory of the current
projects main directory, the target directory path is synchronized.
It is assumed, that the user wants to add a bunch of files to
the project in place.
Arguments
- dir
- the text of the source directory line edit
|
|
handleTDirDialog
|
handleTDirDialog ( self )
Private slot to handle the target dir button press.
|