X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=samplingbar.h;h=e7738656b168c55fb60b50308e267ee28af57cc3;hp=99957f977b4ca5062bde5201c8e3d394d1d1ed90;hb=274d4f133825cddfc6a42438dd47899db20c7d97;hpb=6fb67b27a85f19002d43b8c8498ca7d2979401b0 diff --git a/samplingbar.h b/samplingbar.h index 99957f97..e7738656 100644 --- a/samplingbar.h +++ b/samplingbar.h @@ -21,8 +21,14 @@ #ifndef SAMPLINGBAR_H #define SAMPLINGBAR_H +#include + #include +#include #include +#include + +class QAction; class SamplingBar : public QToolBar { @@ -32,12 +38,27 @@ public: SamplingBar(QWidget *parent); struct sr_dev_inst* get_selected_device() const; + uint64_t get_sample_rate() const; + +signals: + void run_stop(); private: void update_device_selector(); + void update_sample_rate_selector(); + +private slots: + void on_device_selected(); private: QComboBox _device_selector; + + QComboBox _sample_rate_list; + QAction *_sample_rate_list_action; + QDoubleSpinBox _sample_rate_value; + QAction *_sample_rate_value_action; + + QToolButton _run_stop_button; }; #endif // SAMPLINGBAR_H