gui/star_config.cpp
void StarConfig::sl_star_config_changed(const QString& _text) {
    auto index = q_starSelector->currentIndex() - 1;
    try {
      Star star {
        std::stod(q_massEdit->text().toStdString()),
          {std::stod(q_starPosXEdit->text().toStdString()),
              std::stod(q_starPosYEdit->text().toStdString()),
              std::stod(q_starPosZEdit->text().toStdString())}
      };
      cout << "config changed for star: " << index << " sending: " << star << endl;
      sig_update_star(index, star);
    } catch (std::invalid_argument) {
      cout << "ignoring invalid strings in star config group" << endl;
    }   
  }
/* we gather everything to send with regards to the
   * individual star configuration. A -1 on the index
   * means change the masses on all stars, but not the
   * Position.
   */
we gather everything to send with regards to the
individual star configuration. A -1 on the index
means change the masses on all stars, but not the
Position.
we gather everything to send with regards to the individual star configuration . A - 1 on the index means change the masses on all stars but not the Position .
void StarConfig::sl_star_config_changed(const QString& _text) {
    auto index = q_starSelector->currentIndex() - 1;
    try {
      Star star {
        std::stod(q_massEdit->text().toStdString()),
          {std::stod(q_starPosXEdit->text().toStdString()),
              std::stod(q_starPosYEdit->text().toStdString()),
              std::stod(q_starPosZEdit->text().toStdString())}
      };
      cout << "config changed for star: " << index << " sending: " << star << endl;
      sig_update_star(index, star);
    } catch (std::invalid_argument) {
      cout << "ignoring invalid strings in star config group" << endl;
    }   
  }
void StarConfig :: sl_star_config_changed ( const QString & _text ) { auto index = q_starSelector -> currentIndex ( ) - 1 ; try { Star star { std :: stod ( q_massEdit -> text ( ) . toStdString ( ) ) , { std :: stod ( q_starPosXEdit -> text ( ) . toStdString ( ) ) , std :: stod ( q_starPosYEdit -> text ( ) . toStdString ( ) ) , std :: stod ( q_starPosZEdit -> text ( ) . toStdString ( ) ) } } ; cout << " " << index << " " << star << endl ; sig_update_star ( index , star ) ; } catch ( std :: invalid_argument ) { cout << " " << endl ; } }
we gather everything to send with regards to the
 individual star configuration.
we gather everything to send with regards to the individual star configuration .