X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Flogicsignal.h;h=11b1d2bdd6a18933e26804f2203ce80836979cfd;hp=0f6714cf0ce11661c58e0c264d6973e5350b6753;hb=e8d009288de28cb194bc7964f96677c2baf900c9;hpb=87b79835014a386fb51b52bc993dbb693bd27197 diff --git a/pv/view/logicsignal.h b/pv/view/logicsignal.h index 0f6714c..11b1d2b 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,8 @@ private: static const QColor SignalColours[10]; public: - LogicSignal(std::shared_ptr dev_inst, - const sr_channel *const channel, + LogicSignal(std::shared_ptr device, + std::shared_ptr channel, std::shared_ptr data); virtual ~LogicSignal(); @@ -83,17 +88,18 @@ 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); 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;