Skip to content

Commit 8dab8e0

Browse files
author
wonder
committed
Removed old legacy code regarding QgsMapLayerInterface
git-svn-id: http://svn.osgeo.org/qgis/trunk@9527 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4ff166a commit 8dab8e0

File tree

7 files changed

+0
-304
lines changed

7 files changed

+0
-304
lines changed

src/app/qgisapp.cpp

-34
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@
189189
class QTreeWidgetItem;
190190

191191
/* typedefs for plugins */
192-
typedef QgsMapLayerInterface *create_it();
193192
typedef QgisPlugin *create_ui( QgisInterface * qI );
194193
typedef QString name_t();
195194
typedef QString description_t();
@@ -4293,39 +4292,6 @@ void QgisApp::loadPlugin( QString theFullPathName, QString name )
42934292

42944293
}
42954294
break;
4296-
/*
4297-
// TODO: to be removed completely
4298-
case QgisPlugin::MAPLAYER:
4299-
{
4300-
// Map layer - requires interaction with the canvas
4301-
create_it *cf = ( create_it * ) cast_to_fptr( myLib->resolve( "classFactory" ) );
4302-
if ( cf )
4303-
{
4304-
QgsMapLayerInterface *pl = cf();
4305-
if ( pl )
4306-
{
4307-
// set the main window pointer for the plugin
4308-
pl->setQgisMainWindow( this );
4309-
pl->initGui();
4310-
//add it to the qsettings file [ts]
4311-
settings.setValue( "/Plugins/" + name, true );
4312-
4313-
}
4314-
else
4315-
{
4316-
// something went wrong
4317-
QMessageBox::warning( this, tr( "Error Loading Plugin" ), tr( "There was an error loading %1." ) );
4318-
//add it to the qsettings file [ts]
4319-
settings.setValue( "/Plugins/" + name, false );
4320-
}
4321-
}
4322-
else
4323-
{
4324-
QgsDebugMsg( "Unable to find the class factory for " + theFullPathName );
4325-
}
4326-
}
4327-
break;
4328-
*/
43294295
default:
43304296
// type is unknown
43314297
QgsDebugMsg( "Plugin " + theFullPathName + " did not return a valid type and cannot be loaded" );

src/app/qgsmaplayerinterface.h

-39
This file was deleted.

src/gui/qgsmapcanvas.h

-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ class QGraphicsScene;
4545

4646
class QgsMapToPixel;
4747
class QgsMapLayer;
48-
class QgsMapLayerInterface;
4948
class QgsLegend;
5049
class QgsLegendView;
5150
class QgsRubberBand;

src/plugins/maplayer/.cvsignore

-4
This file was deleted.

src/plugins/maplayer/maplayertest.cpp

-80
This file was deleted.

src/plugins/maplayer/maplayertest.h

-41
This file was deleted.

src/plugins/maplayer/matrix1.xpm

-105
This file was deleted.

0 commit comments

Comments
 (0)