X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Ftoolbars%2Fsamplingbar.h;h=db4e856e26dfff48a59a80bae7f41909aa124e30;hb=945745012eb57cefa1ef457daf48cfffa99f9ec2;hp=6fc8abd38e0fcdce4bcd6a45f2a4a36233f0b424;hpb=b50ef520745ffb90eb32f27ac6c46c2d5e4baf82;p=pulseview.git diff --git a/pv/toolbars/samplingbar.h b/pv/toolbars/samplingbar.h index 6fc8abd..db4e856 100644 --- a/pv/toolbars/samplingbar.h +++ b/pv/toolbars/samplingbar.h @@ -24,6 +24,9 @@ #include #include +#include + +#include #include #include @@ -34,13 +37,16 @@ #include #include -struct st_dev_inst; class QAction; namespace pv { class SigSession; +namespace device { +class DevInst; +} + namespace toolbars { class SamplingBar : public QToolBar @@ -55,10 +61,13 @@ 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 +87,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;