QColor(0xEE, 0xEE, 0xEC), // White
};
-LogicSignal::LogicSignal(shared_ptr<Device> device,
- shared_ptr<Channel> channel,
- shared_ptr<data::Logic> data) :
- Signal(channel),
+LogicSignal::LogicSignal(
+ pv::SigSession &session,
+ shared_ptr<Device> device,
+ shared_ptr<Channel> channel,
+ shared_ptr<data::Logic> data) :
+ Signal(session, channel),
_device(device),
_data(data),
_trigger_none(NULL),
{
Glib::VariantContainerBase gvar;
vector<int32_t> trig_types;
- bool is_checked;
Signal::populate_popup_form(parent, form);
for (auto type_id : trig_types) {
auto type = TriggerMatchType::get(type_id);
_trigger_bar->addAction(match_action(type));
- is_checked = _trigger_match == type;
- match_action(type)->setChecked(is_checked);
+ match_action(type)->setChecked(_trigger_match == type);
}
form->addRow(tr("Trigger"), _trigger_bar);
{
QAction *action;
- match_action(_trigger_match)->setChecked(FALSE);
+ match_action(_trigger_match)->setChecked(false);
action = (QAction *)sender();
- action->setChecked(TRUE);
+ action->setChecked(true);
_trigger_match = action_match(action);
}