Parse the trigger types supported by the device
[pulseview.git] / pv / view / logicsignal.h
index 927e96ab079e0daeda534eb706bab4e2ea8764d3..40babbcaf69a4d6a524101cc6f1e445c78fcca6d 100644 (file)
@@ -45,11 +45,13 @@ private:
        static const QColor SignalColours[10];
 
 public:
-       LogicSignal(const sr_probe *const probe,
+       LogicSignal(pv::SigSession &session, const sr_probe *const probe,
                boost::shared_ptr<pv::data::Logic> data);
 
        virtual ~LogicSignal();
 
+       const std::list<QAction*> get_context_bar_actions();
+
        /**
         * Paints the signal with a QPainter
         * @param p the QPainter to paint into.
@@ -70,8 +72,26 @@ private:
                bool level, double samples_per_pixel, double pixels_offset,
                float x_offset, float y_offset);
 
+       static void add_trigger_action(const char *trig_types, char type,
+               QAction *action, std::list<QAction*> &actions);
+
 private:
        boost::shared_ptr<pv::data::Logic> _data;
+
+       QAction _separator;
+
+       QIcon _icon_trigger_none;
+       QAction _trigger_none;
+       QIcon _icon_trigger_rising;
+       QAction _trigger_rising;
+       QIcon _icon_trigger_high;
+       QAction _trigger_high;
+       QIcon _icon_trigger_falling;
+       QAction _trigger_falling;
+       QIcon _icon_trigger_low;
+       QAction _trigger_low;
+       QIcon _icon_trigger_change;
+       QAction _trigger_change;
 };
 
 } // namespace view