Skip to content
Permalink
Browse files

added layerSavedAs signal

  • Loading branch information
mbernasocchi committed Dec 16, 2014
1 parent 4e4e161 commit 06708186c084fddc0118945cd428e0126cb0b0ea
Showing with 21 additions and 0 deletions.
  1. +5 −0 python/gui/qgisinterface.sip
  2. +5 −0 src/app/qgisapp.cpp
  3. +5 −0 src/app/qgisapp.h
  4. +6 −0 src/gui/qgisinterface.h
@@ -522,4 +522,9 @@ class QgisInterface : QObject
signal for when this happens.
*/
void newProjectCreated();
/**This signal is emitted when a layer has been saved using save as
@note
added in version 2.7
*/
void layerSavedAs( QgsMapLayer* l, QString path );
};
@@ -4993,6 +4993,10 @@ void QgisApp::saveAsRasterFile()
QMessageBox::Ok );

}
else
{
emit layerSavedAs( rasterLayer, d.outputFileName() );
}
delete pipe;
}
}
@@ -5139,6 +5143,7 @@ void QgisApp::saveAsVectorFileGeneral( QgsVectorLayer* vlayer, bool symbologyOpt
{
addVectorLayers( QStringList( newFilename ), encoding, "file" );
}
emit layerSavedAs( vlayer, vectorFilename );
messageBar()->pushMessage( tr( "Saving done" ),
tr( "Export to vector file has been completed" ),
QgsMessageBar::INFO, messageTimeout() );
@@ -1254,6 +1254,11 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow

void customSrsValidation( QgsCoordinateReferenceSystem &crs );

/**This signal is emitted when a layer has been saved using save as
@note added in version 2.7
*/
void layerSavedAs( QgsMapLayer* l, QString path );

private:
/** This method will open a dialog so the user can select GDAL sublayers to load
* @returns true if any items were loaded
@@ -575,6 +575,12 @@ class GUI_EXPORT QgisInterface : public QObject
signal for when this happens.
*/
void newProjectCreated();

/**This signal is emitted when a layer has been saved using save as
@note
added in version 2.7
*/
void layerSavedAs( QgsMapLayer* l, QString path );
};

// FIXME: also in core/qgis.h

0 comments on commit 0670818

Please sign in to comment.
You can’t perform that action at this time.