void QgsGlobePluginDialog::on_buttonBox_rejected() { loadStereoConfig(); setStereoConfig(); readElevationDatasources(); reject(); }
void QgsGlobePluginDialog::on_buttonBox_accepted() { setStereoConfig(); saveStereoConfig(); saveElevationDatasources(); accept(); }
//constructor QgsGlobePluginDialog::QgsGlobePluginDialog( QgsOsgViewer* viewer, QWidget* parent, Qt::WFlags fl ) : QDialog( parent, fl ) , mViewer( viewer ) { setupUi( this ); loadStereoConfig(); //values from settings, default values from OSG setStereoConfig(); //overwrite with values from QSettings updateStereoDialog(); //update the dialog gui elevationPath->setText( QDir::homePath() ); }
//constructor QgsGlobePluginDialog::QgsGlobePluginDialog( QWidget* parent, GlobePlugin* globe, Qt::WindowFlags fl ) : QDialog( parent, fl ) , mGlobe( globe ) { setupUi( this ); mBaseLayerComboBox->addItem( "Readymap: NASA BlueMarble Imagery", "http://readymap.org/readymap/tiles/1.0.0/1/" ); mBaseLayerComboBox->addItem( "Readymap: NASA BlueMarble with land removed, only ocean", "http://readymap.org/readymap/tiles/1.0.0/2/" ); mBaseLayerComboBox->addItem( "Readymap: High resolution insets from various locations around the world Austin, TX; Kandahar, Afghanistan; Bagram, Afghanistan; Boston, MA; Washington, DC", "http://readymap.org/readymap/tiles/1.0.0/3/" ); mBaseLayerComboBox->addItem( "Readymap: Global Land Cover Facility 15m Landsat", "http://readymap.org/readymap/tiles/1.0.0/6/" ); mBaseLayerComboBox->addItem( "Readymap: NASA BlueMarble + Landsat + Ocean Masking Layer", "http://readymap.org/readymap/tiles/1.0.0/7/" ); mBaseLayerComboBox->addItem( "[Custom]" ); loadStereoConfig(); //values from settings, default values from OSG setStereoConfig(); //overwrite with values from QSettings updateStereoDialog(); //update the dialog gui loadVideoSettings(); loadMapSettings(); elevationPath->setText( QDir::homePath() ); }