booksim/src/bgui.cpp
//changes to the gui are not commited and will not have an effect without
//clicking the save buttono
changes to the gui are not commited and will not have an effect without
clicking the save buttono
changes to the gui are not commited and will not have an effect without clicking the save buttono
void configTab::saveconfig(){
  for( map<string, QLineEdit*>::const_iterator i = str_map_obj.begin();
       i!=str_map_obj.end();
       i++){
    config->Assign(i->first, i->second->text().toStdString());
  }
  for( map<string, QLineEdit*>::const_iterator i = int_map_obj.begin();
       i!=int_map_obj.end();
       i++){
    config->Assign(i->first, i->second->text().toUInt());
  }
  for( map<string, QLineEdit*>::const_iterator i = float_map_obj.begin();
       i!=float_map_obj.end();
       i++){ 
    config->Assign(i->first, i->second->text().toDouble());
  }
}
void configTab :: saveconfig ( ) { for ( map < string , QLineEdit * > :: const_iterator i = str_map_obj . begin ( ) ; i != str_map_obj . end ( ) ; i ++ ) { config -> Assign ( i -> first , i -> second -> text ( ) . toStdString ( ) ) ; } for ( map < string , QLineEdit * > :: const_iterator i = int_map_obj . begin ( ) ; i != int_map_obj . end ( ) ; i ++ ) { config -> Assign ( i -> first , i -> second -> text ( ) . toUInt ( ) ) ; } for ( map < string , QLineEdit * > :: const_iterator i = float_map_obj . begin ( ) ; i != float_map_obj . end ( ) ; i ++ ) { config -> Assign ( i -> first , i -> second -> text ( ) . toDouble ( ) ) ; } }
changes to the gui are not commited and will not have an effect without
clicking the save buttono
changes to the gui are not commited and will not have an effect without clicking the save buttono