Skip to content

Commit

Permalink
Made settings dialog a member of GlobePlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
pka committed Jul 5, 2011
1 parent c0dca2a commit 99fb079
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/plugins/globe/globe_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ GlobePlugin::GlobePlugin( QgisInterface* theQgisInterface )
mQActionSettingsPointer( NULL ),
viewer(),
mQDockWidget( tr( "Globe" ) ),
mSettingsDialog( theQgisInterface->mainWindow(), QgisGui::ModalDialogFlags ),
mTileSource(0),
mElevationManager( NULL ),
mObjectPlacer( NULL )
Expand Down Expand Up @@ -161,9 +162,7 @@ void GlobePlugin::run()

void GlobePlugin::settings()
{
QgsGlobePluginDialog* settingsDialog = new QgsGlobePluginDialog( mQGisIface->mainWindow(), QgisGui::ModalDialogFlags );
settingsDialog->setAttribute( Qt::WA_DeleteOnClose );
settingsDialog->exec();
mSettingsDialog.exec();

//QMessageBox msgBox;
//msgBox.setText(settingsDialog->stereoMode);
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/globe/globe_plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ class GlobePlugin : public QObject, public QgisPlugin
QgsOsgViewer viewer;
//! Dock widget for viewer
QDockWidget mQDockWidget;
//! Settings Dialog
QgsGlobePluginDialog mSettingsDialog;
//! OSG root node
osg::Group* mRootNode;
//! Map node
Expand All @@ -106,8 +108,6 @@ class GlobePlugin : public QObject, public QgisPlugin
osgEarthUtil::ElevationManager* mElevationManager;
//! Object placer
osgEarthUtil::ObjectPlacer* mObjectPlacer;
//! Settings Dialog
QgsGlobePluginDialog* settingsDialog;
};

class FlyToExtentHandler : public osgGA::GUIEventHandler
Expand Down

0 comments on commit 99fb079

Please sign in to comment.