Logo Search packages:      
Sourcecode: qct version File versions  Download package

def qctlib::gui_logic::CommitTool::__detectFileCopySource (   self,
  targetFile 
) [private]

The user has identified an unknown file as a copy of a revisioned
   file.  Allow the user to select the copy source by opening a file
   selection dialog

Definition at line 561 of file gui_logic.py.

00561                                                 :
        '''The user has identified an unknown file as a copy of a revisioned
           file.  Allow the user to select the copy source by opening a file
           selection dialog
        '''
        ext = os.path.splitext(targetFile)[1]
        if ext:
            searchExtensions = '%s Files (*%s);;All Files (*)' % (ext[1:].capitalize(), ext)
        else:
            searchExtensions = 'All Files (*)'

        fileName = QtGui.QFileDialog.getOpenFileName(self,
                                         "Select copy source of %s" % targetFile,
                                         targetFile, searchExtensions)
        if not fileName.isEmpty():
            self.vcs.fileCopyDetected(str(fileName), targetFile)


    def __saveLogMessage(self, logMessage):


Generated by  Doxygen 1.6.0   Back to index