X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Ftoolbars%2Fsamplingbar.h;h=d8d81219659e9a0cc19ca496ef8e11a6fcb2b234;hb=c042b5d2b18fca9fe79b9a33b730b890387bbfc7;hp=b2e7def25f7c4d1a2f112b4c3838f24bae7e7328;hpb=6ac6242b25cfbd4df14abe7580adc9d0f4cffe43;p=pulseview.git diff --git a/pv/toolbars/samplingbar.h b/pv/toolbars/samplingbar.h index b2e7def..d8d8121 100644 --- a/pv/toolbars/samplingbar.h +++ b/pv/toolbars/samplingbar.h @@ -24,7 +24,6 @@ #include #include -#include #include #include @@ -36,16 +35,18 @@ #include #include +namespace sigrok { + class Device; +} + +Q_DECLARE_METATYPE(std::shared_ptr) + class QAction; namespace pv { class SigSession; -namespace device { -class DevInst; -} - namespace toolbars { class SamplingBar : public QToolBar @@ -61,11 +62,10 @@ public: SamplingBar(SigSession &session, QWidget *parent); void set_device_list( - const std::list< std::shared_ptr > - &devices, - std::shared_ptr selected); + const std::list< std::pair, std::string> > &devices, + std::shared_ptr selected); - std::shared_ptr get_selected_device() const; + std::shared_ptr get_selected_device() const; void set_capture_state(pv::SigSession::capture_state state); @@ -95,8 +95,6 @@ private: SigSession &_session; QComboBox _device_selector; - std::map > - _device_selector_map; bool _updating_device_selector; pv::widgets::PopupToolButton _configure_button;