X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=samplingbar.h;h=e7738656b168c55fb60b50308e267ee28af57cc3;hb=aeed8b418c0e751d7fef6aeaea1347af2077f904;hp=ca6a09216f8ba83ad086fb8af2960d3765477f7c;hpb=d4984fe7119c2fc9bf94b13cc38cc735887e377d;p=pulseview.git diff --git a/samplingbar.h b/samplingbar.h index ca6a092..e773865 100644 --- a/samplingbar.h +++ b/samplingbar.h @@ -21,7 +21,14 @@ #ifndef SAMPLINGBAR_H #define SAMPLINGBAR_H +#include + +#include +#include #include +#include + +class QAction; class SamplingBar : public QToolBar { @@ -29,6 +36,29 @@ class SamplingBar : public QToolBar 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