Ejemplo n.º 1
0
  def selectFiles( self ):
    filters = QgsProviderRegistry.instance().fileVectorFilters()
    files, self.encoding = ftools_utils.openDialog( self, filtering=filters, dialogMode="MultipleFiles" )
    if files is None:
      return

    self.layers.extend( [ unicode( f ) for f in files ] )
    self.lstLayers.addItems( files )
Ejemplo n.º 2
0
  def selectFiles( self ):
    filters = QgsProviderRegistry.instance().fileVectorFilters()
    ( files, self.encoding ) = ftools_utils.openDialog( self, filtering = filters, dialogMode = "MultipleFiles" )
    if files is None:
      return

    self.layers.extend( [ unicode( f ) for f in files ] )
    self.lstLayers.addItems( files )
Ejemplo n.º 3
0
  def inputFile( self ):
    ( files, self.inEncoding ) =  ftools_utils.openDialog( self, dialogMode="ManyFiles" )
    if files is None or self.inEncoding is None:
      self.inputFiles = None
      return

    self.inputFiles = []
    for f in files:
      fileName = QFileInfo( f ).fileName()
      self.inputFiles.append( fileName )

    self.progressFiles.setRange( 0, self.inputFiles.count() )
    self.leInputDir.setText( files.join( ";" ) )
    def browse_simul_file(self):
	"""
	Description
	----------
	Select simulation file. This file will be used to load simulation results.
	Note that this is model-dependent.

	"""
	    
        self.textSimulFile.clear()
        ( simul_file, encoding ) = ftools_utils.openDialog( self, filtering="All files (*.*)" )
        if simul_file is None or encoding is None:
            return
        self.textSimulFile.setText( simul_file  )
    def browse_simul_file(self):
        """
	Description
	----------
	Select simulation file. This file will be used to load simulation results.
	Note that this is model-dependent.

	"""

        self.textSimulFile.clear()
        (simul_file,
         encoding) = ftools_utils.openDialog(self, filtering="All files (*.*)")
        if simul_file is None or encoding is None:
            return
        self.textSimulFile.setText(simul_file)