Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Globe is now visible to other (python as well) plugins. signals from …
…globe can be catched.
  • Loading branch information
mbernasocchi authored and pka committed Jul 5, 2011
1 parent c64de21 commit 78097a7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/plugins/globe/globe_plugin.cpp
Expand Up @@ -80,6 +80,10 @@ GlobePlugin::GlobePlugin( QgisInterface* theQgisInterface )
mObjectPlacer( NULL )
{
mIsGlobeRunning = false;
//needed to be "seen" by other plugins by doing
//iface.mainWindow().findChild( QObject, "globePlugin" )
this->setObjectName("globePlugin");
this->setParent(theQgisInterface->mainWindow());
}

//destructor
Expand Down Expand Up @@ -198,10 +202,7 @@ void GlobePlugin::initGui()
connect( &mQDockWidget, SIGNAL( globeClosed() ), this,
SLOT( setGlobeNotRunning() ) );
connect( this, SIGNAL( xyCoordinates( const QgsPoint & ) ),
mQGisIface->mainWindow(), SLOT( showMouseCoordinate( const QgsPoint & ) ) );
// connect( this, SIGNAL( xyCoordinates( const QgsPoint & ) ),
// this, SLOT( showSelectedCoordinates() ) );

mQGisIface->mapCanvas(), SIGNAL( xyCoordinates( const QgsPoint & ) ) );
}

void GlobePlugin::run()
Expand Down

0 comments on commit 78097a7

Please sign in to comment.