X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Ftoolbars%2Fsamplingbar.h;h=d2b3ad50aa035a57a208c845086120a99603d05d;hb=11a04e2a8ed47ed159b68cbe6f56aedd388e445f;hp=1f40d0452ff6ca8d7265cc30703eab46bcf388d4;hpb=2b49eeb02d92b4744f8ebfcfd38ef27384cdd751;p=pulseview.git diff --git a/pv/toolbars/samplingbar.h b/pv/toolbars/samplingbar.h index 1f40d04..d2b3ad5 100644 --- a/pv/toolbars/samplingbar.h +++ b/pv/toolbars/samplingbar.h @@ -31,11 +31,16 @@ #include #include +#include +#include struct st_dev_inst; class QAction; namespace pv { + +class SigSession; + namespace toolbars { class SamplingBar : public QToolBar @@ -47,7 +52,7 @@ private: static const uint64_t DefaultRecordLength; public: - SamplingBar(QWidget *parent); + SamplingBar(SigSession &session, QWidget *parent); void set_device_list(const std::list &devices); @@ -59,8 +64,6 @@ public: void set_capture_state(pv::SigSession::capture_state state); signals: - void device_selected(); - void run_stop(); private: @@ -71,15 +74,22 @@ private: private slots: void on_device_selected(); void on_sample_rate_changed(); - void on_configure(); void on_run_stop(); private: + SigSession &_session; + QComboBox _device_selector; - QToolButton _configure_button; + bool _updating_device_selector; + + pv::widgets::PopupToolButton _configure_button; + + pv::widgets::PopupToolButton _probes_button; + pv::popups::Probes _probes_popup; QComboBox _record_length_selector; + QAction *_sample_rate_action; QComboBox _sample_rate_list; QAction *_sample_rate_list_action; QDoubleSpinBox _sample_rate_value;