void SatellitesConfigDialog::initialize() { m_configWidget = new Ui::SatellitesConfigDialog(); m_configWidget->setupUi( this ); setupDataSourcesTab(); setDialogActive( false ); connect( m_configWidget->buttonDisabled, SIGNAL(clicked()), this, SIGNAL(activatePluginClicked()) ); update(); }
SatellitesPlugin::SatellitesPlugin( const MarbleModel *marbleModel ) : RenderPlugin( marbleModel ), m_satModel( 0 ), m_isInitialized( false ), m_configDialog( new SatellitesConfigDialog() ) { connect( this, SIGNAL(settingsChanged(QString)), SLOT(updateSettings()) ); connect( this, SIGNAL(enabledChanged(bool)), SLOT(enableModel(bool)) ); connect( this, SIGNAL(visibilityChanged(bool,QString)), SLOT(visibleModel(bool)) ); connect( m_configDialog, SIGNAL(activatePluginClicked()), this, SLOT(activate()) ); connect( this, SIGNAL(visibilityChanged(bool,QString)), m_configDialog, SLOT(setDialogActive(bool)) ); setVisible( false ); setSettings( QHash<QString, QVariant>() ); }