X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Ftoolbars%2Fsamplingbar.h;h=454d607931be9633354549a43d89ba137c744024;hb=82afd5e35c8113b719d78e5c654edf933375218a;hp=6fc8abd38e0fcdce4bcd6a45f2a4a36233f0b424;hpb=b50ef520745ffb90eb32f27ac6c46c2d5e4baf82;p=pulseview.git diff --git a/pv/toolbars/samplingbar.h b/pv/toolbars/samplingbar.h index 6fc8abd3..454d6079 100644 --- a/pv/toolbars/samplingbar.h +++ b/pv/toolbars/samplingbar.h @@ -24,6 +24,9 @@ #include #include +#include + +#include #include #include @@ -34,11 +37,11 @@ #include #include -struct st_dev_inst; class QAction; namespace pv { +class DevInst; class SigSession; namespace toolbars { @@ -55,10 +58,11 @@ private: public: SamplingBar(SigSession &session, QWidget *parent); - void set_device_list(const std::list &devices); + void set_device_list( + const std::list< boost::shared_ptr > &devices); - struct sr_dev_inst* get_selected_device() const; - void set_selected_device(struct sr_dev_inst *const sdi); + boost::shared_ptr get_selected_device() const; + void set_selected_device(boost::shared_ptr dev_inst); void set_capture_state(pv::SigSession::capture_state state); @@ -78,10 +82,14 @@ private slots: void on_sample_rate_changed(); void on_run_stop(); + void on_config_changed(); + private: SigSession &_session; QComboBox _device_selector; + std::map > + _device_selector_map; bool _updating_device_selector; pv::widgets::PopupToolButton _configure_button;