This is an update related to bug #259.
return _owner;
}
-GVariant* DevInst::get_config(const sr_probe_group *group, int key)
+GVariant* DevInst::get_config(const sr_channel_group *group, int key)
{
GVariant *data = NULL;
assert(_owner);
return data;
}
-bool DevInst::set_config(const sr_probe_group *group, int key, GVariant *data)
+bool DevInst::set_config(const sr_channel_group *group, int key, GVariant *data)
{
assert(_owner);
sr_dev_inst *const sdi = dev_inst();
return false;
}
-GVariant* DevInst::list_config(const sr_probe_group *group, int key)
+GVariant* DevInst::list_config(const sr_channel_group *group, int key)
{
GVariant *data = NULL;
assert(_owner);
struct sr_dev_inst;
struct sr_probe;
-struct sr_probe_group;
+struct sr_channel_group;
namespace pv {
virtual std::string format_device_title() const = 0;
- GVariant* get_config(const sr_probe_group *group, int key);
+ GVariant* get_config(const sr_channel_group *group, int key);
- bool set_config(const sr_probe_group *group, int key, GVariant *data);
+ bool set_config(const sr_channel_group *group, int key, GVariant *data);
- GVariant* list_config(const sr_probe_group *group, int key);
+ GVariant* list_config(const sr_channel_group *group, int key);
void enable_probe(const sr_probe *probe, bool enable = true);
BOOST_FOREACH(const shared_ptr<Signal> &sig, sigs)
signal_map[sig->probe()] = sig;
- // Populate probe groups
- for (const GSList *g = sdi->probe_groups; g; g = g->next)
+ // Populate channel groups
+ for (const GSList *g = sdi->channel_groups; g; g = g->next)
{
- const sr_probe_group *const group =
- (const sr_probe_group*)g->data;
+ const sr_channel_group *const group =
+ (const sr_channel_group*)g->data;
assert(group);
// Make a set of signals, and removed this signals from the
_updating_probes = false;
}
-void Probes::populate_group(const sr_probe_group *group,
+void Probes::populate_group(const sr_channel_group *group,
const vector< shared_ptr<pv::view::Signal> > sigs)
{
using pv::prop::binding::DeviceOptions;
_layout.addRow(new QLabel(
QString("<h3>%1</h3>").arg(group->name)));
- // Create the probe group grid
+ // Create the channel group grid
QGridLayout *const probe_grid =
- create_probe_group_grid(sigs);
+ create_channel_group_grid(sigs);
_layout.addRow(probe_grid);
- // Create the probe group options
+ // Create the channel group options
if (binding)
{
binding->add_properties_to_form(&_layout, true);
}
}
-QGridLayout* Probes::create_probe_group_grid(
+QGridLayout* Probes::create_channel_group_grid(
const vector< shared_ptr<pv::view::Signal> > sigs)
{
int row = 0, col = 0;
#include <pv/widgets/popup.h>
-struct sr_probe_group;
+struct sr_channel_group;
class QCheckBox;
class QGridLayout;
private:
void set_all_probes(bool set);
- void populate_group(const sr_probe_group *group,
+ void populate_group(const sr_channel_group *group,
const std::vector< boost::shared_ptr<pv::view::Signal> > sigs);
- QGridLayout* create_probe_group_grid(
+ QGridLayout* create_channel_group_grid(
const std::vector< boost::shared_ptr<pv::view::Signal> > sigs);
private:
namespace binding {
DeviceOptions::DeviceOptions(shared_ptr<pv::device::DevInst> dev_inst,
- const sr_probe_group *group) :
+ const sr_channel_group *group) :
_dev_inst(dev_inst),
_group(group)
{
#include <glib.h>
struct sr_dev_inst;
-struct sr_probe_group;
+struct sr_channel_group;
namespace pv {
{
public:
DeviceOptions(boost::shared_ptr<pv::device::DevInst> dev_inst,
- const sr_probe_group *group = NULL);
+ const sr_channel_group *group = NULL);
private:
void bind_bool(const QString &name, int key);
protected:
boost::shared_ptr<device::DevInst> _dev_inst;
- const sr_probe_group *const _group;
+ const sr_channel_group *const _group;
};
} // binding