void GCF::Components::TopicChooserDialog::slotShowUrl()
{
    int currentRow = d->ui.listWidget->currentRow();
    if(currentRow < 0 || currentRow > d->urls.count())
        return;

    emit topicSelected(d->urls[currentRow]);
    close();
}
Example #2
0
void KviTopicWidget::acceptClicked()
{
	if(!m_pInput->isReadOnly())
	{
		QString tmp = m_pInput->text();
		if(tmp != m_szTopic)emit topicSelected(tmp);
	}
	deactivate();
}
Example #3
0
void TrendingTopicsWidget::handleRowChanged(int row) {
	QList<TrendingTopic> topics=currentTrends;
	if (mode==TrendingTopicsFetcher::Daily)
		topics=dailyTrends;
	else if (mode==TrendingTopicsFetcher::Weekly)
		topics=weeklyTrends;
	if (row>=0 && row<topics.size()) {
		TrendingTopic topic = topics.at(row);
//		QMessageBox::information(this,topic.name,topic.search);
		currentName=topic.name;
		emit topicSelected(topic.name,topic.search);
	}
}
PathCompare::PathCompare(ROSManager *ros_mngr ,QWidget * tab_widget) :
        ComperatorPlugin(),
        form(new Ui::Form),
        ros_mngr(ros_mngr),
        topic_type_str("nav_msgs/Path"),
        tpm_list(),
        table_model(new GraphTableModel(tpm_list))

{
        form->setupUi(tab_widget);
        connect(form->ReferencePathSelection, SIGNAL(currentIndexChanged(QString)), this, SLOT(topicSelected(QString)));

        updateTopics();

        //connect to table model update function
        connect(this, SIGNAL(tpmListChanged(QList<TopicPathManagerPtr>)),
                table_model.get(), SLOT(updataTPMList(QList<TopicPathManagerPtr>)));

        //connect to ros_mngr topic update tick
        connect(ros_mngr, SIGNAL(updateModel()), this, SLOT(updateTopics()));

        form->PathInformationTable->setModel(table_model.get());
//        form->PathInformationTable->setModel(new GraphTableModel(tpm_list));

        //connect export button with csv write slot
        connect(form->exportButton, SIGNAL(clicked()), this, SLOT(writeCurrentData()));
}