X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Ftoolbars%2Fsamplingbar.h;h=94d9344e1e07b4403d474e8b2748fc6c4149c478;hp=6fc8abd38e0fcdce4bcd6a45f2a4a36233f0b424;hb=19adbc2c342b190161ec1223377a3619974b91f7;hpb=b50ef520745ffb90eb32f27ac6c46c2d5e4baf82 diff --git a/pv/toolbars/samplingbar.h b/pv/toolbars/samplingbar.h index 6fc8abd3..94d9344e 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); @@ -82,6 +86,8 @@ private: SigSession &_session; QComboBox _device_selector; + std::map > + _device_selector_map; bool _updating_device_selector; pv::widgets::PopupToolButton _configure_button;