X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Ftoolbars%2Fsamplingbar.h;h=db4c10e48fa4065221cb3004c250a00abc1a222f;hb=14cbfcc8050f4fa116875a3d5baad7a114f5b061;hp=aef26ef145c3882e73273ec9d52eb4aca3bf2646;hpb=1198b8872516662c257e5dcdec346094ed4f32dd;p=pulseview.git diff --git a/pv/toolbars/samplingbar.h b/pv/toolbars/samplingbar.h index aef26ef1..db4c10e4 100644 --- a/pv/toolbars/samplingbar.h +++ b/pv/toolbars/samplingbar.h @@ -48,7 +48,6 @@ class SamplingBar : public QToolBar Q_OBJECT private: - static const uint64_t RecordLengths[20]; static const uint64_t DefaultRecordLength; public: @@ -59,8 +58,6 @@ public: struct sr_dev_inst* get_selected_device() const; void set_selected_device(struct sr_dev_inst *const sdi); - uint64_t get_record_length() const; - void set_capture_state(pv::SigSession::capture_state state); signals: @@ -69,10 +66,13 @@ signals: private: void update_sample_rate_selector(); void update_sample_rate_selector_value(); + void update_sample_count_selector(); void commit_sample_rate(); + void commit_sample_count(); private slots: void on_device_selected(); + void on_sample_count_changed(); void on_sample_rate_changed(); void on_run_stop(); @@ -87,10 +87,12 @@ private: pv::widgets::PopupToolButton _probes_button; - QComboBox _record_length_selector; - + pv::widgets::SweepTimingWidget _sample_count; pv::widgets::SweepTimingWidget _sample_rate; bool _updating_sample_rate; + bool _updating_sample_count; + + bool _sample_count_supported; QIcon _icon_red; QIcon _icon_green;