+ // Update supported options.
+ _sample_count_supported = false;
+
+ try {
+ for (auto entry : device->config_keys(ConfigKey::DEVICE_OPTIONS))
+ {
+ auto key = entry.first;
+ auto capabilities = entry.second;
+ switch (key->id()) {
+ case SR_CONF_LIMIT_SAMPLES:
+ if (capabilities.count(Capability::SET))
+ _sample_count_supported = true;
+ break;
+ case SR_CONF_LIMIT_FRAMES:
+ if (capabilities.count(Capability::SET))
+ {
+ device->config_set(ConfigKey::LIMIT_FRAMES,
+ Glib::Variant<guint64>::create(1));
+ on_config_changed();
+ }
+ break;
+ default:
+ break;
+ }
+ }
+ } catch (Error error) {}
+
+ // Add notification of reconfigure events
+ disconnect(this, SLOT(on_config_changed()));
+ connect(&opts->binding(), SIGNAL(config_changed()),
+ this, SLOT(on_config_changed()));
+
+ // Update sweep timing widgets.
+ update_sample_count_selector();
+ update_sample_rate_selector();
+}