21 #include <ui_CurveAxisConfigWidget.h> 38 "rqt_multiplot").
append(
"/resource/22x22/okay.png")));
40 "rqt_multiplot").
append(
"/resource/22x22/error.png")));
42 "rqt_multiplot").
append(
"/resource/22x22/busy.png")));
60 connect(
ui_->comboBoxTopic, SIGNAL(updateStarted()),
this,
62 connect(
ui_->comboBoxTopic, SIGNAL(updateFinished()),
this,
64 connect(
ui_->comboBoxTopic, SIGNAL(currentTopicChanged(
const QString&)),
67 connect(
ui_->comboBoxType, SIGNAL(updateStarted()),
this,
69 connect(
ui_->comboBoxType, SIGNAL(updateFinished()),
this,
71 connect(
ui_->comboBoxType, SIGNAL(currentTypeChanged(
const QString&)),
74 connect(
ui_->widgetField, SIGNAL(loadingStarted()),
this,
76 connect(
ui_->widgetField, SIGNAL(loadingFinished()),
this,
78 connect(
ui_->widgetField, SIGNAL(loadingFailed(
const QString&)),
80 connect(
ui_->widgetField, SIGNAL(connecting(
const QString&)),
this,
82 connect(
ui_->widgetField, SIGNAL(connected(
const QString&)),
this,
84 connect(
ui_->widgetField, SIGNAL(connectionTimeout(
const QString&,
87 connect(
ui_->widgetField, SIGNAL(currentFieldChanged(
const QString&)),
90 connect(
ui_->checkBoxFieldReceiptTime, SIGNAL(stateChanged(
int)),
this,
93 if (
ui_->comboBoxTopic->isUpdating())
98 if (
ui_->comboBoxType->isUpdating())
115 disconnect(
config_, SIGNAL(topicChanged(
const QString&)),
this,
117 disconnect(
config_, SIGNAL(typeChanged(
const QString&)),
this,
119 disconnect(
config_, SIGNAL(fieldTypeChanged(
int)),
this,
121 disconnect(
config_, SIGNAL(fieldChanged(
const QString&)),
this,
132 connect(config, SIGNAL(topicChanged(
const QString&)),
this,
134 connect(config, SIGNAL(typeChanged(
const QString&)),
this,
136 connect(config, SIGNAL(fieldTypeChanged(
int)),
this,
138 connect(config, SIGNAL(fieldChanged(
const QString&)),
this,
150 ui_->widgetScale->setConfig(0);
164 ui_->comboBoxTopic->updateTopics();
168 ui_->comboBoxType->updateTypes();
177 if (!
config_ ||
ui_->comboBoxTopic->isUpdating())
182 "No topic selected");
187 if (
ui_->comboBoxTopic->isCurrentTopicRegistered()) {
202 if (!
config_ ||
ui_->comboBoxType->isUpdating())
207 "No message type selected");
212 if (!
ui_->comboBoxTopic->isCurrentTopicRegistered()) {
213 if (
ui_->comboBoxType->isCurrentTypeRegistered()) {
215 "Message type okay");
221 "Message type ["+
config_->
getType()+
"] not found in package path");
229 "Message type okay");
236 "] mismatches advertised message type [" 237 +
ui_->comboBoxTopic->getCurrentTopicType()+
"] for topic ["+
246 if (!
config_ ||
ui_->widgetField->isLoading())
251 "Message field okay");
258 "No message field selected");
263 variant_topic_tools::DataType fieldType =
ui_->widgetField->
264 getCurrentFieldDataType();
266 if (fieldType.isValid()) {
267 if (fieldType.isBuiltin() && variant_topic_tools::
268 BuiltinDataType(fieldType).isNumeric()) {
270 "Message field okay");
295 "Axis scale invalid");
312 ui_->comboBoxTopic->setCurrentTopic(topic);
318 ui_->comboBoxType->setCurrentType(type);
324 ui_->checkBoxFieldReceiptTime->setCheckState(
326 Qt::Checked : Qt::Unchecked);
332 ui_->widgetField->setCurrentField(field);
342 ui_->statusWidgetTopic->pushCurrentRole();
344 "Updating topics...");
348 ui_->statusWidgetTopic->popCurrentRole();
358 if (
ui_->comboBoxTopic->isCurrentTopicRegistered())
366 ui_->statusWidgetType->pushCurrentRole();
368 "Updating message types...");
372 ui_->statusWidgetType->popCurrentRole();
387 ui_->widgetField->setEnabled(
false);
389 ui_->statusWidgetField->pushCurrentRole();
391 "Loading message definition...");
395 ui_->widgetField->setEnabled(
ui_->checkBoxFieldReceiptTime->
396 checkState() != Qt::Checked);
397 ui_->statusWidgetField->popCurrentRole();
404 ui_->statusWidgetField->popCurrentRole();
414 ui_->widgetField->setEnabled(
false);
416 ui_->statusWidgetField->pushCurrentRole();
418 "Waiting for connnection on topic ["+topic+
"]...");
422 ui_->widgetField->setEnabled(
ui_->checkBoxFieldReceiptTime->
423 checkState() != Qt::Checked);
424 ui_->statusWidgetField->popCurrentRole();
430 topic,
double timeout) {
431 ui_->statusWidgetField->popCurrentRole();
445 ui_->widgetField->setEnabled(state != Qt::Checked);
const QString & getTopic() const
CurveAxisScaleConfig * getScaleConfig() const
const QString & getType() const
void setField(const QString &field)
FieldType getFieldType() const
void setTopic(const QString &topic)
const QString & getField() const
void setType(const QString &type)
ROSLIB_DECL std::string getPath(const std::string &package_name)
ROSCPP_DECL std::string append(const std::string &left, const std::string &right)
void setFieldType(FieldType fieldType)