From: Daniel Elstner Date: Wed, 5 Feb 2014 21:35:37 +0000 (+0100) Subject: Add bindings for new device options X-Git-Tag: pulseview-0.2.0~89 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=5be76b1a8c3b4975c02f685ceaa02cdb69d1dccc;p=pulseview.git Add bindings for new device options Add device option bindings for the SR_CONF_TRIGGER_SLOPE, SR_CONF_EXTERNAL_CLOCK and SR_CONF_CLOCK_EDGE settings. For now, the slope and edge settings use the generic combo box widget. --- diff --git a/pv/prop/binding/deviceoptions.cpp b/pv/prop/binding/deviceoptions.cpp index a5b9dd23..d116521a 100644 --- a/pv/prop/binding/deviceoptions.cpp +++ b/pv/prop/binding/deviceoptions.cpp @@ -91,11 +91,14 @@ DeviceOptions::DeviceOptions(const sr_dev_inst *sdi, case SR_CONF_PATTERN_MODE: case SR_CONF_BUFFERSIZE: case SR_CONF_TRIGGER_SOURCE: + case SR_CONF_TRIGGER_SLOPE: case SR_CONF_FILTER: case SR_CONF_COUPLING: + case SR_CONF_CLOCK_EDGE: bind_enum(name, key, gvar_list); break; + case SR_CONF_EXTERNAL_CLOCK: case SR_CONF_RLE: bind_bool(name, key); break;