void SatellitesConfigDialog::setupDataSourcesTab()
{
    connect( m_configWidget->buttonAddDataSource,
        SIGNAL(clicked()), SLOT(addDataSource()) );
    connect( m_configWidget->buttonOpenDataSource,
        SIGNAL(clicked()), SLOT(openDataSource()) );
    connect( m_configWidget->buttonRemoveDataSource,
        SIGNAL(clicked()), SLOT(removeSelectedDataSource()) );
    connect( m_configWidget->buttonReloadDataSources,
        SIGNAL(clicked()), SLOT(reloadDataSources()) );

    connect( m_configWidget->listDataSources,
        SIGNAL(itemSelectionChanged()), SLOT(updateButtonState()) );
}
void FileSourceAddDialog::selectFile()
{
  m_CurrentSourceURI =
      QFileDialog::getOpenFileName(this,
                                   tr("Open file"),
                                   m_InputDir,
                                   openfluid::utils::getOGRGDALFormatsForQFileDialogs(
                                       openfluid::utils::getOGRFilesDriversForOpenFLUID(),
                                       tr("All vector files")));

  m_CurrentSourceDisplay = m_CurrentSourceURI;

  if (!m_CurrentSourceURI.isEmpty())
    openDataSource();

}