mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
that might try to fix the missing layers. There's a default handler (QgsProjectBadLayerDefaultHandler) which simply ignores all missing layers. Then there's a GUI handler (QgsProjectBadLayerGuiHandler) in GUI library which asks user about the path for missing layers. QGIS application automatically installs the GUI handler on startup. This should allow python plugins/applications to work with QgsProject without a fear of a segfault as there are no more exceptions thrown during load/save of the project files. Some further notes: - removed QgsProjectBadLayerException class and (now empty) qgsexception.cpp file - openFilesRememberingFilter() moved to QgisGui namespace (was duplicated: QgisApp vs QgsOpenVectorLayerDialog) - removed deprecated buildVectorFilters_ methods - added python bindings for new classes/methods git-svn-id: http://svn.osgeo.org/qgis/trunk@12350 c8812cc2-4d05-0410-92ff-de0c093fc19c
22 lines
465 B
Plaintext
22 lines
465 B
Plaintext
|
|
/** \ingroup gui
|
|
Handler for missing layers within project.
|
|
|
|
Gives user a chance to select path to the missing layers.
|
|
|
|
@note added in 1.4
|
|
*/
|
|
class QgsProjectBadLayerGuiHandler : QObject, QgsProjectBadLayerHandler
|
|
{
|
|
%TypeHeaderCode
|
|
#include <qgsprojectbadlayerguihandler.h>
|
|
%End
|
|
|
|
public:
|
|
QgsProjectBadLayerGuiHandler();
|
|
|
|
/** implementation of the handler */
|
|
virtual void handleBadLayers( QList<QDomNode> layers, QDomDocument projectDom );
|
|
|
|
};
|