Skip to content
Permalink
Browse files

testing newProjectCreated () signal

  • Loading branch information
mbernasocchi authored and pka committed Dec 9, 2010
1 parent 4ed9c53 commit 23f0195af95834bbe554c8798354468275e0775b
Showing with 7 additions and 4 deletions.
  1. +6 −3 src/plugins/globe/globe_plugin.cpp
  2. +1 −1 src/plugins/globe/globe_plugin.h
@@ -107,9 +107,9 @@ void GlobePlugin::initGui()
//connect( mQGisIface->mapCanvas(), SIGNAL( layersChanged() ),
// this, SLOT( layersChanged() ) );
connect( mQGisIface->mainWindow(), SIGNAL( projectRead() ), this,
SLOT( projectRead() ) );
SLOT( projectReady() ) );
connect( mQGisIface->mainWindow(), SIGNAL( newProjectCreated() ), this,
SLOT( newProject() ) );
SLOT( blankProject() ) );
}

void GlobePlugin::run()
@@ -254,13 +254,16 @@ void GlobePlugin::setupMap()
#endif
}

void GlobePlugin::projectRead()
void GlobePlugin::projectReady()
{
mSettingsDialog.readElevationDatasources();
}

void GlobePlugin::blankProject()
{//TODO
QMessageBox m;
m.setText("new");
m.exec();
mSettingsDialog.elevationDatasources()->clearContents();
mSettingsDialog.elevationDatasources()->setRowCount(0);
}
@@ -69,7 +69,7 @@ class GlobePlugin : public QObject, public QgisPlugin
//! Sync globe extent to mapCanavas
void syncExtent();

void projectRead();
void projectReady();
void blankProject();

//! Place an OSG model on the globe

0 comments on commit 23f0195

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