Table of Contents

Class: AddFileDialog ./Project/AddFileDialog.py

Class implementing a dialog to add a file to the project.

Base Classes   
AddFileForm
Methods   
__init__
getData
handleDirDialog
handleFileDialog
handleSTextChanged
  __init__ 
__init__ (
        self,
        pro,
        parent=None,
        filter=None,
        name=None,
        modal=0,
        fl=0,
        )

Constructor

Arguments

pro
reference to the project object
parent
parent widget of this dialog (QWidget)
filter
filter specification for the file to add (string or QString)
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 two values (string string) giving the source file and the target directory

  handleDirDialog 
handleDirDialog ( self )

Private slot to display a directory selection dialog.

  handleFileDialog 
handleFileDialog ( self )

Private slot to display a file selection dialog.

  handleSTextChanged 
handleSTextChanged ( self,  sfile )

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

sfile
the text of the source file line edit

Table of Contents

This document was automatically generated on Fri Mar 14 19:54:50 2003 by HappyDoc version 2.1