-LogicSignal::LogicSignal(pv::SigSession &session, const sr_probe *const probe,
- shared_ptr<data::Logic> data) :
- Signal(session, probe),
- _data(data),
- _separator(this),
- _icon_trigger_none(":/icons/trigger-none.svg"),
- _trigger_none(_icon_trigger_none, tr("No trigger"), this),
- _icon_trigger_rising(":/icons/trigger-rising.svg"),
- _trigger_rising(_icon_trigger_rising,
- tr("Trigger on rising edge"), this),
- _icon_trigger_high(":/icons/trigger-high.svg"),
- _trigger_high(_icon_trigger_high,
- tr("Trigger on high level"), this),
- _icon_trigger_falling(":/icons/trigger-falling.svg"),
- _trigger_falling(_icon_trigger_falling,
- tr("Trigger on falling edge"), this),
- _icon_trigger_low(":/icons/trigger-low.svg"),
- _trigger_low(_icon_trigger_low,
- tr("Trigger on low level"), this),
- _icon_trigger_change(":/icons/trigger-change.svg"),
- _trigger_change(_icon_trigger_change,
- tr("Trigger on rising or falling edge"), this)
-{
- _colour = SignalColours[probe->index % countof(SignalColours)];
-
- _separator.setSeparator(true);
-
- _trigger_none.setCheckable(true);
- connect(&_trigger_none, SIGNAL(triggered()),
- this, SLOT(on_trigger_none()));
-
- _trigger_rising.setCheckable(true);
- connect(&_trigger_rising, SIGNAL(triggered()),
- this, SLOT(on_trigger_rising()));
-
- _trigger_high.setCheckable(true);
- connect(&_trigger_high, SIGNAL(triggered()),
- this, SLOT(on_trigger_high()));
-
- _trigger_falling.setCheckable(true);
- connect(&_trigger_falling, SIGNAL(triggered()),
- this, SLOT(on_trigger_falling()));
-
- _trigger_low.setCheckable(true);
- connect(&_trigger_low, SIGNAL(triggered()),
- this, SLOT(on_trigger_low()));
+QColor LogicSignal::TriggerMarkerBackgroundColour = QColor(0xED, 0xD4, 0x00);
+const int LogicSignal::TriggerMarkerPadding = 2;
+const char* LogicSignal::TriggerMarkerIcons[8] = {
+ nullptr,
+ ":/icons/trigger-marker-low.svg",
+ ":/icons/trigger-marker-high.svg",
+ ":/icons/trigger-marker-rising.svg",
+ ":/icons/trigger-marker-falling.svg",
+ ":/icons/trigger-marker-change.svg",
+ nullptr,
+ nullptr
+};