+void DecodeSignal::populate_popup_form(QWidget *parent, QFormLayout *form)
+{
+ const GSList *probe;
+
+ assert(form);
+ assert(parent);
+ assert(_decoder);
+
+ const srd_decoder *const decoder = _decoder->decoder();
+
+ assert(decoder);
+
+ Trace::populate_popup_form(parent, form);
+
+ form->addRow(new QLabel(tr("<h3>Probes</h3>"), parent));
+
+ _probe_selector_map.clear();
+
+ // Add the mandatory probes
+ for(probe = decoder->probes; probe; probe = probe->next) {
+ const struct srd_probe *const p =
+ (struct srd_probe *)probe->data;
+ QComboBox *const combo = create_probe_selector(parent, p);
+ connect(combo, SIGNAL(currentIndexChanged(int)),
+ this, SLOT(on_probe_selected(int)));
+ form->addRow(tr("<b>%1</b> (%2) *")
+ .arg(p->name).arg(p->desc), combo);
+
+ _probe_selector_map[p] = combo;
+ }
+
+ // Add the optional probes
+ for(probe = decoder->opt_probes; probe; probe = probe->next) {
+ const struct srd_probe *const p =
+ (struct srd_probe *)probe->data;
+ QComboBox *const combo = create_probe_selector(parent, p);
+ connect(combo, SIGNAL(currentIndexChanged(int)),
+ this, SLOT(on_probe_selected(int)));
+ form->addRow(tr("<b>%1</b> (%2)")
+ .arg(p->name).arg(p->desc), combo);
+
+ _probe_selector_map[p] = combo;
+ }
+
+ form->addRow(new QLabel(
+ tr("<i>* Required Probes</i>"), parent));
+
+ // Add the options
+ if (!_binding.properties().empty()) {
+ form->addRow(new QLabel(tr("<h3>Options</h3>"),
+ parent));
+ _binding.add_properties_to_form(form, true);
+ }
+}
+