void RecordAction::recordClick() { output_topic_ = record_motion_name_editor_->text(); if( output_topic_ != "" ) { addTopicList(output_topic_.toStdString()); } Q_EMIT configChanged(); }
// Load all configuration data for this panel from the given Config object. void CancelAction::load( const rviz::Config& config ) { rviz::Panel::load( config ); rviz::Config topic_list_config = config.mapGetChild( "topics" ); int num_topics = topic_list_config.listLength(); for( int i = 0; i < num_topics; i++ ) { addTopicList(topic_list_config.listChildAt( i ).getValue().toString().toStdString()); } }
void CancelAction::addTopic() { //output_topic_ = output_topic_editor_->text(); output_topic_ = add_topic_box_->currentText(); if( output_topic_ != "" ){ add_topic_box_->setCurrentIndex( 0 ); addTopicList(output_topic_.toStdString()); //output_topic_editor_->setText(""); } Q_EMIT configChanged(); }