projectSaved_signal.patch

Chris Crook, 2010-12-06 02:15 PM

Download (2.27 KB)

View differences:

src/app/qgisapp.cpp (working copy)
3532 3532
      QSettings settings;
3533 3533
      saveRecentProjectPath( fullPath.filePath(), settings );
3534 3534
    }
3535

  
3536
    emit projectSaved();
3535 3537
  }
3536 3538
  else
3537 3539
  {
......
3578 3580
    statusBar()->showMessage( tr( "Saved project to: %1" ).arg( QgsProject::instance()->fileName() ) );
3579 3581
    // add this to the list of recently used project files
3580 3582
    saveRecentProjectPath( saveFilePath, settings );
3583
    emit projectSaved();
3581 3584
  }
3582 3585
  else
3583 3586
  {
src/app/qgisapp.h (working copy)
785 785
      signal for when this happens.
786 786
      */
787 787
    void newProject();
788
    /** emitted when a project file is successfully saved
789
      @note
790
      This is useful for plug-ins that store properties with project files.  A
791
      plug-in can connect to this signal.  When it is emitted, the plug-in
792
      knows to write whatever it needs to.
793
      */
794
    void projectSaved();
788 795

  
789 796
    //! emitted when a new bookmark is added
790 797
    void bookmarkAdded();
src/app/qgisappinterface.cpp (working copy)
57 57
           this, SIGNAL( newProjectCreated() ) );
58 58
  connect( qgis, SIGNAL( projectRead() ),
59 59
           this, SIGNAL( projectRead() ) );
60
  connect( qgis, SIGNAL( projectSaved() ),
61
           this, SIGNAL( projectSaved() ) );
60 62
}
61 63

  
62 64
QgisAppInterface::~QgisAppInterface()
src/gui/qgisinterface.h (working copy)
356 356
        Added in v1.6
357 357
      */
358 358
    void newProjectCreated();
359
    /** emitted when a project is saved.  
360
    
361
        @note
362
        A plug-in can connect to this signal to save data associated with the
363
        the project.
359 364

  
365
        Added in v1.7
366
      */
367
    void projectSaved();
368

  
360 369
};
361 370

  
362 371
// FIXME: also in core/qgis.h