Skip to content

Commit

Permalink
testing newProjectCreated () signal
Browse files Browse the repository at this point in the history
  • Loading branch information
mbernasocchi authored and pka committed Jul 5, 2011
1 parent 4ed9c53 commit 23f0195
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/plugins/globe/globe_plugin.cpp
Expand Up @@ -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()
Expand Down Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/globe/globe_plugin.h
Expand Up @@ -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
Expand Down

0 comments on commit 23f0195

Please sign in to comment.