int LDFDatabaseManager::SetLDFFilePath(std::string& strFilePath)
{
    m_strCurrentLDFFilePath = strFilePath;

    if ( strFilePath != "" )
    {
        auto itr = m_strRecentFileList.removeAll(strFilePath.c_str());
        m_strRecentFileList.prepend(strFilePath.c_str());
    }
    emit DataUpdated();
    return 0;
}
Пример #2
0
void LayerSurface::CopyCorrelationOverlay(LayerSurface *surf)
{
  SurfaceOverlay* src = surf->GetActiveOverlay();
  SurfaceOverlay* overlay = new SurfaceOverlay( this );
  overlay->SetName(src->GetName());
  overlay->CopyCorrelationData(src);
  m_overlays.push_back( overlay );
  SetActiveOverlay( m_overlays.size() - 1 );

  emit Modified();
  emit SurfaceOverlayAdded( overlay );
  connect(overlay, SIGNAL(DataUpdated()), this, SIGNAL(SurfaceOverlyDataUpdated()), Qt::UniqueConnection);
}
Пример #3
0
bool LayerSurface::LoadCorrelationFromFile( const QString& filename )
{
  // create overlay
  SurfaceOverlay* overlay = new SurfaceOverlay( this );
  overlay->SetName( QFileInfo(filename).fileName() );
  overlay->SetFileName( filename );
  if ( !overlay->LoadCorrelationData( filename ) )
  {
    return false;
  }

  m_overlays.push_back( overlay );
  SetActiveOverlay( m_overlays.size() - 1 );

  emit Modified();
  emit SurfaceOverlayAdded( overlay );
  connect(overlay, SIGNAL(DataUpdated()), this, SIGNAL(SurfaceOverlyDataUpdated()), Qt::UniqueConnection);
  return true;
}
Пример #4
0
void GlyphDataset::Modified() {
    emit DataUpdated();
}