]> sigrok.org Git - pulseview.git/blobdiff - pv/toolbars/samplingbar.h
Added AwaitTrigger capture state
[pulseview.git] / pv / toolbars / samplingbar.h
index 3502e25b8fa6655d3a1f8dff83a12a29f7422ac8..1f40d0452ff6ca8d7265cc30703eab46bcf388d4 100644 (file)
@@ -30,6 +30,8 @@
 #include <QToolBar>
 #include <QToolButton>
 
+#include <pv/sigsession.h>
+
 struct st_dev_inst;
 class QAction;
 
@@ -54,9 +56,11 @@ public:
 
        uint64_t get_record_length() const;
 
-       void set_sampling(bool sampling);
+       void set_capture_state(pv::SigSession::capture_state state);
 
 signals:
+       void device_selected();
+
        void run_stop();
 
 private:
@@ -67,7 +71,8 @@ private:
 private slots:
        void on_device_selected();
        void on_sample_rate_changed();
-       void configure();
+       void on_configure();
+       void on_run_stop();
 
 private:
        QComboBox _device_selector;
@@ -80,6 +85,7 @@ private:
        QDoubleSpinBox _sample_rate_value;
        QAction *_sample_rate_value_action;
 
+       QIcon _icon_red;
        QIcon _icon_green;
        QIcon _icon_grey;
        QToolButton _run_stop_button;