X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fview%2Flogicsignal.h;h=958abd8f1890c26f7661ee75884b9d3cc096b3ed;hb=0dda6fe595932b2e340930104fad8ac4fc574895;hp=4e10d7179b9d75f0cb54333b3caa0d635c9c683f;hpb=e9213170687cf4afd14e20acdc690ff9381d94ae;p=pulseview.git diff --git a/pv/view/logicsignal.h b/pv/view/logicsignal.h index 4e10d717..958abd8f 100644 --- a/pv/view/logicsignal.h +++ b/pv/view/logicsignal.h @@ -27,6 +27,11 @@ class QToolBar; +namespace sigrok { + class Device; + class TriggerMatchType; +} + namespace pv { namespace data { @@ -49,8 +54,9 @@ private: static const QColor SignalColours[10]; public: - LogicSignal(std::shared_ptr dev_inst, - const sr_channel *const probe, + LogicSignal(pv::SigSession &session, + std::shared_ptr device, + std::shared_ptr channel, std::shared_ptr data); virtual ~LogicSignal(); @@ -83,17 +89,19 @@ private: void init_trigger_actions(QWidget *parent); - QAction* match_action(int match); - int action_match(QAction *action); + QAction* match_action(const sigrok::TriggerMatchType *match); + const sigrok::TriggerMatchType *action_match(QAction *action); void populate_popup_form(QWidget *parent, QFormLayout *form); + void modify_trigger(); private Q_SLOTS: void on_trigger(); private: + std::shared_ptr _device; std::shared_ptr _data; - int _trigger_match; + const sigrok::TriggerMatchType *_trigger_match; QToolBar *_trigger_bar; QAction *_trigger_none; QAction *_trigger_rising;